|
12 | 12 |  |
13 | 13 |  |
14 | 14 | [](https://jso.dev/ADNLPModels.jl/stable/) |
15 | | -[](https://jso.dev/JSOSolvers.jl/stable/) |
| 15 | +[](https://jso.dev/JSOSolvers.jl/stable/) |
16 | 16 |
|
17 | 17 |
|
18 | 18 |
|
@@ -56,20 +56,6 @@ The solvers `tron` and `trunk` both have a specialized implementation for input |
56 | 56 |
|
57 | 57 | The following examples illustrate this specialization. |
58 | 58 |
|
59 | | -To list the allowed least-squares subsolvers for these specializations: |
60 | | - |
61 | | -```julia |
62 | | -JSOSolvers.trunkls_allowed_subsolvers |
63 | | -JSOSolvers.tronls_allowed_subsolvers |
64 | | -``` |
65 | | - |
66 | | -```plaintext |
67 | | -Error: UndefVarError: `JSOSolvers` not defined in `Main.var"##WeaveSandBox#277"` |
68 | | -Suggestion: check for spelling errors or missing imports. |
69 | | -``` |
70 | | - |
71 | | - |
72 | | - |
73 | 59 | ```julia |
74 | 60 | using JSOSolvers, ADNLPModels |
75 | 61 | f(x) = (x[1] - 1)^2 + 4 * (x[2] - x[1]^2)^2 |
@@ -133,6 +119,21 @@ Counters: |
133 | 119 |
|
134 | 120 |
|
135 | 121 |
|
| 122 | +To list the allowed least-squares subsolvers for these specializations: |
| 123 | + |
| 124 | +```julia |
| 125 | +JSOSolvers.trunkls_allowed_subsolvers |
| 126 | +JSOSolvers.tronls_allowed_subsolvers |
| 127 | +``` |
| 128 | + |
| 129 | +```plaintext |
| 130 | +(:cgls, :crls, :lsqr, :lsmr) |
| 131 | +``` |
| 132 | + |
| 133 | + |
| 134 | + |
| 135 | + |
| 136 | + |
136 | 137 | 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). |
137 | 138 | In particular, we consider the problem [`Thurber`](https://www.itl.nist.gov/div898/strd/nls/data/LINKS/DATA/Thurber.dat). |
138 | 139 |
|
|
0 commit comments