Skip to content

Commit a18be2b

Browse files
Merge pull request #871 from baggepinnen/patch-3
fix #870
2 parents 51f5bcb + d38af58 commit a18be2b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/OptimizationEvolutionary/src/OptimizationEvolutionary.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@ function __map_optimizer_args(cache::OptimizationCache,
5757
end
5858

5959
if !isnothing(maxtime)
60-
mapped_args = (; mapped_args..., time_limit = maxtime)
60+
mapped_args = (; mapped_args..., time_limit = Float64(maxtime))
6161
end
6262

6363
if !isnothing(abstol)
64-
mapped_args = (; mapped_args..., abstol = abstol)
64+
mapped_args = (; mapped_args..., abstol = Float64(abstol))
6565
end
6666

6767
if !isnothing(reltol)
68-
mapped_args = (; mapped_args..., reltol = reltol)
68+
mapped_args = (; mapped_args..., reltol = Float64(reltol))
6969
end
7070

7171
return Evolutionary.Options(; mapped_args...)

0 commit comments

Comments
 (0)