|
GALib-Parallel
Header-only C++ library for parallel evolutionary algorithms
|
Interface for mutation operators. More...
#include <Mutation.h>
Public Member Functions | |
| virtual | ~Mutation ()=default |
| virtual void | mutate (Individual< GeneType > &individual, double mutation_rate)=0 |
| Applies mutation to an individual. | |
Interface for mutation operators.
Mutation introduces small, random variations into an individual's genotype to maintain genetic diversity and prevent premature convergence.
| GeneType | The numeric type of the genes. |
Definition at line 19 of file Mutation.h.
|
virtualdefault |
|
pure virtual |
Applies mutation to an individual.
| individual | The individual to mutate (modified in-place). |
| mutation_rate | Probability of mutation for each gene [0.0, 1.0]. |
Implemented in galib::BoundaryMutation< GeneType >, galib::GaussianMutation< GeneType >, and galib::UniformMutation< GeneType >.