Iterable<Chromosome>ElitisticListPopulation, ListPopulationpublic interface Population extends Iterable<Chromosome>
| Modifier and Type | Method | 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.
|
forEach, iterator, spliteratorint 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–2017 The Apache Software Foundation. All rights reserved.