Skip to content

Commit 4158bc0

Browse files
committed
docs(intro): add example of trunk with explicit subsolver and tolerances
1 parent 42970b9 commit 4158bc0

File tree

1 file changed

+7
-0
lines changed
  • tutorials/introduction-to-jsosolvers

1 file changed

+7
-0
lines changed

tutorials/introduction-to-jsosolvers/index.jmd

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,13 @@ trunk(nls, atol = 1e-6, rtol = 1e-6)
7474
nls.counters
7575
```
7676

77+
You can also select a specific least-squares subsolver and pass tolerances and a time limit:
78+
79+
```julia
80+
RTOL = 1e-6; ATOL = 1e-8; max_time = 60.0
81+
stats = trunk(nls; subsolver = :cgls, rtol = RTOL, atol = ATOL, max_time = max_time)
82+
```
83+
7784
We conclude these examples by a nonlinear regression example from the [NIST data set](https://www.itl.nist.gov/div898/strd/nls/nls_main.shtml).
7885
In particular, we consider the problem [`Thurber`](https://www.itl.nist.gov/div898/strd/nls/data/LINKS/DATA/Thurber.dat).
7986

0 commit comments

Comments
 (0)