Skip to content

Commit 221fdac

Browse files
committed
docs(advanced-jsosolvers): add explicit trunk call with subsolver and tolerances
1 parent 4158bc0 commit 221fdac

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tutorials/advanced-jsosolvers/index.jmd

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ These linear least squares solvers are implemented in the package [Krylov.jl](ht
5252
using Krylov
5353
```
5454

55+
For example, to call TRUNK with an explicit subsolver and tolerances:
56+
57+
```julia
58+
RTOL = 1e-6; ATOL = 1e-8; max_time = 60.0
59+
stats = trunk(nls; subsolver = :cgls, rtol = RTOL, atol = ATOL, max_time = max_time)
60+
```
61+
5562
We define a dictionary of the different solvers that will be benchmarked.
5663
We consider here four variants of TRUNK using the different subsolvers.
5764

0 commit comments

Comments
 (0)