|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectorg.moeaframework.core.operator.TournamentSelection
public class TournamentSelection
Deterministic tournament selection operator. The tournament size specifies the number of candidate solutions selected randomly from a population. The winner of a tournament is the best solution in the pool. Unlike probabilistic tournament selection, the best solution is always returned in deterministic tournament selection. If two or more solutions are the best in the pool, one solution is randomly selected with equal probability as the tournament winner.
Binary tournament selection exhibits the same selection pressure as linear ranking but without the computational overhead required for ranking. Larger tournament sizes result in greedier selection. Solutions are selected with replacement.
| Constructor Summary | |
|---|---|
TournamentSelection()
Constructs a binary tournament selection operator using Pareto dominance. |
|
TournamentSelection(DominanceComparator comparator)
Constructs a binary tournament selection operator using the specified dominance comparator. |
|
TournamentSelection(int size)
Constructs a tournament selection operator of the specified size using Pareto dominance. |
|
TournamentSelection(int size,
DominanceComparator comparator)
Constructs a tournament selection operator of the specified size and using the specified dominance comparator. |
|
| Method Summary | |
|---|---|
DominanceComparator |
getComparator()
Returns the dominance comparator used to determine the tournament winner. |
int |
getSize()
Returns the tournament size. |
Solution[] |
select(int arity,
Population population)
Returns an array of length arity of solutions selected from the
specified population. |
void |
setSize(int size)
Sets the tournament size. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TournamentSelection()
public TournamentSelection(DominanceComparator comparator)
comparator - the comparator used to determine the tournament winnerpublic TournamentSelection(int size)
size - the tournament size
public TournamentSelection(int size,
DominanceComparator comparator)
size - the tournament sizecomparator - the comparator used to determine the tournament winner| Method Detail |
|---|
public int getSize()
public void setSize(int size)
size - the new tournament sizepublic DominanceComparator getComparator()
public Solution[] select(int arity,
Population population)
Selectionarity of solutions selected from the
specified population.
select in interface Selectionarity - the number of solutions selected from the specified
populationpopulation - the population from which solutions are selected
arity of solutions selected from the
specified population
|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||