Skip to content

Commit 353f12b

Browse files
committed
init new project for optimal control tests
1 parent 6988707 commit 353f12b

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

src/systems/optimal_control_interface.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ end
3333
Generate the control function f(x, u, p, t) from the ODESystem.
3434
Input variables are automatically inferred but can be manually specified.
3535
"""
36-
function SciMLBase.ControlFunction{iip, specialize}(sys::ODESystem,
36+
function SciMLBase.ODEInputFunction{iip, specialize}(sys::ODESystem,
3737
dvs = unknowns(sys),
3838
ps = parameters(sys), u0 = nothing,
3939
inputs = unbound_inputs(sys),
@@ -114,7 +114,7 @@ function SciMLBase.ControlFunction{iip, specialize}(sys::ODESystem,
114114
controljac_prototype = nothing
115115
end
116116

117-
ControlFunction{iip, specialize}(f;
117+
ODEInputFunction{iip, specialize}(f;
118118
sys = sys,
119119
jac = _jac === nothing ? nothing : _jac,
120120
controljac = _cjac === nothing ? nothing : _cjac,
@@ -128,18 +128,18 @@ function SciMLBase.ControlFunction{iip, specialize}(sys::ODESystem,
128128
initialization_data)
129129
end
130130

131-
function SciMLBase.ControlFunction(sys::AbstractODESystem, args...; kwargs...)
132-
ControlFunction{true}(sys, args...; kwargs...)
131+
function SciMLBase.ODEInputFunction(sys::AbstractODESystem, args...; kwargs...)
132+
ODEInputFunction{true}(sys, args...; kwargs...)
133133
end
134134

135-
function SciMLBase.ControlFunction{true}(sys::AbstractODESystem, args...;
135+
function SciMLBase.ODEInputFunction{true}(sys::AbstractODESystem, args...;
136136
kwargs...)
137-
ControlFunction{true, SciMLBase.AutoSpecialize}(sys, args...; kwargs...)
137+
ODEInputFunction{true, SciMLBase.AutoSpecialize}(sys, args...; kwargs...)
138138
end
139139

140-
function SciMLBase.ControlFunction{false}(sys::AbstractODESystem, args...;
140+
function SciMLBase.ODEInputFunction{false}(sys::AbstractODESystem, args...;
141141
kwargs...)
142-
ControlFunction{false, SciMLBase.FullSpecialize}(sys, args...; kwargs...)
142+
ODEInputFunction{false, SciMLBase.FullSpecialize}(sys, args...; kwargs...)
143143
end
144144

145145
"""
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[deps]
2+
DiffEqDevTools = "f3b72e0c-5b89-59e1-b016-84e28bfd966d"
3+
InfiniteOpt = "20393b10-9daf-11e9-18c9-8db751c92c57"
4+
Ipopt = "b6b21f68-93f8-5de0-b562-5493be1d77c9"
5+
Multibody = "e1cad5d1-98ef-44f9-a79a-9ca4547f95b9"

test/extensions/Project.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,9 @@ BifurcationKit = "0f109fa4-8a5d-4b75-95aa-f515264e7665"
33
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
44
ChainRulesTestUtils = "cdddcdb0-9152-4a09-a978-84456f9df70a"
55
DiffEqBase = "2b5f629d-d688-5b77-993f-72d75c75574e"
6-
DiffEqDevTools = "f3b72e0c-5b89-59e1-b016-84e28bfd966d"
76
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
87
HomotopyContinuation = "f213a82b-91d6-5c5d-acf7-10f1c761b327"
98
InfiniteOpt = "20393b10-9daf-11e9-18c9-8db751c92c57"
10-
Ipopt = "b6b21f68-93f8-5de0-b562-5493be1d77c9"
11-
JuMP = "4076af6c-e467-56ae-b986-b466b2749572"
129
LabelledArrays = "2ee39098-c373-598a-b85f-a56591580800"
1310
ModelingToolkit = "961ee093-0014-501f-94e3-6117800e7a78"
1411
Nemo = "2edaba10-b0f1-5616-af89-8c11ac63239a"

0 commit comments

Comments
 (0)