Algorithm Search⌘K

Theoremcore

Minimal realization theorem

Also called minimal realization, irreducible realization.

A realization has the least state dimension if and only if it is controllable and observable, and all minimal realizations are similar.

The minimal realization theorem says that a state-space realization of a transfer matrix has the fewest possible states exactly when it is controllable and observable, and that any two such realizations differ only by a change of state coordinates. The least number of states is the rank of the Hankel matrix of the Markov parameters, which equals the McMillan degree. The theorem describes what a minimal realization is. The realization problem asks whether a realization exists at all, and the Ho-Kalman algorithm (exact data) and the eigensystem realization algorithm (noisy data, with a truncated SVD) are methods that compute one.

Statement

Notation. G(s)G(s) is a proper rational p×mp \times m transfer matrix. A realization of order nn is a quadruple (A,B,C,D)(A, B, C, D) with A∈Rn×nA \in \mathbb{R}^{n \times n} and G(s)=C(sI−A)−1B+DG(s) = C (sI - A)^{-1} B + D. Then D=G(∞)D = G(\infty), and the Markov parameters hk=CAk−1Bh_k = C A^{k-1} B for k≥1k \ge 1 are the coefficients of G(s)−D=∑k≥1hks−kG(s) - D = \sum_{k \ge 1} h_k s^{-k}, so they depend only on GG. The block Hankel matrix with NN block rows and columns is

HN=[h1h2⋯hNh2h3⋯hN+1⋮⋮hNhN+1⋯h2N−1].H_N = \begin{bmatrix} h_1 & h_2 & \cdots & h_N \\ h_2 & h_3 & \cdots & h_{N+1} \\ \vdots & & & \vdots \\ h_N & h_{N+1} & \cdots & h_{2N-1} \end{bmatrix}.

A realization is minimal if no realization of GG has a smaller order.

Theorem (Kalman 1963). Let (A,B,C,D)(A, B, C, D) be a realization of GG of order nn.

  1. It is minimal if and only if (A,B)(A, B) is controllable and (C,A)(C, A) is observable.
  2. The minimal order is nmin⁡=rank⁡HNn_{\min} = \operatorname{rank} H_N for every N≥nN \ge n, and this is also the McMillan degree of GG, the sum of the degrees of the denominators in its Smith-McMillan form (Kalman 1965).
  3. If (A1,B1,C1,D)(A_1, B_1, C_1, D) and (A2,B2,C2,D)(A_2, B_2, C_2, D) are both minimal, there is exactly one invertible TT with A2=TA1T−1A_2 = T A_1 T^{-1}, B2=TB1B_2 = T B_1 and C2=C1T−1C_2 = C_1 T^{-1}. It is T=O2+O1T = \mathcal{O}_2^{+} \mathcal{O}_1, where Oi\mathcal{O}_i is the observability matrix of (Ci,Ai)(C_i, A_i) and O2+=(O2TO2)−1O2T\mathcal{O}_2^{+} = (\mathcal{O}_2^T \mathcal{O}_2)^{-1} \mathcal{O}_2^T.

For a scalar G=b/aG = b/a with bb and aa coprime, the minimal order is deg⁡a\deg a.

In plain words

Many different state models can have the same input to output behavior. Some of them carry extra states that the input never moves or that the output never shows. Such states can be removed without changing the behavior, so those models are not as small as they could be. The theorem says that this is the only way a model can be too large: a model in which every state can be reached and every state can be seen already has the fewest states possible. It also says that all smallest models are the same model in different coordinates, so the smallest model is unique in every way that matters. The number of states it needs can be read from the impulse response alone, as the rank of a matrix built from it.

Proof

Step 1: the Hankel matrix factors. Let ON=[C;CA;… ;CAN−1]\mathcal{O}_N = [C; CA; \dots; CA^{N-1}] and CN=[B,AB,…,AN−1B]\mathcal{C}_N = [B, AB, \dots, A^{N-1} B]. The block (i,j)(i, j) of ONCN\mathcal{O}_N \mathcal{C}_N is CAi−1Aj−1B=hi+j−1C A^{i-1} A^{j-1} B = h_{i+j-1}, so HN=ONCNH_N = \mathcal{O}_N \mathcal{C}_N. In the same way the shifted Hankel matrix HNσH_N^{\sigma} with blocks hi+jh_{i+j} is ONA CN\mathcal{O}_N A\, \mathcal{C}_N. Both depend only on GG.

Step 2: every realization bounds the rank. For any realization of order n′n', rank⁡HN≤n′\operatorname{rank} H_N \le n' for every NN, because ON\mathcal{O}_N has n′n' columns.

Step 3: controllable and observable implies minimal. Let (A,B)(A, B) be controllable and (C,A)(C, A) observable, and N≥nN \ge n. Then ON\mathcal{O}_N has rank nn (full column rank) and CN\mathcal{C}_N has rank nn (full row rank), so HN=ONCNH_N = \mathcal{O}_N \mathcal{C}_N has rank nn: if ONCNz=0\mathcal{O}_N \mathcal{C}_N z = 0 then CNz=0\mathcal{C}_N z = 0, so the kernel of HNH_N is that of CN\mathcal{C}_N. By Step 2 every realization has order at least nn, so this one is minimal, and nmin⁡=rank⁡HNn_{\min} = \operatorname{rank} H_N.

Step 4: minimal implies controllable and observable. If (A,B)(A, B) is not controllable or (C,A)(C, A) is not observable, the Kalman decomposition gives the realization (A11,B1,C1,D)(A_{11}, B_1, C_1, D) of the same GG with order n1<nn_1 < n. So the realization was not minimal.

Steps 3 and 4 prove part 1, and with Step 2 they give nmin⁡=rank⁡HNn_{\min} = \operatorname{rank} H_N for N≥nN \ge n: a realization of order nn reduces by Step 4 to a minimal one of order nmin⁡≤nn_{\min} \le n, which by Step 3 has rank⁡HN=nmin⁡\operatorname{rank} H_N = n_{\min}.

Step 5: similarity. Let both realizations be minimal of order nn, and write Oi\mathcal{O}_i, Ci\mathcal{C}_i for their matrices with nn block rows or columns. By Step 1, O1C1=O2C2\mathcal{O}_1 \mathcal{C}_1 = \mathcal{O}_2 \mathcal{C}_2 and O1A1C1=O2A2C2\mathcal{O}_1 A_1 \mathcal{C}_1 = \mathcal{O}_2 A_2 \mathcal{C}_2. Let O2+\mathcal{O}_2^{+} be the left inverse above and C2+=C2T(C2C2T)−1\mathcal{C}_2^{+} = \mathcal{C}_2^T (\mathcal{C}_2 \mathcal{C}_2^T)^{-1} a right inverse. Put T=O2+O1T = \mathcal{O}_2^{+} \mathcal{O}_1 and S=C1C2+S = \mathcal{C}_1 \mathcal{C}_2^{+}. Then

  • TC1=O2+O2C2=C2T \mathcal{C}_1 = \mathcal{O}_2^{+} \mathcal{O}_2 \mathcal{C}_2 = \mathcal{C}_2, and O1S=O2C2C2+=O2\mathcal{O}_1 S = \mathcal{O}_2 \mathcal{C}_2 \mathcal{C}_2^{+} = \mathcal{O}_2;
  • TS=O2+O1C1C2+=O2+O2C2C2+=IT S = \mathcal{O}_2^{+} \mathcal{O}_1 \mathcal{C}_1 \mathcal{C}_2^{+} = \mathcal{O}_2^{+} \mathcal{O}_2 \mathcal{C}_2 \mathcal{C}_2^{+} = I, so TT is invertible and S=T−1S = T^{-1};
  • the first block column of TC1=C2T \mathcal{C}_1 = \mathcal{C}_2 gives TB1=B2T B_1 = B_2, and the first block row of O1T−1=O2\mathcal{O}_1 T^{-1} = \mathcal{O}_2 gives C1T−1=C2C_1 T^{-1} = C_2;
  • A2=O2+(O2A2C2)C2+=O2+O1A1C1C2+=TA1T−1A_2 = \mathcal{O}_2^{+} (\mathcal{O}_2 A_2 \mathcal{C}_2) \mathcal{C}_2^{+} = \mathcal{O}_2^{+} \mathcal{O}_1 A_1 \mathcal{C}_1 \mathcal{C}_2^{+} = T A_1 T^{-1}.

If T′T' is another such matrix, then O1=O2T′\mathcal{O}_1 = \mathcal{O}_2 T', and multiplying by O2+\mathcal{O}_2^{+} gives T′=TT' = T.

Step 6: the scalar case. For G=b/aG = b/a in lowest terms with deg⁡a=r\deg a = r, the controllable canonical form of order rr is controllable, and it is observable because aa and bb have no common root. By part 1 it is minimal, so nmin⁡=rn_{\min} = r.

The identity of nmin⁡n_{\min} with the McMillan degree in part 2 is proved by Kalman (1965) from the Smith-McMillan form, and is not repeated here. ■\blacksquare

Consequences

  • Poles are eigenvalues. For a minimal realization, the poles of GG, with their McMillan multiplicities, are exactly the eigenvalues of AA. For a non-minimal realization, AA has extra eigenvalues: the hidden modes of the Kalman decomposition.
  • Stability. For a minimal realization, GG has all its poles in the open left half plane if and only if AA is Hurwitz. So for minimal realizations, input-output stability and internal asymptotic stability agree. For non-minimal ones they can differ.
  • Reduction. Any realization reduces to a minimal one by removing the uncontrollable part and then the unobservable part.
  • Gilbert's formula. If G(s)=D+∑i=1qRi/(s−pi)G(s) = D + \sum_{i=1}^{q} R_i / (s - p_i) with distinct poles pip_i and constant residue matrices RiR_i, the minimal order is ∑irank⁡Ri\sum_i \operatorname{rank} R_i (Gilbert 1963).
  • Discrete time. The theorem is the same for xk+1=Axk+Bukx_{k+1} = A x_k + B u_k, where the Markov parameters are the impulse response samples.
  • Numerical rank. Deciding the minimal order from data means deciding the rank of HNH_N, which is unstable under small errors. The Hankel singular values of a realization measure how close it is to one of lower order, and the eigensystem realization algorithm truncates them.

Worked example. G(s)=1/((s+1)(s+2))G(s) = 1/((s + 1)(s + 2)) has the Markov parameters 0,1,−3,7,−15,…0, 1, -3, 7, -15, \dots. Then H2=[011−3]H_2 = \begin{bmatrix} 0 & 1 \\ 1 & -3 \end{bmatrix} has determinant −1-1, and H3=[01−31−37−37−15]H_3 = \begin{bmatrix} 0 & 1 & -3 \\ 1 & -3 & 7 \\ -3 & 7 & -15 \end{bmatrix} has determinant 00, so nmin⁡=2n_{\min} = 2. Two minimal realizations are the controllable form A1=[01−2−3]A_1 = \begin{bmatrix} 0 & 1 \\ -2 & -3 \end{bmatrix}, B1=(0,1)TB_1 = (0, 1)^T, C1=[1,0]C_1 = [1, 0] and the modal form A2=diag⁡(−1,−2)A_2 = \operatorname{diag}(-1, -2), B2=(1,1)TB_2 = (1, 1)^T, C2=[1,−1]C_2 = [1, -1]. Here O1=I\mathcal{O}_1 = I and O2=[1−1−12]\mathcal{O}_2 = \begin{bmatrix} 1 & -1 \\ -1 & 2 \end{bmatrix}, so T=O2−1=[2111]T = \mathcal{O}_2^{-1} = \begin{bmatrix} 2 & 1 \\ 1 & 1 \end{bmatrix}. Check: TB1=(1,1)TT B_1 = (1, 1)^T, C1T−1=[1,0][1−1−12]=[1,−1]C_1 T^{-1} = [1, 0] \begin{bmatrix} 1 & -1 \\ -1 & 2 \end{bmatrix} = [1, -1], and TA1T−1=diag⁡(−1,−2)T A_1 T^{-1} = \operatorname{diag}(-1, -2).

Matrix examples. G(s)=1s+1[1111]G(s) = \frac{1}{s + 1} \begin{bmatrix} 1 & 1 \\ 1 & 1 \end{bmatrix} has one residue of rank 1, so nmin⁡=1n_{\min} = 1: A=−1A = -1, B=[1,1]B = [1, 1], C=(1,1)TC = (1, 1)^T. G(s)=1s+1I2G(s) = \frac{1}{s + 1} I_2 has the same denominator but a residue of rank 2, so nmin⁡=2n_{\min} = 2. The degree of a common denominator does not give the minimal order of a matrix.

Tightness

  • Controllability alone is not enough. The controllable canonical form of (s+1)/(s2+3s+2)(s + 1)/(s^2 + 3 s + 2) has order 2 and is controllable, but it is not observable, and G=1/(s+2)G = 1/(s + 2) has a realization of order 1. Observability alone fails in the dual way.
  • Non-minimal realizations need not be similar. (diag⁡(−2,−1),(1,0)T,[1,0],0)(\operatorname{diag}(-2, -1), (1, 0)^T, [1, 0], 0) and (diag⁡(−2,−5),(1,0)T,[1,0],0)(\operatorname{diag}(-2, -5), (1, 0)^T, [1, 0], 0) both realize 1/(s+2)1/(s + 2) with order 2, but their AA matrices have different eigenvalues, so no TT relates them.
  • Finite dimension is needed. A transfer function that is not rational, such as e−se^{-s}, has no realization of finite order at all; see realization problem.

History

McMillan defined the degree of a rational matrix in 1952, in his work on the synthesis of electrical networks, as the least number of reactive elements needed. Gilbert in 1963 found the minimal order of a transfer matrix with simple poles from the ranks of the residues. Kalman in the same issue of the SIAM Journal on Control proved that a realization is irreducible exactly when it is controllable and observable, and that irreducible realizations are unique up to a change of coordinates. In 1965 he showed that the minimal order equals the McMillan degree. Ho and Kalman in 1966 gave the rank of the Hankel matrix as the minimal order, with an algorithm that builds a minimal realization from the Markov parameters.

References

  1. R. E. Kalman, Mathematical description of linear dynamical systems, SIAM Journal on Control 1(2), 152-192, 1963, a realization is irreducible if and only if it is controllable and observable, and irreducible realizations are unique up to a change of coordinates
  2. Elmer G. Gilbert, Controllability and observability in multivariable control systems, SIAM Journal on Control 1(2), 128-151, 1963, the minimal order of a transfer matrix with simple poles as the sum of the ranks of its residues
  3. R. E. Kalman, Irreducible realizations and the degree of a rational matrix, Journal of the Society for Industrial and Applied Mathematics 13(2), 520-544, 1965, the minimal order of a realization equals the McMillan degree of the transfer matrix
  4. B. L. Ho and R. E. Kalman, Effective construction of linear state-variable models from input/output functions, Regelungstechnik 14, 545-548, 1966, the minimal order as the rank of the Hankel matrix of the Markov parameters, and the construction of a minimal realization from it
  5. Chi-Tsong Chen, Linear System Theory and Design, third edition, Oxford University Press, 1999, Section 7.2 (minimal realizations of scalar transfer functions and coprimeness), Section 7.6 (degree of transfer matrices) and Section 7.7 (minimal realizations in the matrix case)

Where this leads

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)
WritingW4 complete
  • a review of the text: no review record reviews/8B0AE4/text.yaml