mirror of
https://github.com/Z3Prover/z3
synced 2025-08-15 07:15:26 +00:00
format
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
0c98c755ba
commit
c3a373e225
2 changed files with 12 additions and 17 deletions
|
@ -481,12 +481,9 @@ namespace lp {
|
|||
bool lar_solver::remove_from_basis(unsigned j) {
|
||||
lp_assert(is_base(j));
|
||||
unsigned i = row_of_basic_column(j);
|
||||
for (const auto & c : A_r().m_rows[i]) {
|
||||
if (j != c.var() && !is_fixed(c.var())) {
|
||||
for (const auto & c : A_r().m_rows[i])
|
||||
if (j != c.var() && !is_fixed(c.var()))
|
||||
return m_mpq_lar_core_solver.m_r_solver.remove_from_basis_core(c.var(), j);
|
||||
}
|
||||
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -1782,9 +1779,9 @@ namespace lp {
|
|||
update_column_type_and_bound_with_ub(j, kind, right_side, constr_index);
|
||||
else
|
||||
update_column_type_and_bound_with_no_ub(j, kind, right_side, constr_index);
|
||||
if (is_base(j) && column_is_fixed(j)) {
|
||||
|
||||
if (is_base(j) && column_is_fixed(j))
|
||||
m_fixed_base_var_set.insert(j);
|
||||
}
|
||||
|
||||
TRACE("lar_solver_feas", tout << "j = " << j << " became " << (this->column_is_feasible(j)?"feas":"non-feas") << ", and " << (this->column_is_bounded(j)? "bounded":"non-bounded") << std::endl;);
|
||||
}
|
||||
|
|
|
@ -409,11 +409,9 @@ template <typename T, typename X> bool lp_core_solver_base<T, X>::pivot_column_g
|
|||
lp_assert(m_basis_heading[leaving] >= 0);
|
||||
unsigned row_index = m_basis_heading[leaving];
|
||||
// the tableau case
|
||||
if (pivot_column_tableau(entering, row_index))
|
||||
change_basis(entering, leaving);
|
||||
else
|
||||
if (!pivot_column_tableau(entering, row_index))
|
||||
return false;
|
||||
|
||||
change_basis(entering, leaving);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue