DualGmi: Revert early stop for invalid cuts

This commit is contained in:
2025-07-22 13:43:35 -05:00
parent 5662e5c2e6
commit 1aaf4ebdc4

View File

@@ -132,14 +132,9 @@ function collect_gmi_dual(
@timeit "Compute GMI cuts" begin @timeit "Compute GMI cuts" begin
cuts_s = compute_gmi(data_s, tableau) cuts_s = compute_gmi(data_s, tableau)
try
# Assert cuts have been generated correctly # Assert cuts have been generated correctly
assert_cuts_off(cuts_s, sol_frac) assert_cuts_off(cuts_s, sol_frac)
assert_does_not_cut_off(cuts_s, sol_opt_s) assert_does_not_cut_off(cuts_s, sol_opt_s)
catch
@warn "Numerical error. Aborting."
break
end
# Abort if no cuts are left # Abort if no cuts are left
if length(cuts_s.lb) == 0 if length(cuts_s.lb) == 0