Skip to content

Commit

Permalink
reject rows with columns with big numbers for lp bound propagation
Browse files Browse the repository at this point in the history
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
  • Loading branch information
levnach committed Sep 21, 2023
1 parent f423642 commit c0b55d1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/math/lp/lar_solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,15 @@ namespace lp {


bool lar_solver::row_has_a_big_num(unsigned i) const {
for (const auto& c : A_r().m_rows[i])
for (const auto& c : A_r().m_rows[i]) {
if (c.coeff().is_big())
return true;
if (column_has_lower_bound(c.var())&& get_lower_bound(c.var()).x.is_big())
return true;
if (column_has_upper_bound(c.var())&& get_upper_bound(c.var()).x.is_big())
return true;
}

return false;
}

Expand Down

0 comments on commit c0b55d1

Please sign in to comment.