3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-07-15 11:35:42 +00:00

lp: add optional efficacy filter for Gomory cuts

Add lp.gomory_cut_efficacy_filter (default false) and
lp.gomory_cut_efficacy_threshold (default 0.01). When enabled, a
generated Gomory cut t >= k is discarded if its efficacy
(k - t(x*))/||t||_2, the normalized distance from the LP solution to the
cut hyperplane, is below the threshold. Comparison is done on squared
quantities to stay rational and deterministic.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Lev Nachmanson 2026-06-25 14:51:32 -07:00
parent 57fb719007
commit 8d1dde407e
5 changed files with 41 additions and 1 deletions

View file

@ -48,6 +48,8 @@ void lp::lp_settings::updt_params(params_ref const& _p) {
m_random_hammers = lp_p.random_hammers();
m_lcube = lp_p.lcube();
m_lcube_flips = lp_p.lcube_flips();
m_gomory_cut_efficacy_filter = lp_p.gomory_cut_efficacy_filter();
m_gomory_cut_efficacy_threshold = lp_p.gomory_cut_efficacy_threshold();
unsigned hammer_period = lp_p.int_hammer_period();
SASSERT(hammer_period != 0);
m_int_find_cube_period = hammer_period;