Population#
A Population holds a collection of
(Individual, Fitness | None) pairs. It supports fitness assignment (by index
or by Individual reference), sorting by fitness, and iteration. All Individuals
in a Population must be unique objects.
Populations are created by a
GenerateInitialPopulation factory at the
start of evolution, and by a Reproducer
at the end of each generation.
Implementations#
PopulationInitialization.py — Factories for creating initial populations, including
GenerateBitstreamPopulationwhich produces populations ofBitstreamIndividualwith random or seeded bitstreams.