$extrastylesheet
Dakota  Version 6.2
Public Member Functions | Protected Member Functions | Private Member Functions
SerialDirectApplicInterface Class Reference

Sample derived interface class for testing serial simulator plug-ins using assign_rep(). More...

Inheritance diagram for SerialDirectApplicInterface:
DirectApplicInterface ApplicationInterface Interface

List of all members.

Public Member Functions

 SerialDirectApplicInterface (const Dakota::ProblemDescDB &problem_db)
 constructor
 ~SerialDirectApplicInterface ()
 destructor

Protected Member Functions

int derived_map_ac (const Dakota::String &ac_name)
 execute an analysis code portion of a direct evaluation invocation
void derived_map_asynch (const Dakota::ParamResponsePair &pair)
 no-op hides base error; job batching occurs within wait_local_evaluations()
void wait_local_evaluations (Dakota::PRPQueue &prp_queue)
 evaluate the batch of jobs contained in prp_queue
void test_local_evaluations (Dakota::PRPQueue &prp_queue)
 invokes wait_local_evaluations() (no special nowait support)
void set_communicators_checks (int max_eval_concurrency)
 no-op hides default run-time error checks at DirectApplicInterface level

Private Member Functions

int rosenbrock (const Dakota::RealVector &c_vars, short asv, Dakota::Real &fn_val, Dakota::RealVector &fn_grad, Dakota::RealSymMatrix &fn_hess)
 Rosenbrock plug-in test function.

Detailed Description

Sample derived interface class for testing serial simulator plug-ins using assign_rep().

The plug-in SerialDirectApplicInterface resides in namespace SIM and uses a copy of rosenbrock() to perform serial parameter to response mappings. It is used to demonstrate plugging in a serial direct analysis driver into Dakota in library mode. Test input files can then use an analysis_driver of "plugin_rosenbrock".


Member Function Documentation

void test_local_evaluations ( Dakota::PRPQueue &  prp_queue) [inline, protected]

invokes wait_local_evaluations() (no special nowait support)

For use by ApplicationInterface::serve_evaluations_asynch(), which can provide a batch processing capability within message passing schedulers (called using chain IteratorScheduler::run_iterator() --> Model::serve() --> ApplicationInterface::serve_evaluations() --> ApplicationInterface::serve_evaluations_asynch()).

References SerialDirectApplicInterface::wait_local_evaluations().


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