Skip to content

Commit

Permalink
Add a note on the return codes
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Dec 7, 2023
1 parent c86413c commit 513eef6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/src/basics/NonlinearSolution.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,14 @@
```@docs
SciMLBase.NonlinearSolution
```

## Return Code

- `ReturnCode.Success` - The nonlinear solve succeeded.
- `ReturnCode.ConvergenceFailure` - The nonlinear solve failed to converge due to stalling
or some limit of the solver was exceeded. For example, too many shrinks for trust
region methods, number of resets for Broyden, etc.
- `ReturnCode.Unstable` - This corresponds to
`NonlinearSafeTerminationReturnCode.ProtectiveTermination` and is caused if the step-size
of the solver was too large or the objective value became non-finite.
- `ReturnCode.MaxIters` - The maximum number of iterations was reached.

0 comments on commit 513eef6

Please sign in to comment.