Skip to content

Commit

Permalink
FiniteDiff can lead to non success criteria
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaibhavdixit02 committed Oct 5, 2024
1 parent 8a58c5f commit 68f7a0b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/ADtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,15 @@ end

sol = solve(prob, Optim.Newton())
@test 10 * sol.objective < l1
@test sol.retcode == ReturnCode.Success
if adtype != AutoFiniteDiff()
@test sol.retcode == ReturnCode.Success
end

sol = solve(prob, Optim.KrylovTrustRegion())
@test 10 * sol.objective < l1
@test sol.retcode == ReturnCode.Success
if adtype != AutoFiniteDiff()
@test sol.retcode == ReturnCode.Success
end

sol = solve(prob, Optimization.LBFGS(), maxiters = 1000)
@test 10 * sol.objective < l1
Expand Down

0 comments on commit 68f7a0b

Please sign in to comment.