File tree 5 files changed +12
-23
lines changed
5 files changed +12
-23
lines changed Original file line number Diff line number Diff line change 1
1
name = " OptimalControl"
2
2
uuid = " 5f98b655-cc9a-415a-b60e-744165666948"
3
3
authors = [
" Olivier Cots <[email protected] >" ]
4
- version = " 1.0.1 "
4
+ version = " 1.0.2 "
5
5
6
6
[deps ]
7
7
CTBase = " 54762871-cc72-4466-b8e8-f6c8b58076cd"
@@ -13,10 +13,10 @@ CommonSolve = "38540f10-b2f7-11e9-35d8-d573e4eb0ff2"
13
13
DocStringExtensions = " ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
14
14
15
15
[compat ]
16
- CTBase = " 0.15 "
16
+ CTBase = " 0.16 "
17
17
CTDirect = " 0.14"
18
18
CTFlows = " 0.8"
19
- CTModels = " 0.2 "
19
+ CTModels = " 0.3 "
20
20
CTParser = " 0.2"
21
21
CommonSolve = " 0.2"
22
22
DocStringExtensions = " 0.9"
Original file line number Diff line number Diff line change @@ -24,10 +24,10 @@ Suppressor = "fd094767-a336-5f1f-9728-57cf17d0bbfb"
24
24
25
25
[compat ]
26
26
BenchmarkTools = " 1.6"
27
- CTBase = " 0.15 "
27
+ CTBase = " 0.16 "
28
28
CTDirect = " 0.14"
29
29
CTFlows = " 0.8"
30
- CTModels = " 0.2 "
30
+ CTModels = " 0.3 "
31
31
CTParser = " 0.2"
32
32
CommonSolve = " 0.2"
33
33
DifferentiationInterface = " 0.6"
@@ -45,4 +45,4 @@ OrdinaryDiffEq = "6.93"
45
45
Percival = " 0.7"
46
46
Plots = " 1.40"
47
47
Suppressor = " 0.2"
48
- julia = " 1.10 "
48
+ julia = " 1"
Original file line number Diff line number Diff line change @@ -113,29 +113,18 @@ We can export (or save) the solution in a Julia `.jld2` data file and reload it
113
113
114
114
``` @example main
115
115
using JLD2
116
- using JSON3 # hide
117
-
118
- using Suppressor # hide
119
- @suppress_err begin # hide
120
- export_ocp_solution(sol; filename_prefix="my_solution")
121
- end # hide
122
-
123
- sol_jld = import_ocp_solution(ocp; filename_prefix="my_solution")
124
-
116
+ export_ocp_solution(sol; filename="my_solution")
117
+ sol_jld = import_ocp_solution(ocp; filename="my_solution")
125
118
println("Objective from computed solution: ", objective(sol))
126
119
println("Objective from imported solution: ", objective(sol_jld))
127
120
```
128
121
129
122
### JSON
130
123
131
124
``` @example main
132
- # load additional modules
133
125
using JSON3
134
-
135
- export_ocp_solution(sol; filename_prefix="my_solution", format=:JSON)
136
-
137
- sol_json = import_ocp_solution(ocp; filename_prefix="my_solution", format=:JSON)
138
-
126
+ export_ocp_solution(sol; filename="my_solution", format=:JSON)
127
+ sol_json = import_ocp_solution(ocp; filename="my_solution", format=:JSON)
139
128
println("Objective from computed solution: ", objective(sol))
140
129
println("Objective from imported solution: ", objective(sol_json))
141
130
```
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ function CommonSolve.solve(
89
89
):: CTModels.Solution
90
90
91
91
# get the full description
92
- method = CTBase. getFullDescription (description, available_methods ())
92
+ method = CTBase. complete (description; descriptions = available_methods ())
93
93
94
94
# solve the problem
95
95
if :direct ∈ method
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ SplitApplyCombine = "03a91e81-4c3e-53e1-a0a4-9c0c8f19dd66"
10
10
Test = " 8dfed614-e22c-5e08-85e1-65c5234f0b40"
11
11
12
12
[compat ]
13
- CTModels = " 0.2 "
13
+ CTModels = " 0.3 "
14
14
DifferentiationInterface = " 0.6"
15
15
ForwardDiff = " 0.10"
16
16
LinearAlgebra = " 1"
You can’t perform that action at this time.
0 commit comments