schwefel.h
Go to the documentation of this file.
1 
40 #ifndef HIGH_PRECISION_PSO_FUNCTION_SCHWEFEL_H_
41 #define HIGH_PRECISION_PSO_FUNCTION_SCHWEFEL_H_
42 
43 #include "function/function.h"
44 
45 namespace highprecisionpso {
46 
53 class Schwefel1: public Function {
54 public:
62  mpf_t* Eval(const std::vector<mpf_t*> & pos);
63  std::string GetName();
78  mpf_t* DistanceTo1DLocalOptimum(const std::vector<mpf_t*> & pos, int d);
79 };
80 
87 class Schwefel2: public Function {
88 public:
92  Schwefel2();
102  mpf_t* Eval(const std::vector<mpf_t*> & pos);
103  std::string GetName();
104 };
105 
106 } // namespace highprecisionpso
107 
108 #endif /* HIGH_PRECISION_PSO_FUNCTION_SCHWEFEL_H_ */
mpf_t * Eval(const std::vector< mpf_t * > &pos)
Returns the evaluation of the first version of a schwefel function evaluated at the given position...
This file contains abstract classes for function generation.
This class represents the well known test function schwefel.
Definition: schwefel.h:53
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...
This class represents the well known test function schwefel.
Definition: schwefel.h:87
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