Module genetic_algorithm::mutate

source ·
Expand description

The mutation strategy, very important for avoiding local optimum lock-in. But don’t overdo it, as it degenerates the population too much if overused. Use a mutation probability generally between 5% and 20%.

Structs§

  • Selects Chromosomes in the Population with the provided mutation_probability. Then mutates the selected chromosomes the provided number of times, where the Genotype determines whether this is random, relative or scaled.
  • Selects Chromosomes in the Population with the dynamically updated mutation_probability. Then mutates the selected chromosomes the provided number of times, where the Genotype determines whether this is random, relative or scaled. The mutation probability is dynamically increased or decreased to achieve a target population cardinality.
  • Selects Chromosomes in the Population with the provided mutation_probability. Then mutates the selected chromosomes once, where the Genotype determines whether this is random, relative or scaled.
  • Selects Chromosomes in the Population with the dynamically updated mutation_probability. Then mutates the selected chromosomes once, where the Genotype determines whether this is random, relative or scaled. The mutation probability is dynamically increased or decreased to achieve a target population cardinality

Enums§

Traits§