Population

Contents

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#