mirror of
https://github.com/Z3Prover/z3
synced 2026-07-26 17:02:38 +00:00
omit adding rows for affine relations if it is true in the current model
This commit is contained in:
parent
1d83ecb9de
commit
e0f978f7cd
1 changed files with 2 additions and 0 deletions
|
|
@ -283,6 +283,8 @@ namespace nla {
|
|||
}
|
||||
|
||||
bool monomial_bounds::propagate_nonfixed(monic const& m, rational const& k, lpvar w) {
|
||||
if (c().val(m.var()) == k * c().val(w))
|
||||
return false;
|
||||
vector<std::pair<lp::mpq, unsigned>> coeffs;
|
||||
coeffs.push_back({-k, w});
|
||||
coeffs.push_back({rational::one(), m.var()});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue