Doxygen 1.9.1
Toolkit for Adaptive Stochastic Modeling and Non-Intrusive ApproximatioN: Tasmanian v8.2 (development)
tsgConstructSurrogate.hpp File Reference

Automated parallel construction procedure. More...

Include dependency graph for tsgConstructSurrogate.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 TasGrid
 Encapsulates the Tasmanian Sparse Grid module.
 

Typedefs

using TasGrid::ModelSignature = std::function< void(std::vector< double > const &x, std::vector< double > &y, size_t thread_id)>
 Signature of a model function to be used in the construction procedures. More...
 

Functions

template<bool parallel_construction, bool use_initial_guess>
void TasGrid::constructCommon (ModelSignature model, size_t max_num_points, size_t num_parallel_jobs, size_t max_samples_per_job, TasmanianSparseGrid &grid, std::function< std::vector< double >(TasmanianSparseGrid &)> candidates, std::string const &checkpoint_filename)
 Construction algorithm using generic candidates procedure. More...
 
template<bool parallel_construction = TasGrid::mode_parallel, bool initial_guess = no_initial_guess>
void TasGrid::constructSurrogate (ModelSignature model, size_t max_num_points, size_t num_parallel_jobs, size_t max_samples_per_job, TasmanianSparseGrid &grid, double tolerance, TypeRefinement criteria, int output=-1, std::vector< int > const &level_limits=std::vector< int >(), std::string const &checkpoint_filename=std::string())
 Construct a sparse grid surrogate to the model defined by the lambda. More...
 
template<bool parallel_construction = TasGrid::mode_parallel, bool initial_guess = no_initial_guess>
void TasGrid::constructSurrogate (ModelSignature model, size_t max_num_points, size_t num_parallel_jobs, size_t max_samples_per_job, TasmanianSparseGrid &grid, TypeDepth type, std::vector< int > const &anisotropic_weights=std::vector< int >(), std::vector< int > const &level_limits=std::vector< int >(), std::string const &checkpoint_filename=std::string())
 Construct a sparse grid surrogate to the model defined by the lambda. More...
 
template<bool parallel_construction = TasGrid::mode_parallel, bool initial_guess = no_initial_guess>
void TasGrid::constructSurrogate (ModelSignature model, size_t max_num_points, size_t num_parallel_jobs, size_t max_samples_per_job, TasmanianSparseGrid &grid, TypeDepth type, int output, std::vector< int > const &level_limits=std::vector< int >(), std::string const &checkpoint_filename=std::string())
 Construct a sparse grid surrogate to the model defined by the lambda. More...
 

Variables

constexpr bool TasGrid::mode_parallel = true
 Allows for expressive calls to TasGrid::constructSurrogate().
 
constexpr bool TasGrid::mode_sequential = false
 Allows for expressive calls to TasGrid::constructSurrogate().
 
constexpr bool TasGrid::with_initial_guess = true
 Allows for expressive calls to TasGrid::constructSurrogate().
 
constexpr bool TasGrid::no_initial_guess = false
 Allows for expressive calls to TasGrid::constructSurrogate().
 

Detailed Description

Automated parallel construction procedure.

Author
Miroslav Stoyanov

Templates for automated surrogate construction.