File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -309,9 +309,9 @@ sys = structural_simplify(ns; conservative = true)
309
309
310
310
# system that contains a chain of observed variables when simplified
311
311
@variables x y z
312
- eqs = [0 ~ x^ 2 + 2 * z + y, z ~ y, y ~ x] # analytical solution x = y = z = 0 or -3
312
+ eqs = [0 ~ x^ 2 + 2 z + y, z ~ y, y ~ x] # analytical solution x = y = z = 0 or -3
313
313
@mtkbuild ns = NonlinearSystem (eqs) # solve for y with observed chain z -> x -> y
314
- @test isequal (expand .(calculate_jacobian (ns)), [3 // 2 + y;;])
314
+ @test isequal (expand .(calculate_jacobian (ns)), [3 // 2 + y;;])
315
315
@test isequal (calculate_hessian (ns), [[1 ;;]])
316
316
prob = NonlinearProblem (ns, unknowns (ns) .=> - 4.0 ) # give guess < -3 to reach -3
317
317
sol = solve (prob, NewtonRaphson ())
You can’t perform that action at this time.
0 commit comments