Algorithm Search⌘K

Problemcore

Realization problem

Also called state-space realization problem.

Given a proper rational transfer matrix, find matrices A, B, C and D whose transfer matrix it is.

The realization problem asks, for a given transfer matrix G(s)G(s), for a state-space model (A,B,C,D)(A, B, C, D) with G(s)=C(sI−A)−1B+DG(s) = C (sI - A)^{-1} B + D. A solution exists exactly when GG is proper and rational, and then there are many, of many orders. This page is about the problem and its existence answer. The minimal realization theorem describes the solutions of least order. The Ho-Kalman algorithm computes one from exact Markov parameters, and the eigensystem realization algorithm computes an approximate one from noisy data with a truncated SVD.

In plain words

A transfer function says how a system answers its inputs, but not what goes on inside. A state-space model says both. The realization problem goes from the first description to the second: find a set of internal states and first order equations for them whose input to output behavior is the given one. This is possible exactly when the transfer function is a ratio of polynomials whose numerator degree is not larger than its denominator degree. Many models answer the question. The useful ones have as few states as possible, and all of those are the same model seen in different coordinates.

Definition

Input. A p×mp \times m matrix G(s)G(s) whose entries are functions of the complex variable ss. Equivalently, for rational GG, the constant term DD and the Markov parameters h1,h2,…h_1, h_2, \dots in G(s)=D+∑k≥1hks−kG(s) = D + \sum_{k \ge 1} h_k s^{-k}.

Output. An integer nn and real matrices A∈Rn×nA \in \mathbb{R}^{n \times n}, B∈Rn×mB \in \mathbb{R}^{n \times m}, C∈Rp×nC \in \mathbb{R}^{p \times n}, D∈Rp×mD \in \mathbb{R}^{p \times m} with G(s)=C(sI−A)−1B+DG(s) = C (sI - A)^{-1} B + D, or a statement that none exists. In Markov parameter terms the conditions are CAk−1B=hkC A^{k-1} B = h_k for every k≥1k \ge 1.

Existence. A realization exists if and only if GG is proper rational: each entry is a ratio of real polynomials with the numerator degree at most the denominator degree.

Necessity. (sI−A)−1=adj⁡(sI−A)/det⁡(sI−A)(sI - A)^{-1} = \operatorname{adj}(sI - A) / \det(sI - A). The entries of the adjugate are polynomials of degree at most n−1n - 1, and det⁡(sI−A)\det(sI - A) has degree nn. So each entry of C(sI−A)−1BC (sI - A)^{-1} B is rational with a numerator of lower degree than the denominator, and adding the constant DD keeps it proper.

Sufficiency. Let d(s)=sr+α1sr−1+⋯+αrd(s) = s^r + \alpha_1 s^{r-1} + \dots + \alpha_r be the monic least common denominator of the entries of G(s)−G(∞)G(s) - G(\infty). Then G(s)=D+N(s)/d(s)G(s) = D + N(s)/d(s) with D=G(∞)D = G(\infty) and N(s)=N1sr−1+N2sr−2+⋯+NrN(s) = N_1 s^{r-1} + N_2 s^{r-2} + \dots + N_r, where each NkN_k is a real p×mp \times m matrix. The block controllable form

A=[0Im⋱⋱0Im−αrIm⋯−α2Im−α1Im],B=[0⋮0Im],C=[NrNr−1⋯N1]A = \begin{bmatrix} 0 & I_m & & \\ & \ddots & \ddots & \\ & & 0 & I_m \\ -\alpha_r I_m & \cdots & -\alpha_2 I_m & -\alpha_1 I_m \end{bmatrix}, \quad B = \begin{bmatrix} 0 \\ \vdots \\ 0 \\ I_m \end{bmatrix}, \quad C = \begin{bmatrix} N_r & N_{r-1} & \cdots & N_1 \end{bmatrix}

of order mrm r is a realization. To check it, solve (sI−A)X=B(sI - A) X = B: the block rows give X=(Im,sIm,…,sr−1Im)T/d(s)X = (I_m, s I_m, \dots, s^{r-1} I_m)^T / d(s), and CX=N(s)/d(s)C X = N(s)/d(s). The dual block observable form, with A=[0−αrIpIp⋱⋮⋱0−α2IpIp−α1Ip]A = \begin{bmatrix} 0 & & & -\alpha_r I_p \\ I_p & \ddots & & \vdots \\ & \ddots & 0 & -\alpha_2 I_p \\ & & I_p & -\alpha_1 I_p \end{bmatrix}, B=(Nr;Nr−1;… ;N1)B = (N_r; N_{r-1}; \dots; N_1) and C=[0,…,0,Ip]C = [0, \dots, 0, I_p], has order prp r. For m=p=1m = p = 1 these are the controllable canonical form and the observable canonical form.

Infinite sequences. A sequence h1,h2,…h_1, h_2, \dots of p×mp \times m matrices is the sequence of Markov parameters of some finite realization if and only if its infinite block Hankel matrix, with blocks hi+j−1h_{i+j-1}, has finite rank. That rank is then the minimal order.

Variants

  • Minimal realization. Find a realization of least order. The answer is any realization that is controllable and observable, and its order is the McMillan degree of GG; see minimal realization.
  • Realization from data. The Markov parameters are measured, for example as samples of the impulse response of a discrete-time system, and contain noise. The exact problem is then ill posed, and the question becomes which low order model fits best. See the eigensystem realization algorithm and subspace identification.
  • Partial realization. Only h1,…,hNh_1, \dots, h_N are given. Find a realization of least order whose first NN Markov parameters match. For scalar sequences this is the problem of the shortest linear recurrence that generates the sequence, which the Berlekamp-Massey algorithm solves, and it is close to Padé approximation at infinity. When the order is known to be at most nn, the 2n2n parameters h1,…,h2nh_1, \dots, h_{2n} fix the transfer matrix.
  • Discrete time. For xk+1=Axk+Bukx_{k+1} = A x_k + B u_k the problem is the same with zz in place of ss, and the Markov parameters are the impulse response hk=CAk−1Bh_k = C A^{k-1} B.
  • Structured realizations. Some applications ask for more, for example matrices with nonnegative entries for positive systems. Such problems are harder, and for positive systems the least order can exceed the McMillan degree.

Examples

  • A scalar function. G(s)=(s+3)/(s2+3s+2)G(s) = (s + 3)/(s^2 + 3 s + 2) has the realization A=[01−2−3]A = \begin{bmatrix} 0 & 1 \\ -2 & -3 \end{bmatrix}, B=(0,1)TB = (0, 1)^T, C=[3,1]C = [3, 1], D=0D = 0. It is minimal, because s+3s + 3 and s2+3s+2s^2 + 3 s + 2 have no common root.
  • A row of two functions. G(s)=[1/(s+1),1/(s+2)]G(s) = [1/(s + 1), 1/(s + 2)], with p=1p = 1 and m=2m = 2. Here d(s)=s2+3s+2d(s) = s^2 + 3 s + 2 and N(s)=[s+2,s+1]=[1,1]s+[2,1]N(s) = [s + 2, s + 1] = [1, 1] s + [2, 1], so N1=[1,1]N_1 = [1, 1] and N2=[2,1]N_2 = [2, 1]. The block controllable form has order mr=4m r = 4: A=[0I2−2I2−3I2]A = \begin{bmatrix} 0 & I_2 \\ -2 I_2 & -3 I_2 \end{bmatrix}, B=(0;I2)B = (0; I_2), C=[2,1,1,1]C = [2, 1, 1, 1]. The block observable form has order pr=2p r = 2: A=[0−21−3]A = \begin{bmatrix} 0 & -2 \\ 1 & -3 \end{bmatrix}, B=[2111]B = \begin{bmatrix} 2 & 1 \\ 1 & 1 \end{bmatrix}, C=[0,1]C = [0, 1]. To check the second one, C(sI−A)−1=[1,s]/d(s)C (sI - A)^{-1} = [1, s] / d(s) and [1,s]B=[s+2,s+1][1, s] B = [s + 2, s + 1]. The residues at −1-1 and −2-2 are [1,0][1, 0] and [0,1][0, 1], each of rank 1, so the McMillan degree is 2, and the order 2 realization is minimal. The order 4 realization is controllable but not observable.
  • From Markov parameters. 1/((s+1)(s+2))=s−2−3s−3+7s−4−15s−5+…1/((s + 1)(s + 2)) = s^{-2} - 3 s^{-3} + 7 s^{-4} - 15 s^{-5} + \dots, so h1,h2,h3,⋯=0,1,−3,7,−15,…h_1, h_2, h_3, \dots = 0, 1, -3, 7, -15, \dots. The Hankel matrix [011−3]\begin{bmatrix} 0 & 1 \\ 1 & -3 \end{bmatrix} has rank 2, and the 3×33 \times 3 one has determinant 00, in agreement with the minimal order 2.
  • Improper (non-example). G(s)=sG(s) = s, the transfer function of a differentiator, has no realization: C(sI−A)−1B+DC (sI - A)^{-1} B + D tends to DD as s→∞s \to \infty, while ss does not stay bounded.
  • Not rational (non-example). G(s)=e−sG(s) = e^{-s}, a pure delay of one second, has no finite-dimensional realization, since every C(sI−A)−1B+DC (sI - A)^{-1} B + D is rational. Rational approximations of the delay, such as Padé approximants, do have realizations.

Known algorithms

  • Block companion forms. Write G=D+N(s)/d(s)G = D + N(s)/d(s) and read off the block controllable form (order mrm r) or the block observable form (order prp r). Choose the smaller one. The result need not be minimal.
  • Reduction to a minimal realization. Remove the uncontrollable and then the unobservable part by the Kalman decomposition. With staircase reductions by orthogonal transformations (Van Dooren 1981) this is numerically stable, and it costs of the order of n3n^3 operations for a realization of order nn when mm and pp are at most nn. The rank decisions need a tolerance.
  • Gilbert's method. If G(s)=D+∑i=1qRi/(s−pi)G(s) = D + \sum_{i=1}^{q} R_i / (s - p_i) with distinct poles, factor each residue as Ri=UiViR_i = U_i V_i with ρi=rank⁡Ri\rho_i = \operatorname{rank} R_i columns in UiU_i. Then A=diag⁡(p1Iρ1,…,pqIρq)A = \operatorname{diag}(p_1 I_{\rho_1}, \dots, p_q I_{\rho_q}), B=(V1;… ;Vq)B = (V_1; \dots; V_q) and C=[U1,…,Uq]C = [U_1, \dots, U_q] give a minimal realization of order ∑iρi\sum_i \rho_i (Gilbert 1963). Complex conjugate poles give complex blocks, which a further change of coordinates turns into real 2×22 \times 2 blocks.
  • Hankel factorization. Build the block Hankel matrix of the Markov parameters, factor it as OC\mathcal{O} \mathcal{C} by a rank factorization, and read CC, BB and AA from the factors and the shifted Hankel matrix. This is the Ho-Kalman algorithm for exact data. With a truncated singular value decomposition in place of an exact factorization it becomes the eigensystem realization algorithm for noisy data.
  • Coprime fractions. Write G=N(s)D(s)−1G = N(s) D(s)^{-1} with right coprime polynomial matrices and D(s)D(s) column reduced. A realization built from the column degrees of D(s)D(s) has order deg⁡det⁡D(s)\deg \det D(s), which is the McMillan degree.
AlgorithmTimeSpacePropertiesCode
Eigensystem realization algorithmO(N^3 m p (m + p)) worstO(N^2 m p) extradeterministicexactnot iterativeoffline1 language
Ho-Kalman algorithmO(N^2 m n p + n^3) worstO(N^2 m p) extradeterministicexactoffline1 language

Bounds

  • Lower bound. Every realization has order at least the McMillan degree δ(G)\delta(G), and δ(G)=rank⁡HN\delta(G) = \operatorname{rank} H_N for NN large enough.
  • Upper bound from the forms. δ(G)≤min⁡(mr,pr)\delta(G) \le \min(m r, p r), where rr is the degree of the least common denominator, by the two block companion forms. For a scalar GG in lowest terms, δ(G)=r\delta(G) = r.
  • Data needed. If δ(G)≤n\delta(G) \le n is known, the 2n2n Markov parameters h1,…,h2nh_1, \dots, h_{2n} determine GG, and the Hankel matrices HnH_n and the shifted HnσH_n^{\sigma} built from them are enough to compute a minimal realization.
  • Cost. A block companion form needs only the coefficients of d(s)d(s) and N(s)N(s), which come from a polynomial gcd computation and polynomial products, and its matrices have O((mr)2+pmr)O((m r)^2 + p m r) entries. Reducing it to a minimal realization costs O(n3)O(n^3) more operations in the real-RAM model, with n=min⁡(mr,pr)n = \min(m r, p r).

Reductions

  • To Markov parameters. For rational GG, the Laurent expansion at s=∞s = \infty turns the problem into one about the sequence D,h1,h2,…D, h_1, h_2, \dots, and the Hankel rank condition decides it.
  • To controllability and observability. Any realization, however obtained, reduces to a minimal one by removing the parts that are not controllable or not observable, so the minimal problem reduces to the existence problem plus the Kalman decomposition.
  • By transposition. (A,B,C,D)(A, B, C, D) realizes GG if and only if (AT,CT,BT,DT)(A^T, C^T, B^T, D^T) realizes GTG^T. So a method for the case m≤pm \le p also solves the case m>pm > p.
  • To linear recurrences. The scalar partial realization problem is the problem of the shortest linear recurrence for a finite sequence, the same problem that a linear feedback shift register synthesis algorithm solves over a finite field.

Applications

  • Simulation: an ordinary differential equation solver needs a state model, not a transfer function.
  • Design: the state-space methods, such as the LQR, pole placement and the Kalman filter, start from (A,B,C,D)(A, B, C, D), while plant data often come as transfer functions or frequency responses.
  • Implementation: a controller designed as a transfer matrix is run on a computer as a state recursion, and a minimal realization keeps the number of stored states small.
  • Identification and model reduction: measured impulse responses are turned into state models by the Hankel based methods, and balanced truncation reduces them further.

References

  1. R. E. Kalman, Mathematical description of linear dynamical systems, SIAM Journal on Control 1(2), 152-192, 1963, the realization problem for transfer matrices and impulse responses, and the role of the controllable and observable part
  2. Elmer G. Gilbert, Controllability and observability in multivariable control systems, SIAM Journal on Control 1(2), 128-151, 1963, the minimal realization of a transfer matrix with simple poles from rank factorizations of its residues
  3. B. L. Ho and R. E. Kalman, Effective construction of linear state-variable models from input/output functions, Regelungstechnik 14, 545-548, 1966, the construction of a minimal realization from the Hankel matrix of the Markov parameters
  4. Paul Van Dooren, The generalized eigenstructure problem in linear system theory, IEEE Transactions on Automatic Control 26(1), 111-129, 1981, staircase reductions with orthogonal transformations, used to remove the uncontrollable and unobservable parts of a realization
  5. Chi-Tsong Chen, Linear System Theory and Design, third edition, Oxford University Press, 1999, Section 4.4 (realizations, and the block companion realization of a proper rational matrix), Section 7.5 (realizations from Markov parameters) and Section 7.7 (minimal realizations in the matrix case)

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 contract.yaml