Skip to content

Commit

Permalink
InteractiveLPProblem: Have objective_constant_term participate in det…
Browse files Browse the repository at this point in the history
…ermining the common base ring
  • Loading branch information
mkoeppe committed Oct 25, 2024
1 parent 168d74f commit e5035be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/numerical/interactive_simplex_method.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ def __init__(self, A, b, c, x='x',
b = vector(b)
c = vector(c)
if base_ring is None:
base_ring = vector(A.list() + list(b) + list(c)).base_ring()
base_ring = vector(A.list() + list(b) + list(c) + [objective_constant_term]).base_ring()
base_ring = base_ring.fraction_field()
A = A.change_ring(base_ring)
A.set_immutable()
Expand Down

0 comments on commit e5035be

Please sign in to comment.