Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I am surprised to hear that the first syntax used to work O_o

This being said, you are not completely lost with the array syntax, e.g.:

 sage: p=MixedIntegerLinearProgram()
 sage: variables = p.new_variable(nonnegative=True)
 sage: x,y,z = variables['x'],variables['y'],variables['z']
 sage: p.set_objective(x + y+ 3*z)