This class is an abstract class for processing the velocity adjustment after the position update of each particle. More...
#include <velocity_adjustment.h>
Public Member Functions | |
virtual | ~VelocityAdjustment () |
The Destructor. More... | |
virtual void | AdjustVelocity (Particle *p, std::vector< bool > adjust_dimensions, std::vector< mpf_t * > old_position)=0 |
Adjusts the velocity of a particle after the position update is finished. More... | |
virtual std::string | GetName ()=0 |
Returns a string representation of this object. More... | |
Detailed Description
This class is an abstract class for processing the velocity adjustment after the position update of each particle.
Constructor & Destructor Documentation
|
virtual |
The Destructor.
Member Function Documentation
|
pure virtual |
Adjusts the velocity of a particle after the position update is finished.
The specific behavior depends on the implementing subclass.
- Parameters
-
p The particle, which should be updated. adjust_dimensions Marks the dimensions, which should be adjusted with the value true. old_position The previous position of the particle.
Implemented in highprecisionpso::VelocityAdjustmentDeterministicBack, highprecisionpso::VelocityAdjustmentAdjust, highprecisionpso::VelocityAdjustmentNone, highprecisionpso::VelocityAdjustmentRandomBack, and highprecisionpso::VelocityAdjustmentZero.
|
pure virtual |
Returns a string representation of this object.
- Returns
- The name of the object.
Implemented in highprecisionpso::VelocityAdjustmentDeterministicBack, highprecisionpso::VelocityAdjustmentAdjust, highprecisionpso::VelocityAdjustmentNone, highprecisionpso::VelocityAdjustmentRandomBack, and highprecisionpso::VelocityAdjustmentZero.
The documentation for this class was generated from the following file:
- src/velocity_adjustment/velocity_adjustment.h