Skip to content

Commit 9212420

Browse files
authored
Bump compat for Introduction to OptimizationProblems.jl tutorial (#141)
* Update index.jmd * Update Project.toml * Update tutorials/introduction-to-optimizationproblems/index.jmd
1 parent 888e808 commit 9212420

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

tutorials/introduction-to-optimizationproblems/Project.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ NLPModelsJuMP = "792afdf1-32c1-5681-94e0-d7bf7a5df49e"
66
OptimizationProblems = "5049e819-d29b-5fba-b941-0eee7e64c1c6"
77

88
[compat]
9-
ADNLPModels = "0.7"
10-
JuMP = "1.1"
11-
NLPModels = "0.20"
12-
NLPModelsJuMP = "0.12"
13-
OptimizationProblems = "0.7"
9+
ADNLPModels = "0.8"
10+
JuMP = "1.23"
11+
NLPModels = "0.21"
12+
NLPModelsJuMP = "0.13"
13+
OptimizationProblems = "0.9"

tutorials/introduction-to-optimizationproblems/index.jmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ nlp_12 = OptimizationProblems.ADNLPProblems.woods(n=12)
6262
```julia
6363
nlp_120 = OptimizationProblems.ADNLPProblems.woods(n=120)
6464
```
65-
One of the advantages of these problems is that they are type-stable. Indeed, one can specify the output type with the keyword `type` as follows.
65+
One of the advantages of these problems is that they are type-stable. Indeed, one can specify the output type with the keyword `type` as follows. Note that in version < 0.8 the argument was `type=Val(DataType)`.
6666
```julia
67-
nlp16_12 = OptimizationProblems.ADNLPProblems.woods(n=12, type=Val(Float16))
67+
nlp16_12 = OptimizationProblems.ADNLPProblems.woods(n=12, type=Float16)
6868
```
6969
Then, all the API will be compatible with the precised type.
7070
```julia

0 commit comments

Comments
 (0)