We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02a02c5 commit 11b105cCopy full SHA for 11b105c
src/systems/control/controlsystem.jl
@@ -91,8 +91,8 @@ end
91
ControlToExpr(@nospecialize(sys)) = ControlToExpr(sys,states(sys),controls(sys))
92
function (f::ControlToExpr)(O::Term)
93
res = if isa(O.op, Sym)
94
- any(isequal(O), f.states) && return O.op.name # dependent variables
95
- any(isequal(O), f.controls) && return O.op.name # control variables
+ # normal variables and control variables
+ (any(isequal(O), f.states) || any(isequal(O), f.controls)) && return tosymbol(O)
96
build_expr(:call, Any[O.op.name; f.(O.args)])
97
else
98
build_expr(:call, Any[Symbol(O.op); f.(O.args)])
0 commit comments