Trees | Index | Help |
---|
Package Bio :: Package GA :: Package Selection :: Module Abstract :: Class AbstractSelection |
|
DiversitySelection
,
RouletteWheelSelection
,
TournamentSelection
Base class for Selector classes.
This classes provides useful functions for different selector classes and also defines the functions that all selector classes must implement.
This class should not be used directly, but rather should be subclassed.Method Summary | |
---|---|
Initialize a selector. | |
Perform mutation and crossover on the two organisms. | |
select(self,
population)
|
Method Details |
---|
__init__(self,
mutator,
crossover,
repairer=None)
|
mutate_and_crossover(self, org_1, org_2)Perform mutation and crossover on the two organisms. This uses the classes mutator and crossover functions to perform the manipulations. If a repair class is available, then the rearranged genomes will be repaired to make them feasible. The newly created individuals are returned. |
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Mon Aug 27 16:13:10 2007 | http://epydoc.sf.net |