Top Description Methods
org.apache.commons.math3.genetics

public Interface SelectionPolicy

Known Direct Implementers
org.apache.commons.math3.genetics.TournamentSelection
Imports
org.apache.commons.math3.exception.MathIllegalArgumentException

Algorithm used to select a chromosome pair from a population.
Since
2.0

Method Summary

Modifier and TypeMethod and Description
public ChromosomePair

Returns:

the selected chromosomes.
select
(Population
the population from which the chromosomes are choosen.
population
)

Select two chromosomes from the population.

Method Detail

selectback to summary
public ChromosomePair select(Population population) throws MathIllegalArgumentException

Select two chromosomes from the population.

Parameters
population:Population

the population from which the chromosomes are choosen.

Returns:ChromosomePair

the selected chromosomes.

Exceptions
MathIllegalArgumentException:
if the population is not compatible with this SelectionPolicy