global_best.h
Go to the documentation of this file.
std::vector< mpf_t * > GetGlobalAttractorPosition()
Returns the position of the best global attractor.
This class implements the global best topology for the particle swarm, where all particles are neighb...
Definition: global_best.h:50
This class stores a program version.
Definition: general_objects.h:54
void UpdateAttractorInstantly(std::vector< mpf_t * > position, mpf_t *value, int particle_id)
Depending on the neighborhood topology the new position replaces previous global attractors if the ne...
This file contains an abstract classes for neighborhood generation.
std::string GetName()
Returns a string representation of this object.
mpf_t * GetGlobalAttractorValue()
Returns the value of the best global attractor.
void LoadData(std::ifstream *input_stream, ProgramVersion *version_of_stored_data)
Loads data to reset the state of the neighborhood topology to the state which was stored...
This class is an abstract class. It supplies the interface for neighborhood topologies of the particl...
Definition: neighborhood.h:56
void StoreData(std::ofstream *output_stream)
Stores the current state of this neighborhood topology such that it can completely restore the curren...