dignea
1.0.0
Diverse Instance Generator with Novelty Search and Evolutionary Algorithms
|
Swap Mutation Operator for Permutation Based Problems like TSP. Fixes the first and last genes to zero (TSP constraint). More...
#include <SwapMutation.h>
Public Member Functions | |
void | run (S &ind, const double &probability, Problem< S > *) override |
Performs Swap Mutation Operation. More... | |
std::string | getName () const override |
Swap Mutation Operator for Permutation Based Problems like TSP. Fixes the first and last genes to zero (TSP constraint).
S |
|
overridevirtual |
Performs Swap Mutation Operation.
Two positions (genes) in the chromosome are selected at random and their allele values swapped.
S |
ind | |
probability | |
problem |
Implements Mutation< S >.