Skip to main content

optiSLang MOPSolver API 2024 R1

mopsolver_api2_shared

Last update: 16.07.2025
Go to the documentation of this file.
1
5#ifndef DYNARDO_MOPSOLVERAPI2_SHARED_H
6#define DYNARDO_MOPSOLVERAPI2_SHARED_H
7
8#include "mopsolver_api_shared.h"
9
10
23 SOLVE_ERRORS = 16
24};
25
34 DIM_CRITERIA = 4
35};
36
46};
47
58 RESP_ERRORS = 8
59};
60
64 dmop2_success = 0,
65
66 dmop2_error = 1,
67 dmop2_exception_occured = 2,
68 dmop2_custom_interface_not_enabled = 4,
69
70 dmop2_wrong_input_argument = 41
71};
72
73
77DYNARDO_MOPSOLVER_API
78const char* dmop2_getLastError();
79
84DYNARDO_MOPSOLVER_API
85int dmop2_free(void* _pointer);
86
90DYNARDO_MOPSOLVER_API
91const char* dmop2_get_version_str();
92
96DYNARDO_MOPSOLVER_API
97int dmop2_cleanup();
98
101DYNARDO_MOPSOLVER_API
102int dmop2_set_paths_for_custom_interface(const char* _program_path,
103 const char* _python_home,
104 const char* const* _python_paths,
105 unsigned int _num_python_paths,
106 const char* const* _script_paths,
107 unsigned int _num_script_paths,
108 const char* _oop_path);
109
110#endif
DYNARDO_MOPSOLVER_API int dmop2_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)
Definition: mopsolver_dll.cpp:1374
DYNARDO_MOPSOLVER_API const char * dmop2_get_version_str()
Definition: mopsolver_dll.cpp:1354
DMOP2_PER_RESPONSE_FLAG
Definition: mopsolver_api2_shared.h:50
@ RESP_EXTRAPOLATE
if set, extrapolation is activated
Definition: mopsolver_api2_shared.h:52
@ RESP_GRADIENTS
if set, the gradient values of the response are written to the output array
Definition: mopsolver_api2_shared.h:54
@ RESP_ERRORS
if set, the errors of the response are written to the output array
Definition: mopsolver_api2_shared.h:58
@ RESP_DENSITIES
if set, the density value of the response is written to the output array
Definition: mopsolver_api2_shared.h:56
DMOP2_NAME_FLAG
Definition: mopsolver_api2_shared.h:39
@ NAME_CRITERIA
if set, the names of the criteria are returned
Definition: mopsolver_api2_shared.h:45
@ NAME_INPUTS
if set, the names of the inputs are returned
Definition: mopsolver_api2_shared.h:41
@ NAME_RESPONSES
if set, the names of the outputs are returned
Definition: mopsolver_api2_shared.h:43
DYNARDO_MOPSOLVER_API int dmop2_free(void *_pointer)
Definition: mopsolver_dll.cpp:1312
DMOP2_SOLVE_FLAG
Definition: mopsolver_api2_shared.h:13
@ SOLVE_DENSITIES
if set, the density values are written to the output array
Definition: mopsolver_api2_shared.h:21
@ SOLVE_ERRORS
if set, the error values (CoP, RMSE, error, absolute error) are written to the output array
Definition: mopsolver_api2_shared.h:23
@ SOLVE_RESPONSES
if set, the response values are written to the output array
Definition: mopsolver_api2_shared.h:17
@ SOLVE_EXTRAPOLATE
if set, extrapolation is activated
Definition: mopsolver_api2_shared.h:15
@ SOLVE_CRITERIA
if set, the criteria values are written to the output array
Definition: mopsolver_api2_shared.h:19
DYNARDO_MOPSOLVER_API int dmop2_cleanup()
Definition: mopsolver_dll.cpp:1335
DYNARDO_MOPSOLVER_API const char * dmop2_getLastError()
Definition: mopsolver_dll.cpp:1304
DMOP2_DIMENSION_FLAG
Definition: mopsolver_api2_shared.h:28
@ DIM_CRITERIA
if set, the number of criteria is written to the output array
Definition: mopsolver_api2_shared.h:34
@ DIM_RESPONSES
if set, the number of responses is written to the output array
Definition: mopsolver_api2_shared.h:32
@ DIM_INPUTS
if set, the number of inputs is written to the output array
Definition: mopsolver_api2_shared.h:30
DMOP2_RETURN_CODES
Definition: mopsolver_api2_shared.h:63

Connect with Ansys