Skip to content

Commit 66418b3

Browse files
authored
skip Newton for Mooncake
1 parent 311c3ff commit 66418b3

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

test/ADtests.jl

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,13 @@ end
4646
@test sol.retcode == ReturnCode.Success
4747
end
4848

49-
sol = solve(prob, Optim.Newton())
50-
@test 10 * sol.objective < l1
51-
if adtype != AutoFiniteDiff()
52-
@test sol.retcode == ReturnCode.Success
49+
# `Newton` requires Hession, which Mooncake doesn't support at the moment.
50+
if adtype != AutoMooncake()
51+
sol = solve(prob, Optim.Newton())
52+
@test 10 * sol.objective < l1
53+
if adtype != AutoFiniteDiff()
54+
@test sol.retcode == ReturnCode.Success
55+
end
5356
end
5457

5558
sol = solve(prob, Optim.KrylovTrustRegion())

0 commit comments

Comments
 (0)