-
-
Notifications
You must be signed in to change notification settings - Fork 399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setRHS is broken #470
Comments
I mean, julia> constr = @addConstraint(m, x + 5 ≤ 10)
x ≤ 5 I'm not sure how we can avoid this. |
Can we keep the constant terms in the |
This was the same thing I was saying last night about the idea of asking for the "value" of a constraint is not very well defined |
For two-sided constraints we already parse the lower bounds and upper bounds separately. I think we need to do the same for simple constraints also. If the RHS isn't a constant, we shouldn't allow |
Gurobi has the same issue: https://groups.google.com/forum/#!topic/gurobi/CjZKKwvREKc |
It seems kind of crazy, but maybe an |
That seems much simpler to explain |
Okay to drop from 0.10? Doesn't seem like anyone has complained about this behavior up to this point. |
I know Seb was playing around with this type of thing, but I think he ended up just using the MPB level functions |
My favorite solution at this point is to tell people to use fixed variables and update the bounds. (Thanks @FransdR) |
We should consider completely removing this function |
setRHS doesn't exist anymore, so closing this |
prints
Most people would reasonably expect the second solution to be 6, not 11.
The text was updated successfully, but these errors were encountered: