mirror of
https://github.com/Z3Prover/z3
synced 2026-06-27 02:48:48 +00:00
lp: rename cut_period->int_hammer_period, random_period->random_hammers
These knobs govern the integer cut/cube heuristics (the "hammers": find_cube, lcube, hnf, gomory, dio), not just cuts, so the names now reflect that. lp.int_hammer_period sets the shared firing period and lp.random_hammers toggles random vs deterministic gating. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
17de82a963
commit
c37ab9b6a3
4 changed files with 14 additions and 14 deletions
|
|
@ -43,14 +43,14 @@ void lp::lp_settings::updt_params(params_ref const& _p) {
|
|||
m_dio_ignore_big_nums = lp_p.dio_ignore_big_nums();
|
||||
m_dio_calls_period = lp_p.dio_calls_period();
|
||||
m_dio_run_gcd = lp_p.dio_run_gcd();
|
||||
m_random_period = lp_p.random_period();
|
||||
m_random_hammers = lp_p.random_hammers();
|
||||
m_lcube = lp_p.lcube();
|
||||
m_lcube_flips = lp_p.lcube_flips();
|
||||
unsigned cut_period = lp_p.cut_period();
|
||||
if (cut_period == 0)
|
||||
cut_period = 1;
|
||||
m_int_find_cube_period = cut_period;
|
||||
m_int_gomory_cut_period = cut_period;
|
||||
m_hnf_cut_period = cut_period;
|
||||
unsigned hammer_period = lp_p.int_hammer_period();
|
||||
if (hammer_period == 0)
|
||||
hammer_period = 1;
|
||||
m_int_find_cube_period = hammer_period;
|
||||
m_int_gomory_cut_period = hammer_period;
|
||||
m_hnf_cut_period = hammer_period;
|
||||
m_max_conflicts = p.max_conflicts();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue