Skip to main content
This C-API to evaluate a Meta model of Optimal Prognosis (MOP) provides tools to load and work with a previously generated MOP contained in an optiSLang monitoring database file (*.omdb). An MOP is built by optiSLang for multiple scalar or signal responses that depend on several selectable input parameters. The meta model provides the prognosis quality, the Coefficient of Prognosis (CoP), and can be evaluated independently of the original simulation data. From the .omdb file, the following information can be extracted:
  • Names and number of the input parameters
  • Names and number of the response parameters
  • Names and number of the different criteria
  • Bounds of the input parameters
  • Reference value per parameter
  • CoP values per response
  • Filtered states per response Based on the approximated designs, related information can be extracted via this API:
  • Error values
  • Density values
  • Criteria results (of the criteria defined in the .omdb file)
  • Gradient values, density value and errors per response parameter

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.

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