Skip to content

Commit bcd6f75

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

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
@@ -30,8 +30,8 @@ using LinearAlgebra
3030
f_manual = OptimizationFunction(f, SciMLBase.NoAD(); grad=g!)
3131
prob_manual = OptimizationProblem(f_manual, x0)
3232

33-
for opt in (ODEGradientDescent(), RKChebyshevDescent(), RKAccelerated(), HighOrderDescent())
34-
sol = solve(prob_manual, opt; dt=0.01, maxiters=50_000)
33+
for opt in (ODEGradientDescent(dt=0.01), RKChebyshevDescent(), RKAccelerated(), HighOrderDescent())
34+
sol = solve(prob_manual, opt; maxiters=50_000)
3535
@test sol.u [0.0, 0.0] atol=1e-2
3636
@test sol.objective 0.0 atol=1e-2
3737
@test sol.retcode == ReturnCode.Success

0 commit comments

Comments
 (0)