sphere_plus.h
Go to the documentation of this file.
1 
40 #ifndef HIGH_PRECISION_PSO_FUNCTION_SPHERE_PLUS_H_
41 #define HIGH_PRECISION_PSO_FUNCTION_SPHERE_PLUS_H_
42 
43 #include "function/function.h"
44 
45 namespace highprecisionpso {
46 
50 class SpherePlus: public Function {
51 public:
59  mpf_t* Eval(const std::vector<mpf_t*> & pos);
60  std::string GetName();
69  mpf_t* DistanceTo1DLocalOptimum(const std::vector<mpf_t*> & pos, int d);
70 };
71 
72 } // namespace highprecisionpso
73 
74 #endif /* HIGH_PRECISION_PSO_FUNCTION_SPHERE_PLUS_H_ */
This file contains abstract classes for function generation.
This class represents the well known test function sphere plus.
Definition: sphere_plus.h:50
std::string GetName()
Returns a string representation of this object.
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...
mpf_t * Eval(const std::vector< mpf_t * > &pos)
Performs like the sphere function if all position entries are positive and is plus infinity otherwise...
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