Public Member Functions | |
| COLINApplication (Model &model) | |
| constructor | |
| ~COLINApplication () | |
| destructor | |
| void | DoEval (ColinPoint &point, int &priority, ColinResponse *response, bool synch_flag) |
| launch a function evaluation either synchronously or asynchronously | |
| unsigned int | num_evaluation_servers () |
| The value '0' indicates that this is a sequential application. | |
| void | synchronize () |
| blocking retrieval of all pending jobs | |
| int | next_eval () |
| nonblocking query and retrieval of a job if completed | |
| void | blocking_synch (const bool &blocking_synch) |
| construct time. | |
| void | dakota_asynch_flag (const bool &asynch_flag) |
| (asynchFlag not initialized properly at construction). | |
Private Member Functions | |
| void | map_response (ColinResponse &colin_response, const Response &dakota_response) |
| utility function for mapping a DAKOTA response to a COLIN response | |
Private Attributes | |
| Model & | iteratedModel |
| reference to the COLINOptimizer's model passed in the constructor | |
| ActiveSet | activeSet |
| copy/conversion of the COLIN request vector | |
| bool | dakotaModelAsynchFlag |
| a flag for asynchronous DAKOTA evaluations | |
| bool | blockingSynch |
| needed for APPS, to enforce blocking synch despite call of next_eval(). | |
| IntResponseMap | dakotaResponseMap |
| map of DAKOTA responses returned by synchronize_nowait() | |
| size_t | numObjFns |
| number of objective functions | |
| size_t | numNonlinCons |
| number of nonlinear constraints | |
| int | num_real_params |
| number of continuous design variables | |
| int | num_integer_params |
| number of discrete design variables | |
| int | synchronization_state |
| tracks the state of asynchronous evaluations | |
| void DoEval | ( | ColinPoint & | pt, | |
| int & | priority, | |||
| ColinResponse * | prob_response, | |||
| bool | synch_flag | |||
| ) |
launch a function evaluation either synchronously or asynchronously
Converts the ColinPoint variables and request vector to DAKOTA variables and active set vector, performs a DAKOTA function evaluation with synchronization governed by synch_flag, and then copies the Response data to the ColinResponse response (synchronous) or bookkeeps the response object (asynchronous).
| void synchronize | ( | ) |
blocking retrieval of all pending jobs
Blocking synchronize of asynchronous DAKOTA jobs followed by conversion of the Response objects to ColinResponse response objects.
| int next_eval | ( | ) |
nonblocking query and retrieval of a job if completed
Nonblocking job retrieval. Finds a completion (if available), populates the COLIN response, and sets id to the completed job's id. Else set id = -1.
| void map_response | ( | ColinResponse & | colin_response, | |
| const Response & | dakota_response | |||
| ) | [private] |
utility function for mapping a DAKOTA response to a COLIN response
map_response Maps a Response object into a ColinResponse class that is compatable with COLIN.
1.5.1