|
EvolvingObjects
|
Integer velocity performer for particle swarm optimization. More...
#include <eoIntegerVelocity.h>
Public Types | |
| typedef POT::ParticleVelocityType | VelocityType |
Public Member Functions | |
| eoIntegerVelocity (eoTopology< POT > &_topology, const VelocityType &_c1, const VelocityType &_c2, const VelocityType &_c3, eoRealVectorBounds &_bounds, eoRealBoundModifier &_bndsModifier, eoRng &_gen=rng) | |
| Full constructor: Bounds and bound modifier required. | |
| eoIntegerVelocity (eoTopology< POT > &_topology, const VelocityType &_c1, const VelocityType &_c2, const VelocityType &_c3, eoRealVectorBounds &_bounds, eoRng &_gen=rng) | |
| Constructor: No bound updater required <-> fixed bounds. | |
| eoIntegerVelocity (eoTopology< POT > &_topology, const VelocityType &_c1, const VelocityType &_c2, const VelocityType &_c3, eoRng &_gen=rng) | |
| Constructor: Neither bounds nor bound updater required <-> free velocity. | |
| void | operator() (POT &_po, unsigned _indice) |
| Evaluate the new velocities of the given particle. | |
| void | updateNeighborhood (POT &_po, unsigned _indice) |
| Update the neighborhood. | |
| eoTopology< POT > & | getTopology () |
| eoTopology<POT> getTopology | |
Protected Attributes | |
| eoTopology< POT > & | topology |
| const VelocityType & | c1 |
| const VelocityType & | c2 |
| const VelocityType & | c3 |
| eoRealVectorBounds | bounds |
| eoRealBoundModifier & | bndsModifier |
| eoRng & | gen |
| eoDummyRealBoundModifier | dummyModifier |
Integer velocity performer for particle swarm optimization.
Derivated from abstract eoVelocity, At step t: v(t+1)= c1 * v(t) + c2 * r2 * ( xbest(t)-x(t) ) + c3 * r3 * ( gbest(t) - x(t) ) v(t) is an INT for any time step (ci given and Ri chosen at random in [0;1]).
Definition at line 46 of file eoIntegerVelocity.h.
| eoIntegerVelocity< POT >::eoIntegerVelocity | ( | eoTopology< POT > & | _topology, |
| const VelocityType & | _c1, | ||
| const VelocityType & | _c2, | ||
| const VelocityType & | _c3, | ||
| eoRealVectorBounds & | _bounds, | ||
| eoRealBoundModifier & | _bndsModifier, | ||
| eoRng & | _gen = rng |
||
| ) | [inline] |
Full constructor: Bounds and bound modifier required.
| _topology | - The topology to get the global/local/other best |
| _c1 | - The first learning factor quantify how much the particle trusts itself. Type must be POT::ParticleVelocityType |
| _c2 | - The second learning factor used for the particle's best. Type must be POT::ParticleVelocityType |
| _c3 | - The third learning factor used for the local/global best(s). Type must be POT::ParticleVelocityType |
| _bounds | - An eoRealBaseVectorBounds: real bounds for real velocities. If the velocities are not real, they won't be bounded by default. Should have a eoBounds ? |
| _bndsModifier | - An eoRealBoundModifier used to modify the bounds (for real bounds only). |
| _gen | - The eo random generator, default=rng |
Definition at line 66 of file eoIntegerVelocity.h.
| eoIntegerVelocity< POT >::eoIntegerVelocity | ( | eoTopology< POT > & | _topology, |
| const VelocityType & | _c1, | ||
| const VelocityType & | _c2, | ||
| const VelocityType & | _c3, | ||
| eoRealVectorBounds & | _bounds, | ||
| eoRng & | _gen = rng |
||
| ) | [inline] |
Constructor: No bound updater required <-> fixed bounds.
| _topology | - The topology to get the global/local/other best |
| _c1 | - The first learning factor quantify how much the particle trusts itself. Type must be POT::ParticleVelocityType |
| _c2 | - The second learning factor used for the particle's best. Type must be POT::ParticleVelocityType |
| _c3 | - The third learning factor used for the local/global best(s). Type must be POT::ParticleVelocityType |
| _bounds | - An eoRealBaseVectorBounds: real bounds for real velocities. If the velocities are not real, they won't be bounded by default. Should have a eoBounds ? |
| _gen | - The eo random generator, default=rng |
Definition at line 91 of file eoIntegerVelocity.h.
| eoIntegerVelocity< POT >::eoIntegerVelocity | ( | eoTopology< POT > & | _topology, |
| const VelocityType & | _c1, | ||
| const VelocityType & | _c2, | ||
| const VelocityType & | _c3, | ||
| eoRng & | _gen = rng |
||
| ) | [inline] |
Constructor: Neither bounds nor bound updater required <-> free velocity.
| _topology | the topology to use |
| _c1 | - The first learning factor quantify how much the particle trusts itself. Type must be POT::ParticleVelocityType |
| _c2 | - The second learning factor used for the particle's best. Type must be POT::ParticleVelocityType |
| _c3 | - The third learning factor used for the local/global best(s). Type must be POT::ParticleVelocityType |
| _gen | - The eo random generator, default=rng |
Definition at line 113 of file eoIntegerVelocity.h.
| void eoIntegerVelocity< POT >::operator() | ( | POT & | _po, |
| unsigned | _indice | ||
| ) | [inline, virtual] |
Evaluate the new velocities of the given particle.
Need an indice to identify the particle into the topology.
| _po | - A particle |
| _indice | - The indice (into the topology) of the given particle |
Implements eoBF< POT &, unsigned, void >.
Definition at line 134 of file eoIntegerVelocity.h.
References eoRealVectorBounds::adjust_size(), eoRealBaseVectorBounds::minimum(), and eoRng::uniform().
| eoTopology<POT>& eoIntegerVelocity< POT >::getTopology | ( | ) | [inline, virtual] |
eoTopology<POT> getTopology
Implements eoVelocity< POT >.
Definition at line 174 of file eoIntegerVelocity.h.