MixedIntegerLinearProgram.set_max bug?

asked 12 years ago

Jeremy Martin gravatar image

updated 9 years ago

vdelecroix gravatar image

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?

Preview: (hide)

Comments

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 ?

tmonteil gravatar imagetmonteil ( 11 years ago )