NeoPZ
Public Member Functions | Private Attributes | List of all members
TPZStochasticSearch< TVar > Class Template Reference

#include <TPZStochasticSearch.h>

Collaboration diagram for TPZStochasticSearch< TVar >:
[legend]

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
 

Detailed Description

template<typename TVar>
class TPZStochasticSearch< TVar >

Definition at line 18 of file TPZStochasticSearch.h.

Constructor & Destructor Documentation

◆ TPZStochasticSearch() [1/2]

template<typename TVar >
TPZStochasticSearch< TVar >::TPZStochasticSearch ( const uint64_t  n_vars)
inline

◆ TPZStochasticSearch() [2/2]

template<typename TVar >
TPZStochasticSearch< TVar >::TPZStochasticSearch ( const TPZStochasticSearch< TVar > &  orig)
inline

Definition at line 24 of file TPZStochasticSearch.h.

◆ ~TPZStochasticSearch()

template<typename TVar >
virtual TPZStochasticSearch< TVar >::~TPZStochasticSearch ( )
inlinevirtual

Definition at line 39 of file TPZStochasticSearch.h.

Member Function Documentation

◆ DoSearch()

template<typename TVar >
std::vector< TVar > TPZStochasticSearch< TVar >::DoSearch ( std::function< REAL(std::vector< TVar >)>  objective_function,
const uint64_t  n_max_iterations,
REAL  min_relative_error 
)

◆ GetDistribution()

template<typename TVar >
TPZAutoPointer<TPZConstrainedRandom<TVar> > TPZStochasticSearch< TVar >::GetDistribution ( const int  index) const
inline

◆ NVars()

template<typename TVar >
uint64_t TPZStochasticSearch< TVar >::NVars ( ) const
inline

◆ SetDistribution()

template<typename TVar >
void TPZStochasticSearch< TVar >::SetDistribution ( const uint64_t  var,
TPZAutoPointer< TPZConstrainedRandom< TVar >>  distribution 
)

Member Data Documentation

◆ fdistributions

template<typename TVar >
TPZVec<TPZAutoPointer<TPZConstrainedRandom<TVar> > > TPZStochasticSearch< TVar >::fdistributions
private

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