|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.artoflife.gp.Selector | +--org.artoflife.gp.selection.SimpleTournamentSelector
Selects on the basis of a simple tournament. The strategy is:
Configure tournament size with configuration property
[this.getClass().getName()].TournamentSize
.
Field Summary | |
protected int |
tournamentSize
|
Fields inherited from class org.artoflife.gp.Selector |
individuals |
Constructor Summary | |
SimpleTournamentSelector()
|
Method Summary | |
Individual |
selectOne(boolean chooseFittest)
Override to select a single individual from the original pool according to some Fitness-based strategy, removing the selected Individual from the available pool. |
Methods inherited from class org.artoflife.gp.Selector |
initialise, select, selectFittest, selectFittest, selectWeakest, selectWeakest |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int tournamentSize
Constructor Detail |
public SimpleTournamentSelector()
Method Detail |
public Individual selectOne(boolean chooseFittest)
Selector
selectOne
in class Selector
chooseFittest
- true to choose from the fittest Individuals
or false to choose from the weakest
|
artoflife pre0.1.0-dev | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |