neighborhood.h
Go to the documentation of this file.
143 virtual void UpdateAttractorInstantly(std::vector<mpf_t*> position, mpf_t* value, int particle_id) = 0;
The particles for the particle swarm optimization algorithm.
Definition: particle.h:54
virtual mpf_t * GetGlobalAttractorValue()=0
Returns the value of the best global attractor.
This class stores a program version.
Definition: general_objects.h:54
void UpdateAttractorInstantly(std::vector< mpf_t * > position, mpf_t *value, Particle *p)
Depending on the neighborhood topology the new position replaces previous global attractors if the ne...
This class is an abstract class. It supplies the interface for neighborhood topologies of the particl...
Definition: neighborhood.h:56
virtual std::vector< mpf_t * > GetGlobalAttractorPosition()=0
Returns the position of the best global attractor.
virtual void StoreData(std::ofstream *output_stream)=0
Stores the current state of this neighborhood topology such that it can completely restore the curren...
This file contains information about the particles of the swarm.
virtual void LoadData(std::ifstream *input_stream, ProgramVersion *version_of_stored_data)=0
Loads data to reset the state of the neighborhood topology to the state which was stored...
void UpdateAttractor(std::vector< mpf_t * > position, mpf_t *value, Particle *p)
Appends the tuple of specified position, value and particle to the list of pending updates for global...
This file contains various general objects which can be used by or contained in other objects...
void ProceedAllUpdates()
Initializes the processing of all entries in the list of pending updates for the global attractors...
virtual std::string GetName()=0
Returns a string representation of this object.