sorting_function.h
Go to the documentation of this file.
1 
40 #ifndef HIGH_PRECISION_PSO_FUNCTION_SORTING_FUNCTION_H_
41 #define HIGH_PRECISION_PSO_FUNCTION_SORTING_FUNCTION_H_
42 
43 #include "function/function.h"
44 
45 namespace highprecisionpso {
46 
50 class SortingFunction: public Function {
51 public:
61  mpf_t* Eval(const std::vector<mpf_t*> & pos);
62  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_SORTING_FUNCTION_H_ */
This file contains abstract classes for function generation.
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)
Returns the number of adjacent swaps, which are needed to sort the position vector.
This class implements a function, which measures the sortedness of the position entries.
Definition: sorting_function.h:50
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