First time here? Check out the FAQ!
answered 13 years ago
You may find the use of the MixedIntegerLinearProgram class easier :
http://www.sagemath.org/doc/reference/sage/numerical/mip.html
Nathann