You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It ends up with X1_i = 0 and X2_i = 10 as a solution.
I found out that the new objective is improperly converted to LP format. Rulp generates the following LP model:
Maximize
obj: - X1 + 2 X2
Subject to
c0: X1 + X2 = 10
Bounds
0 <= X1
0 <= X2
General
X1 X2
End
When I use minus sign before the parenthesed expression, it reverses the first component's sign only. Shouldn't it reverse the signs of all the parenthesed components?
The text was updated successfully, but these errors were encountered:
Hey @tjozwik
Thank you, you're right, looks like that bug has been there unreported for almost a decade!
I've pushed what I believe is the appropriate fix. Would you mind testing version 0.0.46 and letting me know if the results are as expected?
Let's have a simple optimization problem with integer variables -
X2_i
andX1_i
.It may be rewritten as minimization, of course. But it's not the case of the issue.
Optimal solution is achieved for
X1_i = 10
andX2_i = 0
.When adding additional parentheses into my objective, I'm getting invalid results:
It ends up with
X1_i = 0
andX2_i = 10
as a solution.I found out that the new objective is improperly converted to LP format. Rulp generates the following LP model:
When I use minus sign before the parenthesed expression, it reverses the first component's sign only. Shouldn't it reverse the signs of all the parenthesed components?
The text was updated successfully, but these errors were encountered: