|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jgap.NaturalSelector
org.jgap.impl.ThresholdSelector
Implementation of a NaturalSelector that plays tournaments to determine the chromosomes to be taken to the next generation.
The tournament size can be adjusted as well as the probability for selecting an individual.
| Constructor Summary | |
ThresholdSelector(double a_bestChromosomes_Percentage)
Standard constructor |
|
| Method Summary | |
void |
empty()
Empty out the working pool of Chromosomes. |
boolean |
returnsUniqueChromosomes()
|
void |
select(int a_howManyToSelect,
Population a_from_pop,
Population a_to_pop)
Select a given number of Chromosomes from the pool that will move on to the next generation population. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ThresholdSelector(double a_bestChromosomes_Percentage)
a_bestChromosomes_Percentage - indicates the number of best
chromosomes from the population to be selected for granted. All other
chromosomes will be selected in a random fashion.| Method Detail |
public void select(int a_howManyToSelect,
Population a_from_pop,
Population a_to_pop)
a_howManyToSelect - The number of Chromosomes to select.a_from_pop - the population the Chromosomes will be selected from.a_to_pop - the population the Chromosomes will be added to.public boolean returnsUniqueChromosomes()
public void empty()
INaturalSelector
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||