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

 MIDACO for Text-I/O interfaces MIDACO with virtually any application (like LS-Dyna, KNIME, Abacus,...) and generally with any kind of executable. 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 "variables.txt" input file and receive the corresponding F and G values as "objectives.txt" output file from the application model evaluator. In case of the parallel examples, the template will create a temporary private 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, as the here presented examples just illustrate one possible way to achieve this in 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

Note: Potentially change the permission to allow the execution of the blackbox file

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

  

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