We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1a39b8 commit 5b9fdcfCopy full SHA for 5b9fdcf
src/math/lp/gomory.cpp
@@ -316,7 +316,7 @@ class create_cut {
316
lar_term t = lia.lra.unfold_nested_subterms(m_t);
317
auto pol = t.coeffs_as_vector();
318
m_t.clear();
319
- if (pol.size() == 1) {
+ if (pol.size() == 1 && is_int(pol[0].second)) {
320
TRACE("gomory_cut_detail", tout << "pol.size() is 1" << std::endl;);
321
auto const& [a, v] = pol[0];
322
lp_assert(is_int(v));
0 commit comments