We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d922b3f commit 2948a40Copy full SHA for 2948a40
1 file changed
src/MultiObjectiveAlgorithms.jl
@@ -68,7 +68,7 @@ function _sort!(
68
sense::MOI.OptimizationSense;
69
atol::Float64,
70
)
71
- digits = round(Int, log10(atol))
+ digits = max(0, round(Int, -log10(atol)))
72
rev = sense == MOI.MAX_SENSE
73
return sort!(solutions; by = p -> round.(p.y; digits), rev)
74
end
0 commit comments