ApproximationInterface Class Reference

approximations to simulation-based results. More...

Inheritance diagram for ApproximationInterface:

Interface List of all members.

Public Member Functions

 ApproximationInterface (ProblemDescDB &problem_db, const Variables &actual_model_vars, const size_t &num_fns)
 primary constructor
 ApproximationInterface (const String &approx_type, const short &approx_order, const Variables &actual_model_vars, const size_t &num_fns)
 alternate constructor for instantiations on the fly
 ~ApproximationInterface ()
 destructor

Protected Member Functions

void map (const Variables &vars, const ActiveSet &set, Response &response, const bool asynch_flag=false)
 the variables to the responses using functionSurfaces
int minimum_samples (bool constraint_flag) const
 functionSurfaces
int recommended_samples (bool constraint_flag) const
 functionSurfaces
void approximation_function_indices (const IntSet &approx_fn_indices)
 set the (currently active) approximation function index set
void update_approximation (const Variables &vars, const Response &response)
void update_approximation (const VariablesArray &vars_array, const ResponseArray &resp_array)
void append_approximation (const Variables &vars, const Response &response)
void append_approximation (const VariablesArray &vars_array, const ResponseArray &resp_array)
void build_approximation (const RealVector &lower_bnds, const RealVector &upper_bnds)
void clear_current ()
 clears current data from an approximation interface
void clear_all ()
 clears all data from an approximation interface
bool anchor () const
 queries the presence of an anchorPoint within an approximation interface
const SurrogateDataPointanchor_point () const
 returns the anchorPoint used within an approximation interface
Array< Approximation > & approximations ()
 retrieve the Approximations within an ApproximationInterface
const RealVectorArrayapproximation_coefficients ()
 within an ApproximationInterface
void approximation_coefficients (const RealVectorArray &approx_coeffs)
 within an ApproximationInterface
void print_coefficients (ostream &s, size_t index) const
 Approximation instance within an ApproximationInterface.
const RealVectorapproximation_variances (const RealVector &c_vars)
 within an ApproximationInterface
const List< SurrogateDataPoint > & approximation_data (size_t index)
 within an ApproximationInterface
const ResponseArraysynch ()
 recovers data from a series of asynchronous evaluations (blocking)
const IntResponseMap & synch_nowait ()
 recovers data from a series of asynchronous evaluations (nonblocking)

Private Attributes

IntSet approxFnIndices
 response function subset that is approximated
Array< ApproximationfunctionSurfaces
 list of approximations, one per response function
RealVectorArray functionSurfaceCoeffs
 response function
RealVector functionSurfaceVariances
 vector of approximation variances, one value per response function
List< SurrogateDataPointfunctionSurfaceDataPoints
 for a particular response function
bool graph3DFlag
 controls 3D graphics of approximation surfaces
StringArray diag_list
 List of diagnostic metrics.
Variables actualModelVars
 among differing variable views
IntResponseMap beforeSynchResponseMap
 but asynchronous virtual functions are supported through bookkeeping).

Detailed Description

approximations to simulation-based results.

ApproximationInterface provides an interface class for building a set of global/local/multipoint approximations and performing approximate function evaluations using them. It contains a list of Approximation objects, one for each response function.


Member Function Documentation

void update_approximation ( const Variables vars,
const Response response 
) [protected, virtual]

This function populates/replaces each Approximation::anchorPoint with the incoming variables/response data point.

Reimplemented from Interface.

void update_approximation ( const VariablesArray vars_array,
const ResponseArray resp_array 
) [protected, virtual]

This function populates/replaces each Approximation::currentPoints with the incoming variables/response arrays.

Reimplemented from Interface.

void append_approximation ( const Variables vars,
const Response response 
) [protected, virtual]

This function appends to each Approximation::currentPoints with one incoming variables/response data point.

Reimplemented from Interface.

void append_approximation ( const VariablesArray vars_array,
const ResponseArray resp_array 
) [protected, virtual]

This function appends to each Approximation::currentPoints with multiple incoming variables/response data points.

Reimplemented from Interface.

void build_approximation ( const RealVector lower_bnds,
const RealVector upper_bnds 
) [protected, virtual]

This function finds the coefficients for each Approximation based on the data passed through update_approximation() calls. The bounds are used only for graphics visualization.

Reimplemented from Interface.


Member Data Documentation

Array<Approximation> functionSurfaces [private]

list of approximations, one per response function

This formulation allows the use of mixed approximations (i.e., different approximations used for different response functions), although the input specification is not currently general enough to support it.


The documentation for this class was generated from the following files:
Generated on Wed Nov 5 19:54:05 2008 for DAKOTA by  doxygen 1.5.1