Skip to main content

Module mutation

Module mutation 

Source

Constants§

ESSENTIAL_GENES
Essential gene names that should not be removed.

Functions§

comprehensive_mutate
Complete mutation operator applying all mutation types.
mutate
Basic mutation: randomly changes gene values.
mutate_with_log
Mutate a chromosome and return a log of applied mutations.
scramble_mutation
Scramble mutation: randomly shuffles a subset of genes.
structural_add_mutation
Structural mutation: add new genes from the gene pool.
structural_remove_mutation
Structural mutation: remove genes from the chromosome.
swap_mutation
Swap mutation: exchanges values between two genes.