| 1 | initial version |
For the binary part, when you define the variable as blah = p.new_variable(binary=True), just replace it by blah = p.new_variable(integer=True, nonnegative=True) or blah = p.new_variable(integer=True, nonnegative=False).
If you do not want to add some odd constraints, just to not add them.
To get the integer hull, you can do:
sage: P = p.polyhedron()
sage: Hull = P.integral_points()
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.