| org.jgap.INaturalSelector
All known Subclasses: org.jgap.NaturalSelector,
INaturalSelector | public interface INaturalSelector extends Serializable(Code) | | Natural selectors are responsible for actually selecting a specified number
of Chromosome specimens from a population, using the fitness values as a
guide. Usually fitness is treated as a statistic probability of survival,
not as the sole determining factor. Therefore, Chromosomes with higher
fitness values are more likely to survive than those with lesser fitness
values, but it's not guaranteed.
author: Neil Rotstan author: Klaus Meffert since: 2.0 |
Method Summary | |
void | empty() Empty out the working pool of Chromosomes. | boolean | returnsUniqueChromosomes() true: The implementation of the NaturalSelector only returnsunique Chromosome's (example: BestChromosomesSelector). | void | select(int a_howManyToSelect, Population a_from_population, Population a_to_population) Select a given number of Chromosomes from the pool that will move on
to the next generation population. |
CVS_REVISION | final static String CVS_REVISION(Code) | | String containing the CVS revision. Read out via reflection!
|
empty | void empty()(Code) | | Empty out the working pool of Chromosomes. This will be invoked after
each evolution cycle so that the natural selector can be reused for
the next one.
author: Neil Rotstan since: 1.0 |
returnsUniqueChromosomes | boolean returnsUniqueChromosomes()(Code) | | true: The implementation of the NaturalSelector only returnsunique Chromosome's (example: BestChromosomesSelector). false: Alsodoublettes could be returned (example: WeightedRouletteSelector). author: Klaus Meffert since: 2.0 |
select | void select(int a_howManyToSelect, Population a_from_population, Population a_to_population)(Code) | | Select a given number of Chromosomes from the pool that will move on
to the next generation population. This selection should be guided by
the fitness values, but fitness should be treated as a statistical
probability of survival, not as the sole determining factor. In other
words, Chromosomes with higher fitness values should be more likely to
be selected than those with lower fitness values, but it should not be
guaranteed.
Parameters: a_howManyToSelect - the number of Chromosomes to select Parameters: a_from_population - the population the Chromosomes will beselected from Parameters: a_to_population - the population the Chromosomes will be added to author: Neil Rotstan author: Klaus Meffert since: 2.0 (since 1.0 with different return type) |
|
|