QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
Global Topology. More...
#include <particleswarmoptimization.hpp>
Public Member Functions | |
void | setSize (Size M) override |
initialize state for current problem More... | |
void | findSocialBest () override |
produce changes to PSO state for current iteration More... | |
Public Member Functions inherited from ParticleSwarmOptimization::Topology | |
virtual | ~Topology ()=default |
virtual void | setSize (Size M)=0 |
initialize state for current problem More... | |
virtual void | findSocialBest ()=0 |
produce changes to PSO state for current iteration More... | |
Private Attributes | |
Size | M_ |
Additional Inherited Members | |
Protected Attributes inherited from ParticleSwarmOptimization::Topology | |
ParticleSwarmOptimization * | pso_ |
std::vector< Array > * | X_ |
std::vector< Array > * | V_ |
std::vector< Array > * | pBX_ |
std::vector< Array > * | gBX_ |
Array * | pBF_ |
Array * | gBF_ |
Global Topology.
Definition at line 346 of file particleswarmoptimization.hpp.
|
overridevirtual |
initialize state for current problem
Implements ParticleSwarmOptimization::Topology.
Definition at line 348 of file particleswarmoptimization.hpp.
|
overridevirtual |
produce changes to PSO state for current iteration
Implements ParticleSwarmOptimization::Topology.
Definition at line 349 of file particleswarmoptimization.hpp.
|
private |
Definition at line 368 of file particleswarmoptimization.hpp.