LibreOffice Module sccomp (master) 1
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
ParticleSwarmOptimizationAlgorithm< DataProvider > Class Template Reference

#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< ParticlemaSwarm
 
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
 

Detailed Description

template<typename DataProvider>
class ParticleSwarmOptimizationAlgorithm< DataProvider >

Definition at line 37 of file ParticelSwarmOptimization.hxx.

Constructor & Destructor Documentation

◆ ParticleSwarmOptimizationAlgorithm()

template<typename DataProvider >
ParticleSwarmOptimizationAlgorithm< DataProvider >::ParticleSwarmOptimizationAlgorithm ( DataProvider &  rDataProvider,
size_t  nNumOfParticles 
)
inline

Definition at line 67 of file ParticelSwarmOptimization.hxx.

Member Function Documentation

◆ getGeneration()

template<typename DataProvider >
int ParticleSwarmOptimizationAlgorithm< DataProvider >::getGeneration ( )
inline

◆ getLastChange()

template<typename DataProvider >
int ParticleSwarmOptimizationAlgorithm< DataProvider >::getLastChange ( )
inline

◆ getResult()

template<typename DataProvider >
std::vector< double > const & ParticleSwarmOptimizationAlgorithm< DataProvider >::getResult ( )
inline

◆ initialize()

template<typename DataProvider >
void ParticleSwarmOptimizationAlgorithm< DataProvider >::initialize ( )
inline

◆ next()

template<typename DataProvider >
bool ParticleSwarmOptimizationAlgorithm< DataProvider >::next ( )
inline

Member Data Documentation

◆ c1

template<typename DataProvider >
constexpr double ParticleSwarmOptimizationAlgorithm< DataProvider >::c1 = 1.49445
staticconstexprprivate

◆ c2

template<typename DataProvider >
constexpr double ParticleSwarmOptimizationAlgorithm< DataProvider >::c2 = 1.49445
staticconstexprprivate

◆ constAcceptedPrecision

template<typename DataProvider >
constexpr double ParticleSwarmOptimizationAlgorithm< DataProvider >::constAcceptedPrecision = 0.000000001
staticconstexprprivate

◆ constWeight

template<typename DataProvider >
constexpr double ParticleSwarmOptimizationAlgorithm< DataProvider >::constWeight = 0.729
staticconstexprprivate

◆ maBestPosition

template<typename DataProvider >
std::vector<double> ParticleSwarmOptimizationAlgorithm< DataProvider >::maBestPosition
private

◆ maGenerator

template<typename DataProvider >
std::mt19937 ParticleSwarmOptimizationAlgorithm< DataProvider >::maGenerator
private

◆ maRandom01

template<typename DataProvider >
std::uniform_real_distribution ParticleSwarmOptimizationAlgorithm< DataProvider >::maRandom01
private

◆ maRandomDevice

template<typename DataProvider >
std::random_device ParticleSwarmOptimizationAlgorithm< DataProvider >::maRandomDevice
private

Definition at line 55 of file ParticelSwarmOptimization.hxx.

◆ maSwarm

template<typename DataProvider >
std::vector<Particle> ParticleSwarmOptimizationAlgorithm< DataProvider >::maSwarm
private

◆ mfBestFitness

template<typename DataProvider >
double ParticleSwarmOptimizationAlgorithm< DataProvider >::mfBestFitness
private

◆ mnDimensionality

template<typename DataProvider >
size_t ParticleSwarmOptimizationAlgorithm< DataProvider >::mnDimensionality
private

◆ mnGeneration

template<typename DataProvider >
int ParticleSwarmOptimizationAlgorithm< DataProvider >::mnGeneration
private

◆ mnLastChange

template<typename DataProvider >
int ParticleSwarmOptimizationAlgorithm< DataProvider >::mnLastChange
private

◆ mnNumOfParticles

template<typename DataProvider >
size_t ParticleSwarmOptimizationAlgorithm< DataProvider >::mnNumOfParticles
private

◆ mrDataProvider

template<typename DataProvider >
DataProvider& ParticleSwarmOptimizationAlgorithm< DataProvider >::mrDataProvider
private

The documentation for this class was generated from the following file: