mirror of
https://github.com/Z3Prover/z3
synced 2025-04-13 12:28:44 +00:00
fixes the +- bug in gomory cut
Signed-off-by: Lev <levnach@hotmail.com>
This commit is contained in:
parent
b940b7873b
commit
041458f97a
|
@ -71,7 +71,7 @@ class gomory::imp {
|
|||
else {
|
||||
lp_assert(at_upper(j));
|
||||
// the upper terms are inverted: therefore we have the minus
|
||||
new_a = - (fj < f0? fj / f0 : (- one_minus_fj / one_minus_f0));
|
||||
new_a = fj < f0? (- fj / f0 ) : (one_minus_fj / one_minus_f0);
|
||||
m_k.addmul(new_a, upper_bound(j).x);
|
||||
m_ex.push_justification(column_upper_bound_constraint(j), new_a);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue