Skip to content

Commit f99f3bc

Browse files
Update modelingtoolkitize.jl
1 parent a5bc3b0 commit f99f3bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/modelingtoolkitize.jl

+3-3
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ sys = complete(modelingtoolkitize(prob)) # symbolicitize me captain!
5959

6060
prob = OptimizationProblem(sys, x0, p, grad = true, hess = true)
6161
sol = solve(prob, NelderMead())
62-
@test sol.minimum < 1e-8
62+
@test sol.objective < 1e-8
6363

6464
sol = solve(prob, BFGS())
65-
@test sol.minimum < 1e-8
65+
@test sol.objective < 1e-8
6666

6767
sol = solve(prob, Newton())
68-
@test sol.minimum < 1e-8
68+
@test sol.objective < 1e-8
6969

7070
## SIR System Regression Test
7171

0 commit comments

Comments
 (0)