Skip to content

Commit d084da5

Browse files
authored
Remove the workaround for current GLPK.jl.
1 parent 0b2a2b1 commit d084da5

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

examples/cutting_stock_column_generation.jl

Lines changed: 1 addition & 6 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

0 commit comments

Comments
 (0)