Skip to content

Commit f4e5c58

Browse files
committed
foo
1 parent 870cec4 commit f4e5c58

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ CTProblems = "45d9ea3f-a92f-411f-833f-222dd4fb9cd8"
1111
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
1212

1313
[compat]
14-
CTBase = "0.7"
15-
CTDirect = "0.4"
14+
CTBase = "0.8"
15+
CTDirect = "0.5"
1616
CTFlows = "0.3"
1717
CTProblems = "0.5"
1818
julia = "1.8"

src/solve.jl

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -72,19 +72,6 @@ function solve(ocp::OptimalControlModel, description::Symbol...;
7272
#
7373
method = getFullDescription(description, available_methods())
7474

75-
# todo: OptimalControlInit must be in CTBase, it is for the moment in CTDirect
76-
77-
if isnothing(init)
78-
init = OptimalControlInit()
79-
elseif init isa CTBase.OptimalControlSolution
80-
init = OptimalControlInit(init)
81-
else
82-
x_init = :state keys(init) ? init[:state] : nothing
83-
u_init = :control keys(init) ? init[:control] : nothing
84-
v_init = :variable keys(init) ? init[:variable] : nothing
85-
init = OptimalControlInit(x_init=x_init, u_init=u_init, v_init=v_init)
86-
end
87-
8875
# print chosen method
8976
display ? println("Method = ", method) : nothing
9077

0 commit comments

Comments
 (0)