QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
Base topology class used to determine the personal and global best. More...
#include <particleswarmoptimization.hpp>
Public Member Functions | |
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... | |
Protected Attributes | |
ParticleSwarmOptimization * | pso_ |
std::vector< Array > * | X_ |
std::vector< Array > * | V_ |
std::vector< Array > * | pBX_ |
std::vector< Array > * | gBX_ |
Array * | pBF_ |
Array * | gBF_ |
Private Member Functions | |
void | init (ParticleSwarmOptimization *pso) |
Friends | |
class | ParticleSwarmOptimization |
Base topology class used to determine the personal and global best.
This pure virtual base class provides the access to the PSO state which the particular topology algorithm will change upon each iteration.
Definition at line 318 of file particleswarmoptimization.hpp.
|
virtualdefault |
|
pure virtual |
initialize state for current problem
Implemented in GlobalTopology, KNeighbors, and ClubsTopology.
|
pure virtual |
produce changes to PSO state for current iteration
Implemented in GlobalTopology, KNeighbors, and ClubsTopology.
|
private |
Definition at line 331 of file particleswarmoptimization.hpp.
|
friend |
Definition at line 319 of file particleswarmoptimization.hpp.
|
protected |
Definition at line 327 of file particleswarmoptimization.hpp.
|
protected |
Definition at line 328 of file particleswarmoptimization.hpp.
|
protected |
Definition at line 328 of file particleswarmoptimization.hpp.
|
protected |
Definition at line 328 of file particleswarmoptimization.hpp.
|
protected |
Definition at line 328 of file particleswarmoptimization.hpp.
|
protected |
Definition at line 329 of file particleswarmoptimization.hpp.
|
protected |
Definition at line 329 of file particleswarmoptimization.hpp.