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