highprecisionpso::VelocityAdjustmentAdjust Class Reference
This class implements the adjust velocity adjustment strategy. More...
#include <adjust.h>
Inheritance diagram for highprecisionpso::VelocityAdjustmentAdjust:
Public Member Functions | |
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 adjust velocity adjustment strategy.
Member Function Documentation
|
virtual |
Adjusts the velocity of a particle after the position update is finished.
The velocity is reseted to the difference between the current position and the old position in all marked dimensions.
- 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.
Implements highprecisionpso::VelocityAdjustment.
|
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:
- src/velocity_adjustment/adjust.h