Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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?

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)

Q.get_min(xx)

... returns null, but ....

Q = MixedIntegerLinearProgram();
xx = Q['xx'];
Q.set_min(xx,3);
Q.get_min(xx)

Q.get_min(xx)

... works fine. Anyone know what's going on here?