two_cups_function.h
Go to the documentation of this file.
1 
40 #ifndef HIGH_PRECISION_PSO_FUNCTION_TWO_CUPS_FUNCTION_H_
41 #define HIGH_PRECISION_PSO_FUNCTION_TWO_CUPS_FUNCTION_H_
42 
43 #include "function/function.h"
44 
45 namespace highprecisionpso {
46 
50 class TwoCupsFunction: public Function {
51 public:
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 
76 } // namespace highprecisionpso
77 
78 #endif /* HIGH_PRECISION_PSO_FUNCTION_TWO_CUPS_FUNCTION_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 test function with 2D many optimal positions.
Definition: two_cups_function.h:50
This class is an abstract class. It supplies the interface for objective functions.
Definition: function.h:74
mpf_t * Eval(const std::vector< mpf_t * > &pos)
Calculates the sum over a single dimensional function evaluated on each position entry.
base namespace for this project.
Definition: absorption.h:45
std::string GetName()
Returns a string representation of this object.