Trees | Index | Help |
---|
Package Bio :: Package GA :: Package Selection :: Module RouletteWheel :: Class RouletteWheelSelection |
|
AbstractSelection
--+
|
RouletteWheelSelection
Roulette wheel selection proportional to individuals fitness.
The implements a roulette wheel selector that selects individuals from the population, and performs mutation and crossover on the selected individuals.Method Summary | |
---|---|
Initialize the selector. | |
Perform selection on the population based using a Roulette model. | |
Inherited from AbstractSelection | |
Perform mutation and crossover on the two organisms. |
Method Details |
---|
__init__(self,
mutator,
crossover,
repairer=None)
|
select(self, population)Perform selection on the population based using a Roulette 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. |
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Mon Aug 27 16:13:13 2007 | http://epydoc.sf.net |