Skip to content

Commit b759ce7

Browse files
Jacobian fix runtests.jl
Jacobian fix for tests.
1 parent 9a623d1 commit b759ce7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/OptimizationODE/test/runtests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ end
233233
x = [1.0, 2.0]
234234
f(x) = [x[1]^2 + x[2], x[1] * x[2]]
235235

236-
J = OptimizationODE.finite_difference_jacobian(f, x)
236+
J = ForwardDiff.jacobian(f, x)
237237

238238
expected_J = [2.0 1.0; 2.0 1.0]
239239

@@ -287,4 +287,4 @@ end
287287
@test isapprox(sol.u[1], p[1], atol=1e-1)
288288
end
289289
end
290-
end
290+
end

0 commit comments

Comments
 (0)