eoStandardVelocity< POT > Class Template Reference

Standard PSO velocity performer. More...

#include <eoVelocity.h>

Inheritance diagram for eoStandardVelocity< POT >:

eoVelocity< POT > eoUF< POT &, void > eoFunctorBase List of all members.

Public Member Functions

 eoStandardVelocity (eoSingleParticleArchive< POT > &_archive, eoRealVectorBounds &_bounds, const double _c1=0.5, const double _c2=0.9, eoRng &_gen=rng)
 Constructor: Only one global best is given thanks to an eoSingleParticleArchive.
 eoStandardVelocity (eoSingleParticleArchive< POT > &_archive, const double _c1=0.5, const double _c2=0.9, eoRng &_gen=rng)
 Constructor: Only one global best is given thanks to an eoSingleParticleArchive.
void operator() (POT &_po)
 The pure virtual function that needs to be implemented by the subclass.

Protected Attributes

const double c1
const double c2
eoRealVectorBoundsbounds
eoRnggen
eoParticleArchive< POT > & archive

Detailed Description

template<class POT>
class eoStandardVelocity< POT >

Standard PSO velocity performer.

Derivated from abstract eoVelocity, At step t: v(t+1)= v(t) + delta1* ( xbest(t)-x(t) ) + delta2* ( gbest(t) - x(t) ) with delta1= c1 * R1 and delta2= c2 * R2 (ci given and Ri chosen at random in [0;1]).

Definition at line 47 of file eoVelocity.h.


Constructor & Destructor Documentation

template<class POT>
eoStandardVelocity< POT >::eoStandardVelocity ( eoSingleParticleArchive< POT > &  _archive,
eoRealVectorBounds _bounds,
const double  _c1 = 0.5,
const double  _c2 = 0.9,
eoRng _gen = rng 
) [inline]

Constructor: Only one global best is given thanks to an eoSingleParticleArchive.

Also needs c1 and c2 coefficients and the bounds.

Parameters:
_archive - The archive that stored the swarm's global best
_bounds - An eoRealVectorBounds: bounds for the velocities
_c1 - The particle best coeff as a double, default=0.5
_c2 - The global best coeff ad a double, default=0.9
_gen The eo random generator

Definition at line 60 of file eoVelocity.h.

template<class POT>
eoStandardVelocity< POT >::eoStandardVelocity ( eoSingleParticleArchive< POT > &  _archive,
const double  _c1 = 0.5,
const double  _c2 = 0.9,
eoRng _gen = rng 
) [inline]

Constructor: Only one global best is given thanks to an eoSingleParticleArchive.

Also needs c1 and c2 coefficients. No bound .

Parameters:
_archive - The archive that stored the swarm's global best
_c1 - The particle best coeff as a double, default=0.5
_c2 - The global best coeff ad a double, default=0.9
_gen The eo random generator

Definition at line 69 of file eoVelocity.h.


The documentation for this class was generated from the following file:
Generated on Thu Apr 19 11:02:33 2007 for EO by  doxygen 1.4.7