| Trees | Index | Help |
|---|
| Package Bio :: Package GA :: Package Selection :: Module Diversity :: Class DiversitySelection |
|
AbstractSelection --+
|
DiversitySelection
Implement diversity selection.
Diversity selection is performed by trying to select individuals from the population that aren't already in the new_population. A group of selected individuals is then subjected to selection using a passed selection routine.
If new individuals can not be selected, new individuals will be randomly generated and inserted into the population.| Method Summary | |
|---|---|
Initialize a diversity selector. | |
Perform selection on the current population, encouraging diversity. | |
| Inherited from AbstractSelection | |
Perform mutation and crossover on the two organisms. | |
| Method Details |
|---|
__init__(self,
internal_selector,
genome_generator)
|
select(self, population)Perform selection on the current population, encouraging diversity. |
| Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Wed Jan 31 09:57:59 2007 | http://epydoc.sf.net |