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
Copy file name to clipboardExpand all lines: src/glover_mcfarlane.jl
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -154,8 +154,8 @@ end
154
154
155
155
For discrete systems, the `info` tuple contains also feedback gains `F, L` and observer gain `Hkf` such that the controller on observer form is given by
156
156
```math
157
-
x^+ = Ax + Bu + H_{kf}*(Cx - y)\\\\
158
-
u = Fx + L*(Cx - y)
157
+
x^+ = Ax + Bu + H_{kf}(Cx - y)\\\\
158
+
u = Fx + L(Cx - y)
159
159
```
160
160
Note, this controller is *not* strictly proper, i.e., it has a non-zero D matrix.
161
161
The controller can be transformed to observer form for the scaled plant (`info.Gs`)
iszero(P.D11) &&iszero(P.D22) ||error("D11 and D22 must be zero for the standard H2 formulation to be used, try calling with γ=1000 to use the H∞ formulation.")
13
14
X2, Y2, F2, L2 =_solvematrixequations2(P)
14
15
Â2 = P.A + P.B2*F2 + L2*P.C2
15
-
K =ss(Â2, -L2, F2, 0)
16
+
# Af2 = P.A + P.B2*F2
17
+
# C1f2 = P.C1 + P.D12*F2
18
+
# Gc = ss(Af2, I(size(Af2, 1)), C1f2, 0)
19
+
K =ss(Â2, -L2, F2, 0, P.timeevol)
16
20
return K, lft(ss(P), K)
17
21
end
18
22
23
+
iscontinuous(P) ||throw(ArgumentError("h2syn with specified γ is only supported for continuous systems."))
0 commit comments