Skip to content

Commit 1e6f030

Browse files
Update src/solve/flux.jl
Co-authored-by: Christopher Rackauckas <[email protected]>
1 parent de613ed commit 1e6f030

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/solve/flux.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function __solve(prob::OptimizationProblem, opt::AbstractFluxOptimiser, data = D
5454
if first(x) < first(min_err) #found a better solution
5555
min_opt = opt
5656
min_err = x
57-
min_θ = θ
57+
min_θ = copy(θ)
5858
end
5959
if i == maxiters #Last iteration, revert to best.
6060
opt = min_opt

0 commit comments

Comments
 (0)