We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9660827 commit 6820d2aCopy full SHA for 6820d2a
src/sage/numerical/linear_functions.pyx
@@ -1579,7 +1579,10 @@ cdef class LinearConstraint(LinearFunctionOrConstraint):
1579
while True:
1580
yield (lhs, rhs)
1581
lhs = rhs
1582
- rhs = next(term_iter)
+ try:
1583
+ rhs = next(term_iter)
1584
+ except StopIteration:
1585
+ return
1586
1587
def inequalities(self):
1588
"""
@@ -1612,7 +1615,10 @@ cdef class LinearConstraint(LinearFunctionOrConstraint):
1612
1615
1613
1616
1614
1617
1618
1619
1620
1621
1622
1623
def _repr_(self):
1624
r"""
0 commit comments