Package behaviour
Class TournamentSelection
java.lang.Object
behaviour.TournamentSelection
- All Implemented Interfaces:
SelectionBehaviour
a selection behaviour
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TournamentSelection
public TournamentSelection()
-
-
Method Details
-
select
public <T extends Number> List<List<T>> select(List<? extends List<T>> population, List<T> fitnessOfPopulation) One good selection criteria is Tournament Selection, which randomly picks two individuals and runs a virtual tournament. The one having the higher fitness coefficient wins.- Specified by:
select
in interfaceSelectionBehaviour
- Type Parameters:
T
- extends Number- Parameters:
population
- the current populationfitnessOfPopulation
- the fitness scores of current population- Returns:
- new parents
-