First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

As explained in the doc of the new_variable method, you should use the nonnegative option:

milp.new_variable(real=True, nonnegative=False)