Skip to content

Commit fa15aa8

Browse files
authored
Update ode_system.jl
1 parent f0d7d93 commit fa15aa8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ode_system.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ function ControlSystemsBase.ss(
152152
named_ss(sys, inputs, outputs; kwargs...).sys # just discard the names
153153
end
154154

155+
symstr(x) = Symbol(x isa AnalysisPoint ? x.name : string(x))
155156

156157
"""
157158
RobustAndOptimalControl.named_ss(sys::ModelingToolkit.AbstractSystem, inputs, outputs; descriptor=true, simple_infeigs=true, balance=false, kwargs...)
@@ -206,7 +207,6 @@ function RobustAndOptimalControl.named_ss(
206207
end
207208
end
208209
matrices, ssys = ModelingToolkit.linearize(sys, inputs, outputs; kwargs...)
209-
symstr(x) = Symbol(x isa AnalysisPoint ? x.name : string(x))
210210
unames = symstr.(inputs)
211211
if nu > 0 && size(matrices.B, 2) == 2nu
212212
# This indicates that input derivatives are present

0 commit comments

Comments
 (0)