EvolvingObjects
|
Linear (inertia) weight updater for particle swarm optimization. More...
#include <eoLinearDecreasingWeightUp.h>
Public Member Functions | |
eoLinearDecreasingWeightUp (const StopCriteriaType &_stop, const WeightType &_initialValue, const WeightType &_finalValue, eoValueParam< StopCriteriaType > &_counter) | |
Ctor. | |
void | operator() (WeightType &_weight) |
Update the given weight. | |
Protected Attributes | |
const StopCriteriaType & | stop |
const WeightType & | initialValue |
const WeightType | finalValue |
eoValueParam< StopCriteriaType > & | counter |
Linear (inertia) weight updater for particle swarm optimization.
Update a weight according to: w(t)=(w(0)-w(Nt))*(Nt -t)/Nt + w(Nt) where t is the current generation/event Nt is the total number of generations/event w(0) is the initial weight w(Nt) is the last inertia weight
Definition at line 43 of file eoLinearDecreasingWeightUp.h.