Download MIDACO 7 for C/C++
midacoc.a Limited Version
MIDACO 7 C/C++ Library File
midaco.h
Header File – the same for C and C++
Example Problems
| Problem Type | Description | C | C++ |
|---|---|---|---|
| NLP | Continuous variables | example_NLP.c | example_NLP.cpp |
| NLPc | NLP with constraints | example_NLPc.c | example_NLPc.cpp |
| IP | Integer variables | example_IP.c | example_IP.cpp |
| IPc | IP with constraints | example_IPc.c | example_IPc.cpp |
| MINLP | Mixed variables | example_MINLP.c | example_MINLP.cpp |
| MINLPc | MINLP with constraints | example_MINLPc.c | example_MINLPc.cpp |
| MO | Multiple Objectives | example_MO.c | example_MO.cpp |
Makefiles
| System | Compiler | File | Command |
|---|---|---|---|
| Linux | gcc | makefile | make |
| Linux | g++ (C++ example) | makefile_gpp_linux | make -f makefile_gpp_linux |
| Linux | Intel oneAPI icx | makefile_intel_linux | make -f makefile_intel_linux |
| macOS | clang | makefile_clang_macos | make -f makefile_clang_macos |
| Windows | MinGW-w64 gcc | makefile_mingw_windows | mingw32-make -f makefile_mingw_windows |
Every makefile builds example_MINLPc with the library file of its system and creates the program run (Windows: run.exe). Another example: change SOURCES in the makefile.
How to Run
- Save
midaco.h, the library file and an example in one folder - Compile and run the example in this folder
gcc -O2 -o run example_MINLPc.c midacoc.a -lm ./run
C++: g++ and example_MINLPc.cpp. Windows: midacoc.lib instead of midacoc.a.
Screenshot and Solution File
© Schlueter Research. All rights reserved.ImprintPrivacyDisclaimer


