Skip to content

Commit

Permalink
Merge pull request #871 from baggepinnen/patch-3
Browse files Browse the repository at this point in the history
fix #870
  • Loading branch information
ChrisRackauckas authored Jan 11, 2025
2 parents 51f5bcb + d38af58 commit a18be2b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/OptimizationEvolutionary/src/OptimizationEvolutionary.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ function __map_optimizer_args(cache::OptimizationCache,
end

if !isnothing(maxtime)
mapped_args = (; mapped_args..., time_limit = maxtime)
mapped_args = (; mapped_args..., time_limit = Float64(maxtime))
end

if !isnothing(abstol)
mapped_args = (; mapped_args..., abstol = abstol)
mapped_args = (; mapped_args..., abstol = Float64(abstol))
end

if !isnothing(reltol)
mapped_args = (; mapped_args..., reltol = reltol)
mapped_args = (; mapped_args..., reltol = Float64(reltol))
end

return Evolutionary.Options(; mapped_args...)
Expand Down

0 comments on commit a18be2b

Please sign in to comment.