| 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)
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.