11 #ifndef DIGNEA_SPHERE_H
12 #define DIGNEA_SPHERE_H
14 #include <dignea/core/Problem.h>
15 #include <dignea/types/SolutionTypes.h>
16 #include <dignea/utilities/random/PseudoRandom.h>
30 ~
Sphere()
override =
default;
58 string getName()
const override {
return "Sphere"; }
77 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
Class to represent a solution to the optimization problems in the tool.
Definition: Solution.h:25
Sphere Optimization function.
Definition: Sphere.h:25
float getUpperLimit(int i) const override
Get the upper limit of the ith dimension.
Definition: Sphere.cpp:47
string getName() const override
Get the name of the Problem.
Definition: Sphere.h:58
FloatSolution createSolution() const override
Creates a random solution for the Sphere problem.
Definition: Sphere.cpp:27
float getLowerLimit(int i) const override
Get the lower limit of the ith dimension.
Definition: Sphere.cpp:39
bool evaluateConstraints(FloatSolution &solution) const override
Not implemented here.
Definition: Sphere.cpp:68
Sphere()=default
Creates a default Sphere object.
void readData(const string &path) override
Not implemented here.
Definition: Sphere.cpp:63
void evaluate(FloatSolution &solution) const override
Evaluates a solution with the Sphere equation.
Definition: Sphere.cpp:14
int getOptimizationDirection(int i) const override
Get the optimization direction for each dimension of the problem.
Definition: Sphere.cpp:55