Trees | Indices | Help |
---|
|
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.
|
|||
|
|||
|
|||
|
|
Initialize a selector. Arguments: o mutator -- A Mutation object which will perform mutation on an individual. o crossover -- A Crossover object which will take two individuals and produce two new individuals which may have had crossover occur. o repairer -- A class which can do repair on rearranged genomes to eliminate infeasible individuals. If set at None, so repair will be done. |
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 | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Thu Dec 25 10:56:31 2008 | http://epydoc.sourceforge.net |