Genex v0.2.1 Genex.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
Functions
Sort the population by fitness.
Link to this section Types
Link to this type
t()
View Sourcet() :: %Genex.Population{ children: Enum.t() | nil, chromosomes: Enum.t(), generation: integer(), history: :digraph.graph(), max_fitness: number(), parents: Enum.t() | nil, size: integer(), statistics: Keyword.t(), strongest: Genex.Chromosome.t(), survivors: Enum.t() | nil }
Link to this section Functions
Sort the population by fitness.