NeoPZ
|
#include <TPZStochasticSearch.h>
Public Member Functions | |
TPZStochasticSearch (const uint64_t n_vars) | |
TPZStochasticSearch (const TPZStochasticSearch &orig) | |
uint64_t | NVars () const |
void | SetDistribution (const uint64_t var, TPZAutoPointer< TPZConstrainedRandom< TVar >> distribution) |
TPZAutoPointer< TPZConstrainedRandom< TVar > > | GetDistribution (const int index) const |
std::vector< TVar > | DoSearch (std::function< REAL(std::vector< TVar >)> objective_function, const uint64_t n_max_iterations, REAL min_relative_error) |
virtual | ~TPZStochasticSearch () |
Private Attributes | |
TPZVec< TPZAutoPointer< TPZConstrainedRandom< TVar > > > | fdistributions |
Definition at line 18 of file TPZStochasticSearch.h.
|
inline |
Definition at line 20 of file TPZStochasticSearch.h.
References TPZStochasticSearch< TVar >::fdistributions, and TPZVec< T >::resize().
|
inline |
Definition at line 24 of file TPZStochasticSearch.h.
|
inlinevirtual |
Definition at line 39 of file TPZStochasticSearch.h.
std::vector< TVar > TPZStochasticSearch< TVar >::DoSearch | ( | std::function< REAL(std::vector< TVar >)> | objective_function, |
const uint64_t | n_max_iterations, | ||
REAL | min_relative_error | ||
) |
Definition at line 57 of file TPZStochasticSearch.h.
References DebugStop, TPZStochasticSearch< TVar >::fdistributions, and TPZVec< T >::size().
Referenced by TPZStochasticSearch< TVar >::GetDistribution().
|
inline |
Definition at line 33 of file TPZStochasticSearch.h.
References TPZStochasticSearch< TVar >::DoSearch(), and TPZStochasticSearch< TVar >::fdistributions.
|
inline |
Definition at line 27 of file TPZStochasticSearch.h.
References TPZStochasticSearch< TVar >::fdistributions, TPZStochasticSearch< TVar >::SetDistribution(), and TPZVec< T >::size().
void TPZStochasticSearch< TVar >::SetDistribution | ( | const uint64_t | var, |
TPZAutoPointer< TPZConstrainedRandom< TVar >> | distribution | ||
) |
Definition at line 47 of file TPZStochasticSearch.h.
References DebugStop, TPZStochasticSearch< TVar >::fdistributions, and TPZVec< T >::size().
Referenced by TPZStochasticSearch< TVar >::NVars().
|
private |