inclined_plane.h
Go to the documentation of this file.
1 
40 #ifndef HIGH_PRECISION_PSO_FUNCTION_INCLINED_PLANE_H_
41 #define HIGH_PRECISION_PSO_FUNCTION_INCLINED_PLANE_H_
42 
43 #include "function/function.h"
44 
45 namespace highprecisionpso {
46 
50 class InclinedPlane: public Function {
51 public:
55  InclinedPlane();
63  mpf_t* Eval(const std::vector<mpf_t*> & pos);
64  std::string GetName();
73  mpf_t* DistanceTo1DLocalOptimum(const std::vector<mpf_t*> & pos, int d);
74 };
75 
79 class InclinedPlaneAsym: public Function {
80 public:
94  mpf_t* Eval(const std::vector<mpf_t*> & pos);
95  std::string GetName();
104  mpf_t* DistanceTo1DLocalOptimum(const std::vector<mpf_t*> & pos, int d);
105 };
106 
107 } // namespace highprecisionpso
108 
109 #endif /* HIGH_PRECISION_PSO_FUNCTION_INCLINED_PLANE_H_ */
This file contains abstract classes for function generation.
mpf_t * DistanceTo1DLocalOptimum(const std::vector< mpf_t * > &pos, int d)
Returns always +infinity, because the optimum can not be reached.
std::string GetName()
Returns a string representation of this object.
This class implements the asymmetric inclined plane function, which represents a function with consta...
Definition: inclined_plane.h:79
mpf_t * Eval(const std::vector< mpf_t * > &pos)
Returns the sum of the vector entries multiplied by -1.
InclinedPlane()
The constructor.
This class is an abstract class. It supplies the interface for objective functions.
Definition: function.h:74
This class implements the inclined plane function, which represents a function with constant first de...
Definition: inclined_plane.h:50
base namespace for this project.
Definition: absorption.h:45