Skip to content

Commit 6640510

Browse files
committed
Fix tutorial-nlp: add using NLPModelsIpopt for OptimalControl.Ipopt solver
1 parent 06ec202 commit 6640510

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "Tutorials"
22
uuid = "cb10daa6-a5e5-4c25-a171-ae181b8ea3c9"
33
authors = ["Olivier Cots <olivier.cots@toulouse-inp.fr>"]
4-
version = "0.3.2"
4+
version = "0.4.0"
55

66
[compat]
77
julia = "1.10"

docs/src/tutorial-nlp.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# [NLP and DOCP manipulations](@id tutorial-nlp)
22

33
```@meta
4-
Draft = true
4+
Draft = false
55
CurrentModule = OptimalControl
66
```
77

@@ -91,6 +91,7 @@ We have two approaches to solve the NLP problem.
9191
We can create an OptimalControl solver strategy and use it to solve the NLP:
9292

9393
```@example main-nlp
94+
using NLPModelsIpopt
9495
solver = OptimalControl.Ipopt(print_level=5, tol=1e-8, mu_strategy="adaptive")
9596
nlp_sol = solve(nlp, solver; display=true)
9697
nothing # hide

0 commit comments

Comments
 (0)