Closed Simon-Rey closed 2 years ago
Could confirm that the optimal solution is 0 and -1 is obviously wrong. Solving the .lp with CBC 2.10.3 from the command line interface states the right solution. @Simon-Rey Would you be so kind to provide me the following information:
Thanks for your support
Thanks for your answer!
So I believe optimal solution is for minVar = 0.66667 so objective -0.66667, achieved with p_1 = 0, p_2 = p_3 = 1.
OS is debian 11 bullseye and python-mip is version 1.13.0 installed with pip3.
For the python code, I'll need a bit of time to prepare something readable ;)
Ok it's a bit embarassing, but as expected it's a problem on my side and not on the solver's side. There is no problem, I made some mistakes in the way I am dealing with the solver's output.
Sorry for the inconvenience, and thanks for the support and everything you're doing, it's great working with python-mip :)
Hi all,
I'm not sure if this is a bug or a complete misunderstanding from my side. I have a very simple ILP but the value of the objective at the end seems to be incorrect, or at least it seems to violate a constraint.
Here is the model:
And this is the output:
Now given the formulation of the problem, selecting p_2 and p_3, i.e., setting them to 1 would mean that minVarConstr1_0 says that 0,66667 p_3 - minVar >= -0 and thus that 0,66667 >= minVar. How can the optimal value be 1 then?
Sorry again if this is a trivial thing that I'm missing, I just don't understand the behaviour here.
Thanks for the support,
Simon.