Skip to content

Commit 3ece8a2

Browse files
authored
Merge pull request #635 from control-toolbox/634-dev-new-release
upgraded CTDirect to v0.17
2 parents 30dddd6 + ffba51b commit 3ece8a2

File tree

10 files changed

+89
-81
lines changed

10 files changed

+89
-81
lines changed

Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "OptimalControl"
22
uuid = "5f98b655-cc9a-415a-b60e-744165666948"
33
authors = ["Olivier Cots <[email protected]>"]
4-
version = "1.1.1"
4+
version = "1.1.2"
55

66
[deps]
77
ADNLPModels = "54578032-b7ea-4c30-94aa-7cbd1cce6c9a"
@@ -17,10 +17,10 @@ ExaModels = "1037b233-b668-4ce9-9b63-f9f681f55dd2"
1717
[compat]
1818
ADNLPModels = "0.8"
1919
CTBase = "0.16"
20-
CTDirect = "0.16"
20+
CTDirect = "0.17"
2121
CTFlows = "0.8"
2222
CTModels = "0.6"
23-
CTParser = "0.6"
23+
CTParser = "0.7"
2424
CommonSolve = "0.2"
2525
DocStringExtensions = "0.9"
2626
ExaModels = "0.9"

docs/Project.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ JSON3 = "0f8b85d8-7281-11e9-16c2-39a750bddbf1"
1818
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1919
MINPACK = "4854310b-de5a-5eb6-a2a5-c1dee2bd17f9"
2020
MadNLP = "2621e9c9-9eb4-46b1-8089-e8c72242dfb6"
21+
MadNLPMumps = "3b83494e-c0a4-4895-918b-9157a7a085a1"
2122
NLPModelsIpopt = "f4238b75-b362-5c4c-b852-0801c9a21d71"
2223
NLPModelsKnitro = "bec4dd0d-7755-52d5-9a02-22f0ffc7efcb"
2324
NonlinearSolve = "8913a72c-1f9b-4ce2-8d82-65094dcecaec"
@@ -28,7 +29,7 @@ Suppressor = "fd094767-a336-5f1f-9728-57cf17d0bbfb"
2829
[compat]
2930
ADNLPModels = "0.8"
3031
CTBase = "0.16"
31-
CTDirect = "0.16"
32+
CTDirect = "0.17"
3233
CTFlows = "0.8"
3334
CTModels = "0.6"
3435
CTParser = "0.6"
@@ -45,6 +46,7 @@ JSON3 = "1"
4546
LinearAlgebra = "1"
4647
MINPACK = "1"
4748
MadNLP = "0.8"
49+
MadNLPMumps = "0.5"
4850
NLPModelsIpopt = "0.10"
4951
NLPModelsKnitro = "0.9"
5052
NonlinearSolve = "4"

docs/make.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ using ADNLPModels
1414
using ExaModels
1515
using NLPModelsIpopt
1616
using MadNLP
17+
using MadNLPMumps
1718
using JSON3
1819
using JLD2
1920
using NLPModelsKnitro

docs/src/api-optimalcontrol-user.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,10 @@ iterations
7979
lagrange
8080
mayer
8181
message
82-
model
82+
nlp_model
8383
objective(::Model)
8484
objective(::Solution)
85+
ocp_model
8586
plot(::Solution, ::Symbol...)
8687
plot!(::Plots.Plot, ::Solution, ::Symbol...)
8788
set_initial_guess

docs/src/assets/Manifest.toml

Lines changed: 70 additions & 71 deletions
Large diffs are not rendered by default.

docs/src/assets/Project.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ JSON3 = "0f8b85d8-7281-11e9-16c2-39a750bddbf1"
1818
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1919
MINPACK = "4854310b-de5a-5eb6-a2a5-c1dee2bd17f9"
2020
MadNLP = "2621e9c9-9eb4-46b1-8089-e8c72242dfb6"
21+
MadNLPMumps = "3b83494e-c0a4-4895-918b-9157a7a085a1"
2122
NLPModelsIpopt = "f4238b75-b362-5c4c-b852-0801c9a21d71"
2223
NLPModelsKnitro = "bec4dd0d-7755-52d5-9a02-22f0ffc7efcb"
2324
NonlinearSolve = "8913a72c-1f9b-4ce2-8d82-65094dcecaec"
@@ -29,7 +30,7 @@ Suppressor = "fd094767-a336-5f1f-9728-57cf17d0bbfb"
2930
[compat]
3031
ADNLPModels = "0.8"
3132
CTBase = "0.16"
32-
CTDirect = "0.16"
33+
CTDirect = "0.17"
3334
CTFlows = "0.8"
3435
CTModels = "0.6"
3536
CTParser = "0.6"
@@ -46,6 +47,7 @@ JSON3 = "1"
4647
LinearAlgebra = "1"
4748
MINPACK = "1"
4849
MadNLP = "0.8"
50+
MadNLPMumps = "0.5"
4951
NLPModelsIpopt = "0.10"
5052
NLPModelsKnitro = "0.9"
5153
NonlinearSolve = "4"

docs/src/manual-solve.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ ocp = @def begin
107107
0.5∫( u(t)^2 ) → min
108108
end
109109
110-
solve(ocp, :exa, :madnlp)
110+
solve(ocp, :exa, :madnlp; disc_method=:trapeze)
111111
nothing # hide
112112
```
113113

@@ -133,7 +133,7 @@ The main options for the direct method, with their [default] values, are:
133133
More precisely, if `N = grid_size` and the initial and final times are `t0` and `tf`, then the step length `Δt = (tf - t0) / N`.
134134
- `time_grid` ([`nothing`]): explicit time grid (can be non-uniform).
135135
If `time_grid = nothing`, a uniform grid of length `grid_size` is used.
136-
- `disc_method` ([`:trapeze`], `:midpoint`, `:euler`, `:euler_implicit`, `:gauss_legendre_2`, `:gauss_legendre_3`): the discretisation scheme to transform the dynamics into nonlinear equations. See the [discretization method tutorial](https://control-toolbox.org/Tutorials.jl/stable/tutorial-discretisation.html) for more details.
136+
- `disc_method` (`:trapeze`, [`:midpoint`], `:euler`, `:euler_implicit`, `:gauss_legendre_2`, `:gauss_legendre_3`): the discretisation scheme to transform the dynamics into nonlinear equations. See the [discretization method tutorial](https://control-toolbox.org/Tutorials.jl/stable/tutorial-discretisation.html) for more details.
137137
- `adnlp_backend` ([`:optimized`], `:manual`, `:default`): backend used for automatic differentiation to create the [`ADNLPModels.ADNLPModel`](@extref).
138138

139139
For advanced usage, see:

src/OptimalControl.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ export constraints,
136136

137137
# CTDirect
138138
import CTDirect:
139-
CTDirect, direct_transcription, set_initial_guess, build_OCP_solution, model
140-
export direct_transcription, set_initial_guess, build_OCP_solution, model
139+
CTDirect, direct_transcription, set_initial_guess, build_OCP_solution, nlp_model, ocp_model
140+
export direct_transcription, set_initial_guess, build_OCP_solution, nlp_model, ocp_model
141141

142142
# CTFlows
143143
import CTFlows:

test/Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
55
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
66
MINPACK = "4854310b-de5a-5eb6-a2a5-c1dee2bd17f9"
77
MadNLP = "2621e9c9-9eb4-46b1-8089-e8c72242dfb6"
8+
MadNLPMumps = "3b83494e-c0a4-4895-918b-9157a7a085a1"
89
NLPModelsIpopt = "f4238b75-b362-5c4c-b852-0801c9a21d71"
910
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed"
1011
SplitApplyCombine = "03a91e81-4c3e-53e1-a0a4-9c0c8f19dd66"
@@ -17,6 +18,7 @@ ForwardDiff = "0.10, 1.0"
1718
LinearAlgebra = "1"
1819
MINPACK = "1"
1920
MadNLP = "0.8"
21+
MadNLPMumps = "0.5"
2022
NLPModelsIpopt = "0.10"
2123
OrdinaryDiffEq = "6"
2224
SplitApplyCombine = "1"

test/runtests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ using Test
22
using OptimalControl
33
using NLPModelsIpopt
44
using MadNLP
5+
using MadNLPMumps
56
using LinearAlgebra
67
using OrdinaryDiffEq
78
using MINPACK

0 commit comments

Comments
 (0)