Skip to content

Commit b437cd8

Browse files
Update lib/OptimizationODE/test/runtests.jl
1 parent 962832b commit b437cd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/OptimizationODE/test/runtests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ using LinearAlgebra
2020
f_autodiff = OptimizationFunction(f, ADTypes.AutoForwardDiff())
2121
prob_auto = OptimizationProblem(f_autodiff, x0, p)
2222

23-
for opt in (ODEGradientDescent(), RKChebyshevDescent(), RKAccelerated(), HighOrderDescent())
24-
sol = solve(prob_auto, opt; dt=0.01, maxiters=50_000)
23+
for opt in (ODEGradientDescent(dt=0.01), RKChebyshevDescent(), RKAccelerated(), HighOrderDescent())
24+
sol = solve(prob_auto, opt; maxiters=50_000)
2525
@test sol.u [0.0, 0.0] atol=1e-2
2626
@test sol.objective 0.0 atol=1e-2
2727
@test sol.retcode == ReturnCode.Success

0 commit comments

Comments
 (0)