eoStandardFlight< POT > Class Template Reference

Standard flight for particle swarm optimization. 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 flight for particle swarm optimization.

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

Definition at line 38 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 59 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 69 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 76 of file eoStandardFlight.h.

References eoRealVectorBounds::adjust_size(), eoRealBaseVectorBounds::isMaxBounded(), eoRealBaseVectorBounds::isMinBounded(), eoRealBaseVectorBounds::maximum(), and eoRealBaseVectorBounds::minimum().


The documentation for this class was generated from the following file:

Generated on Thu Jan 1 23:19:51 2009 for EvolvingObjects by  doxygen 1.5.5