diff --git a/Project.toml b/Project.toml index 0c10b9a..c827178 100644 --- a/Project.toml +++ b/Project.toml @@ -38,7 +38,7 @@ OptimizationZygoteExt = "Zygote" ADTypes = "1" ArrayInterface = "7.6" DocStringExtensions = "0.9" -Enzyme = "0.11.11, =0.12.6" +Enzyme = "0.12.12" FiniteDiff = "2.12" ForwardDiff = "0.10.26" LinearAlgebra = "1.9, 1.10" diff --git a/test/adtests.jl b/test/adtests.jl index 3d7586b..81f4aff 100644 --- a/test/adtests.jl +++ b/test/adtests.jl @@ -521,7 +521,7 @@ optprob.hess(H2, x0) @test optprob.hess(x0) == H1 @test optprob.cons(x0) == [0.0, 0.0] @test optprob.cons_j([5.0, 3.0])≈[10.0 6.0; -0.149013 -0.958924] rtol=1e-6 - @test_broken optprob.cons_h(x0) # == [[2.0 0.0; 0.0 2.0], [-0.0 1.0; 1.0 0.0]] + @test_broken optprob.cons_h(x0) == [[2.0 0.0; 0.0 2.0], [-0.0 1.0; 1.0 0.0]] cons = (x, p) -> [x[1]^2 + x[2]^2] optf = OptimizationFunction{false}(rosenbrock,