eoStarTopology< POT > Class Template Reference

Topology dedicated to "globest best" strategy. More...

#include <eoStarTopology.h>

Inheritance diagram for eoStarTopology< POT >:

eoTopology< POT > eoPop< POT > 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)
 Update the neighborhood of the given particle and its indice in the population.
POT & best (unsigned _indice)
 Return the global best particle.
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.

All the particles of the swarm belong to the same and only social neighborhood. The global best is stored as a protected member and updated by using the "updateNeighborhood" method.

Definition at line 27 of file eoStarTopology.h.


Constructor & Destructor Documentation

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

The only Ctor.

No parameter required.

Definition at line 35 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 44 of file eoStarTopology.h.

References eoPop< EOT >::best_element(), eoStarTopology< POT >::isSetup, and eoStarTopology< POT >::neighborhood.

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 94 of file eoStarTopology.h.

References eoStarTopology< POT >::neighborhood.

template<class POT>
void eoStarTopology< POT >::printOn (  )  [inline, virtual]

Print the structure of the topology on the standard output.

Parameters:
@return 

Reimplemented from eoTopology< POT >.

Definition at line 102 of file eoStarTopology.h.

References eoStarTopology< POT >::neighborhood.


The documentation for this class was generated from the following file:
Generated on Fri Jun 22 10:17:02 2007 for EO-PSO by  doxygen 1.4.7