torus.h
Go to the documentation of this file.
1 
40 #ifndef HIGH_PRECISION_PSO_BOUND_HANDLING_TORUS_H_
41 #define HIGH_PRECISION_PSO_BOUND_HANDLING_TORUS_H_
42 
44 
45 namespace highprecisionpso {
46 
54 public:
66  void SetParticleUpdate(Particle * p);
67  std::string GetName();
79  std::vector<mpf_t*> GetDirectionVector(const std::vector<mpf_t*> & position, const std::vector<mpf_t*> & aim);
80 };
81 
82 } // namespace highprecisionpso
83 
84 #endif /* HIGH_PRECISION_PSO_BOUND_HANDLING_TORUS_H_ */
This class implements the bound handling strategy torus for the particle swarm optimization.
Definition: torus.h:53
The particles for the particle swarm optimization algorithm.
Definition: particle.h:54
void SetParticleUpdate(Particle *p)
Updates the position of the particle p according to the current position and the new (already calcula...
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.
This file contains an abstract class for different bound handling strategies, which can be used for t...
This class is an abstract class. It supplies the interface for bound handling strategies of the parti...
Definition: bound_handling.h:54
std::string GetName()
Returns a string representation of this object.
base namespace for this project.
Definition: absorption.h:45