11 #ifndef DIGNEA_RASTRIGIN_H
12 #define DIGNEA_RASTRIGIN_H
14 #include <dignea/core/Problem.h>
15 #include <dignea/types/SolutionTypes.h>
16 #include <dignea/utilities/random/PseudoRandom.h>
69 string getName()
const override {
return "Rastrigin"; }
102 void readData(
const string &path)
override;
Class to represent a Problem in the tool. It includes the basic information for a problem a few metho...
Definition: Problem.h:29
int numberOfVars
Definition: Problem.h:155
Rastrigin Optimization function.
Definition: Rastrigin.h:24
float getLowerLimit(int i) const override
Get the lower limit of the Rastrigin function (-5.12).
Definition: Rastrigin.cpp:44
float getUpperLimit(int i) const override
Get the upper limit of the Rastrigin function (5.12).
Definition: Rastrigin.cpp:52
int getOptimizationDirection(int i) const override
Get the Optimization Direction. Only available for one dimension (0) and it returns Minimize.
Definition: Rastrigin.cpp:60
void readData(const string &path) override
Not implemented here.
Definition: Rastrigin.cpp:69
bool evaluateConstraints(FloatSolution &solution) const override
Not implemented here.
Definition: Rastrigin.cpp:74
FloatSolution createSolution() const override
Creates a random solution with values in the range [-5.12, 5.12].
Definition: Rastrigin.cpp:32
string getName() const override
Get the Name.
Definition: Rastrigin.h:69
void evaluate(FloatSolution &solution) const override
Evaluates an individual with the Rastrigin Function.
Definition: Rastrigin.cpp:17
Class to represent a solution to the optimization problems in the tool.
Definition: Solution.h:25