12 #ifndef DIGNEA_UNIFORMONEMUTATION_H
13 #define DIGNEA_UNIFORMONEMUTATION_H
15 #include <dignea/core/Mutation.h>
16 #include <dignea/utilities/random/PseudoRandom.h>
30 void run(S &ind,
const double &probability,
Problem<S> *)
override;
32 std::string getName()
const override {
return "Uniform One Mutation"; };
52 ind.setVarAt(varIndex, varNewValue);
Abstract Mutation interface.
Definition: Mutation.h:21
Class to represent a Problem in the tool. It includes the basic information for a problem a few metho...
Definition: Problem.h:29
virtual float getLowerLimit(const int i) const =0
Returns the lower bound to the problem at dimension i. This method must be implemented in the subclas...
virtual float getUpperLimit(const int i) const =0
Returns the upper bound to the problem at dimension i. This method must be implemented in the subclas...
static int randInt(int minBound, int maxBound)
Returns a random integer int the range [minBound, maxBound].
Definition: PseudoRandom.cpp:38
static double randDouble()
Generates a random double value between 0.0 and 1.0.
Definition: PseudoRandom.cpp:31