particle.h
Go to the documentation of this file.
void SetLocalAttractorPosition(std::vector< mpf_t * > pos)
Sets the position of the local attractor to the supplied position.
The particles for the particle swarm optimization algorithm.
Definition: particle.h:54
std::vector< mpf_t * > local_attractor_position
The local attractor of the particle.
Definition: particle.h:146
void LoadData(std::ifstream *input_stream, ProgramVersion *version_of_stored_data)
Loads the complete data of this particle from some input stream.
This class stores a program version.
Definition: general_objects.h:54
void UpdatePosition()
Tells the position and velocity updater to update position and velocity of this particle.
void StoreData(std::ofstream *output_stream)
Stores the complete data of this particle to some output stream.
mpf_t * GetLocalAttractorValue()
Calculates the objective function value of the local attractor.
void UpdateGlobalAttractor(std::vector< mpf_t * > goodPosition, mpf_t *goodValue)
Informs the neighborhood about a new local attractor, which might be relevant for the choice of a glo...
void SetPosition(std::vector< mpf_t * > pos)
Sets the position to the supplied position.
std::vector< mpf_t * > GetLocalAttractorPosition()
Clones the position of the current local attractor.
std::vector< mpf_t * > GetVelocity()
Clones the velocity of the particle.
std::vector< mpf_t * > position
The position of the particle.
Definition: particle.h:151
std::vector< mpf_t * > GetPosition()
Clones the position of the particle.
void SetVelocity(std::vector< mpf_t * > vel)
Sets the velocity to the supplied velocity.
This file contains various general objects which can be used by or contained in other objects...
std::vector< mpf_t * > velocity
The velocity of the particle.
Definition: particle.h:156