QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
Trivial Inertia. More...
#include <particleswarmoptimization.hpp>
Public Member Functions | |
void | setSize (Size M, Size N, Real c0, const EndCriteria &endCriteria) override |
initialize state for current problem More... | |
void | setValues () override |
produce changes to PSO state for current iteration More... | |
Public Member Functions inherited from ParticleSwarmOptimization::Inertia | |
virtual | ~Inertia ()=default |
virtual void | setSize (Size M, Size N, Real c0, const EndCriteria &endCriteria)=0 |
initialize state for current problem More... | |
virtual void | setValues ()=0 |
produce changes to PSO state for current iteration More... | |
Private Attributes | |
Real | c0_ |
Size | M_ |
Additional Inherited Members | |
Protected Member Functions inherited from ParticleSwarmOptimization::Inertia | |
virtual void | init (ParticleSwarmOptimization *pso) |
Protected Attributes inherited from ParticleSwarmOptimization::Inertia | |
ParticleSwarmOptimization * | pso_ |
std::vector< Array > * | X_ |
std::vector< Array > * | V_ |
std::vector< Array > * | pBX_ |
std::vector< Array > * | gBX_ |
Array * | pBF_ |
Array * | gBF_ |
Array * | lX_ |
Array * | uX_ |
Trivial Inertia.
Definition at line 157 of file particleswarmoptimization.hpp.
|
overridevirtual |
initialize state for current problem
Implements ParticleSwarmOptimization::Inertia.
Definition at line 159 of file particleswarmoptimization.hpp.
|
overridevirtual |
produce changes to PSO state for current iteration
Implements ParticleSwarmOptimization::Inertia.
Definition at line 163 of file particleswarmoptimization.hpp.
|
private |
Definition at line 170 of file particleswarmoptimization.hpp.
|
private |
Definition at line 171 of file particleswarmoptimization.hpp.