We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Newton
1 parent 311c3ff commit 66418b3Copy full SHA for 66418b3
test/ADtests.jl
@@ -46,10 +46,13 @@ end
46
@test sol.retcode == ReturnCode.Success
47
end
48
49
- sol = solve(prob, Optim.Newton())
50
- @test 10 * sol.objective < l1
51
- if adtype != AutoFiniteDiff()
52
- @test sol.retcode == ReturnCode.Success
+ # `Newton` requires Hession, which Mooncake doesn't support at the moment.
+ if adtype != AutoMooncake()
+ sol = solve(prob, Optim.Newton())
+ @test 10 * sol.objective < l1
53
+ if adtype != AutoFiniteDiff()
54
+ @test sol.retcode == ReturnCode.Success
55
+ end
56
57
58
sol = solve(prob, Optim.KrylovTrustRegion())
0 commit comments