mirror of
https://github.com/Z3Prover/z3
synced 2025-04-28 19:35:50 +00:00
always call find_feasible_solution in move_nbasic_columns_to_bounds()
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
parent
ba40a5752f
commit
f8037ffda4
2 changed files with 2 additions and 8 deletions
|
@ -35,6 +35,7 @@ namespace lp {
|
|||
lra.push();
|
||||
if (!tighten_terms_for_cube()) {
|
||||
lra.pop();
|
||||
lra.set_status(lp_status::OPTIMAL);
|
||||
return lia_move::undef;
|
||||
}
|
||||
|
||||
|
@ -42,7 +43,6 @@ namespace lp {
|
|||
if (st != lp_status::FEASIBLE && st != lp_status::OPTIMAL) {
|
||||
TRACE("cube", tout << "cannot find a feasiblie solution";);
|
||||
lra.pop();
|
||||
lra.set_status(lp_status::OPTIMAL);
|
||||
lra.move_non_basic_columns_to_bounds();
|
||||
// it can happen that we found an integer solution here
|
||||
return !lra.r_basis_has_inf_int()? lia_move::sat: lia_move::undef;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue