GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  AI::GENETIC::OPSELECTION (3)

.ds Aq ’

NAME

AI::Genetic::OpSelection - A class that implements various selection operators.

CONTENTS

SYNOPSIS

See AI::Genetic.

DESCRIPTION

This package implements a few selection mechanisms that can be used in user-defined strategies. The methods in this class are to be called as static class methods, rather than instance methods, which means you must call them as such:



  AI::Genetic::OpSelection::MethodName(arguments)



SELECTION OPERATORS AND THEIR METHODS

The following selection operators are defined:
Roulette Wheel Here, the probability of an individual being selected is proportional to its fitness score. The following methods are defined:
<B>initWheelB>(population) This method initializes the roulette wheel. It expects an anonymous list of individuals, as returned by the people() method as described in CLASS METHODS in AI::Genetic. This <B>mustB> be called only once.
<B>rouletteB>(?N?) This method selects N individuals. N defaults to 2. Note that the same individual can be selected multiple times.
<B>rouletteUniqueB>(?N?) This method selects N unique individuals. N defaults to 2. Any individual can be selected only once per call to this method.
Tournament Here, N individuals are randomly selected, and the fittest one of them is returned. The following method is defined:
<B>tournamentB>(?N?) N defaults to 2. Note that only one individual is returned per call to this method.
Random Here, N individuals are randomly selected and returned. The following method is defined:
<B>randomB>(?N?) N defaults to 1.
Fittest Here, the fittest N individuals of the whole population are returned. The following method is defined:
<B>topNB>(?N?) N defaults to 1.

AUTHOR

Written by Ala Qumsieh aqumsieh@cpan.org.

COPYRIGHTS

(c) 2003,2004 Ala Qumsieh. All rights reserved. This module is distributed under the same terms as Perl itself.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 GENETIC::OPSELECTION (3) 2005-03-04

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.