LibreOffice Module sccomp (master) 1
|
#include <DifferentialEvolution.hxx>
Public Member Functions | |
DifferentialEvolutionAlgorithm (DataProvider &rDataProvider, size_t nPopulationSize) | |
std::vector< double > const & | getResult () |
int | getGeneration () |
int | getLastChange () |
void | initialize () |
bool | next () |
Private Attributes | |
DataProvider & | mrDataProvider |
size_t | mnPopulationSize |
std::vector< Individual > | maPopulation |
std::random_device | maRandomDevice |
std::mt19937 | maGenerator |
size_t | mnDimensionality |
std::uniform_int_distribution | maRandomPopulation |
std::uniform_int_distribution | maRandomDimensionality |
std::uniform_real_distribution | maRandom01 |
Individual | maBestCandidate |
double | mfBestFitness |
int | mnGeneration |
int | mnLastChange |
Static Private Attributes | |
static constexpr double | mnDifferentialWeight = 0.5 |
static constexpr double | mnCrossoverProbability = 0.9 |
static constexpr double | constAcceptedPrecision = 0.000000001 |
Definition at line 22 of file DifferentialEvolution.hxx.
|
inline |
Definition at line 48 of file DifferentialEvolution.hxx.
|
inline |
Definition at line 64 of file DifferentialEvolution.hxx.
References DifferentialEvolutionAlgorithm< DataProvider >::mnGeneration.
|
inline |
Definition at line 66 of file DifferentialEvolution.hxx.
References DifferentialEvolutionAlgorithm< DataProvider >::mnLastChange.
|
inline |
Definition at line 62 of file DifferentialEvolution.hxx.
References DifferentialEvolutionAlgorithm< DataProvider >::maBestCandidate, and Individual::mVariables.
|
inline |
Definition at line 68 of file DifferentialEvolution.hxx.
References i, DifferentialEvolutionAlgorithm< DataProvider >::maBestCandidate, DifferentialEvolutionAlgorithm< DataProvider >::maGenerator, DifferentialEvolutionAlgorithm< DataProvider >::maPopulation, DifferentialEvolutionAlgorithm< DataProvider >::mnGeneration, DifferentialEvolutionAlgorithm< DataProvider >::mnLastChange, DifferentialEvolutionAlgorithm< DataProvider >::mnPopulationSize, DifferentialEvolutionAlgorithm< DataProvider >::mrDataProvider, and Individual::mVariables.
|
inline |
Definition at line 88 of file DifferentialEvolution.hxx.
References a, DifferentialEvolutionAlgorithm< DataProvider >::constAcceptedPrecision, index, DifferentialEvolutionAlgorithm< DataProvider >::maBestCandidate, DifferentialEvolutionAlgorithm< DataProvider >::maGenerator, DifferentialEvolutionAlgorithm< DataProvider >::maPopulation, DifferentialEvolutionAlgorithm< DataProvider >::maRandom01, DifferentialEvolutionAlgorithm< DataProvider >::maRandomDimensionality, DifferentialEvolutionAlgorithm< DataProvider >::maRandomPopulation, DifferentialEvolutionAlgorithm< DataProvider >::mfBestFitness, DifferentialEvolutionAlgorithm< DataProvider >::mnCrossoverProbability, DifferentialEvolutionAlgorithm< DataProvider >::mnDifferentialWeight, DifferentialEvolutionAlgorithm< DataProvider >::mnDimensionality, DifferentialEvolutionAlgorithm< DataProvider >::mnGeneration, DifferentialEvolutionAlgorithm< DataProvider >::mnLastChange, DifferentialEvolutionAlgorithm< DataProvider >::mnPopulationSize, DifferentialEvolutionAlgorithm< DataProvider >::mrDataProvider, Individual::mVariables, and x.
|
staticconstexprprivate |
Definition at line 27 of file DifferentialEvolution.hxx.
Referenced by DifferentialEvolutionAlgorithm< DataProvider >::next().
|
private |
Definition at line 42 of file DifferentialEvolution.hxx.
Referenced by DifferentialEvolutionAlgorithm< DataProvider >::getResult(), DifferentialEvolutionAlgorithm< DataProvider >::initialize(), and DifferentialEvolutionAlgorithm< DataProvider >::next().
|
private |
Definition at line 35 of file DifferentialEvolution.hxx.
Referenced by DifferentialEvolutionAlgorithm< DataProvider >::initialize(), and DifferentialEvolutionAlgorithm< DataProvider >::next().
|
private |
Definition at line 32 of file DifferentialEvolution.hxx.
Referenced by DifferentialEvolutionAlgorithm< DataProvider >::initialize(), and DifferentialEvolutionAlgorithm< DataProvider >::next().
|
private |
Definition at line 40 of file DifferentialEvolution.hxx.
Referenced by DifferentialEvolutionAlgorithm< DataProvider >::next().
|
private |
Definition at line 34 of file DifferentialEvolution.hxx.
|
private |
Definition at line 39 of file DifferentialEvolution.hxx.
Referenced by DifferentialEvolutionAlgorithm< DataProvider >::next().
|
private |
Definition at line 38 of file DifferentialEvolution.hxx.
Referenced by DifferentialEvolutionAlgorithm< DataProvider >::next().
|
private |
Definition at line 43 of file DifferentialEvolution.hxx.
Referenced by DifferentialEvolutionAlgorithm< DataProvider >::next().
|
staticconstexprprivate |
Definition at line 25 of file DifferentialEvolution.hxx.
Referenced by DifferentialEvolutionAlgorithm< DataProvider >::next().
|
staticconstexprprivate |
Definition at line 24 of file DifferentialEvolution.hxx.
Referenced by DifferentialEvolutionAlgorithm< DataProvider >::next().
|
private |
Definition at line 36 of file DifferentialEvolution.hxx.
Referenced by DifferentialEvolutionAlgorithm< DataProvider >::next().
|
private |
Definition at line 44 of file DifferentialEvolution.hxx.
Referenced by DifferentialEvolutionAlgorithm< DataProvider >::getGeneration(), DifferentialEvolutionAlgorithm< DataProvider >::initialize(), and DifferentialEvolutionAlgorithm< DataProvider >::next().
|
private |
Definition at line 45 of file DifferentialEvolution.hxx.
Referenced by DifferentialEvolutionAlgorithm< DataProvider >::getLastChange(), DifferentialEvolutionAlgorithm< DataProvider >::initialize(), and DifferentialEvolutionAlgorithm< DataProvider >::next().
|
private |
Definition at line 31 of file DifferentialEvolution.hxx.
Referenced by DifferentialEvolutionAlgorithm< DataProvider >::initialize(), and DifferentialEvolutionAlgorithm< DataProvider >::next().
|
private |
Definition at line 29 of file DifferentialEvolution.hxx.
Referenced by DifferentialEvolutionAlgorithm< DataProvider >::initialize(), and DifferentialEvolutionAlgorithm< DataProvider >::next().