Skip to content

Commit a50f3a8

Browse files
committed
Remove the workaround for current GLPK.jl.
1 parent 6d8d498 commit a50f3a8

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

examples/cutting_stock_column_generation.jl

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,7 @@ function example_cutting_stock(; max_gen_cols::Int=5000)
133133
break
134134
end
135135

136-
new_pattern = try
137-
solve_pricing(dual.(demand_satisfaction), maxwidth, widths, rollcost, demand, prices)
138-
catch
139-
# At the final iteration, GLPK has dual values, but at least one of them is 0.0, and thus GLPK crashes.
140-
break
141-
end
136+
new_pattern = solve_pricing(dual.(demand_satisfaction), maxwidth, widths, rollcost, demand, prices)
142137

143138
# No new pattern to add to the formulation: done!
144139
if new_pattern === nothing
@@ -182,7 +177,7 @@ function example_cutting_stock(; max_gen_cols::Int=5000)
182177
warn("Final master not optimal ($ncols patterns)")
183178
end
184179

185-
@test JuMP.objective_value(m) 78599.0 atol = 1e-3
180+
@test JuMP.objective_value(m) 78374.0 atol = 1e-3
186181
end
187182

188183
example_cutting_stock()

0 commit comments

Comments
 (0)