Skip to content

Download MIDACO 7 for Fortran

midacof.a Limited Version

MIDACO 7 Fortran Library File

Example Problems

Problem TypeDescriptionFortran77Fortran90
NLPContinuous variablesexample_NLP.fexample_NLP.f90
NLPcNLP with constraintsexample_NLPc.fexample_NLPc.f90
IPInteger variablesexample_IP.fexample_IP.f90
IPcIP with constraintsexample_IPc.fexample_IPc.f90
MINLPMixed variablesexample_MINLP.fexample_MINLP.f90
MINLPcMINLP with constraintsexample_MINLPc.fexample_MINLPc.f90
MOMultiple Objectivesexample_MO.fexample_MO.f90

Makefiles

SystemCompilerFileCommand
Linuxgfortranmakefilemake
LinuxIntel oneAPI ifxmakefile_intel_linuxmake -f makefile_intel_linux
LinuxNVIDIA nvfortranmakefile_nvfortran_linuxmake -f makefile_nvfortran_linux
macOSgfortranmakefile_gfortran_macosmake -f makefile_gfortran_macos
WindowsMinGW-w64 gfortranmakefile_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 the library file and an example in one folder
  2. Compile and run the example in this folder
    gfortran -O2 -o run example_MINLPc.f midacof.a
    ./run

Any Fortran compiler (gfortran, ifx, nvfortran, flang). Windows: midacof.lib instead of midacof.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