public class TournamentSelection extends EvolutionaryStrategy
EvolutionaryStrategy
Constructor and Description |
---|
TournamentSelection(Resources resources)
Creates a new instance of TournamentSelection.
|
Modifier and Type | Method and Description |
---|---|
void |
evolve(Population population,
Mutator mutator)
Performs the selection algorithm and uses the mutator to create
the next generation of solutions.
|
getLocalParameters, toString
public TournamentSelection(Resources resources)
resources
- a reference to the experiment's resources.public void evolve(Population population, Mutator mutator)
EvolutionaryStrategy
evolve
in class EvolutionaryStrategy
population
- the population to evolve.mutator
- the mutator with which to mutate the promoted individuals.