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

Derived model class which utilizes a single interface to map variables into responses. More...

Inheritance diagram for SingleModel:
Model

List of all members.

Public Member Functions

 SingleModel (ProblemDescDB &problem_db)
 constructor
 ~SingleModel ()
 destructor

Protected Member Functions

Interfacederived_interface ()
 return userDefinedInterface
void derived_compute_response (const ActiveSet &set)
 portion of compute_response() specific to SingleModel (invokes a synchronous map() on userDefinedInterface)
void derived_asynch_compute_response (const ActiveSet &set)
 portion of asynch_compute_response() specific to SingleModel (invokes an asynchronous map() on userDefinedInterface)
const IntResponseMap & derived_synchronize ()
 portion of synchronize() specific to SingleModel (invokes synch() on userDefinedInterface)
const IntResponseMap & derived_synchronize_nowait ()
 portion of synchronize_nowait() specific to SingleModel (invokes synch_nowait() on userDefinedInterface)
void component_parallel_mode (short mode)
 SingleModel only supports parallelism in userDefinedInterface, so this virtual function redefinition is simply a sanity check.
short local_eval_synchronization ()
 return userDefinedInterface synchronization setting
int local_eval_concurrency ()
 return userDefinedInterface asynchronous evaluation concurrency
bool derived_master_overload () const
 flag which prevents overloading the master with a multiprocessor evaluation (request forwarded to userDefinedInterface)
IntIntPair estimate_partition_bounds (int max_eval_concurrency)
 estimate the minimum and maximum partition sizes that can be utilized by this Model
void derived_init_communicators (ParLevLIter pl_iter, int max_eval_concurrency, bool recurse_flag=true)
 set up SingleModel for parallel operations (request forwarded to userDefinedInterface)
void derived_init_serial ()
 set up SingleModel for serial operations (request forwarded to userDefinedInterface).
void derived_set_communicators (ParLevLIter pl_iter, int max_eval_concurrency, bool recurse_flag=true)
 set active parallel configuration for the SingleModel (request forwarded to userDefinedInterface)
void serve_run (ParLevLIter pl_iter, int max_eval_concurrency)
 Service userDefinedInterface job requests received from the master. Completes when a termination message is received from stop_servers().
void stop_servers ()
 executed by the master to terminate userDefinedInterface server operations when SingleModel iteration is complete.
const String & interface_id () const
 return the userDefinedInterface identifier
int evaluation_id () const
 return the current evaluation id for the SingleModel (request forwarded to userDefinedInterface)
bool evaluation_cache () const
 return flag indicated usage of an evaluation cache by the SingleModel (request forwarded to userDefinedInterface)
void set_evaluation_reference ()
 set the evaluation counter reference points for the SingleModel (request forwarded to userDefinedInterface)
void fine_grained_evaluation_counters ()
 request fine-grained evaluation reporting within the userDefinedInterface
void print_evaluation_summary (std::ostream &s, bool minimal_header=false, bool relative_count=true) const
 print the evaluation summary for the SingleModel (request forwarded to userDefinedInterface)
void eval_tag_prefix (const String &eval_id_str)
 set the hierarchical eval ID tag prefix

Private Attributes

Interface userDefinedInterface
 the interface used for mapping variables to responses

Detailed Description

Derived model class which utilizes a single interface to map variables into responses.

The SingleModel class is the simplest of the derived model classes. It provides the capabilities of the original Model class, prior to the development of surrogate and nested model extensions. The derived response computation and synchronization functions utilize a single interface to perform the function evaluations.


Member Function Documentation

void eval_tag_prefix ( const String &  eval_id_str) [protected, virtual]

set the hierarchical eval ID tag prefix

SingleModel doesn't need to change the tagging, so just forward to Interface

Reimplemented from Model.

References Interface::eval_tag_prefix(), and SingleModel::userDefinedInterface.


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