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§
- Mutate
Event - Mutate
Multi Gene - 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.
- Mutate
Multi Gene Dynamic - 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.
- Mutate
Multi Gene Range - 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.
- Mutate
Single Gene - 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.
- Mutate
Single Gene Dynamic - 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§
- Mutate
- Optional Custom User implementation (rarely needed)
Type Aliases§
- Mutate
Allele - This is just a shortcut
- Mutate
Evolve State - This is just a shortcut for
EvolveState<Self::Genotype>, - Mutate
Genotype - This is just a shortcut for
Self::Genotype