Introduction
Last update: 22.02.2024
Introduction
C-API to approximate response values based on their best metamodel using an optiSLang monitoring database file (*.omdb). Version 2.0 of the MOPSolver API was introduced to allow approximation of criteria values.
This API provides interfaces to approximate new desigs with the best metamodels:
- Approximate the active response values (e.g. see dmop2_solve())
From the .omdb file, the following information can be extracted:
- Names of inputs, responses and criteria (see dmop2_getNames() and dmop2_getNamesWithDelimiter())
- Number of the inputs, responses and criteria (see dmop2_getDimensions())
- Bounds of the input parameters (see dmop2_getInputBounds() and dmop2_getInputBoundsPerParameter())
- Reference value per parameter (see dmop2_getReferenceValuePerParameter())
- CoP values per response (see dmop2_getCoPValuesPerResponse())
- Filtered states per response (see dmop2_getFilteredStatesPerResponse()) Based on the approximated designs, related information can be extracted via this API:
- Gradient values per response (see dmop_gradients_per_response())
- Error values per response (see dmop_errors_per_response() and dmop_errors_per_response_extrapolate())
- Density values per response (see dmop_density_per_response() and dmop_density_per_response_extrapolate())
Usage example (using a C++ compiler)
Output generated by the code above for a sample .omdb file
Prerequisites
Windows
x86_64 architecture, Microsoft Visual Studio ™ 2017 Professional is recommended
Linux
x86_64 architecture, GCC 7.3+, glibc version 2.12+, Kernel version 2.6 or above
Installation
Extract the archive and set the include (-I) and library (-L) paths appropriate to the new location.
Compile and link
Windows
cl /I../include /I. /DDYNARDO_MOPSOLVER_SHARED ms_api2_sample01_cpp.cpp mopsolver_dll.lib
Linux
g++ -I../include -I. -DDYNARDO_MOPSOLVER_SHARED ms_api2_sample01_cpp.cpp -o ms_api2_sample01 libmopsolver_dll.so