mirror of
https://github.com/Z3Prover/z3
synced 2025-04-14 12:58:44 +00:00
reject rows with columns with big numbers for lp bound propagation
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
parent
f423642e9b
commit
c0b55d1435
|
@ -135,9 +135,15 @@ namespace lp {
|
||||||
|
|
||||||
|
|
||||||
bool lar_solver::row_has_a_big_num(unsigned i) const {
|
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())
|
if (c.coeff().is_big())
|
||||||
return true;
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue