Skip to content

Commit c3bd84a

Browse files
Merge pull request #4046 from ChrisRackauckas-Claude/fix-initialization-tutorial-docs
docs: fix incorrect claim about NonlinearSystem in initialization tutorial
2 parents 80d2645 + 5a897cf commit c3bd84a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/tutorials/initialization.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,10 +477,10 @@ In comparison, if we have a well-conditioned system:
477477

478478
```@example init
479479
iprob = ModelingToolkit.InitializationProblem(pend, 0.0,
480-
[x => 1, y => 0.0, g => 1], guesses = [λ => 1])
480+
[x => 1, D(x) => 0.0, g => 1], guesses = [λ => 1, y => 0])
481481
```
482482

483-
notice that we instead obtained a NonlinearSystem. In this case we have to use
483+
notice that we instead obtained a NonlinearProblem. In this case we can use
484484
different solvers which can take advantage of the fact that the Jacobian is square.
485485

486486
```@example init

0 commit comments

Comments
 (0)