public class TournamentSelection extends java.lang.Object implements Selection
This class implements the tournament selection method.
| Constructor and Description |
|---|
TournamentSelection()
Creates a TournamentSelection object
|
| Modifier and Type | Method and Description |
|---|---|
void |
init(Population pop)
Initializes the tournament selection.
|
Classifier |
makeSelection(Population pop)
Applies the tournament selection.
|
public TournamentSelection()
Creates a TournamentSelection object
public void init(Population pop)
Initializes the tournament selection. It initializes two sets of classifiers to make the tournament selection with them. Their size is a fraction of the action set size.
public Classifier makeSelection(Population pop)
Applies the tournament selection.
makeSelection in interface Selectionpop - is the population.