mirror of
https://github.com/Z3Prover/z3
synced 2025-10-08 08:51:55 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
259d4c4e43
commit
d74978c277
15 changed files with 32 additions and 42 deletions
|
@ -538,12 +538,16 @@ lp_status lar_solver::maximize_term(unsigned ext_j,
|
|||
if (column_value_is_integer(j))
|
||||
continue;
|
||||
if (m_int_solver->is_base(j)) {
|
||||
if (!remove_from_basis(j)) // consider a special version of remove_from_basis that would not remove inf_int columns
|
||||
if (!remove_from_basis(j)) { // consider a special version of remove_from_basis that would not remove inf_int columns
|
||||
m_mpq_lar_core_solver.m_r_x = backup;
|
||||
return lp_status::FEASIBLE; // it should not happen
|
||||
}
|
||||
}
|
||||
m_int_solver->patch_nbasic_column(j, false);
|
||||
if (!column_value_is_integer(j))
|
||||
if (!column_value_is_integer(j)) {
|
||||
m_mpq_lar_core_solver.m_r_x = backup;
|
||||
return lp_status::FEASIBLE;
|
||||
}
|
||||
change = true;
|
||||
}
|
||||
if (change) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue