Dakota  Version 6.16
Explore and Predict with Confidence
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Protected Member Functions | Private Member Functions | Static Private Attributes | List of all members
TestDriverInterface Class Reference
Inheritance diagram for TestDriverInterface:
DirectApplicInterface ApplicationInterface Interface

Public Member Functions

 TestDriverInterface (const ProblemDescDB &problem_db)
 constructor
 
 ~TestDriverInterface ()
 destructor
 
- Public Member Functions inherited from DirectApplicInterface
 DirectApplicInterface (const ProblemDescDB &problem_db)
 constructor
 
 ~DirectApplicInterface ()
 destructor
 
void derived_map (const Variables &vars, const ActiveSet &set, Response &response, int fn_eval_id)
 Called by map() and other functions to execute the simulation in synchronous mode. The portion of performing an evaluation that is specific to a derived class.
 
void derived_map_asynch (const ParamResponsePair &pair)
 Called by map() and other functions to execute the simulation in asynchronous mode. The portion of performing an asynchronous evaluation that is specific to a derived class.
 
void wait_local_evaluations (PRPQueue &prp_queue)
 For asynchronous function evaluations, this method is used to detect completion of jobs and process their results. It provides the processing code that is specific to derived classes. This version waits for at least one completion.
 
void test_local_evaluations (PRPQueue &prp_queue)
 For asynchronous function evaluations, this method is used to detect completion of jobs and process their results. It provides the processing code that is specific to derived classes. This version is nonblocking and will return without any completions if none are immediately available.
 
int synchronous_local_analysis (int analysis_id)
 
const StringArray & analysis_drivers () const
 retrieve the analysis drivers specification for application interfaces
 
void init_communicators_checks (int max_eval_concurrency)
 
void set_communicators_checks (int max_eval_concurrency)
 
- Public Member Functions inherited from ApplicationInterface
 ApplicationInterface (const ProblemDescDB &problem_db)
 constructor
 
 ~ApplicationInterface ()
 destructor
 
- Public Member Functions inherited from Interface
 Interface ()
 default constructor More...
 
 Interface (ProblemDescDB &problem_db)
 standard constructor for envelope More...
 
 Interface (const Interface &interface_in)
 copy constructor More...
 
virtual ~Interface ()
 destructor
 
Interface operator= (const Interface &interface_in)
 assignment operator
 
virtual int minimum_points (bool constraint_flag) const
 returns the minimum number of points required to build a particular ApproximationInterface (used by DataFitSurrModels).
 
virtual int recommended_points (bool constraint_flag) const
 returns the recommended number of points required to build a particular ApproximationInterface (used by DataFitSurrModels).
 
virtual void active_model_key (const Pecos::ActiveKey &key)
 activate an approximation state based on its key
 
virtual void clear_model_keys ()
 reset initial state by removing all model keys for an approximation
 
virtual void approximation_function_indices (const SizetSet &approx_fn_indices)
 set the (currently active) approximation function index set
 
virtual void update_approximation (const Variables &vars, const IntResponsePair &response_pr)
 updates the anchor point for an approximation
 
virtual void update_approximation (const RealMatrix &samples, const IntResponseMap &resp_map)
 updates the current data points for an approximation
 
virtual void update_approximation (const VariablesArray &vars_array, const IntResponseMap &resp_map)
 updates the current data points for an approximation
 
virtual void append_approximation (const Variables &vars, const IntResponsePair &response_pr)
 appends a single point to an existing approximation
 
virtual void append_approximation (const RealMatrix &samples, const IntResponseMap &resp_map)
 appends multiple points to an existing approximation
 
virtual void append_approximation (const VariablesArray &vars_array, const IntResponseMap &resp_map)
 appends multiple points to an existing approximation
 
virtual void append_approximation (const IntVariablesMap &vars_map, const IntResponseMap &resp_map)
 appends multiple points to an existing approximation
 
virtual void replace_approximation (const IntResponsePair &response_pr)
 replace the response for a single point within an existing approximation
 
virtual void replace_approximation (const IntResponseMap &resp_map)
 replace responses for multiple points within an existing approximation
 
virtual void track_evaluation_ids (bool track)
 assigns trackEvalIds to activate tracking of evaluation ids within surrogate data, enabling id-based lookups for data replacement
 
virtual void build_approximation (const RealVector &c_l_bnds, const RealVector &c_u_bnds, const IntVector &di_l_bnds, const IntVector &di_u_bnds, const RealVector &dr_l_bnds, const RealVector &dr_u_bnds)
 builds the approximation
 
virtual void export_approximation ()
 export the approximation to disk
 
virtual void rebuild_approximation (const BitArray &rebuild_fns)
 rebuilds the approximation after a data update
 
virtual void pop_approximation (bool save_data)
 removes data from last append from the approximation
 
virtual void push_approximation ()
 retrieves approximation data from a previous state (negates pop)
 
virtual bool push_available ()
 queries the approximation for the ability to retrieve a previous increment
 
virtual void finalize_approximation ()
 finalizes the approximation by applying all trial increments
 
virtual void combine_approximation ()
 combine the current approximation with previously stored data sets
 
virtual void combined_to_active (bool clear_combined=true)
 promote the combined approximation to the currently active one
 
virtual void clear_inactive ()
 clear inactive approximation data
 
virtual bool advancement_available ()
 query for available advancements in approximation resolution controls
 
virtual bool formulation_updated () const
 query for change in approximation formulation
 
virtual void formulation_updated (bool update)
 assign an updated status for approximation formulation to force rebuild
 
virtual Real2DArray cv_diagnostics (const StringArray &metric_types, unsigned num_folds)
 approximation cross-validation quality metrics per response function
 
virtual RealArray challenge_diagnostics (const String &metric_type, const RealMatrix &challenge_pts)
 approximation challenge data metrics per response function
 
virtual void clear_current_active_data ()
 clears current data from an approximation interface
 
virtual void clear_active_data ()
 clears all data from an approximation interface
 
virtual SharedApproxDatashared_approximation ()
 retrieve the SharedApproxData within an ApproximationInterface
 
virtual std::vector
< Approximation > & 
approximations ()
 retrieve the Approximations within an ApproximationInterface
 
virtual const
Pecos::SurrogateData & 
approximation_data (size_t fn_index)
 retrieve the approximation data from a particular Approximation within an ApproximationInterface
 
virtual const RealVectorArray & approximation_coefficients (bool normalized=false)
 retrieve the approximation coefficients from each Approximation within an ApproximationInterface
 
virtual void approximation_coefficients (const RealVectorArray &approx_coeffs, bool normalized=false)
 set the approximation coefficients within each Approximation within an ApproximationInterface
 
virtual const RealVector & approximation_variances (const Variables &vars)
 retrieve the approximation variances from each Approximation within an ApproximationInterface
 
virtual const String2DArray & analysis_components () const
 retrieve the analysis components, if available
 
virtual void file_cleanup () const
 clean up any interface parameter/response files when aborting
 
IntResponseMap & response_map ()
 return rawResponseMap
 
void cache_unmatched_response (int raw_id)
 migrate an unmatched response record from rawResponseMap to cachedResponseMap
 
void cache_unmatched_responses ()
 migrate all remaining response records from rawResponseMap to cachedResponseMap
 
void assign_rep (std::shared_ptr< Interface > interface_rep)
 assign letter or replace existing letter with a new one More...
 
void assign_rep (Interface *interface_rep, bool ref_count_incr=false)
 assign letter or replace existing letter with a new one DEPRECATED, but left for library mode clients to migrate: transfers memory ownership to the contained shared_ptr; ref_count_incr is ignored More...
 
unsigned short interface_type () const
 returns the interface type
 
const String & interface_id () const
 returns the interface identifier
 
int evaluation_id () const
 returns the value of the (total) evaluation id counter for the interface
 
void fine_grained_evaluation_counters (size_t num_fns)
 set fineGrainEvalCounters to true and initialize counters if needed
 
void init_evaluation_counters (size_t num_fns)
 initialize fine grained evaluation counters, sizing if needed
 
void set_evaluation_reference ()
 set evaluation count reference points for the interface
 
void print_evaluation_summary (std::ostream &s, bool minimal_header, bool relative_count) const
 print an evaluation summary for the interface
 
bool multi_proc_eval () const
 returns a flag signaling the use of multiprocessor evaluation partitions
 
bool iterator_eval_dedicated_master () const
 returns a flag signaling the use of a dedicated master processor at the iterator-evaluation scheduling level
 
bool is_null () const
 function to check interfaceRep (does this envelope contain a letter?)
 
std::shared_ptr< Interfaceinterface_rep ()
 function to return the letter
 
void eval_tag_prefix (const String &eval_id_str, bool append_iface_id=true)
 set the evaluation tag prefix (does not recurse) More...
 

Protected Member Functions

virtual int derived_map_ac (const Dakota::String &ac_name)
 execute an analysis code portion of a direct evaluation invocation More...
 
- Protected Member Functions inherited from DirectApplicInterface
virtual int derived_map_if (const Dakota::String &if_name)
 execute the input filter portion of a direct evaluation invocation
 
virtual int derived_map_of (const Dakota::String &of_name)
 execute the output filter portion of a direct evaluation invocation
 
virtual void set_local_data (const Variables &vars, const ActiveSet &set)
 convenience function for local test simulators which sets per-evaluation variable and active set attributes; derived classes reimplementing this likely need to invoke the base class API
 
virtual void set_local_data (const Response &response)
 convenience function for local test simulators which sets per-evaluation response attributes; derived classes reimplementing this likely need to invoke the base class API
 
virtual void set_local_data (const Variables &vars, const ActiveSet &set, const Response &response)
 convenience function for local test simulators which sets per-evaluation variable, active set, and response attributes; derived classes reimplementing this likely need to invoke the base class API
 
void overlay_response (Response &response)
 convenience function for local test simulators which overlays response contributions from multiple analyses using MPI_Reduce
 
- Protected Member Functions inherited from ApplicationInterface
void init_communicators (const IntArray &message_lengths, int max_eval_concurrency)
 allocate communicator partitions for concurrent evaluations within an iterator and concurrent multiprocessor analyses within an evaluation.
 
void set_communicators (const IntArray &message_lengths, int max_eval_concurrency)
 set the local parallel partition data for an interface (the partitions are already allocated in ParallelLibrary).
 
void init_serial ()
 
int asynch_local_evaluation_concurrency () const
 return asynchLocalEvalConcurrency
 
short interface_synchronization () const
 return interfaceSynchronization
 
bool evaluation_cache () const
 return evalCacheFlag
 
bool restart_file () const
 return evalCacheFlag
 
String final_eval_id_tag (int fn_eval_id)
 form and return the final evaluation ID tag, appending iface ID if needed
 
void map (const Variables &vars, const ActiveSet &set, Response &response, bool asynch_flag=false)
 Provides a "mapping" of variables to responses using a simulation. Protected due to Interface letter-envelope idiom. More...
 
void manage_failure (const Variables &vars, const ActiveSet &set, Response &response, int failed_eval_id)
 manages a simulation failure using abort/retry/recover/continuation
 
const IntResponseMap & synchronize ()
 executes a blocking schedule for asynchronous evaluations in the beforeSynchCorePRPQueue and returns all jobs More...
 
const IntResponseMap & synchronize_nowait ()
 executes a nonblocking schedule for asynchronous evaluations in the beforeSynchCorePRPQueue and returns a partial set of completed jobs More...
 
void serve_evaluations ()
 run on evaluation servers to serve the iterator master More...
 
void stop_evaluation_servers ()
 used by the iterator master to terminate evaluation servers More...
 
bool check_multiprocessor_analysis (bool warn)
 checks on multiprocessor analysis configuration
 
bool check_asynchronous (bool warn, int max_eval_concurrency)
 checks on asynchronous configuration (for direct interfaces)
 
bool check_multiprocessor_asynchronous (bool warn, int max_eval_concurrency)
 checks on asynchronous settings for multiprocessor partitions
 
String final_batch_id_tag ()
 form and return the final batch ID tag
 
void master_dynamic_schedule_analyses ()
 blocking dynamic schedule of all analyses within a function evaluation using message passing More...
 
void serve_analyses_synch ()
 serve the master analysis scheduler and manage one synchronous analysis job at a time More...
 
- Protected Member Functions inherited from Interface
 Interface (BaseConstructor, const ProblemDescDB &problem_db)
 constructor initializes the base class part of letter classes (BaseConstructor overloading avoids infinite recursion in the derived class constructors - Coplien, p. 139) More...
 
 Interface (NoDBBaseConstructor, size_t num_fns, short output_level)
 constructor initializes the base class part of letter classes (NoDBBaseConstructor used for on the fly instantiations without a DB)
 
void init_algebraic_mappings (const Variables &vars, const Response &response)
 Define algebraicACVIndices, algebraicACVIds, and algebraicFnIndices.
 
void asv_mapping (const ActiveSet &total_set, ActiveSet &algebraic_set, ActiveSet &core_set)
 define the evaluation requirements for algebraic_mappings() (algebraic_set) and the core Application/Approximation mapping (core_set) from the total Interface evaluation requirements (total_set)
 
void asv_mapping (const ActiveSet &algebraic_set, ActiveSet &total_set)
 map an algebraic ASV back to original total ordering for asynch recovery
 
void algebraic_mappings (const Variables &vars, const ActiveSet &algebraic_set, Response &algebraic_response)
 evaluate the algebraic_response using the AMPL solver library and the data extracted from the algebraic_mappings file
 
void response_mapping (const Response &algebraic_response, const Response &core_response, Response &total_response)
 combine the response from algebraic_mappings() with the response from derived_map() to create the total response More...
 

Private Member Functions

int cantilever ()
 scaled cantilever test function for optimization
 
int mod_cantilever ()
 unscaled cantilever test function for UQ
 
int cantilever_ml ()
 unscaled cantilever test function for UQ with levels
 
int cyl_head ()
 the cylinder head constrained optimization test fn
 
int multimodal ()
 multimodal UQ test function
 
int log_ratio ()
 the log_ratio UQ test function
 
int short_column ()
 the short_column UQ/OUU test function
 
int lf_short_column ()
 a low fidelity short_column test function
 
int mf_short_column ()
 alternate short_column formulations for < multifidelity or model form studies
 
int alternate_short_column_forms (int form)
 helper fn for alternate forms
 
int side_impact_cost ()
 the side_impact_cost UQ/OUU test function
 
int side_impact_perf ()
 the side_impact_perf UQ/OUU test function
 
int rosenbrock ()
 the Rosenbrock optimization and least squares test fn
 
int modified_rosenbrock ()
 
                          the modified Rosenbrock optimization and

least squares test fn. The modification is the addition of an sin^2 term so that function can not be exactly approximated by a low degree polynomial

 
int generalized_rosenbrock ()
 n-dimensional Rosenbrock (Schittkowski)
 
int extended_rosenbrock ()
 n-dimensional Rosenbrock (Nocedal/Wright)
 
int lf_rosenbrock ()
 a low fidelity version of the Rosenbrock function
 
int extra_lf_rosenbrock ()
 an extra low fidelity version of the Rosenbrock function
 
int mf_rosenbrock ()
 alternate Rosenbrock formulations for < multifidelity or model form studies
 
int lf_poly_prod ()
 modified low fidelity Rosenbrock to test SBO with < hierarchical approximations More...
 
int poly_prod ()
 modified low fidelity Rosenbrock to test SBO with < hierarchical approximations More...
 
int gerstner ()
 the isotropic/anisotropic Gerstner test function family
 
int scalable_gerstner ()
 scalable versions of the Gerstner test family
 
void get_genz_coefficients (int num_dims, Real factor, int c_type, RealVector &c, RealVector &w)
 define coefficients needs for genz model
 
int genz ()
 scalable test functions from the Genz test suite
 
int damped_oscillator ()
 1d-6d that returns field values (ode solution)
 
int steady_state_diffusion_1d ()
 solve the 1d steady-state diffusion eqn < with uncertain field diffusivity More...
 
int ss_diffusion_discrepancy ()
 difference steady_state_diffusion_1d() < across two consecutive resolutions
 
int transient_diffusion_1d ()
 solve the 1d transient diffusion equation < with uncertain scalar diffusivity
 
int tunable_model ()
 
int predator_prey ()
 3 model hierarchy with tunable hyper-parameter(s)
 
int steel_column_cost ()
 solve a predator prey population dynamics model More...
 
int steel_column_perf ()
 the steel_column_perf UQ/OUU test function
 
int sobol_rational ()
 Sobol SA rational test function.
 
int sobol_g_function ()
 Sobol SA discontinuous test function.
 
int sobol_ishigami ()
 Sobol SA transcendental test function.
 
int text_book ()
 the text_book constrained optimization test function
 
int text_book1 ()
 portion of text_book() evaluating the objective fn
 
int text_book2 ()
 portion of text_book() evaluating constraint 1
 
int text_book3 ()
 portion of text_book() evaluating constraint 2
 
int text_book_ouu ()
 the text_book_ouu OUU test function
 
int scalable_text_book ()
 scalable version of the text_book test function
 
int scalable_monomials ()
 simple monomials for UQ exactness testing
 
int mogatest1 ()
 MOP2 from Van Veldhuizen, pp. 5-13.
 
int mogatest2 ()
 MOP2? from Van Veldhuizen, pp. 5-13.
 
int mogatest3 ()
 Srinivas' from Van Veldhuizen, pp. B-5.
 
int illumination ()
 illumination example in Boyd as a general < minimization problem
 
int barnes ()
 barnes test for SBO perforamnce from Rodriguez, < Perez, Renaud, et al. More...
 
int barnes_lf ()
 lo-fi barnes test for SBO perforamnce More...
 
void herbie1D (size_t der_mode, Real xc_loc, std::vector< Real > &w_and_ders)
 1D components of herbie function More...
 
void smooth_herbie1D (size_t der_mode, Real xc_loc, std::vector< Real > &w_and_ders)
 1D components of smooth_herbie function More...
 
void shubert1D (size_t der_mode, Real xc_loc, std::vector< Real > &w_and_ders)
 1D components of shubert function More...
 
int herbie ()
 returns the N-D herbie function More...
 
int smooth_herbie ()
 returns the N-D smooth herbie function More...
 
int shubert ()
 returns the N-D shubert function
 
int bayes_linear ()
 Scalable test function for Bayesian methods, to estimate parameters.
 
int problem18 ()
 
double problem18_f (const double &x)
 
double problem18_g (const double &x)
 
double problem18_Ax (const double &A, const double &x)
 
void separable_combine (Real mult_scale_factor, std::vector< Real > &w, std::vector< Real > &d1w, std::vector< Real > &d2w)
 utility to combine components of separable fns More...
 
Real levenshtein_distance (const String &v)
 Compute Levenshtein distance between v and LEV_REF. More...
 
int salinas ()
 direct interface to the SALINAS structural dynamics code
 
int mc_api_run ()
 direct interface to ModelCenter via API, HKIM 4/3/03 More...
 
int aniso_quad_form ()
 1-D function using a anisotropic quadratic form
 
void steady_state_diffusion_core (SpectralDiffusionModel &model, RealVector &domain_limits)
 shared helper function between steady_state_diffusion_1d() and ss_diffusion_discrepancy()
 

Static Private Attributes

static StringRealMap levenshteinDistanceCache
 Cache results of Levenshtein distance calc for efficiency.
 

Additional Inherited Members

- Protected Attributes inherited from DirectApplicInterface
String iFilterName
 name of the direct function input filter
 
String oFilterName
 name of the direct function output filter
 
driver_t iFilterType
 enum type of the direct function input filter
 
driver_t oFilterType
 enum type of the direct function output filter
 
bool gradFlag
 signals use of fnGrads in direct simulator functions
 
bool hessFlag
 signals use of fnHessians in direct simulator functions
 
size_t numFns
 number of functions in fnVals
 
size_t numVars
 total number of continuous and discrete variables
 
size_t numACV
 total number of continuous variables
 
size_t numADIV
 total number of discete integer variables
 
size_t numADRV
 total number of discete real variables
 
size_t numADSV
 total number of discete string variables
 
size_t numDerivVars
 number of active derivative variables
 
unsigned short localDataView
 bit-wise record of which local data views are active; see enum local_data_t
 
RealVector xC
 continuous variables used within direct simulator fns
 
IntVector xDI
 discrete int variables used within direct simulator fns
 
RealVector xDR
 discrete real variables used within direct simulator fns
 
StringMultiArray xDS
 discrete string variables used within direct simulator fns
 
StringMultiArray xCLabels
 continuous variable labels
 
StringMultiArray xDILabels
 discrete integer variable labels
 
StringMultiArray xDRLabels
 discrete real variable labels
 
StringMultiArray xDSLabels
 discrete string variable labels
 
StringArray xAllLabels
 all variable labels in input spec order
 
RealArray metaData
 real-valued metadata
 
StringArray metaDataLabels
 labels for optional metadata
 
std::map< String, var_tvarTypeMap
 map from variable label to enum
 
std::map< String, driver_tdriverTypeMap
 map from driver name to enum
 
std::map< var_t, Real > xCM
 map from var_t enum to continuous value
 
std::map< var_t, int > xDIM
 map from var_t enum to discrete int value
 
std::map< var_t, Real > xDRM
 map from var_t enum to discrete real value
 
std::map< var_t, String > xDSM
 map from var_t enum to discrete string val
 
std::vector< var_tvarTypeDVV
 var_t enumerations corresponding to DVV components
 
std::vector< var_txCMLabels
 var_t enumerations corresponding to continuous variable labels
 
std::vector< var_txDIMLabels
 var_t enumerations corresponding to discrete integer variable labels
 
std::vector< var_txDRMLabels
 var_t enumerations corresponding to discrete real variable labels
 
std::vector< var_txDSMLabels
 var_t enumerations corresponding to discrete string variable labels
 
ShortArray directFnASV
 class scope active set vector
 
SizetArray directFnDVV
 class scope derivative variables vector
 
RealVector fnVals
 response fn values within direct simulator fns
 
RealMatrix fnGrads
 response fn gradients w/i direct simulator fns
 
RealSymMatrixArray fnHessians
 response fn Hessians within direct fns
 
StringArray analysisDrivers
 the set of analyses within each function evaluation (from the analysis_drivers interface specification)
 
std::vector< driver_tanalysisDriverTypes
 conversion of analysisDrivers to driver_t
 
size_t analysisDriverIndex
 the index of the active analysis driver within analysisDrivers
 
- Protected Attributes inherited from ApplicationInterface
ParallelLibraryparallelLib
 reference to the ParallelLibrary object used to manage MPI partitions for the concurrent evaluations and concurrent analyses parallelism levels
 
bool batchEval
 flag indicating usage of batch evaluation facilities, where a set of jobs is launched and scheduled as a unit rather than individually
 
bool asynchFlag
 flag indicating usage of asynchronous evaluation
 
int batchIdCntr
 maintain a count of the batches
 
bool suppressOutput
 flag for suppressing output on slave processors
 
int evalCommSize
 size of evalComm
 
int evalCommRank
 processor rank within evalComm
 
int evalServerId
 evaluation server identifier
 
bool eaDedMasterFlag
 flag for dedicated master partitioning at ea level
 
int analysisCommSize
 size of analysisComm
 
int analysisCommRank
 processor rank within analysisComm
 
int analysisServerId
 analysis server identifier
 
int numAnalysisServers
 current number of analysis servers
 
bool multiProcAnalysisFlag
 flag for multiprocessor analysis partitions
 
bool asynchLocalAnalysisFlag
 flag for asynchronous local parallelism of analyses
 
int asynchLocalAnalysisConcurrency
 limits the number of concurrent analyses in asynchronous local scheduling and specifies hybrid concurrency when message passing
 
int asynchLocalEvalConcSpec
 user specification for asynchronous local evaluation concurrency
 
int asynchLocalAnalysisConcSpec
 user specification for asynchronous local analysis concurrency
 
int numAnalysisDrivers
 the number of analysis drivers used for each function evaluation (from the analysis_drivers interface specification)
 
IntSet completionSet
 the set of completed fn_eval_id's populated by wait_local_evaluations() and test_local_evaluations()
 
String failureMessage
 base message for managing failed evals; will be followed with more details in screen output
 
- Protected Attributes inherited from Interface
unsigned short interfaceType
 the interface type: enum for system, fork, direct, grid, or approximation
 
String interfaceId
 the interface specification identifier string from the DAKOTA input file
 
bool algebraicMappings
 flag for the presence of algebraic_mappings that define the subset of an Interface's parameter to response mapping that is explicit and algebraic.
 
bool coreMappings
 flag for the presence of non-algebraic mappings that define the core of an Interface's parameter to response mapping (using analysis_drivers for ApplicationInterface or functionSurfaces for ApproximationInterface).
 
short outputLevel
 output verbosity level: {SILENT,QUIET,NORMAL,VERBOSE,DEBUG}_OUTPUT
 
int currEvalId
 identifier for the current evaluation, which may differ from the evaluation counters in the case of evaluation scheduling; used on iterator master as well as server processors. Currently, this is set prior to all invocations of derived_map() for all processors.
 
bool fineGrainEvalCounters
 controls use of fn val/grad/hess counters for detailed evaluation report
 
int evalIdCntr
 total interface evaluation counter
 
int newEvalIdCntr
 new (non-duplicate) interface evaluation counter
 
int evalIdRefPt
 iteration reference point for evalIdCntr
 
int newEvalIdRefPt
 iteration reference point for newEvalIdCntr
 
IntArray fnValCounter
 number of value evaluations by resp fn
 
IntArray fnGradCounter
 number of gradient evaluations by resp fn
 
IntArray fnHessCounter
 number of Hessian evaluations by resp fn
 
IntArray newFnValCounter
 number of new value evaluations by resp fn
 
IntArray newFnGradCounter
 number of new gradient evaluations by resp fn
 
IntArray newFnHessCounter
 number of new Hessian evaluations by resp fn
 
IntArray fnValRefPt
 iteration reference point for fnValCounter
 
IntArray fnGradRefPt
 iteration reference point for fnGradCounter
 
IntArray fnHessRefPt
 iteration reference point for fnHessCounter
 
IntArray newFnValRefPt
 iteration reference point for newFnValCounter
 
IntArray newFnGradRefPt
 iteration reference point for newFnGradCounter
 
IntArray newFnHessRefPt
 iteration reference point for newFnHessCounter
 
IntResponseMap rawResponseMap
 Set of responses returned by either a blocking or nonblocking schedule. More...
 
IntResponseMap cachedResponseMap
 Set of available asynchronous responses completed within a blocking or nonblocking scheduler that cannot be processed in a higher level context and need to be stored for later.
 
StringArray fnLabels
 response function descriptors (used in print_evaluation_summary() and derived direct interface classes); initialized in map() functions due to potential updates after construction
 
bool multiProcEvalFlag
 flag for multiprocessor evaluation partitions (evalComm)
 
bool ieDedMasterFlag
 flag for dedicated master partitioning at the iterator level
 
String evalTagPrefix
 set of period-delimited evaluation ID tags to use in evaluation tagging
 
bool appendIfaceId
 whether to append the interface ID to the prefix during map (default true)
 
String2DArray analysisComponents
 Analysis components for interface types that support them.
 

Detailed Description

Specialization of DirectApplicInterface to embed algebraic test function drivers directly in Dakota

Member Function Documentation

int derived_map_ac ( const Dakota::String &  ac_name)
protectedvirtual

execute an analysis code portion of a direct evaluation invocation

Derived map to evaluate a particular built-in test analysis function

Reimplemented from DirectApplicInterface.

References Dakota::abort_handler(), ApplicationInterface::analysisServerId, TestDriverInterface::aniso_quad_form(), TestDriverInterface::barnes(), TestDriverInterface::barnes_lf(), TestDriverInterface::bayes_linear(), TestDriverInterface::cantilever(), TestDriverInterface::cantilever_ml(), TestDriverInterface::cyl_head(), TestDriverInterface::damped_oscillator(), DirectApplicInterface::driverTypeMap, TestDriverInterface::extended_rosenbrock(), TestDriverInterface::extra_lf_rosenbrock(), TestDriverInterface::generalized_rosenbrock(), TestDriverInterface::genz(), TestDriverInterface::gerstner(), TestDriverInterface::herbie(), TestDriverInterface::illumination(), TestDriverInterface::lf_poly_prod(), TestDriverInterface::lf_rosenbrock(), TestDriverInterface::lf_short_column(), TestDriverInterface::log_ratio(), TestDriverInterface::mc_api_run(), TestDriverInterface::mf_rosenbrock(), TestDriverInterface::mf_short_column(), TestDriverInterface::mod_cantilever(), TestDriverInterface::modified_rosenbrock(), TestDriverInterface::mogatest1(), TestDriverInterface::mogatest2(), TestDriverInterface::mogatest3(), TestDriverInterface::multimodal(), TestDriverInterface::poly_prod(), TestDriverInterface::predator_prey(), TestDriverInterface::rosenbrock(), TestDriverInterface::salinas(), TestDriverInterface::scalable_gerstner(), TestDriverInterface::scalable_monomials(), TestDriverInterface::scalable_text_book(), TestDriverInterface::short_column(), TestDriverInterface::shubert(), TestDriverInterface::side_impact_cost(), TestDriverInterface::side_impact_perf(), TestDriverInterface::smooth_herbie(), TestDriverInterface::sobol_g_function(), TestDriverInterface::sobol_ishigami(), TestDriverInterface::sobol_rational(), TestDriverInterface::ss_diffusion_discrepancy(), TestDriverInterface::steady_state_diffusion_1d(), TestDriverInterface::steel_column_cost(), TestDriverInterface::steel_column_perf(), TestDriverInterface::text_book(), TestDriverInterface::text_book1(), TestDriverInterface::text_book2(), TestDriverInterface::text_book3(), TestDriverInterface::text_book_ouu(), and TestDriverInterface::transient_diffusion_1d().

int lf_poly_prod ( )
private
int poly_prod ( )
private
int steady_state_diffusion_1d ( )
private

solve the 1d steady-state diffusion eqn < with uncertain field diffusivity

Solve the 1D diffusion equation with an uncertain variable coefficient using the spectral Chebyshev collocation method.

del(k del(u) ) = f on [0,1] subject to u(0) = 0 u(1) = 0

Here we set f = -1 and k = 1+4.*sum_d [cos(2*pi*x)/(pi*d)^2*z[d]] d=1,...,num_dims where z_d are random variables, typically i.i.d uniform[-1,1]

References Dakota::abort_handler(), Dakota::find_index(), DirectApplicInterface::fnVals, TestDriverInterface::steady_state_diffusion_core(), DirectApplicInterface::xC, DirectApplicInterface::xDI, DirectApplicInterface::xDILabels, DirectApplicInterface::xDS, and DirectApplicInterface::xDSLabels.

Referenced by TestDriverInterface::derived_map_ac().

int steel_column_cost ( )
private
int barnes ( )
private
int barnes_lf ( )
private
void herbie1D ( size_t  der_mode,
Real  xc_loc,
std::vector< Real > &  w_and_ders 
)
private

1D components of herbie function

1D Herbie function and its derivatives (apart from a multiplicative factor)

Referenced by TestDriverInterface::herbie().

void smooth_herbie1D ( size_t  der_mode,
Real  xc_loc,
std::vector< Real > &  w_and_ders 
)
private

1D components of smooth_herbie function

1D Smoothed Herbie= 1DHerbie minus the high frequency sine term, and its derivatives (apart from a multiplicative factor)

Referenced by TestDriverInterface::smooth_herbie().

void shubert1D ( size_t  der_mode,
Real  xc_loc,
std::vector< Real > &  w_and_ders 
)
private

1D components of shubert function

1D Shubert function and its derivatives (apart from a multiplicative factor)

Referenced by TestDriverInterface::shubert().

int herbie ( )
private
int smooth_herbie ( )
private
void separable_combine ( Real  mult_scale_factor,
std::vector< Real > &  w,
std::vector< Real > &  d1w,
std::vector< Real > &  d2w 
)
private

utility to combine components of separable fns

this function combines N 1D functions and their derivatives to compute a N-D separable function and its derivatives, logic is general enough to support different 1D functions in different dimensions (can mix and match)

References DirectApplicInterface::directFnASV, DirectApplicInterface::directFnDVV, DirectApplicInterface::fnGrads, DirectApplicInterface::fnHessians, DirectApplicInterface::fnVals, DirectApplicInterface::numDerivVars, and DirectApplicInterface::numVars.

Referenced by TestDriverInterface::herbie(), TestDriverInterface::shubert(), and TestDriverInterface::smooth_herbie().

Real levenshtein_distance ( const String &  v)
private

Compute Levenshtein distance between v and LEV_REF.

Levenshtein distance is the number of changes (single character

References Dakota::LEV_REF, and TestDriverInterface::levenshteinDistanceCache.

Referenced by TestDriverInterface::text_book1(), TestDriverInterface::text_book2(), and TestDriverInterface::text_book3().

int mc_api_run ( )
private

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