2
2
if nin == 1
3
3
@variables u (t)= u_start [input = true ]
4
4
else
5
- @variables u[1 : nin](t) = u_start [input = true ]
5
+ @variables u (t) [1 : nin]= u_start [input = true ]
6
6
u = collect (u)
7
7
end
8
8
ODESystem (Equation[], t, [u... ], []; name = name)
@@ -24,7 +24,7 @@ Connector with one input signal of type Real.
24
24
if nout == 1
25
25
@variables u (t)= u_start [output = true ]
26
26
else
27
- @variables u[1 : nout](t) = u_start [output = true ]
27
+ @variables u (t) [1 : nout]= u_start [output = true ]
28
28
u = collect (u)
29
29
end
30
30
ODESystem (Equation[], t, [u... ], []; name = name)
@@ -45,7 +45,7 @@ Connector with one output signal of type Real.
45
45
"""
46
46
SISO(;name, u_start=0.0, y_start=0.0)
47
47
48
- Single Input Single Output continuous control block.
48
+ Single input single output (SISO) continuous system block.
49
49
50
50
# Parameters:
51
51
- `u_start`: Initial value for the input
66
66
"""
67
67
MIMO(;name, nin=1, nout=1, u_start=zeros(nin), y_start=zeros(nout))
68
68
69
- Base class for a multiple Input multiple Output continuous control block.
69
+ Base class for a multiple input multiple output (MIMO) continuous system block.
70
70
71
71
# Parameters:
72
72
- `nin`: Input dimension
@@ -78,8 +78,8 @@ function MIMO(; name, nin = 1, nout = 1, u_start = zeros(nin), y_start = zeros(n
78
78
@named input = RealInput (nin = nin, u_start = u_start)
79
79
@named output = RealOutput (nout = nout, u_start = y_start)
80
80
@variables begin
81
- u[1 : nin](t) = u_start
82
- y[1 : nout](t) = y_start
81
+ u (t) [1 : nin] = u_start
82
+ y (t) [1 : nout] = y_start
83
83
end
84
84
eqs = [
85
85
[u[i] ~ input. u[i] for i in 1 : nin]. .. ,
0 commit comments