# LMIs in Control/pages/LQ Regulation via H2 Control

LQ Regulation via H2 Control

Suppose people were interested in quadratic optimal regulation problem, where instead of the Ricatti equation approach (which is traditionally used in such situations), it is approached using LMI's instead (thereby making it a Linear Quadratic (LQ) problem). Such an approach would be possible by converting the LQ problem into a standard ${\displaystyle {H2}}$ problem.

## The System

Consider, for example, constant linear multi-variable system in the form of:

{\displaystyle {\begin{aligned}{\dot {x}}&=Ax+Bu,x(0)={x_{0}},\\\end{aligned}}}

where

{\displaystyle {\begin{aligned}&x\in \mathbb {R} ^{n}{\text{ and }}u\in \mathbb {R} ^{r}{\text{ are the state and input vectors, respectively, and }}\\&A{\text{ and }}B{\text{ are the system coefficient matrices of appropriate dimensions,}}\\\end{aligned}}}

Then the LQ optimal regulation problem for the given system is stated as described below.

## The Data

In order to obtain the LMI, we need the following 3 matrices: ${\displaystyle A}$ , ${\displaystyle B}$ , ${\displaystyle Q}$ , and ${\displaystyle R}$  (the latter two of which are obtained as follows).

## The Optimization Problem

Using the multi-variable system as described above, we can see that the optimal state feedback controller ${\displaystyle u=Kx}$  is obtained where

{\displaystyle {\begin{aligned}J(x,u)&=\int _{0}^{\infty }({x^{T}}Qx+{u^{T}}Ru)\mathrm {d} t\\\end{aligned}}}

is minimized where ${\displaystyle Q={Q^{T}}{\geq }0}$  and ${\displaystyle R={R^{T}}{\geq }0}$ . However, it is to be noted that in order for the problem to have a solution, two assumptions are made - both of which must be held true at all times:

${\displaystyle 1)\quad (A,B){\text{ is stabilizable, and}}}$
${\displaystyle 2)\quad (A,L){\text{ is observable, where }}L={Q^{1/2}}}$ .

Relating this to ${\displaystyle {H_{2}}}$  performance, let us now consider the auxiliary system:

{\displaystyle {\begin{aligned}{\begin{cases}{\dot {x}}&=Ax+Bu+{x_{0}}\omega \\y&=Cx+Du\\\end{cases}}\end{aligned}}} ,

where ${\displaystyle \omega }$  represents an impulse disturbance, and

{\displaystyle {\begin{aligned}C={\begin{bmatrix}{Q^{1/2}}\\0\end{bmatrix}}&&D={\begin{bmatrix}0\\{R^{1/2}}\end{bmatrix}}\\\end{aligned}}}

Using the state feedback controller ${\displaystyle u=Kx}$  and applying it on the above auxiliary system results in the closed-loop system:

{\displaystyle {\begin{aligned}{\begin{cases}{\dot {x}}&=(A+BK)x+{x_{0}}\omega \\y&=(C+DK)x\\\end{cases}}\end{aligned}}} ,

and the resulting transfer function from disturbance ${\displaystyle \omega }$  to output ${\displaystyle y}$  being:

{\displaystyle {\begin{aligned}{G_{y\omega }}=(C+DK)[sI-(A+BK)]^{-1}{x_{0}}\end{aligned}}}

thereby resulting in ${\displaystyle J(x,u)=||{G_{y\omega }}||_{2}^{2}}$ .

## The LMI: LQ Regulation via H2 Control

From the given pieces of information, and letting the 2 assumptions as described above hold, then there exist matrices ${\displaystyle X\in \mathbb {S} ^{n}}$ , ${\displaystyle Y\in \mathbb {S} ^{r}}$  and ${\displaystyle W\in \mathbb {R} ^{rxn}}$  satisfying:

{\displaystyle {\begin{aligned}(AX+BW)+{(AX+BW)^{T}}+{x_{0}}{x_{0}^{T}}&<0\\trace({Q^{1/2}}X({Q^{1/2}})^{T})+trace(Y)&<\gamma \\{\begin{bmatrix}-Y&&{R^{1/2}}W\\({R^{1/2}}W)^{T}&&-X\end{bmatrix}}&<0\end{aligned}}}

## Conclusion:

From the LMI, it can be seen that the state feedback control in the form of ${\displaystyle u=Kx}$  (where ${\displaystyle K=WX^{-1}}$ ) exists such that ${\displaystyle J(x,u)<\gamma }$  if and only if the matrices ${\displaystyle X{\text{, }}Y{\text{, and }}W}$  are of the appropriate matrix sizes.

## Implementation

• Example Code - A GitHub link that contains code (titled "LQRegH2.m") that demonstrates how this LMI can be implemented using MATLAB-YALMIP.

## Related LMIs

• LMI for System H2 Norm - LMI to determine the ${\displaystyle H_{2}}$ -norm of a system.