EvolvingObjects
eoStarTopology< POT > Class Template Reference

Topology dedicated to "globest best" strategy for particle swarm optimization. More...

#include <eoStarTopology.h>

Inheritance diagram for eoStarTopology< POT >:
eoTopology< POT > eoPop< POT > vector eoObject eoPersistent eoPrintable

List of all members.

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

Detailed Description

template<class POT>
class eoStarTopology< POT >

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.


Constructor & Destructor Documentation

template<class POT >
eoStarTopology< POT >::eoStarTopology ( ) [inline]

The only Ctor.

No parameter required.

Definition at line 50 of file eoStarTopology.h.


Member Function Documentation

template<class POT >
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.

Parameters:
_pop- The population used to build the only neighborhood.
Returns:

Implements eoTopology< POT >.

Definition at line 59 of file eoStarTopology.h.

References eoPop< EOT >::best_element().

template<class POT >
POT& eoStarTopology< POT >::best ( unsigned  _indice) [inline, virtual]

Return the global best particle.

Parameters:
_indice- The indice of a particle in the population
Returns:
POT & - The best particle in the neighborhood of the particle whose indice is _indice

Implements eoTopology< POT >.

Definition at line 111 of file eoStarTopology.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends