EvolvingObjects
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 unary_function

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

Examples:
t-eoEasyPSO.cpp, and t-eoSyncEasyPSO.cpp.

Definition at line 40 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 61 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 71 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 78 of file eoStandardFlight.h.

References eoRealVectorBounds::adjust_size(), and eoRealBaseVectorBounds::minimum().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends