# 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 ${H2}$ problem.

## The System

Consider, for example, constant linear multi-variable system in the form of:
    ${\begin{aligned}{\dot {x}}&=Ax+Bu,x(0)={x_{0}},\\\end{aligned}}$
where
    ${\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: $A$, $B$, $Q$, and $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 $u=Kx$ is obtained where
    ${\begin{aligned}J(x,u)&=\int _{0}^{\infty }({x^{T}}Qx+{u^{T}}Ru)\mathrm {d} t\\\end{aligned}}$
is minimized where $Q={Q^{T}}{\geq }0$ and $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:
       $1)\quad (A,B){\text{ is stabilizable, and}}$
       $2)\quad (A,L){\text{ is observable, where }}L={Q^{1/2}}$.
Relating this to ${H_{2}}$ performance, let us now consider the auxiliary system:
    ${\begin{aligned}{\begin{cases}{\dot {x}}&=Ax+Bu+{x_{0}}\omega \\y&=Cx+Du\\\end{cases}}\end{aligned}}$,
where $\omega$ represents an impulse disturbance, and
    ${\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 $u=Kx$ and applying it on the above auxiliary system results in the closed-loop system:
    ${\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 $\omega$ to output $y$ being:
    ${\begin{aligned}{G_{y\omega }}=(C+DK)[sI-(A+BK)]^{-1}{x_{0}}\end{aligned}}$
thereby resulting in $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 $X\in \mathbb {S} ^{n}$, $Y\in \mathbb {S} ^{r}$ and $W\in \mathbb {R} ^{rxn}$ satisfying:
       ${\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 $u=Kx$ (where $K=WX^{-1}$) exists such that $J(x,u)<\gamma$ if and only if the matrices $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 $H_{2}$-norm of a system.

## External Links

A list of references documenting and validating the LMI.
* LMI Methods in Optimal and Robust Control - A course on LMIs in Control by Matthew Peet.
* LMI Properties and Applications in Systems, Stability, and Control Theory - A List of LMIs by Ryan Caverly and James Forbes.
* LMIs in Systems and Control Theory - A downloadable book on LMIs by Stephen Boyd.
* LMIs in Control Systems: Analysis, Design and Applications - A book co-authored by Guang-Ren Duan and Hai-Hua Yu.