Module mutate

Module 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§

MutateEvent
MutateMultiGene
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.
MutateMultiGeneDynamic
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.
MutateMultiGeneRange
Selects Chromosomes in the Population with the provided mutation_probability. Then mutates the selected chromosomes a number of times (sampled uniform from the provided number_of_mutations_range), where the Genotype determines whether this is random, relative or scaled.
MutateSingleGene
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.
MutateSingleGeneDynamic
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§

MutateWrapper

Traits§

Mutate
Optional Custom User implementation (rarely needed)

Type Aliases§

MutateAllele
This is just a shortcut
MutateEvolveState
This is just a shortcut for EvolveState<Self::Genotype>,
MutateGenotype
This is just a shortcut for Self::Genotype