position_and_velocity_updater.h
Go to the documentation of this file.
1 
40 #ifndef HIGH_PRECISION_PSO_POSITION_AND_VELOCITY_UPDATER_POSITION_AND_VELOCITY_UPDATER_H_
41 #define HIGH_PRECISION_PSO_POSITION_AND_VELOCITY_UPDATER_POSITION_AND_VELOCITY_UPDATER_H_
42 
43 #include <fstream>
44 #include <string>
45 
47 #include "general/particle.h"
48 #include "statistics/statistics.h"
49 
50 namespace highprecisionpso {
51 
56 public:
70  virtual void Update(Particle* p) = 0;
76  virtual std::string GetName() = 0;
83  virtual void LoadData(std::ifstream* input_stream, ProgramVersion* version_of_stored_data);
89  virtual void StoreData(std::ofstream* output_stream);
90 };
91 
92 } // namespace highprecisionpso
93 
94 #endif /* HIGH_PRECISION_PSO_POSITION_AND_VELOCITY_UPDATER_POSITION_AND_VELOCITY_UPDATER_H_ */
The particles for the particle swarm optimization algorithm.
Definition: particle.h:54
This class is an abstract class for processing the velocity and position update of each particle...
Definition: position_and_velocity_updater.h:55
virtual std::string GetName()=0
Returns a string representation of this object.
This class stores a program version.
Definition: general_objects.h:54
This file contains an class, which stores current information about the particle swarm.
virtual void StoreData(std::ofstream *output_stream)
Stores the current state of this position and velocity updater such that it can completely restore th...
virtual void LoadData(std::ifstream *input_stream, ProgramVersion *version_of_stored_data)
Loads data to reset the state of the position and velocity updater to the state which was stored...
This file contains information about the particles of the swarm.
This file contains various general objects which can be used by or contained in other objects...
base namespace for this project.
Definition: absorption.h:45
virtual ~PositionAndVelocityUpdater()
Definition: position_and_velocity_updater.h:60
virtual void Update(Particle *p)=0
This method initializes the velocity and position update of the specified particle.