12 #ifndef DIGNEA_UNIFORMALLMUTATION_H
13 #define DIGNEA_UNIFORMALLMUTATION_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 All Mutation"; };
48 for (
int i = 0; i < ind.getNumberOfVars(); i++) {
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 double randDouble()
Generates a random double value between 0.0 and 1.0.
Definition: PseudoRandom.cpp:31