Genex v1.0.1-beta Genex.Evolution behaviour View Source
Evolution behaviour definition for Evolutionary algorithms.
Evolutions begin with init
after the population has been created. The purpose of init
is to define metrics, initiate a genealogy tree, and create a hall of fame. init
is like the "constructor" of the evolution.
Link to this section Summary
Callbacks
Evaluates population
according to fitness_fn
.
Initialization of the evolution.
Recombine population.
Select parents for variation. Must populate selected
field in Population
.
Termination of the evolution.
Perform housekeeping before next generation. Includes Gene Repair.
Perform variation such as Crossover, Mutation, and Migration.
Link to this section Callbacks
evaluation(population, opts)
View Sourceevaluation(population :: Genex.Types.Population.t(), opts :: Keyword.t()) :: {:ok, Genex.Types.Population.t()}
Evaluates population
according to fitness_fn
.
init(population, opts)
View Sourceinit(population :: Genex.Types.Population.t(), opts :: Keyword.t()) :: {:ok, Genex.Types.Population.t()}
Initialization of the evolution.
reinsertion(population, opts)
View Sourcereinsertion(population :: Genex.Types.Population.t(), opts :: Keyword.t()) :: {:ok, Genex.Types.Population.t()}
Recombine population.
selection(population, opts)
View Sourceselection(population :: Genex.Types.Population.t(), opts :: Keyword.t()) :: {:ok, Genex.Types.Population.t()}
Select parents for variation. Must populate selected
field in Population
.
termination(population, opts)
View Sourcetermination(population :: Genex.Types.Population.t(), opts :: Keyword.t()) :: Genex.Types.Population.t()
Termination of the evolution.
transition(population, opts)
View Sourcetransition(population :: Genex.Types.Population.t(), opts :: Keyword.t()) :: {:ok, Genex.Types.Population.t()}
Perform housekeeping before next generation. Includes Gene Repair.
variation(population, opts)
View Sourcevariation(population :: Genex.Types.Population.t(), opts :: Keyword.t()) :: {:ok, Genex.Types.Population.t()}
Perform variation such as Crossover, Mutation, and Migration.