Skip to content

Commit 8cc2b4e

Browse files
Update native.jl
1 parent 8a08402 commit 8cc2b4e

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

test/native.jl

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,3 @@ optf1 = OptimizationFunction(loss, AutoSparseForwardDiff())
5555
prob1 = OptimizationProblem(optf1, rand(5), data)
5656
sol1 = solve(prob1, OptimizationOptimisers.Adam(), maxiters = 1000, callback = callback)
5757
@test sol1.objective < l0
58-
59-
# Test Sophia with ComponentArrays + Enzyme (shadow generation fix)
60-
using ComponentArrays
61-
x0_comp = ComponentVector(a = 0.0, b = 0.0)
62-
rosenbrock_comp(x, p = nothing) = (1 - x.a)^2 + 100 * (x.b - x.a^2)^2
63-
64-
optf_sophia = OptimizationFunction(rosenbrock_comp, AutoEnzyme())
65-
prob_sophia = OptimizationProblem(optf_sophia, x0_comp)
66-
res_sophia = solve(prob_sophia, Optimization.Sophia=0.01, k=5), maxiters = 50)
67-
@test res_sophia.objective < rosenbrock_comp(x0_comp) # Test optimization progress
68-
@test res_sophia.retcode == Optimization.SciMLBase.ReturnCode.Success

0 commit comments

Comments
 (0)