| Modifier and Type | Method and Description |
|---|---|
| public void | addChromosome(Chromosome
the chromosome to add. chromosome)Add the given chromosome to the population. |
| public Chromosome | Returns: the fittest chromosome.Access the fittest chromosome in this population. |
| public int | |
| public int | |
| public Population | Returns: the beginnings of the next generation.Start the population for the next generation. |
| addChromosome | back to summary |
|---|---|
| public void addChromosome(Chromosome chromosome) throws NumberIsTooLargeException Add the given chromosome to the population.
| |
| getFittestChromosome | back to summary |
|---|---|
| public Chromosome getFittestChromosome() Access the fittest chromosome in this population.
| |
| getPopulationLimit | back to summary |
|---|---|
| public int getPopulationLimit() Access the maximum population size.
| |
| getPopulationSize | back to summary |
|---|---|
| public int getPopulationSize() Access the current population size.
| |
| nextGeneration | back to summary |
|---|---|
| public Population nextGeneration() Start the population for the next generation.
| |