mono_sphere.h
Go to the documentation of this file.
1 
40 #ifndef HIGH_PRECISION_PSO_FUNCTION_MONO_SPHERE_H_
41 #define HIGH_PRECISION_PSO_FUNCTION_MONO_SPHERE_H_
42 
43 #include "function/function.h"
44 
45 namespace highprecisionpso {
46 
50 class MonoSphere: public Function {
51 public:
55  MonoSphere();
63  mpf_t* Eval(const std::vector<mpf_t*> & pos);
64  std::string GetName();
76  mpf_t* DistanceTo1DLocalOptimum(const std::vector<mpf_t*> & pos, int d);
77 };
78 
79 } // namespace highprecisionpso
80 
81 #endif /* HIGH_PRECISION_PSO_FUNCTION_MONO_SPHERE_H_ */
This file contains abstract classes for function generation.
mpf_t * DistanceTo1DLocalOptimum(const std::vector< mpf_t * > &pos, int d)
Calculates for a position and a dimension the next local optimum if only the value of the position in...
This class represents a function, which performs like the sphere function in the first dimension and ...
Definition: mono_sphere.h:50
mpf_t * Eval(const std::vector< mpf_t * > &pos)
Returns the square of the first position entry.
MonoSphere()
The constructor.
std::string GetName()
Returns a string representation of this object.
This class is an abstract class. It supplies the interface for objective functions.
Definition: function.h:74
base namespace for this project.
Definition: absorption.h:45