public interface Population extends java.lang.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)
chromosome
- the chromosome to add.Chromosome getFittestChromosome()
Copyright © 2010 - 2020 Adobe. All Rights Reserved