adjacency_list_neighborhood.h
Go to the documentation of this file.
virtual void InitializeAdjacencyList()=0
This method initializes the adjacency list.
~AdjacencyListNeighborhood()
The destructor.
This class implements the lbest neighborhood topology for the particle swarm.
Definition: adjacency_list_neighborhood.h:98
This class implements the wheel topology for the particle swarm.
Definition: adjacency_list_neighborhood.h:163
This class stores a program version.
Definition: general_objects.h:54
This class implements the grid or von Neumann topology for the particle swarm.
Definition: adjacency_list_neighborhood.h:137
This file contains an abstract classes for neighborhood generation.
virtual std::string GetName()=0
Returns a string representation of this object.
mpf_t * GetGlobalAttractorValue()
Returns the value of the best global attractor.
AdjacencyListNeighborhood()
The constructor.
void StoreData(std::ofstream *output_stream)
Stores the current state of this neighborhood topology such that it can completely restore the curren...
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 class is an abstract class. It supplies the interface for neighborhood topologies of the particl...
Definition: neighborhood.h:56
This class implements the ring neighborhood topology for the particle swarm.
Definition: adjacency_list_neighborhood.h:122
This class is an abstract class, which implements a complete neighborhood topology through a neighbor...
Definition: adjacency_list_neighborhood.h:50
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...
std::vector< mpf_t * > GetGlobalAttractorPosition()
Returns the position of the best global attractor.
std::vector< std::vector< unsigned int > > adjacency_list
The adjacency lists, which specify the neighborhood relationship.
Definition: adjacency_list_neighborhood.h:79