Genex v1.0.1-beta Genex.Types.Population View Source
A collection of Chromosomes.
The Population represents the pool of solutions you are trying to optimize. Ideally, you persist the 'fittest' features from generation to generation until you converge on a solution.
The Population struct contains a number of useful fields that can be analyzed after the algorithm runs.
Link to this section Summary
Link to this section Types
Link to this type
t()
View Sourcet() :: %Genex.Types.Population{
children: Enum.t() | nil,
chromosomes: Enum.t(),
genealogy: :digraph.graph(),
generation: integer(),
max_fitness: number(),
momentum: number(),
selected: Enum.t() | nil,
size: integer(),
statistics: Keyword.t(),
strongest: Genex.Types.Chromosome.t(),
survivors: Enum.t() | nil
}