Skip to content

Commit 239d68e

Browse files
committed
return conflict on an empty term in Gomory cuts
1 parent b75367f commit 239d68e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/math/lp/gomory.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -538,8 +538,11 @@ struct create_cut {
538538
create_cut cc(lia.m_t, lia.m_k, lia.m_ex, j, row, lia);
539539
auto r = cc.cut();
540540

541-
if (r != lia_move::cut)
541+
if (r != lia_move::cut) {
542+
if (r == lia_move::conflict)
543+
return lia_move::conflict;
542544
continue;
545+
}
543546
cut_result cr = {cc.m_dep, lia.m_t, lia.m_k, cc.m_polarity, j};
544547
if (abs(cr.polarity) == 1) // need to delay the update of the bounds for j in a polar case, because simplify_inequality relies on the old bounds
545548
polar_vars.push_back( {j, cr.polarity, cc.m_dep} );

0 commit comments

Comments
 (0)