Skip to content

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++

Download

Example Problems

Problem TypeDescriptionCC++
NLPContinuous variablesexample_NLP.cexample_NLP.cpp
NLPcNLP with constraintsexample_NLPc.cexample_NLPc.cpp
IPInteger variablesexample_IP.cexample_IP.cpp
IPcIP with constraintsexample_IPc.cexample_IPc.cpp
MINLPMixed variablesexample_MINLP.cexample_MINLP.cpp
MINLPcMINLP with constraintsexample_MINLPc.cexample_MINLPc.cpp
MOMultiple Objectivesexample_MO.cexample_MO.cpp

Makefiles

SystemCompilerFileCommand
Linuxgccmakefilemake
Linuxg++ (C++ example)makefile_gpp_linuxmake -f makefile_gpp_linux
LinuxIntel oneAPI icxmakefile_intel_linuxmake -f makefile_intel_linux
macOSclangmakefile_clang_macosmake -f makefile_clang_macos
WindowsMinGW-w64 gccmakefile_mingw_windowsmingw32-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

  1. Save midaco.h, the library file and an example in one folder
  2. 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

Console output of example_MINLPc
Console
MIDACO_SOLUTION.TXT of example_MINLPcMIDACO_SOLUTION.TXT of example_MINLPc
MIDACO_SOLUTION.TXT