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 e29284a commit 62a89aeCopy full SHA for 62a89ae
examples/cutting_stock.py
@@ -89,7 +89,7 @@ def cg():
89
90
# checking if columns with negative reduced cost were produced and
91
# adding them into the restricted master problem
92
- if pricing.objective_value < - EPS:
+ if 1 + pricing.objective_value < - EPS:
93
coeffs = [a[i].x for i in range(m)]
94
column = Column(constraints, coeffs)
95
lambdas.append(master.add_var(obj=1, column=column, name='lambda_%d' % (len(lambdas) + 1)))
0 commit comments