Download MIDACO for Text - I/O

 Download  MIDACO 6.0  examples for general text file based input / output

 

 

Main Program

 

( Python Code )

Blackbox Executable

 

blackbox_source.zip

 

 

 Description

 

Windows

example_NLP.py.txt

blackbox.exe (zip)

 

NLP example ( EASY )

 

example_MINLPc.py.txt

blackbox.exe (zip)

 MINLPc example

with parallel evaluation

example_MO.py.txt

blackbox.exe (zip)

Multi-Objective example

with parallel evaluation

example_ADVANCED.py.txt

blackbox.exe (zip)

Advanced example

with parallel evaluation and

further system commands

Mac

&

Linux

example_NLP.py.txt

 

blackbox   (Mac)

blackbox  (Linux)

 

 

NLP example ( EASY )

 

example_MINLPc.py.txt

blackbox   (Mac)

blackbox  (Linux)

 MINLPc example

with parallel evaluation

example_MO.py.txt

blackbox   (Mac)

blackbox  (Linux)

 Multi-Objective example

with parallel evaluation

example_ADVANCED.py.txt

 

 

blackbox   (Mac)

blackbox  (Linux)

 

Advanced example

with parallel evaluation and

further system commands

 

The Text-I/O examples interface MIDACO with virtually any application (like LS-Dyna, Comsol, Ansys,...) and generally with any kind of executable that represents and optimization model simulation. While MIDACO is executed from some programming language (in above examples Python is used) it will communicate with the application model evaluator (blackbox_source.zip) only by passing the X variables as input file "variables.txt" and receive the corresponding F and G values as output file  "objectives.txt" from the blackbox evaluator. In case of the parallel examples, the template will create a temporary private folder (called EVALUATION_FOLDER) for each thread, then copy the evaluator into that temporary folder and execute it. The format of the text files (and even their file type) can freely be adopted to any specific application at hand. The here presented examples just illustrate one possible way to achieve a general Text - I/O gateway via Python.

 

How to run MIDACO examples for general Text-I/O

Step 1 Download some example file, e.g. example_NLP.py.txt for Windows
Step 2

Download the corresponding blackbox executable file, e.g. blackbox.exe (zip) for NLP

Step 3 Download midaco.py.txt and the appropriate library file (e.g. midacopy.dll) from here
Step 4 Store all files in the same folder on your system (e.g. Desktop)
Step 5 Open console, navigate to folder and execute example with Python

 

Note:  The advanced examples are particularly well suited to be used with Spark parallelization

 

  

Any problems running MIDACO? Please click here or contact us.