highprecisionpso::DistTo1DOptimumOperation Class Reference

This vector operation calculates for each dimension the distance to the nearest 1-dimensional local optimum. More...

#include <general_objects.h>

Inheritance diagram for highprecisionpso::DistTo1DOptimumOperation:

Public Member Functions

std::string GetName ()
 Returns a string representation of this object. More...
 
std::vector< mpf_t * > Operate (std::vector< mpf_t * > vec)
 Calculates for each dimension the distance to the nearest 1-dimensional local optimum. More...
 
- Public Member Functions inherited from highprecisionpso::VectorOperation
virtual ~VectorOperation ()
 The destructor. More...
 

Detailed Description

This vector operation calculates for each dimension the distance to the nearest 1-dimensional local optimum.

Member Function Documentation

std::string highprecisionpso::DistTo1DOptimumOperation::GetName ( )
virtual

Returns a string representation of this object.

Returns
The name of the object.

Implements highprecisionpso::VectorOperation.

std::vector<mpf_t*> highprecisionpso::DistTo1DOptimumOperation::Operate ( std::vector< mpf_t * >  vec)
virtual

Calculates for each dimension the distance to the nearest 1-dimensional local optimum.

For each dimension the given position is observed. The position entry in the current dimension can be varied and all other position entries are regarded as constants. In this setting the nearest local optimum in respect to the specified objective function is calculated by varying the value of the current dimension. (In general this is done by some kind of ternary search.) Then the distance to the found local optimum is the value for the current position.

Parameters
vecThe vector which should be observed.
Returns
The distances to the local optima.

Implements highprecisionpso::VectorOperation.


The documentation for this class was generated from the following file: