Skip to content

Commit d1b6030

Browse files
authored
Merge pull request #693 from control-toolbox/breaking/ctmodels-0.7
Adapt to CTModels v0.7.x and integrate CTSolvers
2 parents d3c1cbb + 4aed34f commit d1b6030

23 files changed

Lines changed: 2242 additions & 693 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,4 @@ Manifest.toml
4141

4242
#
4343
docs/tmp/
44+
save/

Project.toml

Lines changed: 36 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "OptimalControl"
22
uuid = "5f98b655-cc9a-415a-b60e-744165666948"
3+
version = "1.1.8-beta"
34
authors = ["Olivier Cots <olivier.cots@toulouse-inp.fr>"]
4-
version = "1.1.6"
55

66
[deps]
77
ADNLPModels = "54578032-b7ea-4c30-94aa-7cbd1cce6c9a"
@@ -10,20 +10,51 @@ CTDirect = "790bbbee-bee9-49ee-8912-a9de031322d5"
1010
CTFlows = "1c39547c-7794-42f7-af83-d98194f657c2"
1111
CTModels = "34c4fa32-2049-4079-8329-de33c2a22e2d"
1212
CTParser = "32681960-a1b1-40db-9bff-a1ca817385d1"
13+
CTSolvers = "d3e8d392-8e4b-4d9b-8e92-d7d4e3650ef6"
1314
CommonSolve = "38540f10-b2f7-11e9-35d8-d573e4eb0ff2"
1415
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
1516
ExaModels = "1037b233-b668-4ce9-9b63-f9f681f55dd2"
17+
NLPModels = "a4795742-8479-5a88-8948-cc11e1c8c1a6"
1618
RecipesBase = "3cdcf5f2-1ef4-517c-9805-6587b60abb01"
19+
SolverCore = "ff4d7338-4cf1-434d-91df-b86cb86fb843"
1720

1821
[compat]
1922
ADNLPModels = "0.8"
20-
CTBase = "0.16"
21-
CTDirect = "0.17"
23+
CTBase = "0.17"
24+
CTDirect = "0.18"
2225
CTFlows = "0.8"
23-
CTModels = "0.6"
24-
CTParser = "0.7"
26+
CTModels = "0.7"
27+
CTParser = "0.7, 0.8"
28+
CTSolvers = "0.2"
2529
CommonSolve = "0.2"
30+
DifferentiationInterface = "0.7"
2631
DocStringExtensions = "0.9"
2732
ExaModels = "0.9"
33+
ForwardDiff = "0.10, 1.0"
34+
LinearAlgebra = "1"
35+
MadNLP = "0.8"
36+
MadNLPMumps = "0.5"
37+
NLPModels = "0.21.7"
38+
NLPModelsIpopt = "0.11"
39+
NonlinearSolve = "4"
40+
OrdinaryDiffEq = "6"
2841
RecipesBase = "1"
42+
SolverCore = "0.3.9"
43+
SplitApplyCombine = "1"
44+
Test = "1"
2945
julia = "1.10"
46+
47+
[extras]
48+
DifferentiationInterface = "a0c0ee7d-e4b9-4e03-894e-1c5f64a51d63"
49+
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
50+
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
51+
MadNLP = "2621e9c9-9eb4-46b1-8089-e8c72242dfb6"
52+
MadNLPMumps = "3b83494e-c0a4-4895-918b-9157a7a085a1"
53+
NLPModelsIpopt = "f4238b75-b362-5c4c-b852-0801c9a21d71"
54+
NonlinearSolve = "8913a72c-1f9b-4ce2-8d82-65094dcecaec"
55+
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed"
56+
SplitApplyCombine = "03a91e81-4c3e-53e1-a0a4-9c0c8f19dd66"
57+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
58+
59+
[targets]
60+
test = ["DifferentiationInterface", "ForwardDiff", "LinearAlgebra", "MadNLP", "MadNLPMumps", "NLPModelsIpopt", "NonlinearSolve", "OrdinaryDiffEq", "SplitApplyCombine", "Test"]

diag.jl

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
using Pkg
2+
Pkg.activate(".")
3+
4+
# We want to see if AbstractOptimalControlProblem is defined BEFORE ctmodels.jl:4
5+
# So we can't just use OptimalControl because it errors.
6+
7+
# Let's manually include things up to ctmodels.jl
8+
include("src/imports/ctbase.jl")
9+
include("src/imports/ctparser.jl")
10+
include("src/imports/plots.jl")
11+
12+
println("Defined before ctmodels: ", isdefined(Main, :AbstractOptimalControlProblem))
13+
if isdefined(Main, :AbstractOptimalControlProblem)
14+
println("Parent: ", parentmodule(Main.AbstractOptimalControlProblem))
15+
end

0 commit comments

Comments
 (0)