1 | initial version |
Since you already know about MILP
, here are 2 possibities.
If p
is your MixedIntegerLinearProgram
, you can construct its polytope and ask for its integer points:
sage: P = p.polyhedron()
sage: P.integral_points()
Another possiblity, to be used when it is hard to find even a single point, is to use the power of MILP solvers as follows:
2 | No.2 Revision |
Since you already know about MILP
, here are 2 possibities.
If p
is your MixedIntegerLinearProgram
, you can construct its polytope and ask for its integer points:
sage: P = p.polyhedron()
sage: P.integral_points()
This work for "fat" polytopes of low dimension.
Another possiblity, to be used when it is hard to find even a single point, is to use the power of MILP solvers as follows:
3 | No.3 Revision |
Since you already know about MILP
, here are 2 possibities.
If p
is your MixedIntegerLinearProgram
, you can construct its polytope and ask for its integer points:
sage: P = p.polyhedron()
sage: P.integral_points()
This work works for "fat" polytopes of low dimension.
Another possiblity, to be used when it is hard to find even a single point, is to use the power of MILP solvers as follows:
4 | No.4 Revision |
Since you already know about MILP
, here are 2 possibities.
If p
is your MixedIntegerLinearProgram
, you can construct its polytope and ask for its integer points:
sage: P = p.polyhedron()
sage: P.integral_points()
This works for "fat" polytopes of low dimension.
Another possiblity, to be used when it is hard to find even a single point, is to use the power of MILP solvers as follows: