mirror of
https://github.com/Z3Prover/z3
synced 2025-05-08 08:15:47 +00:00
adjust hnf
Signed-off-by: Lev Nachmanson <levnach@hotmail.com> change in settings + random in adding terms to hnf Signed-off-by: Lev Nachmanson <levnach@hotmail.com> add terms in hnf from the beginning Signed-off-by: Lev Nachmanson <levnach@hotmail.com> adjusting settings Signed-off-by: Lev Nachmanson <levnach@hotmail.com> remove non used determinant() Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
parent
eeaca949e0
commit
e5eea467b7
9 changed files with 36 additions and 79 deletions
|
@ -2240,6 +2240,22 @@ bool lar_solver::get_equality_and_right_side_for_term_on_current_x(unsigned term
|
|||
return false;
|
||||
}
|
||||
|
||||
void lar_solver::set_cut_strategy(unsigned cut_frequency) {
|
||||
if (cut_frequency < 4) { // enable only gomory cut
|
||||
settings().m_int_gomory_cut_period = 2;
|
||||
settings().m_hnf_cut_period = 100000000;
|
||||
settings().m_int_find_cube_period = 100000000;
|
||||
} else if (cut_frequency == 4) { // enable all cuts and cube equally
|
||||
settings().m_int_gomory_cut_period = 4;
|
||||
settings().m_hnf_cut_period = 4;
|
||||
settings().m_int_find_cube_period = 4;
|
||||
} else {
|
||||
// disable all heuristics
|
||||
settings().m_int_gomory_cut_period = 10000000;
|
||||
settings().m_hnf_cut_period = 100000000;
|
||||
settings().m_int_find_cube_period = 100000000;
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace lp
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue