EvolvingObjects
|
Topology dedicated to "globest best" strategy for particle swarm optimization. More...
#include <eoStarTopology.h>
Public Member Functions | |
eoStarTopology () | |
The only Ctor. | |
void | setup (const eoPop< POT > &_pop) |
Builds the only neighborhood that contains all the particles of the given population. | |
void | updateNeighborhood (POT &_po, unsigned _indice) |
Updates the neighborhood of the given particle and its indice in the population. | |
POT & | best (unsigned _indice) |
Return the global best particle. | |
virtual POT & | globalBest (const eoPop< POT > &_pop) |
void | printOn () |
Print the structure of the topology on the standard output. | |
Protected Attributes | |
eoSocialNeighborhood< POT > | neighborhood |
bool | isSetup |
Topology dedicated to "globest best" strategy for particle swarm optimization.
All the particles of the swarm belong to the same and only social neighborhood. The global best is stored and updated using the eoSocialNeighborhood.
Definition at line 42 of file eoStarTopology.h.
eoStarTopology< POT >::eoStarTopology | ( | ) | [inline] |
void eoStarTopology< POT >::setup | ( | const eoPop< POT > & | _pop | ) | [inline, virtual] |
Builds the only neighborhood that contains all the particles of the given population.
Also initializes the global best particle with the best particle of the given population.
_pop | - The population used to build the only neighborhood. |
Implements eoTopology< POT >.
Definition at line 59 of file eoStarTopology.h.
References eoPop< EOT >::best_element().
POT& eoStarTopology< POT >::best | ( | unsigned | _indice | ) | [inline, virtual] |
Return the global best particle.
_indice | - The indice of a particle in the population |
Implements eoTopology< POT >.
Definition at line 111 of file eoStarTopology.h.