Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
trac 20766 using base_ring=QQ
Browse files Browse the repository at this point in the history
  • Loading branch information
Frédéric Chapoton committed Jun 3, 2016
1 parent 76cc74d commit 4ce5bce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/geometry/lattice_polytope.py
Original file line number Diff line number Diff line change
Expand Up @@ -6295,7 +6295,7 @@ def positive_integer_relations(points):
for i in range(n_nonpivots):
# Find a non-negative linear combination of relations,
# such that all components are non-negative and the i-th one is 1
MIP = MixedIntegerLinearProgram(maximization=False)
MIP = MixedIntegerLinearProgram(maximization=False, base_ring=QQ)
w = MIP.new_variable(integer=True, nonnegative=True)
b = vector([0] * i + [1] + [0] * (n_nonpivots - i - 1))
MIP.add_constraint(a * w == b)
Expand Down

0 comments on commit 4ce5bce

Please sign in to comment.