highprecisionpso::BoundHandlingNoBounds Class Reference

This class implements the bound handling strategy no bounds for the particle swarm optimization. More...

#include <no_bounds.h>

Inheritance diagram for highprecisionpso::BoundHandlingNoBounds:

Public Member Functions

std::string GetName ()
 Returns a string representation of this object. More...
 
void SetParticleUpdate (Particle *p)
 Updates the position of the particle p according to the current position and the new (already calculated) velocity. More...
 
- Public Member Functions inherited from highprecisionpso::BoundHandling
virtual ~BoundHandling ()
 The destructor. More...
 
virtual std::vector< mpf_t * > GetDirectionVector (const std::vector< mpf_t * > &position, const std::vector< mpf_t * > &aim)
 Calculates the difference vector between the position and the aim. More...
 

Detailed Description

This class implements the bound handling strategy no bounds for the particle swarm optimization.

If a particle leaves the search space, the new position is not adjusted.

Member Function Documentation

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

Returns a string representation of this object.

Returns
The name of the object.

Implements highprecisionpso::BoundHandling.

void highprecisionpso::BoundHandlingNoBounds::SetParticleUpdate ( Particle p)
virtual

Updates the position of the particle p according to the current position and the new (already calculated) velocity.

The new position is calculated by adding the velocity to the position. If the particle leaves the search space, the new position is not adjusted.

Parameters
pThe particle, which should be updated.

Implements highprecisionpso::BoundHandling.


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