es.udc.gii.common.eaf.algorithm.operator.selection
Class TournamentSelection
java.lang.Object
es.udc.gii.common.eaf.algorithm.operator.selection.SelectionOperator
es.udc.gii.common.eaf.algorithm.operator.selection.TournamentSelection
- All Implemented Interfaces:
- Operator, Configurable
public class TournamentSelection
- extends SelectionOperator
This method of selection runs a tournament among a few individuals chosen
at random from the population and selects the winner for the reproduction
phase.
Selection pressure can be easily adjusted by changing the tournament size. If
the tournament size is larger, weak individuals have a smaller change to be
selected.
To configure this operator the xml code is:
<Operator>
<Class>es.udc.gii.common.eaf.algorithm.operator.selection.TournamentSelection</Class>
<PoolSize>2</PoolSize>
<Comparator>es.udc.gii.common.eaf.algorithm.fitness.comparator.LessFitnessComparator</Comparator>
</Operator>
- Author:
- pilar
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
poolSize
private int poolSize
TournamentSelection
public TournamentSelection()
select
protected Individual select(EvolutionaryAlgorithm algorithm,
java.util.List<Individual> individuals)
- Specified by:
select
in class SelectionOperator
configure
public void configure(org.apache.commons.configuration.Configuration conf)
- Specified by:
configure
in interface Configurable
- Overrides:
configure
in class SelectionOperator