Package org.jppf.ga
Class TournamentSelector
java.lang.Object
org.jppf.ga.TournamentSelector
- All Implemented Interfaces:
Selector
Tornament slection implemntation.
- Author:
- Laurent Cohen
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTournamentSelector(int size) Initialize this selector with the specified size. -
Method Summary
Modifier and TypeMethodDescriptionselect(Chromosome[] population, int nbSelect) Select the specified number of chromosomes among the specified population.
-
Field Details
-
random
Random number generator.
-
-
Constructor Details
-
TournamentSelector
public TournamentSelector(int size) Initialize this selector with the specified size.- Parameters:
size- the tournament size.
-
-
Method Details
-
select
Description copied from interface:SelectorSelect the specified number of chromosomes among the specified population.
-