velocity_adjustment.h
Go to the documentation of this file.
1 
40 #ifndef HIGH_PRECISION_PSO_VELOCITY_ADJUSTMENT_VELOCITY_ADJUSTMENT_H_
41 #define HIGH_PRECISION_PSO_VELOCITY_ADJUSTMENT_VELOCITY_ADJUSTMENT_H_
42 
43 #include <gmp.h>
44 #include <string>
45 #include <vector>
46 
47 #include "general/particle.h"
48 
49 namespace highprecisionpso {
50 
55 public:
59  virtual ~VelocityAdjustment();
69  virtual void AdjustVelocity(Particle * p, std::vector<bool> adjust_dimensions, std::vector<mpf_t*> old_position) = 0;
75  virtual std::string GetName() = 0;
76 };
77 
78 } // namespace highprecisionpso
79 
80 #endif /* HIGH_PRECISION_PSO_VELOCITY_ADJUSTMENT_VELOCITY_ADJUSTMENT_H_ */
The particles for the particle swarm optimization algorithm.
Definition: particle.h:54
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.
This class is an abstract class for processing the velocity adjustment after the position update of e...
Definition: velocity_adjustment.h:54
virtual std::string GetName()=0
Returns a string representation of this object.
This file contains information about the particles of the swarm.
virtual ~VelocityAdjustment()
The Destructor.
base namespace for this project.
Definition: absorption.h:45