rastrigin.h
Go to the documentation of this file.
1 
40 #ifndef HIGH_PRECISION_PSO_FUNCTION_RASTRIGIN_H_
41 #define HIGH_PRECISION_PSO_FUNCTION_RASTRIGIN_H_
42 
43 #include "function/function.h"
44 
45 namespace highprecisionpso {
46 
50 class Rastrigin: public Function {
51 public:
55  Rastrigin();
65  mpf_t* Eval(const std::vector<mpf_t*> & pos);
66  std::string GetName();
67 };
68 
69 } // namespace highprecisionpso
70 
71 #endif /* HIGH_PRECISION_PSO_FUNCTION_RASTRIGIN_H_ */
This file contains abstract classes for function generation.
Rastrigin()
The constructor.
This class represents the well known test function rastrigin.
Definition: rastrigin.h:50
std::string GetName()
Returns a string representation of this object.
mpf_t * Eval(const std::vector< mpf_t * > &pos)
Returns the evaluation of the rastrigin function evaluated at the given position. ...
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