Skip to content

Download MIDACO 7 for Text-I/O

With the Text-I/O interface MIDACO can optimize any program that reads its variables from a text file and writes its objectives and constraints to another one – no programming language binding required.

Text-I/O loop: MIDACO writes variables.txt, the application (a black box) reads it and writes objectives.txt, which MIDACO reads back.Text-I/O loop: MIDACO writes variables.txt, the application (a black box) reads it and writes objectives.txt, which MIDACO reads back.

MIDACO ↔ variables.txt → application → objectives.txt

midaco.py & midacopy

Python Gateway and Library – from the Python page

Python Page
blackbox

Example Blackbox Executable

Example Problems

Problem TypeDescriptionPython
NLPSimplest form, serialexample_NLP.py
MINLPcMINLP with constraints, one folder per evaluationexample_MINLPc.py
ADVANCEDError handling, keeps the best evaluation folderexample_ADVANCED.py

Additional Files

FileDescription
blackbox.cSource code of the example blackbox

How to Run

  1. Save midaco.py, the library file, an example and the blackbox in one folder
  2. Run the example in this folder
    python example_MINLPc.py

Linux and macOS: chmod +x blackbox after the download. Replace the blackbox with your own application.

Screenshot and Solution File

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