Skip to content

Commit

Permalink
generic tolerane
Browse files Browse the repository at this point in the history
  • Loading branch information
matbesancon committed Oct 15, 2024
1 parent f68b36a commit 40331b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/active_set_sparsifier.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function active_set_update!(
new_weights = R[]
for idx in eachindex(λ)
weight_value = MOI.get(as.optimizer, MOI.VariablePrimal(), λ[idx])
if weight_value <= min(1e-3 / n, 1e-8)
if weight_value <= sqrt(weight_purge_threshold_default(typeof(weight_value)))
push!(indices_to_remove, idx)
else
push!(new_weights, weight_value)
Expand Down

0 comments on commit 40331b0

Please sign in to comment.