MixedIntegerLinearProgram.set_max bug?
The set_max method in MixedIntegerLinearProgram() does not seem to work correctly if the maximum value specified is 0. Specifically, the input....
Q = MixedIntegerLinearProgram();
xx = Q['xx'];
Q.set_min(xx,0);
Q.get_min(xx)
... returns null, but ....
Q = MixedIntegerLinearProgram();
xx = Q['xx'];
Q.set_min(xx,3);
Q.get_min(xx)
... works fine. Anyone know what's going on here?
This problem seems to be fixed on Sage 5.9, since i get 0 as an answer to your first query as expected. Could you still reproduce it ?