Skip to content

Commit 2948a40

Browse files
committed
Update
1 parent d922b3f commit 2948a40

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/MultiObjectiveAlgorithms.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function _sort!(
6868
sense::MOI.OptimizationSense;
6969
atol::Float64,
7070
)
71-
digits = round(Int, log10(atol))
71+
digits = max(0, round(Int, -log10(atol)))
7272
rev = sense == MOI.MAX_SENSE
7373
return sort!(solutions; by = p -> round.(p.y; digits), rev)
7474
end

0 commit comments

Comments
 (0)