33
33
Generate the control function f(x, u, p, t) from the ODESystem.
34
34
Input variables are automatically inferred but can be manually specified.
35
35
"""
36
- function SciMLBase. ControlFunction {iip, specialize} (sys:: ODESystem ,
36
+ function SciMLBase. ODEInputFunction {iip, specialize} (sys:: ODESystem ,
37
37
dvs = unknowns (sys),
38
38
ps = parameters (sys), u0 = nothing ,
39
39
inputs = unbound_inputs (sys),
@@ -114,7 +114,7 @@ function SciMLBase.ControlFunction{iip, specialize}(sys::ODESystem,
114
114
controljac_prototype = nothing
115
115
end
116
116
117
- ControlFunction {iip, specialize} (f;
117
+ ODEInputFunction {iip, specialize} (f;
118
118
sys = sys,
119
119
jac = _jac === nothing ? nothing : _jac,
120
120
controljac = _cjac === nothing ? nothing : _cjac,
@@ -128,18 +128,18 @@ function SciMLBase.ControlFunction{iip, specialize}(sys::ODESystem,
128
128
initialization_data)
129
129
end
130
130
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... )
133
133
end
134
134
135
- function SciMLBase. ControlFunction {true} (sys:: AbstractODESystem , args... ;
135
+ function SciMLBase. ODEInputFunction {true} (sys:: AbstractODESystem , args... ;
136
136
kwargs... )
137
- ControlFunction {true, SciMLBase.AutoSpecialize} (sys, args... ; kwargs... )
137
+ ODEInputFunction {true, SciMLBase.AutoSpecialize} (sys, args... ; kwargs... )
138
138
end
139
139
140
- function SciMLBase. ControlFunction {false} (sys:: AbstractODESystem , args... ;
140
+ function SciMLBase. ODEInputFunction {false} (sys:: AbstractODESystem , args... ;
141
141
kwargs... )
142
- ControlFunction {false, SciMLBase.FullSpecialize} (sys, args... ; kwargs... )
142
+ ODEInputFunction {false, SciMLBase.FullSpecialize} (sys, args... ; kwargs... )
143
143
end
144
144
145
145
"""
0 commit comments