Strictly positive limits of a variable are not respected #4043
Replies: 2 comments 5 replies
-
@lperron how is this not an issue? |
Beta Was this translation helpful? Give feedback.
-
There is something to investigate indeed. I have just run
Both solutions respect the bounds and both objective function values are 191. To clarify our experiment: We do have an interface that abstracts the use of ortools / pulp so that we can choose the framework and our formulation doesn't change. The steps have been:
Now, all the |
Beta Was this translation helpful? Give feedback.
-
What version of OR-Tools and what language are you using?
Version: 9.8.3296
Language: Python 3.10
Which solver are you using (e.g. CP-SAT, Routing Solver, GLOP, BOP, Gurobi)
Three solvers have been tested: CBC, SCIP, GLOP
What operating system (Linux, Windows, ...) and version?
Windows 10
What did you do?
Together with @SanPen we are optimizing the operation of a hydro system coupled to an electrical grid. Each hydro plant has a variable called "spillage" that symbolizes the lost water exiting the system. This variable has to be positive as it makes no sense to have a magically positive inflow.
What did you expect to see
We were expecting to get non-negative spillages.
What did you see instead?
Solving the problem with OR-Tools yields a value of -90.0 for the spillage at node 3 at the first time step (NodeSpillage_3_0). We tried reproducing the same problem with PuLP and we got non-negative results which we deem as correct. For comparison purposes, we are attaching both LP and MPS models from OR-Tools and PuLP.
Spillage_LP_MPS.zip
Beta Was this translation helpful? Give feedback.
All reactions