Class ProportionalTournamentSelector<T extends Comparable<T>>
java.lang.Object
net.bmahe.genetics4j.core.selection.ProportionalTournamentSelector<T>
- All Implemented Interfaces:
Selector<T>
public class ProportionalTournamentSelector<T extends Comparable<T>>
extends Object
implements Selector<T>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.apache.logging.log4j.Logger
private final RandomGenerator
private final SelectionPolicy
-
Constructor Summary
ConstructorDescriptionProportionalTournamentSelector
(SelectionPolicy _selectionPolicy, RandomGenerator _randomGenerator) -
Method Summary
-
Field Details
-
logger
public static final org.apache.logging.log4j.Logger logger -
selectionPolicy
-
randomGenerator
-
-
Constructor Details
-
ProportionalTournamentSelector
public ProportionalTournamentSelector(SelectionPolicy _selectionPolicy, RandomGenerator _randomGenerator)
-
-
Method Details
-
select
public Population<T> select(AbstractEAConfiguration<T> eaConfiguration, int numIndividuals, List<Genotype> population, List<T> fitnessScore) - Specified by:
select
in interfaceSelector<T extends Comparable<T>>
-