Section 10–8 / Quadratic Optimal Regulator Systems 797from which we obtain the following three equations:Solving these three simultaneous equations for p 11 , p 12 ,andp 22 ,requiringPto be positive definite,
we obtainReferring to Equation (10–117), the optimal feedback gain matrix Kis obtained asThus, the optimal control signal is(10–120)Note that the control law given by Equation (10–120) yields an optimal result for any initial state
under the given performance index. Figure 10–37 is the block diagram for this system.
Since the characteristic equation isifm=1,the two closed-loop poles are located atThese correspond to the desired closed-loop poles when m=1.Solving Quadratic Optimal Regulator Problems with MATLAB. In MATLAB,
the command
lqr(A,B,Q,R)
s=-0.866+j 0.5, s=-0.866-j 0.5
∑s I-A+BK∑=s^2 + 1 m+ 2 s+ 1 = 0u=-Kx=-x 1 - 1 m+ 2 x 2=C 1 1 m+ 2 D
=Cp 12 p 22 D
=[1][0 1]B
p 11
p 12p 12
p 22R
K=R-^1 B* P
P= B
p 11
p 12p 12
p 22R =B
1 m+ 2
11
1 m+ 2R
m+2p 12 - p^222 = 0p 11 - p 12 p 22 = 01 - p^212 = 0ux 1Plantx 2
(^) m + 2
Figure 10–37
Optimal control of
the plant shown in
Figure 10–36.