Skip to content

Commit c0b51f0

Browse files
committed
do real part for typemax
1 parent becceb8 commit c0b51f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/OptimizationOptimisers/src/OptimizationOptimisers.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function SciMLBase.__solve(prob::OptimizationProblem, opt::OptimisersOptimizers,
2323
G = copy(θ)
2424

2525
local x, min_err, min_θ
26-
min_err = typemax(eltype(prob.u0)) #dummy variables
26+
min_err = typemax(eltype(real(prob.u0))) #dummy variables
2727
min_opt = 1
2828
min_θ = prob.u0
2929

0 commit comments

Comments
 (0)