Skip to content

Commit 10239d6

Browse files
abelsiqueiraJSOTutorials bot
andauthored
🤖 Tutorials deployment from b6c520c3e3c3308bebfe1542a5af1e1592b21eee (#205)
Co-authored-by: JSOTutorials bot <[email protected]>
1 parent 43c3017 commit 10239d6

File tree

1 file changed

+16
-15
lines changed
  • tutorials/introduction-to-jsosolvers

1 file changed

+16
-15
lines changed

tutorials/introduction-to-jsosolvers/index.md

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
![Plots 1.41.1](https://img.shields.io/badge/Plots-1.41.1-000?style=flat-square&labelColor=999)
1313
![Logging 1.11.0](https://img.shields.io/badge/Logging-1.11.0-000?style=flat-square&labelColor=999)
1414
[![ADNLPModels 0.7.2](https://img.shields.io/badge/ADNLPModels-0.7.2-8b0000?style=flat-square&labelColor=cb3c33)](https://jso.dev/ADNLPModels.jl/stable/)
15-
[![JSOSolvers 0.11.2](https://img.shields.io/badge/JSOSolvers-0.11.2-006400?style=flat-square&labelColor=389826)](https://jso.dev/JSOSolvers.jl/stable/)
15+
[![JSOSolvers 0.14.3](https://img.shields.io/badge/JSOSolvers-0.14.3-006400?style=flat-square&labelColor=389826)](https://jso.dev/JSOSolvers.jl/stable/)
1616

1717

1818

@@ -56,20 +56,6 @@ The solvers `tron` and `trunk` both have a specialized implementation for input
5656

5757
The following examples illustrate this specialization.
5858

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-
7359
```julia
7460
using JSOSolvers, ADNLPModels
7561
f(x) = (x[1] - 1)^2 + 4 * (x[2] - x[1]^2)^2
@@ -133,6 +119,21 @@ Counters:
133119

134120

135121

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+
136137
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).
137138
In particular, we consider the problem [`Thurber`](https://www.itl.nist.gov/div898/strd/nls/data/LINKS/DATA/Thurber.dat).
138139

0 commit comments

Comments
 (0)