mirror of
https://github.com/Z3Prover/z3
synced 2025-04-27 19:05:51 +00:00
tune backtracking
This commit is contained in:
parent
91c54f6c39
commit
3ed490d4ed
2 changed files with 6 additions and 3 deletions
|
@ -1454,15 +1454,16 @@ namespace lp {
|
|||
vector<unsigned> became_feas;
|
||||
clean_popped_elements(A_r().column_count(), m_mpq_lar_core_solver.m_r_solver.inf_set());
|
||||
std::unordered_set<unsigned> basic_columns_with_changed_cost;
|
||||
auto inf_index_copy = m_mpq_lar_core_solver.m_r_solver.inf_set();
|
||||
for (auto j : inf_index_copy) {
|
||||
m_inf_index_copy.reset();
|
||||
for (auto j : m_mpq_lar_core_solver.m_r_solver.inf_set())
|
||||
m_inf_index_copy.push_back(j);
|
||||
for (auto j : m_inf_index_copy) {
|
||||
if (m_mpq_lar_core_solver.m_r_heading[j] >= 0) {
|
||||
continue;
|
||||
}
|
||||
// some basic columns might become non-basic - these columns need to be made feasible
|
||||
numeric_pair<mpq> delta;
|
||||
if (m_mpq_lar_core_solver.m_r_solver.make_column_feasible(j, delta)) {
|
||||
|
||||
change_basic_columns_dependend_on_a_given_nb_column(j, delta);
|
||||
}
|
||||
became_feas.push_back(j);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue