FisSal2011: Keep only active cuts at the end

fs11_01
Alinson S. Xavier 1 month ago
parent e2e69415c1
commit 407312e129

@ -744,6 +744,17 @@ function collect_gmi_FisSal2011(
end
@info "Best gap closure: $(gapcl_best)"
@timeit "Keep only active cuts" begin
positive_idx = findall(multipliers_best .> 1e-6)
@info "Keeping $(length(positive_idx)) active cuts"
pool.lhs = pool.lhs[:, positive_idx]
pool.lb = pool.lb[positive_idx]
pool.ub = pool.ub[positive_idx]
pool.hash = pool.hash[positive_idx]
multipliers_best = multipliers_best[positive_idx]
multipliers_curr = multipliers_curr[positive_idx]
end
to = TimerOutputs.get_defaulttimer()
stats_time = TimerOutputs.tottime(to) / 1e9

Loading…
Cancel
Save