Algorithm Search⌘K

Problemadvanced

H2 optimal control

Also called H2 synthesis.

Find a stabilizing controller that minimizes the H2 norm of the closed loop from disturbance to error, which reduces to LQG.

The H2 optimal control problem asks for an internally stabilizing controller that makes the H2 norm of the closed loop from the disturbance ww to the error zz as small as possible. The plant is a generalized plant with the inputs ww and uu and the outputs zz and yy, and the controller closes the loop from yy to uu. Under the standard assumptions the problem has a unique optimal controller of the same order as the plant, given by two independent Riccati equations. This controller is the LQG controller for the matching noise and cost data. The two problems are not the same problem: H2 is a deterministic problem about the norm of a transfer matrix, and LQG is a stochastic problem about the expected cost under white noise. They have the same solution under the standard assumptions.

In plain words

Disturbances push a machine around, and some signals of the machine should stay small. Hit the machine with a short sharp blow in each disturbance direction, one at a time, and measure the total energy of the error signals that follow. The H2 norm adds up these energies. The H2 problem asks for the controller that makes this sum as small as possible, while the loop stays stable. The same number also measures the average size of the errors when the disturbances are random noise. That is why the answer is the best controller for random noise, which is the LQG controller: a state estimator followed by the best state feedback. The answer is good on average but gives no worst case guarantee.

Definition

Input. A generalized plant with state x∈Rnx \in \mathbb{R}^n:

x˙=Ax+B1w+B2u,z=C1x+D12u,y=C2x+D21w,\dot x = A x + B_1 w + B_2 u, \qquad z = C_1 x + D_{12} u, \qquad y = C_2 x + D_{21} w,

with w∈Rm1w \in \mathbb{R}^{m_1}, u∈Rm2u \in \mathbb{R}^{m_2}, z∈Rp1z \in \mathbb{R}^{p_1} and y∈Rp2y \in \mathbb{R}^{p_2}. There is no direct term from ww to zz (D11=0D_{11} = 0), since the H2 norm of the closed loop is finite only when it is strictly proper. A term D22D_{22} from uu to yy can be moved into the controller and is taken as 0.

Controllers. A controller is a finite-dimensional linear time-invariant system KK with u=Kyu = K y, such that the closed loop is internally stable, that is, the closed-loop AA matrix is Hurwitz. Such a controller exists if and only if (A,B2)(A, B_2) is stabilizable and (C2,A)(C_2, A) is detectable. The closed loop from ww to zz is the lower linear fractional transformation Tzw=Fl(P,K)T_{zw} = \mathcal{F}_l(P, K).

Question. Find

min⁡K∥Tzw∥2,∥T∥22=12π∫−∞∞tr(T(jω)∗T(jω))dω,\min_K \|T_{zw}\|_2, \qquad \|T\|_2^2 = \frac{1}{2\pi} \int_{-\infty}^{\infty} \mathrm{tr}\left(T(j\omega)^* T(j\omega)\right) d\omega,

over all internally stabilizing KK for which TzwT_{zw} is strictly proper, and a controller that reaches it.

Standard assumptions. (A1) (A,B2)(A, B_2) stabilizable and (C2,A)(C_2, A) detectable. (A2) D12D_{12} has full column rank and D21D_{21} has full row rank. (A3) [A−jωIB2C1D12]\begin{bmatrix} A - j\omega I & B_2 \\ C_1 & D_{12} \end{bmatrix} has full column rank and [A−jωIB1C2D21]\begin{bmatrix} A - j\omega I & B_1 \\ C_2 & D_{21} \end{bmatrix} has full row rank for every real ω\omega. After a change of the input and output coordinates one can also take D12T[C1D12]=[0I]D_{12}^T \begin{bmatrix} C_1 & D_{12} \end{bmatrix} = \begin{bmatrix} 0 & I \end{bmatrix} and [B1D21]D21T=[0I]\begin{bmatrix} B_1 \\ D_{21} \end{bmatrix} D_{21}^T = \begin{bmatrix} 0 \\ I \end{bmatrix}.

Solution under the assumptions. Let X2≥0X_2 \ge 0 be the stabilizing solution of ATX+XA−XB2B2TX+C1TC1=0A^T X + X A - X B_2 B_2^T X + C_1^T C_1 = 0 and Y2≥0Y_2 \ge 0 the stabilizing solution of AY+YAT−YC2TC2Y+B1B1T=0A Y + Y A^T - Y C_2^T C_2 Y + B_1 B_1^T = 0, and put F2=−B2TX2F_2 = -B_2^T X_2 and L2=−Y2C2TL_2 = -Y_2 C_2^T. The unique optimal controller is

x^˙=(A+B2F2+L2C2)x^−L2y,u=F2x^,\dot{\hat x} = (A + B_2 F_2 + L_2 C_2) \hat x - L_2 y, \qquad u = F_2 \hat x,

and the optimal value is

min⁡K∥Tzw∥22=tr(B1TX2B1)+tr(F2Y2F2T)=tr(C1Y2C1T)+tr(L2TX2L2).\min_K \|T_{zw}\|_2^2 = \mathrm{tr}(B_1^T X_2 B_1) + \mathrm{tr}(F_2 Y_2 F_2^T) = \mathrm{tr}(C_1 Y_2 C_1^T) + \mathrm{tr}(L_2^T X_2 L_2).

H2 and LQG. Take the LQG data (A,B,C,Q,R,W,V)(A, B, C, Q, R, W, V) and set B1=[W1/20]B_1 = \begin{bmatrix} W^{1/2} & 0 \end{bmatrix}, D21=[0V1/2]D_{21} = \begin{bmatrix} 0 & V^{1/2} \end{bmatrix}, C1=[Q1/20]C_1 = \begin{bmatrix} Q^{1/2} \\ 0 \end{bmatrix}, D12=[0R1/2]D_{12} = \begin{bmatrix} 0 \\ R^{1/2} \end{bmatrix}. If ww is white noise with unit intensity, the stationary value of E zTz\mathbb{E}\, z^T z in the closed loop is ∥Tzw∥22\|T_{zw}\|_2^2, and it equals the LQG cost JJ. So minimizing one minimizes the other, and F2=−KF_2 = -K and L2=−LoL_2 = -L_o in the notation of the LQG page. The differences are these:

  • The question. LQG minimizes an expected average cost of a stochastic system. H2 minimizes a norm of a transfer matrix. The H2 norm also has a deterministic meaning: its square is the sum of the energies of zz after unit impulses in each channel of ww.
  • The controllers allowed. LQG allows any causal map from past outputs to inputs, also nonlinear and time varying. H2 allows only linear time-invariant controllers. Under the Gaussian assumptions the restriction costs nothing.
  • The data. The H2 problem is stated for any generalized plant. Frequency weights on ww and zz, cross terms such as D12TC1≠0D_{12}^T C_1 \ne 0, and errors that are not of the form xTQx+uTRux^T Q x + u^T R u fit into it directly, and the noise need not be physical.

Variants

  • State feedback. If y=xy = x, the optimal controller is the static gain u=F2xu = F_2 x, which is LQR with Q=C1TC1Q = C_1^T C_1 and R=D12TD12R = D_{12}^T D_{12}, and the optimal value is tr(B1TX2B1)\mathrm{tr}(B_1^T X_2 B_1).
  • Output estimation. If the error is z=C1x−z^z = C_1 x - \hat z with an estimate as the input, the problem is optimal filtering, and the answer is the steady state Kalman-Bucy filter.
  • Discrete time. The same problem with the H2 norm on the unit circle. The two Riccati equations are discrete algebraic Riccati equations.
  • Singular problems. If D12D_{12} or D21D_{21} loses rank, or (A3) fails, the infimum may not be reached, as in cheap control.
  • Mixed H2 and H-infinity. Minimize the H2 norm of one channel subject to an H-infinity bound on another. There is no closed form; LMI methods give an upper bound.
  • Fixed order or structure. A controller of order below nn, or decentralized, makes the problem nonconvex.

Examples

A scalar plant. x˙=x+w1+u\dot x = x + w_1 + u, z=(x,u)z = (x, u), y=x+w2y = x + w_2. So A=1A = 1, B1=[1,0]B_1 = [1, 0], B2=1B_2 = 1, C1=[1;0]C_1 = [1; 0], D12=[0;1]D_{12} = [0; 1], C2=1C_2 = 1 and D21=[0,1]D_{21} = [0, 1], and the assumptions hold in the normalized form. Both Riccati equations are 2X−X2+1=02X - X^2 + 1 = 0, so X2=Y2=1+2X_2 = Y_2 = 1 + \sqrt2 and F2=L2=−(1+2)F_2 = L_2 = -(1 + \sqrt2). The optimal value is

∥Tzw∥22=(1+2)+(1+2)3=8+62≈16.485,∥Tzw∥2≈4.060.\|T_{zw}\|_2^2 = (1 + \sqrt2) + (1 + \sqrt2)^3 = 8 + 6\sqrt2 \approx 16.485, \qquad \|T_{zw}\|_2 \approx 4.060.

The controller is u=K(s)yu = K(s) y with K(s)=−(3+22)/(s+1+22)K(s) = -(3 + 2\sqrt2)/(s + 1 + 2\sqrt2), and the closed loop has a double eigenvalue at −2-\sqrt2. The H-infinity problem for the same plant has γopt=1+3≈2.732\gamma_{\rm opt} = 1 + \sqrt3 \approx 2.732. The H2 optimal controller gives ∥Tzw∥∞≈5.371\|T_{zw}\|_\infty \approx 5.371, reached at ω=0\omega = 0: the best average is not the best worst case.

The double integrator. With A=[0100]A = \begin{bmatrix} 0 & 1 \\ 0 & 0 \end{bmatrix}, B2=[01]B_2 = \begin{bmatrix} 0 \\ 1 \end{bmatrix}, C2=[10]C_2 = \begin{bmatrix} 1 & 0 \end{bmatrix} and the LQG data Q=IQ = I, R=1R = 1, W=IW = I, V=1V = 1, the optimum is ∥Tzw∥22=83≈13.856\|T_{zw}\|_2^2 = 8\sqrt3 \approx 13.856, so ∥Tzw∥2≈3.722\|T_{zw}\|_2 \approx 3.722. This is the cost J∗J^* on the LQG page, with the controller (23 s+1)/(s2+23 s+5)(2\sqrt3\, s + 1)/(s^2 + 2\sqrt3\, s + 5) from yy to −u-u.

Not well posed. If D11≠0D_{11} \ne 0, a controller with feedthrough DKD_K gives the closed loop the direct term D11+D12DKD21D_{11} + D_{12} D_K D_{21} from ww to zz, and its H2 norm is infinite unless this term is 0; for a strictly proper controller it is D11D_{11}, so the norm is infinite. If the plant has an unstable mode that B2B_2 cannot reach, no controller makes the closed loop Hurwitz.

Known algorithms

  • Two Riccati equations (Doyle, Glover, Khargonekar and Francis 1989): solve the two CAREs above by any method for the stabilizing solution, such as the Schur method, the matrix sign function or Kleinman's iteration, and form the controller. See LQG control for an implementation.
  • LMI formulation. The H2 norm bound can be written as linear matrix inequalities in the closed-loop Lyapunov matrix, and after a change of variables the full order problem becomes a semidefinite program. This form handles the mixed H2 and H-infinity problem.
  • Frequency domain methods. With the Youla parametrization the problem becomes a model matching problem in RH2RH_2, solved by spectral factorization (the Wiener-Hopf approach). This was the form used before the state-space solution.
  • Local optimization. For fixed order or fixed structure, gradient methods on the controller parameters, with the closed-loop Gramian from a Lyapunov equation giving the cost and its gradient.

Bounds

  • Order. Under the standard assumptions the optimal controller is unique and has order nn. A controller of higher order cannot do better (theorem).
  • Lower bounds. The first term of each form of the optimal value is a bound: ∥Tzw∥22≥tr(B1TX2B1)\|T_{zw}\|_2^2 \ge \mathrm{tr}(B_1^T X_2 B_1), the value with the full state measured, and ∥Tzw∥22≥tr(C1Y2C1T)\|T_{zw}\|_2^2 \ge \mathrm{tr}(C_1 Y_2 C_1^T), the value when the error only needs to be estimated. In the scalar example both are 1+21 + \sqrt2, against the optimum 8+628 + 6\sqrt2.
  • Cost. In the real-RAM model, two Riccati solutions with a Schur-based solver cost O(n3)O(n^3) flops each, iterative only through the eigenvalue algorithm, and the controller formulas cost O(n2(m2+p2))O(n^2 (m_2 + p_2)).
  • Structured forms. With B1=0B_1 = 0 and C1=0C_1 = 0, every stabilizing controller gives Tzw=0T_{zw} = 0, so the problem with a fixed controller structure contains structured stabilization problems, some of which are NP-hard.

Reductions

  • To LQG and back. The H2 problem with white noise ww is the LQG problem for the noise intensities B1B1TB_1 B_1^T and D21D21TD_{21} D_{21}^T and the weights C1TC1C_1^T C_1 and D12TD12D_{12}^T D_{12}; under the normalization the cross terms vanish.
  • Separation. The solution splits into a full information problem (one CARE, gain F2F_2) and an output estimation problem (one filter ARE, gain L2L_2), as in the separation principle.
  • From H-infinity. As γ→∞\gamma \to \infty, the central controller of the two-Riccati H-infinity synthesis tends to the H2 optimal controller.
  • To model matching. With the Youla parametrization, Tzw=T1−T2QT3T_{zw} = T_1 - T_2 Q T_3 with Q∈RH∞Q \in RH_\infty free, and the problem is min⁡Q∥T1−T2QT3∥2\min_Q \|T_1 - T_2 Q T_3\|_2, a convex problem in QQ.

Applications

  • LQG design, stated with a generalized plant that carries frequency weights on the noise and the errors.
  • Disturbance rejection where the disturbance is broadband and the average error matters more than the worst case.
  • Optimal estimation (the Kalman-Bucy filter is the H2 optimal estimator).
  • Loop transfer recovery, which Stein and Athans (1987) read as a weighted H2 trade-off.
  • The H2 part of mixed H2 and H-infinity designs.

References

  1. John C. Doyle, Keith Glover, Pramod P. Khargonekar and Bruce A. Francis, State-space solutions to standard H2 and H-infinity control problems, IEEE Transactions on Automatic Control 34(8), 831-847, 1989, the standard H2 problem, its assumptions, and its solution by two Riccati equations
  2. Kemin Zhou, John C. Doyle and Keith Glover, Robust and Optimal Control, Prentice Hall, 1996, the chapter on H2 optimal control, with the standard assumptions, the optimal controller and the optimal cost
  3. Michael Athans, The role and use of the stochastic linear-quadratic-Gaussian problem in control system design, IEEE Transactions on Automatic Control 16(6), 529-552, 1971, the stochastic LQG problem that the H2 problem restates in terms of a transfer matrix

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW2 basic
  • a known algorithm
  • a contract.yaml