EvolvingObjects
|
Standard flight for particle swarm optimization. More...
#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 |
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 40 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 61 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 71 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 78 of file eoStandardFlight.h.
References eoRealVectorBounds::adjust_size(), and eoRealBaseVectorBounds::minimum().