#include <eoStandardFlight.h>
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 | |
eoRealVectorBounds & | bnds |
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.
eoStandardFlight< POT >::eoStandardFlight | ( | eoRealVectorBounds & | _bounds | ) | [inline] |
Constructor for continuous flight with real bounds: expects a eoRealVectorBounds object for bound control.
_bounds | - An eoRealVectorBounds |
Definition at line 59 of file eoStandardFlight.h.
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
_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.
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().