EvolvingObjects
eoLinearDecreasingWeightUp< WeightType, StopCriteriaType > Class Template Reference

Linear (inertia) weight updater for particle swarm optimization. More...

#include <eoLinearDecreasingWeightUp.h>

Inheritance diagram for eoLinearDecreasingWeightUp< WeightType, StopCriteriaType >:
eoWeightUpdater< WeightType > eoUF< WeightType &, void > eoFunctorBase unary_function

List of all members.

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

Detailed Description

template<class WeightType, class StopCriteriaType>
class eoLinearDecreasingWeightUp< WeightType, StopCriteriaType >

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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends