eoStandardFlight< POT > Class Template Reference

Standard PSO flight. More...

#include <eoStandardFlight.h>

Inheritance diagram for eoStandardFlight< POT >:

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

Public Types

typedef POT::AtomType PositionType

Public Member Functions

 eoStandardFlight ()
 Constructor without bounds.
 eoStandardFlight (eoRealVectorBounds &_bounds)
 Constructor for continuous flight with real bounds: expects a eoRealVectorBounds object for bound control.
 eoStandardFlight (const unsigned _dim, const double &_min, const double &_max)
 Constructor for continuous flight with real bounds: expects a min and a max to build the same real bounds for all the positions.
void operator() (POT &_po)
 Apply the standard flight to a particle : position:=position + velocity and .

Protected Attributes

eoRealVectorBoundsbnds

Detailed Description

template<class POT>
class eoStandardFlight< POT >

Standard PSO flight.

Derivated from abstract eoFlight, just adds the velocities to the current position of the particle and invalidates its fitness

Definition at line 24 of file eoStandardFlight.h.


Constructor & Destructor Documentation

template<class POT>
eoStandardFlight< POT >::eoStandardFlight ( eoRealVectorBounds _bounds  )  [inline]

Constructor for continuous flight with real bounds: expects a eoRealVectorBounds object for bound control.

Parameters:
_bounds - An eoRealVectorBounds

Definition at line 45 of file eoStandardFlight.h.

template<class POT>
eoStandardFlight< POT >::eoStandardFlight ( const unsigned  _dim,
const double &  _min,
const double &  _max 
) [inline]

Constructor for continuous flight with real bounds: expects a min and a max to build the same real bounds for all the positions.

WARNING: _min and max MUST be double as the position type

Parameters:
_dim - The dimension of the bounds = the dimension of the position
_min - The lower bound to use for all the positions
_max - The upper bound to use for all the positions

Definition at line 55 of file eoStandardFlight.h.


Member Function Documentation

template<class POT>
void eoStandardFlight< POT >::operator() ( POT &  _po  )  [inline, virtual]

Apply the standard flight to a particle : position:=position + velocity and .

.. invalidates the particle's fitness

Implements eoUF< POT &, void >.

Definition at line 62 of file eoStandardFlight.h.

References eoRealVectorBounds::adjust_size(), eoStandardFlight< POT >::bnds, eoRealBaseVectorBounds::isMaxBounded(), eoRealBaseVectorBounds::isMinBounded(), eoRealBaseVectorBounds::maximum(), and eoRealBaseVectorBounds::minimum().


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