#include <eoVelocity.h>
Inheritance diagram for eoInertiaFixedWeightedVelocity< POT >:

Public Member Functions | |
| eoInertiaFixedWeightedVelocity (eoSingleParticleArchive< POT > &_archive, eoRealVectorBounds &_bounds, const double _weight=1, const double _c1=0.5, const double _c2=0.9, eoRng &_gen=rng) | |
| Constructor: Only one global best is given thanks to an eoSingleParticleArchive. | |
| eoInertiaFixedWeightedVelocity (eoSingleParticleArchive< POT > &_archive, const double _weight=1, const double _c1=0.5, const double _c2=0.9, eoRng &_gen=rng) | |
| Constructor: Only one global best is given thanks to an eoSingleParticleArchive. | |
| void | operator() (POT &_po) |
| The pure virtual function that needs to be implemented by the subclass. | |
Protected Attributes | |
| const double | c1 |
| const double | c2 |
| const double | weight |
| eoRealVectorBounds & | bounds |
| eoParticleArchive< POT > & | archive |
| eoRng & | gen |
Derivated from abstract eoVelocity, At step t+1 : v(t+1)= w * v(t) + delta1 * ( xbest(t)-x(t) ) + delta2 * ( gbest(t) - x(t) ) with delta1= c1 * R1 and delta2= c2 * R2 (ci and w given; Ri chosen at random in [0;1])
Definition at line 111 of file eoVelocity.h.
| eoInertiaFixedWeightedVelocity< POT >::eoInertiaFixedWeightedVelocity | ( | eoSingleParticleArchive< POT > & | _archive, | |
| eoRealVectorBounds & | _bounds, | |||
| const double | _weight = 1, |
|||
| const double | _c1 = 0.5, |
|||
| const double | _c2 = 0.9, |
|||
| eoRng & | _gen = rng | |||
| ) | [inline] |
Constructor: Only one global best is given thanks to an eoSingleParticleArchive.
Also needs c1 and c2 coefficients and the inertia weight.
| _archive | The archive that stored the swarm's global best | |
| _bounds | - An eoRealVectorBounds: bounds for the velocities | |
| _weight | The weight factor (fixed) as a double, default=1 | |
| _c1 | The particle best coeff as a double, default=0.5 | |
| _c2 | The global best coeff ad a double, default=0.9 | |
| _gen | The eo random generator, default=rng |
Definition at line 125 of file eoVelocity.h.
| eoInertiaFixedWeightedVelocity< POT >::eoInertiaFixedWeightedVelocity | ( | eoSingleParticleArchive< POT > & | _archive, | |
| const double | _weight = 1, |
|||
| const double | _c1 = 0.5, |
|||
| const double | _c2 = 0.9, |
|||
| eoRng & | _gen = rng | |||
| ) | [inline] |
Constructor: Only one global best is given thanks to an eoSingleParticleArchive.
Also needs c1 and c2 coefficients and the inertia weight. No bound
| _archive | The archive that stored the swarm's global best | |
| _weight | The weight factor (fixed) as a double, default=1 | |
| _c1 | The particle best coeff as a double, default=0.5 | |
| _c2 | The global best coeff ad a double, default=0.9 | |
| _gen | The eo random generator, default=rng |
Definition at line 136 of file eoVelocity.h.
1.4.7