/home/lgraenin/develop/optiSLang/protos/mopsolver/mopsolver_api.h File Reference
Last update: 10.07.2023
/home/lgraenin/develop/optiSLang/protos/mopsolver/mopsolver_api.h File Reference
#include "mopsolver_api_shared.h"
Go to the source code of this file.
Functions | |
DYNARDO_MOPSOLVER_API int | dmop_hasSurrogate (const char *_omdbfile) |
DYNARDO_MOPSOLVER_API int | dmop_getDimensions (const char *_omdbfile, int *_num_inputs, int *_num_responses) |
DYNARDO_MOPSOLVER_API int | dmop_solve_extrapolate (const char *_omdbfile, unsigned int _num_designs, const double *_inputs, double *_responses, int _extrapolate) |
DYNARDO_MOPSOLVER_API int | dmop_solve (const char *_omdbfile, unsigned int _num_designs, const double *_inputs, double *_responses) |
DYNARDO_MOPSOLVER_API int | dmop_gradients_per_response_extrapolate (const char *_omdbfile, unsigned int _num_designs, const double *_inputs, const char *_response_name, double *_gradients, int _extrapolate) |
DYNARDO_MOPSOLVER_API int | dmop_gradients_per_response (const char *_omdbfile, unsigned int _num_designs, const double *_inputs, const char *_response_name, double *_gradients) |
DYNARDO_MOPSOLVER_API int | dmop_errors_per_response_extrapolate (const char *_omdbfile, unsigned int _num_designs, const double *_inputs, const char *_response_name, double *_errors, int _extrapolate) |
DYNARDO_MOPSOLVER_API int | dmop_errors_per_response (const char *_omdbfile, unsigned int _num_designs, const double *_inputs, const char *_response_name, double *_errors) |
DYNARDO_MOPSOLVER_API int | dmop_density_per_response_extrapolate (const char *_omdbfile, unsigned int _num_designs, const double *_inputs, const char *_response_name, double *_density, unsigned int _size_density, int _extrapolate) |
DYNARDO_MOPSOLVER_API int | dmop_density_per_response (const char *_omdbfile, unsigned int _num_designs, const double *_inputs, const char *_response_name, double *_density, unsigned int _size_density) |
DYNARDO_MOPSOLVER_API int | dmop_getInputNames (const char *_omdbfile, char **_input_names) |
DYNARDO_MOPSOLVER_API int | dmop_getInputNamesWithDelimiter (const char *_omdbfile, char **_input_names, const char *_delimiter) |
DYNARDO_MOPSOLVER_API int | dmop_getOutputNames (const char *_omdbfile, char **_response_names) |
DYNARDO_MOPSOLVER_API int | dmop_getOutputNamesWithDelimiter (const char *_omdbfile, char **_response_names, const char *_delimiter) |
DYNARDO_MOPSOLVER_API int | dmop_getInputBounds (const char *_omdbfile, double *_limits) |
DYNARDO_MOPSOLVER_API int | dmop_getInputBoundsPerParameter (const char *_omdbfile, const char *_param_name, double *_limits) |
DYNARDO_MOPSOLVER_API int | dmop_getReferenceValuePerParameter (const char *_omdbfile, const char *_param_name, double *_ref_val) |
DYNARDO_MOPSOLVER_API int | dmop_getCoPValuesPerResponse (const char *_omdbfile, const char *_response_name, double *_cop_vals) |
DYNARDO_MOPSOLVER_API int | dmop_getFilteredStatesPerResponse (const char *_omdbfile, const char *_response_name, int *_filtered_states) |
DYNARDO_MOPSOLVER_API const char * | dmop_getLastError () |
DYNARDO_MOPSOLVER_API int | dmop_allocate_and_getInputBounds (const char *_omdbfile, double **_limits) |
DYNARDO_MOPSOLVER_API int | dmop_allocate_and_getInputBoundsPerParameter (const char *_omdbfile, const char *_param_name, double **_limits) |
DYNARDO_MOPSOLVER_API int | dmop_allocate_and_getCoPValuesPerResponse (const char *_omdbfile, const char *_response_name, double **_cop_vals) |
DYNARDO_MOPSOLVER_API int | dmop_allocate_and_getFilteredStatesPerResponse (const char *_omdbfile, const char *_response_name, int **_filtered_states) |
DYNARDO_MOPSOLVER_API int | dmop_allocate_and_solve_extrapolate (const char *_omdbfile, unsigned int _num_designs, const double *_inputs, double **_responses, int _extrapolate) |
DYNARDO_MOPSOLVER_API int | dmop_allocate_and_solve (const char *_omdbfile, unsigned int _num_designs, const double *_inputs, double **_responses) |
DYNARDO_MOPSOLVER_API int | dmop_hasSurrogate_hash (const char *_omdbfile, const char *_hash) |
DYNARDO_MOPSOLVER_API int | dmop_getDimensions_hash (const char *_omdbfile, int *_num_inputs, int *_num_responses, const char *_hash) |
DYNARDO_MOPSOLVER_API int | dmop_solve_extrapolate_hash (const char *_omdbfile, unsigned int _num_designs, const double *_inputs, double *_responses, int _extrapolate, const char *_hash) |
DYNARDO_MOPSOLVER_API int | dmop_allocate_and_solve_extrapolate_hash (const char *_omdbfile, unsigned int _num_designs, const double *_inputs, double **_responses, int _extrapolate, const char *_hash) |
DYNARDO_MOPSOLVER_API int | dmop_solve_hash (const char *_omdbfile, unsigned int _num_designs, const double *_inputs, double *_responses, const char *_hash) |
DYNARDO_MOPSOLVER_API int | dmop_gradients_per_response_extrapolate_hash (const char *_omdbfile, unsigned int _num_designs, const double *_inputs, const char *_response_name, double *_gradients, int _extrapolate, const char *_hash) |
DYNARDO_MOPSOLVER_API int | dmop_gradients_per_response_hash (const char *_omdbfile, unsigned int _num_designs, const double *_inputs, const char *_response_name, double *_gradients, const char *_hash) |
DYNARDO_MOPSOLVER_API int | dmop_errors_per_response_extrapolate_hash (const char *_omdbfile, unsigned int _num_designs, const double *_inputs, const char *_response_name, double *_errors, int _extrapolate, const char *_hash) |
DYNARDO_MOPSOLVER_API int | dmop_errors_per_response_hash (const char *_omdbfile, unsigned int _num_designs, const double *_inputs, const char *_response_name, double *_errors, const char *_hash) |
DYNARDO_MOPSOLVER_API int | dmop_density_per_response_extrapolate_hash (const char *_omdbfile, unsigned int _num_designs, const double *_inputs, const char *_response_name, double *_density, unsigned int _size_density, int _extrapolate, const char *_hash) |
DYNARDO_MOPSOLVER_API int | dmop_density_per_response_hash (const char *_omdbfile, unsigned int _num_designs, const double *_inputs, const char *_response_name, double *_density, unsigned int _size_density, const char *_hash) |
DYNARDO_MOPSOLVER_API int | dmop_allocate_and_solve_hash (const char *_omdbfile, unsigned int _num_designs, const double *_inputs, double **_responses, const char *_hash) |
DYNARDO_MOPSOLVER_API int | dmop_getInputNames_hash (const char *_omdbfile, char **_input_names, const char *_hash) |
DYNARDO_MOPSOLVER_API int | dmop_getInputNamesWithDelimiter_hash (const char *_omdbfile, char **_input_names, const char *_delimiter, const char *_hash) |
DYNARDO_MOPSOLVER_API int | dmop_getOutputNames_hash (const char *_omdbfile, char **_response_names, const char *_hash) |
DYNARDO_MOPSOLVER_API int | dmop_getOutputNamesWithDelimiter_hash (const char *_omdbfile, char **_response_names, const char *_delimiter, const char *_hash) |
DYNARDO_MOPSOLVER_API int | dmop_getInputBounds_hash (const char *_omdbfile, double *_limits, const char *_hash) |
DYNARDO_MOPSOLVER_API int | dmop_allocate_and_getInputBounds_hash (const char *_omdbfile, double **_limits, const char *_hash) |
DYNARDO_MOPSOLVER_API int | dmop_getInputBoundsPerParameter_hash (const char *_omdbfile, const char *_param_name, double *_limits, const char *_hash) |
DYNARDO_MOPSOLVER_API int | dmop_allocate_and_getInputBoundsPerParameter_hash (const char *_omdbfile, const char *_param_name, double **_limits, const char *_hash) |
DYNARDO_MOPSOLVER_API int | dmop_getReferenceValuePerParameter_hash (const char *_omdbfile, const char *_param_name, double *_ref_val, const char *_hash) |
DYNARDO_MOPSOLVER_API int | dmop_getCoPValuesPerResponse_hash (const char *_omdbfile, const char *_response_name, double *_cop_vals, const char *_hash) |
DYNARDO_MOPSOLVER_API int | dmop_allocate_and_getCoPValuesPerResponse_hash (const char *_omdbfile, const char *_response_name, double **_cop_vals, const char *_hash) |
DYNARDO_MOPSOLVER_API int | dmop_getFilteredStatesPerResponse_hash (const char *_omdbfile, const char *_response_name, int *_filtered_states, const char *_hash) |
DYNARDO_MOPSOLVER_API int | dmop_allocate_and_getFilteredStatesPerResponse_hash (const char *_omdbfile, const char *_response_name, int **_filtered_states, const char *_hash) |
DYNARDO_MOPSOLVER_API const char * | dmop_get_version_str () |
DYNARDO_MOPSOLVER_API int | dmop_cleanup () |
DYNARDO_MOPSOLVER_API int | dmop_set_paths_for_custom_interface (const char *_program_path, const char *_python_home, const char *const *_python_paths, unsigned int _num_python_paths, const char *const *_script_paths, unsigned int _num_script_paths, const char *_oop_path) |
Detailed Description
- Version
- $Rev$
Function Documentation
◆ dmop_allocate_and_getInputBounds()
DYNARDO_MOPSOLVER_API int dmop_allocate_and_getInputBounds | ( | const char * | _omdbfile, |
double ** | _limits | ||
) |
some functionalities also exist with the possibility of internal memory allocation management data put to given pointer is valid up to next call of any dmop_ function (except a call of dmop_getLastError())
◆ dmop_cleanup()
DYNARDO_MOPSOLVER_API int dmop_cleanup | ( | ) |
cleans-up all the memory allocated by the API, use this after you've finished using the API. Objects pointing to memory provided by this API are going to be invalidated.
- Returns
- zero
◆ dmop_density_per_response()
DYNARDO_MOPSOLVER_API int dmop_density_per_response | ( | const char * | _omdbfile, |
unsigned int | _num_designs, | ||
const double * | _inputs, | ||
const char * | _response_name, | ||
double * | _density, | ||
unsigned int | _size_density | ||
) |
calculates the density based on the best metamodels for any given design point
- Parameters
-
[in] _omdbfile zero terminated character string containing the filesystem path to the optiSLang monitoring database file (*.omdb) containing MOP [in] _num_designs number of design points for which density should be calculated [in] _inputs pointer to array of consecutive input values per design point. The length of the array is to be expected as ( _num_designs * dmop_getDimensions._num_inputs ) [in] _response_name zero terminated character string containing the name of the response [out] _density pointer to array of consecutive density calculated per design point. The length of the array is to be expected as ( _num_designs ) [in] _size_density length of the _density array. Expected to be _num_designs
- Returns
- zero if the calculation succeeded
◆ dmop_density_per_response_extrapolate()
DYNARDO_MOPSOLVER_API int dmop_density_per_response_extrapolate | ( | const char * | _omdbfile, |
unsigned int | _num_designs, | ||
const double * | _inputs, | ||
const char * | _response_name, | ||
double * | _density, | ||
unsigned int | _size_density, | ||
int | _extrapolate | ||
) |
calculates the density based on the best metamodels for any given design point
- Parameters
-
[in] _omdbfile zero terminated character string containing the filesystem path to the optiSLang monitoring database file (*.omdb) containing MOP [in] _num_designs number of design points for which density should be calculated [in] _inputs pointer to array of consecutive input values per design point. The length of the array is to be expected as ( _num_designs * dmop_getDimensions._num_inputs ) [in] _response_name zero terminated character string containing the name of the response [out] _density pointer to array of consecutive density calculated per design point. The length of the array is to be expected as ( _num_designs ) [in] _size_density length of the _density array. Expected to be _num_designs [in] _extrapolate one or zero to make the mop solver extrapolate the data
- Returns
- zero if the calculation succeeded
◆ dmop_errors_per_response()
DYNARDO_MOPSOLVER_API int dmop_errors_per_response | ( | const char * | _omdbfile, |
unsigned int | _num_designs, | ||
const double * | _inputs, | ||
const char * | _response_name, | ||
double * | _errors | ||
) |
calculates the errors based on the best metamodels for any given design point
- Parameters
-
[in] _omdbfile zero terminated character string containing the filesystem path to the optiSLang monitoring database file (*.omdb) containing MOP [in] _num_designs number of design points for which errors should be calculated [in] _inputs pointer to array of consecutive input values per design point. The length of the array is to be expected as ( _num_designs * dmop_getDimensions._num_inputs ) [in] _response_name zero terminated character string containing the name of the response [out] _errors pointer to array of consecutive errors calculated per design point. The length of the array is to be expected as ( _num_designs * 4 )
- Returns
- zero if the calculation succeeded
◆ dmop_errors_per_response_extrapolate()
DYNARDO_MOPSOLVER_API int dmop_errors_per_response_extrapolate | ( | const char * | _omdbfile, |
unsigned int | _num_designs, | ||
const double * | _inputs, | ||
const char * | _response_name, | ||
double * | _errors, | ||
int | _extrapolate | ||
) |
calculates the errors based on the best metamodels for any given design point
- Parameters
-
[in] _omdbfile zero terminated character string containing the filesystem path to the optiSLang monitoring database file (*.omdb) containing MOP [in] _num_designs number of design points for which errors should be calculated [in] _inputs pointer to array of consecutive input values per design point. The length of the array is to be expected as ( _num_designs * dmop_getDimensions._num_inputs ) [in] _response_name zero terminated character string containing the name of the response [out] _errors pointer to array of consecutive errors calculated per design point. The length of the array is to be expected as ( _num_designs * 4 ) [in] _extrapolate one or zero to make the mop solver extrapolate the data
- Returns
- zero if the calculation succeeded
◆ dmop_get_version_str()
DYNARDO_MOPSOLVER_API const char * dmop_get_version_str | ( | ) |
get current api version info
- Returns
- version info as string
◆ dmop_getCoPValuesPerResponse()
DYNARDO_MOPSOLVER_API int dmop_getCoPValuesPerResponse | ( | const char * | _omdbfile, |
const char * | _response_name, | ||
double * | _cop_vals | ||
) |
retrieves the CoP values for given response.
- Parameters
-
[in] _omdbfile zero terminated character string containing the filesystem path to the optiSLang monitoring database file (*.omdb) containing MOP [in] _response_name zero terminated character string containing the name of the response [out] _cop_vals pointer to array of CoP values, containing single CoP values for each parameter plus the total CoP. The length of the array is to be expected dmop_getDimensions._num_inputs+1.
- Returns
- zero if the name arrays were created and filled
◆ dmop_getDimensions()
DYNARDO_MOPSOLVER_API int dmop_getDimensions | ( | const char * | _omdbfile, |
int * | _num_inputs, | ||
int * | _num_responses | ||
) |
retrieves problem dimensions i.e. number of active inputs and responses
- Parameters
-
[in] _omdbfile zero terminated character string containing the filesystem path to the optiSLang monitoring database file (*.omdb) containing MOP [out] _num_inputs pointer to an integer variable into which the number of active inputs should be written [out] _num_responses pointer to an integer variable into which the number of active responses of type scalar should be written
- Returns
- zero if the dimensions could be determined
◆ dmop_getFilteredStatesPerResponse()
DYNARDO_MOPSOLVER_API int dmop_getFilteredStatesPerResponse | ( | const char * | _omdbfile, |
const char * | _response_name, | ||
int * | _filtered_states | ||
) |
retrieves the filtered states for given response.
- Parameters
-
[in] _omdbfile zero terminated character string containing the filesystem path to the optiSLang monitoring database file (*.omdb) containing MOP [in] _response_name zero terminated character string containing the name of the response [out] _filtered_states pointer to array of filtered states, 0 is not filtered, 1 is filtered, if the last entry is 1 this means that there is no total CoP. The length of the array is to be expected dmop_getDimensions._num_inputs+1.
- Returns
- zero if the name arrays were created and filled
◆ dmop_getInputBounds()
DYNARDO_MOPSOLVER_API int dmop_getInputBounds | ( | const char * | _omdbfile, |
double * | _limits | ||
) |
retrieves the sampling bounds for all parameters. The array size depends on the number of inputs.
- Parameters
-
[in] _omdbfile zero terminated character string containing the filesystem path to the optiSLang monitoring database file (*.omdb) containing MOP [out] _limits pointer to array of parameter limits, been given alternetly min1, max1, min2, max2 ... . The length of the array is to be expected as ( 2 * dmop_getDimensions._num_inputs ).
- Returns
- zero if the name arrays were created and filled
◆ dmop_getInputBoundsPerParameter()
DYNARDO_MOPSOLVER_API int dmop_getInputBoundsPerParameter | ( | const char * | _omdbfile, |
const char * | _param_name, | ||
double * | _limits | ||
) |
retrieves the sampling bounds for given parameters.
- Parameters
-
[in] _omdbfile zero terminated character string containing the filesystem path to the optiSLang monitoring database file (*.omdb) containing MOP [in] _param_name zero terminated character string containing the name of the parameter [out] _limits pointer to array of parameter limits, first element is min, second is max. The length of the array is 2.
- Returns
- zero if the name arrays were created and filled
◆ dmop_getInputNames()
DYNARDO_MOPSOLVER_API int dmop_getInputNames | ( | const char * | _omdbfile, |
char ** | _input_names | ||
) |
retrieves the names of all active, scalar inputs. The array sizes depend on the number of inputs determined in dmop_getDimensions
- Parameters
-
[in] _omdbfile zero terminated character string containing the filesystem path to the optiSLang monitoring database file (*.omdb) containing MOP [out] _input_names pointer to an array of zero-terminated C-strings. The array is going to be created internally
- Returns
- zero if the name arrays were created and filled
◆ dmop_getInputNamesWithDelimiter()
DYNARDO_MOPSOLVER_API int dmop_getInputNamesWithDelimiter | ( | const char * | _omdbfile, |
char ** | _input_names, | ||
const char * | _delimiter | ||
) |
retrieves the names of all active, scalar inputs. The array sizes depend on the number of inputs determined in dmop_getDimensions
- Parameters
-
[in] _omdbfile zero terminated character string containing the filesystem path to the optiSLang monitoring database file (*.omdb) containing MOP [out] _input_names pointer to an array of zero-terminated C-strings. The array is going to be created internally [in] _delimiter Character to use as a delimiter for the different variable names. Can be used to achieve connectivity to different programs which cannot handle '\0' properly. Passing an empty string will use '\0'.
- Returns
- zero if the name arrays were created and filled
◆ dmop_getLastError()
DYNARDO_MOPSOLVER_API const char * dmop_getLastError | ( | ) |
Calling a solver API function will reset the string, so you'll need to check for errors immediately after the function call.
- Returns
- String describing last error or
nullptr
if no error occured.
◆ dmop_getOutputNames()
DYNARDO_MOPSOLVER_API int dmop_getOutputNames | ( | const char * | _omdbfile, |
char ** | _response_names | ||
) |
retrieves the names of all responses. The array sizes depend on the number of inputs and responses determined in dmop_getDimensions
- Parameters
-
[in] _omdbfile zero terminated character string containing the filesystem path to the optiSLang monitoring database file (*.omdb) containing MOP [out] _response_names pointer to an array of zero-terminated C-strings. The array is going to be created internally
- Returns
- zero if the name arrays were created and filled
◆ dmop_getOutputNamesWithDelimiter()
DYNARDO_MOPSOLVER_API int dmop_getOutputNamesWithDelimiter | ( | const char * | _omdbfile, |
char ** | _response_names, | ||
const char * | _delimiter | ||
) |
retrieves the names of all responses. The array sizes depend on the number of responses determined in dmop_getDimensions
- Parameters
-
[in] _omdbfile zero terminated character string containing the filesystem path to the optiSLang monitoring database file (*.omdb) containing MOP [out] _response_names pointer to an array of zero-terminated C-strings. The array is going to be created internally [in] _delimiter Character to use as a delimiter for the different variable names. Can be used to achieve connectivity to different programs which cannot handle '\0' properly. Passing an empty string will use '\0'.
- Returns
- zero if the name arrays were created and filled
◆ dmop_getReferenceValuePerParameter()
DYNARDO_MOPSOLVER_API int dmop_getReferenceValuePerParameter | ( | const char * | _omdbfile, |
const char * | _param_name, | ||
double * | _ref_val | ||
) |
retrieves the Reference Value for given parameter.
- Parameters
-
[in] _omdbfile zero terminated character string containing the filesystem path to the optiSLang monitoring database file (*.omdb) containing MOP [in] _param_name zero terminated character string containing the name of the parameter [out] _ref_val pointer to reference value.
- Returns
- zero if the name arrays were created and filled
◆ dmop_gradients_per_response()
DYNARDO_MOPSOLVER_API int dmop_gradients_per_response | ( | const char * | _omdbfile, |
unsigned int | _num_designs, | ||
const double * | _inputs, | ||
const char * | _response_name, | ||
double * | _gradients | ||
) |
calculates the gradients based on the best metamodels for any given design point
- Parameters
-
[in] _omdbfile zero terminated character string containing the filesystem path to the optiSLang monitoring database file (*.omdb) containing MOP [in] _num_designs number of design points for which gradients should be calculated [in] _inputs pointer to array of consecutive input values per design point. The length of the array is to be expected as ( _num_designs * dmop_getDimensions._num_inputs ) [in] _response_name zero terminated character string containing the name of the response [out] _gradients pointer to array of consecutive gradients calculated per design point. The length of the array is to be expected as ( _num_designs * dmop_getDimensions._num_inputs )
- Returns
- zero if the calculation succeeded
◆ dmop_gradients_per_response_extrapolate()
DYNARDO_MOPSOLVER_API int dmop_gradients_per_response_extrapolate | ( | const char * | _omdbfile, |
unsigned int | _num_designs, | ||
const double * | _inputs, | ||
const char * | _response_name, | ||
double * | _gradients, | ||
int | _extrapolate | ||
) |
calculates the gradients based on the best metamodels for any given design point
- Parameters
-
[in] _omdbfile zero terminated character string containing the filesystem path to the optiSLang monitoring database file (*.omdb) containing MOP [in] _num_designs number of design points for which gradients should be calculated [in] _inputs pointer to array of consecutive input values per design point. The length of the array is to be expected as ( _num_designs * dmop_getDimensions._num_inputs ) [in] _response_name zero terminated character string containing the name of the response [out] _gradients pointer to array of consecutive gradients calculated per design point. The length of the array is to be expected as ( _num_designs * dmop_getDimensions._num_inputs ) [in] _extrapolate one or zero to make the mop solver extrapolate the data
- Returns
- zero if the calculation succeeded
◆ dmop_hasSurrogate()
DYNARDO_MOPSOLVER_API int dmop_hasSurrogate | ( | const char * | _omdbfile | ) |
test binfile if it contains Surrogate Data
- Parameters
-
[in] _omdbfile zero terminated character string containing the filesystem path to the optiSLang database file (*.omdb) containing MOP
- Returns
- zero if Surrogate is found
◆ dmop_hasSurrogate_hash()
DYNARDO_MOPSOLVER_API int dmop_hasSurrogate_hash | ( | const char * | _omdbfile, |
const char * | _hash | ||
) |
each functionality which needs a file path also exists with a signature check of the given file to ensure that the file was not exchanged by comparing the given value with the internally calculated
◆ dmop_set_paths_for_custom_interface()
DYNARDO_MOPSOLVER_API int dmop_set_paths_for_custom_interface | ( | const char * | _program_path, |
const char * | _python_home, | ||
const char *const * | _python_paths, | ||
unsigned int | _num_python_paths, | ||
const char *const * | _script_paths, | ||
unsigned int | _num_script_paths, | ||
const char * | _oop_path | ||
) |
set up custom interface application-wide
◆ dmop_solve()
DYNARDO_MOPSOLVER_API int dmop_solve | ( | const char * | _omdbfile, |
unsigned int | _num_designs, | ||
const double * | _inputs, | ||
double * | _responses | ||
) |
approximates the active response values based on their best metamodel for any given design point
- Parameters
-
[in] _omdbfile zero terminated character string containing the filesystem path to the optiSLang monitoring database file (*.omdb) containing MOP [in] _num_designs number of design points for which response values should be approximated [in] _inputs pointer to array of consecutive input values per design point. The length of the array is to be expected as ( _num_designs * dmop_getDimensions._num_inputs ) [out] _responses pointer to array of consecutive response values approximated per design point. The length of the array is to be expected as ( _num_designs * dmop_getDimensions._num_responses )
- Returns
- zero if the approximation succeeded
◆ dmop_solve_extrapolate()
DYNARDO_MOPSOLVER_API int dmop_solve_extrapolate | ( | const char * | _omdbfile, |
unsigned int | _num_designs, | ||
const double * | _inputs, | ||
double * | _responses, | ||
int | _extrapolate | ||
) |
approximates the active response values based on their best metamodel for any given design point
- Parameters
-
[in] _omdbfile zero terminated character string containing the filesystem path to the optiSLang monitoring database file (*.omdb) containing MOP [in] _num_designs number of design points for which response values should be approximated [in] _inputs array of consecutive input values per design point. The length of the array is to be expected as ( _num_designs * dmop_getDimensions._num_inputs ) [out] _responses array of consecutive response values approximated per design point. The length of the array is to be expected as ( _num_designs * dmop_getDimensions._num_responses ) [in] _extrapolate one or zero to make the mop solver extrapolate the data
- Returns
- zero if the aproximation succeeded