highprecisionpso::Sphere Class Reference
This class represents a function which calculates the 2-norm (which is equivalent to the sphere function). More...
#include <norm.h>
Inheritance diagram for highprecisionpso::Sphere:
Public Member Functions | |
Sphere () | |
The constructor. More... | |
Public Member Functions inherited from highprecisionpso::Norm2PowerK | |
Norm2PowerK (int exponent) | |
The constructor, where the exponent of the power of two can be specified. More... | |
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 the specified dimension is varied and returns the distance to it. More... | |
mpf_t * | Eval (const std::vector< mpf_t * > &pos) |
Returns the 2exponent-norm of the given position. More... | |
std::string | GetName () |
Returns a string representation of this object. More... | |
Public Member Functions inherited from highprecisionpso::Function | |
Function () | |
A constructor. More... | |
Function (double search_space_lower_bound, double search_space_upper_bound) | |
A constructor, specifying the lower and upper search space bounds. More... | |
Function (std::vector< double > search_space_lower_bound, std::vector< double > search_space_upper_bound) | |
A constructor specifying the lower and upper search space bounds. More... | |
virtual | ~Function () |
The destructor. More... | |
virtual mpf_t * | DistanceTo1DLocalOptimumTernarySearch (const std::vector< mpf_t * > &pos, int d, mpf_t *start_distance) |
Calculates for a position and a dimension the next local optimum if only the value of the position in the specified dimension is varied and returns the distance to it. More... | |
mpf_t * | Evaluate (const std::vector< mpf_t * > &pos) |
This is the initial function for evaluation of a position. More... | |
virtual std::vector< mpf_t * > | GetLowerSearchSpaceBound () |
Returns the lower search space bound of the search space for this objective function. More... | |
virtual std::vector< mpf_t * > | GetUpperSearchSpaceBound () |
Returns the upper search space bound of the search space for this objective function. More... | |
void | InitSearchSpaceBounds () |
Initializes the search space bounds. More... | |
void | SetFunctionBound (SearchSpaceBound *search_space_bound) |
Updates the bound of the search space according to the given data. More... | |
Detailed Description
This class represents a function which calculates the 2-norm (which is equivalent to the sphere function).
This function is a Norm2pk function with k=1.
Constructor & Destructor Documentation
highprecisionpso::Sphere::Sphere | ( | ) |
The constructor.
The parent constructor is called with exponent 1.
The documentation for this class was generated from the following file:
- src/function/norm.h