View Source Geneticx (Generticx v0.1.1)

Documentation for Geneticx.

Summary

Functions

Crossover to generate the children

Evaluate the population with the fitness function

Hello world.

Initialize the population with genotype

Mutate the children randomly

Select the parents for the next generation

Functions

Link to this function

crossover(population, opts \\ [])

View Source

Crossover to generate the children

Link to this function

evaluate(population, fitness_function)

View Source

Evaluate the population with the fitness function

Link to this function

evolve(population, fitness_function, genotype, max_fitness, opts \\ [])

View Source

The core algorithm

Hello world.

Examples

iex> Geneticx.hello()
:world
Link to this function

initialize(genotype, opts \\ [])

View Source

Initialize the population with genotype

Link to this function

mutation(population, opts \\ [])

View Source

Mutate the children randomly

Link to this function

run(fitness_function, genotype, max_fitness, opts \\ [])

View Source

Run the genetic algorithm

Link to this function

select(population, opts \\ [])

View Source

Select the parents for the next generation