LibreOffice Module sccomp (master) 1
|
#include <ParticelSwarmOptimization.hxx>
Public Member Functions | |
ParticleSwarmOptimizationAlgorithm (DataProvider &rDataProvider, size_t nNumOfParticles) | |
std::vector< double > const & | getResult () |
int | getGeneration () |
int | getLastChange () |
void | initialize () |
bool | next () |
Private Attributes | |
DataProvider & | mrDataProvider |
size_t | mnNumOfParticles |
std::vector< Particle > | maSwarm |
std::random_device | maRandomDevice |
std::mt19937 | maGenerator |
size_t | mnDimensionality |
std::uniform_real_distribution | maRandom01 |
std::vector< double > | maBestPosition |
double | mfBestFitness |
int | mnGeneration |
int | mnLastChange |
Static Private Attributes | |
static constexpr double | constWeight = 0.729 |
static constexpr double | c1 = 1.49445 |
static constexpr double | c2 = 1.49445 |
static constexpr double | constAcceptedPrecision = 0.000000001 |
Definition at line 37 of file ParticelSwarmOptimization.hxx.
|
inline |
Definition at line 67 of file ParticelSwarmOptimization.hxx.
|
inline |
Definition at line 82 of file ParticelSwarmOptimization.hxx.
References ParticleSwarmOptimizationAlgorithm< DataProvider >::mnGeneration.
|
inline |
Definition at line 84 of file ParticelSwarmOptimization.hxx.
References ParticleSwarmOptimizationAlgorithm< DataProvider >::mnLastChange.
|
inline |
Definition at line 80 of file ParticelSwarmOptimization.hxx.
References ParticleSwarmOptimizationAlgorithm< DataProvider >::maBestPosition.
|
inline |
Definition at line 86 of file ParticelSwarmOptimization.hxx.
References i, ParticleSwarmOptimizationAlgorithm< DataProvider >::maBestPosition, ParticleSwarmOptimizationAlgorithm< DataProvider >::maGenerator, ParticleSwarmOptimizationAlgorithm< DataProvider >::maSwarm, Particle::mBestFitness, Particle::mBestPosition, Particle::mCurrentFitness, ParticleSwarmOptimizationAlgorithm< DataProvider >::mfBestFitness, ParticleSwarmOptimizationAlgorithm< DataProvider >::mnDimensionality, ParticleSwarmOptimizationAlgorithm< DataProvider >::mnGeneration, ParticleSwarmOptimizationAlgorithm< DataProvider >::mnLastChange, ParticleSwarmOptimizationAlgorithm< DataProvider >::mnNumOfParticles, Particle::mPosition, ParticleSwarmOptimizationAlgorithm< DataProvider >::mrDataProvider, and Particle::mVelocity.
|
inline |
Definition at line 128 of file ParticelSwarmOptimization.hxx.
References ParticleSwarmOptimizationAlgorithm< DataProvider >::c1, ParticleSwarmOptimizationAlgorithm< DataProvider >::c2, ParticleSwarmOptimizationAlgorithm< DataProvider >::constAcceptedPrecision, ParticleSwarmOptimizationAlgorithm< DataProvider >::constWeight, ParticleSwarmOptimizationAlgorithm< DataProvider >::maBestPosition, ParticleSwarmOptimizationAlgorithm< DataProvider >::maGenerator, ParticleSwarmOptimizationAlgorithm< DataProvider >::maRandom01, ParticleSwarmOptimizationAlgorithm< DataProvider >::maSwarm, ParticleSwarmOptimizationAlgorithm< DataProvider >::mfBestFitness, ParticleSwarmOptimizationAlgorithm< DataProvider >::mnDimensionality, ParticleSwarmOptimizationAlgorithm< DataProvider >::mnGeneration, ParticleSwarmOptimizationAlgorithm< DataProvider >::mnLastChange, and ParticleSwarmOptimizationAlgorithm< DataProvider >::mrDataProvider.
|
staticconstexprprivate |
Definition at line 43 of file ParticelSwarmOptimization.hxx.
Referenced by ParticleSwarmOptimizationAlgorithm< DataProvider >::next().
|
staticconstexprprivate |
Definition at line 45 of file ParticelSwarmOptimization.hxx.
Referenced by ParticleSwarmOptimizationAlgorithm< DataProvider >::next().
|
staticconstexprprivate |
Definition at line 47 of file ParticelSwarmOptimization.hxx.
Referenced by ParticleSwarmOptimizationAlgorithm< DataProvider >::next().
|
staticconstexprprivate |
Definition at line 41 of file ParticelSwarmOptimization.hxx.
Referenced by ParticleSwarmOptimizationAlgorithm< DataProvider >::next().
|
private |
|
private |
Definition at line 56 of file ParticelSwarmOptimization.hxx.
Referenced by ParticleSwarmOptimizationAlgorithm< DataProvider >::initialize(), and ParticleSwarmOptimizationAlgorithm< DataProvider >::next().
|
private |
Definition at line 59 of file ParticelSwarmOptimization.hxx.
Referenced by ParticleSwarmOptimizationAlgorithm< DataProvider >::next().
|
private |
Definition at line 55 of file ParticelSwarmOptimization.hxx.
|
private |
Definition at line 53 of file ParticelSwarmOptimization.hxx.
Referenced by ParticleSwarmOptimizationAlgorithm< DataProvider >::initialize(), and ParticleSwarmOptimizationAlgorithm< DataProvider >::next().
|
private |
Definition at line 62 of file ParticelSwarmOptimization.hxx.
Referenced by ParticleSwarmOptimizationAlgorithm< DataProvider >::initialize(), and ParticleSwarmOptimizationAlgorithm< DataProvider >::next().
|
private |
Definition at line 57 of file ParticelSwarmOptimization.hxx.
Referenced by ParticleSwarmOptimizationAlgorithm< DataProvider >::initialize(), and ParticleSwarmOptimizationAlgorithm< DataProvider >::next().
|
private |
|
private |
|
private |
Definition at line 51 of file ParticelSwarmOptimization.hxx.
Referenced by ParticleSwarmOptimizationAlgorithm< DataProvider >::initialize().
|
private |
Definition at line 49 of file ParticelSwarmOptimization.hxx.
Referenced by ParticleSwarmOptimizationAlgorithm< DataProvider >::initialize(), and ParticleSwarmOptimizationAlgorithm< DataProvider >::next().