eoLSPSO< POT > Class Template Reference

A Linear ("L"inear topology) Standard ("S"tandard velocity) PSO. More...

#include <eoLSPSO.h>

Inheritance diagram for eoLSPSO< POT >:

eoPSO< POT > eoAlgo< POT > eoUF< A1, R > eoFunctorBase List of all members.

Public Types

typedef POT::ParticleVelocityType VelocityType

Public Member Functions

 eoLSPSO (eoContinue< POT > &_continuator, eoEvalFunc< POT > &_eval, const VelocityType &_c1, const VelocityType &_c2, const unsigned _neighborhoodSize, eoRealVectorBounds &_bounds, eoRealBoundModifier &_bndsModifier)
 Full constructor.
 eoLSPSO (eoContinue< POT > &_continuator, eoEvalFunc< POT > &_eval, const VelocityType &_c1, const VelocityType &_c2, const unsigned _neighborhoodSize, eoRealVectorBounds &_bounds)
 Constructor without bound modifier.
 eoLSPSO (eoContinue< POT > &_continuator, eoEvalFunc< POT > &_eval, const VelocityType &_c1, const VelocityType &_c2, const unsigned _neighborhoodSize)
 Constructor without bounds nor bound modifier.
virtual void operator() (eoPop< POT > &_pop)
 Apply a few iteration of flight to the population (=swarm).

Protected Attributes

eoContinue< POT > & continuator
eoEvalFunc< POT > & eval
eoStandardVelocity< POT > velocity
eoStandardFlight< POT > flight
const unsigned neighborhoodSize
eoLinearTopology< POT > topology
eoRealVectorBounds bounds
eoRealBoundModifierboundsModifier
eoDummyRealBoundModifier dummyModifier

Detailed Description

template<class POT>
class eoLSPSO< POT >

A Linear ("L"inear topology) Standard ("S"tandard velocity) PSO.

You can use it with or without bounds on the velocity. No bound for the flight (no bounds for the positions).

Definition at line 30 of file eoLSPSO.h.


Constructor & Destructor Documentation

template<class POT>
eoLSPSO< POT >::eoLSPSO ( eoContinue< POT > &  _continuator,
eoEvalFunc< POT > &  _eval,
const VelocityType _c1,
const VelocityType _c2,
const unsigned  _neighborhoodSize,
eoRealVectorBounds _bounds,
eoRealBoundModifier _bndsModifier 
) [inline]

Full constructor.

Parameters:
_continuator - An eoContinue that manages the stopping criterion and the checkpointing system
_eval - An eoEvalFunc: the evaluation performer
_c1 - The first learning factor used for the particle's best. Type must be POT::ParticleVelocityType
_c2 - The second learning factor used for the local/global best(s). Type must be POT::ParticleVelocityType
_neighborhoodSize - The size of each neighborhood of the linear topology
_bounds - An eoRealBaseVectorBounds: real bounds for real velocities. If the velocities are not real, they won't be bounded by default. Should have a eoBounds ?
_boundsModifier - An eoRealBoundModifier used to modify the bounds (for real bounds only)

Definition at line 47 of file eoLSPSO.h.

template<class POT>
eoLSPSO< POT >::eoLSPSO ( eoContinue< POT > &  _continuator,
eoEvalFunc< POT > &  _eval,
const VelocityType _c1,
const VelocityType _c2,
const unsigned  _neighborhoodSize,
eoRealVectorBounds _bounds 
) [inline]

Constructor without bound modifier.

Parameters:
_continuator - An eoContinue that manages the stopping criterion and the checkpointing system
_eval - An eoEvalFunc: the evaluation performer
_c1 - The first learning factor used for the particle's best. Type must be POT::ParticleVelocityType
_c2 - The second learning factor used for the local/global best(s). Type must be POT::ParticleVelocityType
_neighborhoodSize - The size of each neighborhood of the linear topology
_bounds - An eoRealBaseVectorBounds: real bounds for real velocities. If the velocities are not real, they won't be bounded by default. Should have a eoBounds ?

Definition at line 73 of file eoLSPSO.h.

template<class POT>
eoLSPSO< POT >::eoLSPSO ( eoContinue< POT > &  _continuator,
eoEvalFunc< POT > &  _eval,
const VelocityType _c1,
const VelocityType _c2,
const unsigned  _neighborhoodSize 
) [inline]

Constructor without bounds nor bound modifier.

Parameters:
_continuator - An eoContinue that manages the stopping criterion and the checkpointing system
_eval - An eoEvalFunc: the evaluation performer
_c1 - The first learning factor used for the particle's best. Type must be POT::ParticleVelocityType
_c2 - The second learning factor used for the local/global best(s). Type must be POT::ParticleVelocityType
_neighborhoodSize - The size of each neighborhood of the linear topology If the velocities are not real, they won't be bounded by default. Should have a eoBounds ?

Definition at line 98 of file eoLSPSO.h.


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