Trees | Indices | Help |
---|
|
Abstract.AbstractSelection --+ | TournamentSelection
Implement tournament style selection.
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
Initialize the tournament selector. Arguments: o num_competitors-- The number of individiuals that should be involved in a selection round. By default we just have two individuals (head to head!). See AbstractSelection for a description of the arguments to the initializer.
|
Comparison function for comparing two organisms. This just allows us to easily sort organisms by fitness. |
Perform selection on the population using the Tournament model. Arguments: o population -- A population of organisms on which we will perform selection. The individuals are assumed to have fitness values which are due to their current genome (ie. the fitness is up to date).
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Wed Jul 14 01:35:50 2010 | http://epydoc.sourceforge.net |