public interface Population extends Iterable<Chromosome>
| Modifier and Type | Method and Description | 
|---|---|
| void | addChromosome(Chromosome chromosome)Add the given chromosome to the population. | 
| Chromosome | getFittestChromosome()Access the fittest chromosome in this population. | 
| int | getPopulationLimit()Access the maximum population size. | 
| int | getPopulationSize()Access the current population size. | 
| Population | nextGeneration()Start the population for the next generation. | 
int getPopulationSize()
int getPopulationLimit()
Population nextGeneration()
void addChromosome(Chromosome chromosome) throws NumberIsTooLargeException
chromosome - the chromosome to add.NumberIsTooLargeException - if the population would exceed the population limit when adding
   this chromosomeChromosome getFittestChromosome()
Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.