esa / pagmo2

A C++ platform to perform parallel computations of optimisation tasks (global and local) via the asynchronous generalized island model.
https://esa.github.io/pagmo2/
GNU General Public License v3.0
816 stars 161 forks source link

Automating Mixed Integer Optimisation in Pygmo 2 #200

Closed Gapaches closed 6 years ago

Gapaches commented 6 years ago

The example in Pygmo 'Coding a User Defined Problem with an integer part (MINLP)' (https://esa.github.io/pagmo2/docs/python/tutorials/coding_udp_minlp.html) sets the integer decision variables manually to 1 or 0 in the final step. Having too many decision variables to do this manually, how can this be automated? Any good examples? Many thanks in advance

darioizzo commented 6 years ago

this looks more as a python related question than an issue with pagmo. Maybe you can ask for support on our gitter channel? (https://gitter.im/pagmo2/Lobby)

Gapaches commented 6 years ago

Thanks Dario for responding, but this was the pagmo example: 'The relaxed version of the problem has a global optimal solution with x5=0.75822315, x6=0.91463117, which suggests to look for solutions considering the values x5∈[0,1], x6∈[0,1]. For each of the four possible cases we thus fix the box bounds on the last two variables. ' So my question is not how to code the automation, but how in Pygmo one can do mixed integer optimisation without having to hand pick / choose optimal values by hand. Does this explain this better?Many thanks