You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -106,7 +106,7 @@ The system `G` will be a new system with `input` and `output` connectors.
106
106
function ControlSystemsBase.feedback(
107
107
loopgain::T;
108
108
name =Symbol("feedback $(loopgain.name)"),
109
-
) where {T<:ModelingToolkit.AbstractTimeDependentSystem}
109
+
) where {T<:ModelingToolkit.AbstractSystem}
110
110
add = Blocks.Add(k1 =1, k2 =-1, name =:feedback)
111
111
@named input = Blocks.RealInput()
112
112
@named output = Blocks.RealOutput()
@@ -123,7 +123,7 @@ function ControlSystemsBase.feedback(
123
123
)
124
124
end
125
125
126
-
function Base.:(*)(s1::T, s2::T) where {T<:ModelingToolkit.AbstractTimeDependentSystem}
126
+
function Base.:(*)(s1::T, s2::T) where {T<:ModelingToolkit.AbstractSystem}
127
127
name =Symbol(string(s1.name) *"_"*string(s2.name))
128
128
@named input = Blocks.RealInput()
129
129
@named output = Blocks.RealOutput()
@@ -144,7 +144,7 @@ numeric(x::Num) = x.val
144
144
145
145
146
146
function ControlSystemsBase.ss(
147
-
sys::ModelingToolkit.AbstractTimeDependentSystem,
147
+
sys::ModelingToolkit.AbstractSystem,
148
148
inputs,
149
149
outputs;
150
150
kwargs...
@@ -166,7 +166,7 @@ If `descriptor = false`, the system is instead converted to a statespace realiza
166
166
See also [`ModelingToolkit.linearize`](@ref) which is the lower-level function called internally. The functions [`get_named_sensitivity`](@ref), [`get_named_comp_sensitivity`](@ref), [`get_named_looptransfer`](@ref) similarily provide convenient ways to compute sensitivity functions while retaining signal names in the same way as `named_ss`. The corresponding lower-level functions `get_sensitivity`, `get_comp_sensitivity` and `get_looptransfer` are available in ModelingToolkitStandardLibrary.Blocks and are documented in [MTKstdlib: Linear analysis](https://docs.sciml.ai/ModelingToolkitStandardLibrary/stable/API/linear_analysis/).
167
167
"""
168
168
function RobustAndOptimalControl.named_ss(
169
-
sys::ModelingToolkit.AbstractTimeDependentSystem,
169
+
sys::ModelingToolkit.AbstractSystem,
170
170
inputs,
171
171
outputs;
172
172
descriptor =true,
@@ -177,7 +177,7 @@ function RobustAndOptimalControl.named_ss(
177
177
outputs =vcat(outputs)
178
178
179
179
inputs =map(inputs) do inp
180
-
if inp isaODESystem
180
+
if inp isaSystem
181
181
@variablesu(t)
182
182
if u ∈Set(unknowns(inp))
183
183
inp.u
@@ -191,7 +191,7 @@ function RobustAndOptimalControl.named_ss(
191
191
nu =length(inputs)
192
192
193
193
outputs =map(outputs) do out
194
-
if out isaODESystem
194
+
if out isaSystem
195
195
@variablesu(t)
196
196
if u ∈Set(unknowns(out))
197
197
out.u
@@ -286,14 +286,14 @@ get_named_looptransfer
286
286
287
287
functionnamed_sensitivity_function(
288
288
fun,
289
-
sys::ModelingToolkit.AbstractTimeDependentSystem,
289
+
sys::ModelingToolkit.AbstractSystem,
290
290
inputs, args...;
291
291
kwargs...,
292
292
)
293
293
294
294
inputs =vcat(inputs)
295
295
inputs =map(inputs) do inp
296
-
if inp isaODESystem
296
+
if inp isaSystem
297
297
@variablesu(t)
298
298
if u ∈Set(unknowns(inp))
299
299
inp.u
@@ -362,7 +362,7 @@ The second problem above, the ordering of the states, can be worked around using
0 commit comments