highprecisionpso::VelocityAdjustmentDeterministicBack Class Reference

This class implements the deterministic back velocity adjustment strategy. More...

#include <deterministic_back.h>

Inheritance diagram for highprecisionpso::VelocityAdjustmentDeterministicBack:

Public Member Functions

 VelocityAdjustmentDeterministicBack (double lambda)
 The constructor. More...
 
virtual void AdjustVelocity (Particle *p, std::vector< bool > adjust_dimensions, std::vector< mpf_t * > old_position)
 Adjusts the velocity of a particle after the position update is finished. More...
 
virtual std::string GetName ()
 Returns a string representation of this object. More...
 
- Public Member Functions inherited from highprecisionpso::VelocityAdjustment
virtual ~VelocityAdjustment ()
 The Destructor. More...
 

Detailed Description

This class implements the deterministic back velocity adjustment strategy.

Constructor & Destructor Documentation

highprecisionpso::VelocityAdjustmentDeterministicBack::VelocityAdjustmentDeterministicBack ( double  lambda)

The constructor.

Parameters
lambdaParameter for scaling the velocity.

Member Function Documentation

virtual void highprecisionpso::VelocityAdjustmentDeterministicBack::AdjustVelocity ( Particle p,
std::vector< bool >  adjust_dimensions,
std::vector< mpf_t * >  old_position 
)
virtual

Adjusts the velocity of a particle after the position update is finished.

The velocity is negated and scaled by the stored factor lambda in all marked dimensions.

Parameters
pThe particle, which should be updated.
adjust_dimensionsMarks the dimensions, which should be adjusted with the value true.
old_positionThe previous position of the particle.

Implements highprecisionpso::VelocityAdjustment.

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

Returns a string representation of this object.

Returns
The name of the object.

Implements highprecisionpso::VelocityAdjustment.


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