Reduced Order State-Space Models for 2-D Systems
Full text
FACULDADE DE ENGENHARIA DA UNIVERSIDADE DO PORTO Reduced Order State-Space Models for 2-D Systems Diogo Pernes Cunha Mestrado Integrado em Engenharia Eletrotécnica e de Computadores Supervisor: Paula Rocha Malonek July 31, 2013
© Diogo Pernes Cunha, 2013
Resumo Nesta dissertação, é feito um estudo sobre realização em espaço de estados de sistemas 2-D, bem como sobre a redução da ordem destes modelos. Numa primeira fase, considerando um sistema 2-D como um sistema 1-D com coeficientes definidos sobre o anel das funções racionais próprias, obtêm-se alguns resultados preliminares sobre uma via nunca antes explorada para a redução da ordem dos modelos. Numa segunda fase, apresenta-se um algoritmo da autoria de C.Beck e J.Doyle para a redução da ordem de modelos 2-D e propõe-se uma abordagem alternativa. As respetivas vantagens e desvantagens de cada uma são ilustradas através de exemplos de aplicação. i
ii
Abstract In this thesis, a study is made on the state-space realization and model order reduction of 2- D systems. In a first stage, considering a 2-D system as a 1-D system with coefficients over the ring of proper rational functions, some preliminary results on model reduction are obtained through a novel approach. In a second stage, an algorithm by C.Beck and J.Doyle for model order reduction of 2-D systems is presented and an alternative approach is proposed. The advantages and drawbacks of each algorithm are highlighted through application examples. iii
iv
Agradecimentos À minha orientadora, Professora Paula Rocha Malonek, que foi absolutamente incansável durante todo o meu trabalho. Acredito firmemente que sem a sua orientação, dedicação e inesgotável paciência não teria sido possivel concluir esta tarefa da mesma forma. Aos meus Amigos, que são um dos meus grandes suportes. Neste contexto, uma palavra especial para os meus também colegas Hugo Cruz, pelo muito que aprendi em cada trabalho que fizemos juntos, João Granja, pelo seu brilhantismo, perfecionismo e humildade contagiantes, e Luís Pires, pela amizade que demonstra ao me aturar muito e em todos os momentos. À minha família, a quem devo grande parte do que sou. Ao meu pai. Diogo Pernes Cunha v
vi
“In formal logic, a contradiction is the signal of a defeat; but in the evolution of real knowledge it marks the first step in progress towards victory.” Alfred North Whitehead vii
xiv LIST OF TABLES
Abbreviations and Notation BIBO Bounded-Input, Bounded-Output FIR Finite Impulse Response IIR Infinite Impulse Response LMI Linear Matrix Inequality MIMO Multiple-Input, Multiple-Output MSE Mean Squared Error n-D n-dimensional PSNR Peak Signal-to-Noise Ratio PSVD Pseudo Singular Value Decomposition SISO Single-Input, Single-Output SVD Singular Value Decomposition K[z]Set of polynomials in the variable zwith coefficients in K K(z)Set of rational functions in the variable zwith with coefficients in K Kp(z)Set of proper rational functions in the variable zwith coefficients in K Q(R)Field of fractions of the ring R deg(p(z)) Degree in zof the polynomial p(z) dim(M)Dimension of the square matrix M ρ(M)Spectral radius of the square matrix M Mad j Adjugate matrix of the square matrix M M†Moore-Penrose pseudoinverse of the matrix M M>0 If Mis a hermitian matrix, this means that Mis positive definite M≥0 If Mis a hermitian matrix, this means that Mis positive semidefinite M>NIf Mand Nare hermitian matrices of the same dimension, this means that M−N>0 M≥NIf Mand Nare hermitian matrices of the same dimension, this means that M−N≥0 M(z)∗If M(z)is a rational matrix in the variable z, this is the same as M(z−1)T n1Dimension of the vertical state vector n2Dimension of the horizontal state vector Z Z :=z2In20 0z1In1 ¯ U¯ U:={(z1,z2)∈C2:|z1|≥1,|z2|≥1} W W :={(z1,z2)∈C2:|z1|=1,|z2|=1} xv
Chapter 1 Introduction Linear systems are rather familiar to any electrical engineer. They usually represent the dynamics of a process whose inputs and outputs evolve along time, so a model with one single independent variable (1-D model) is enough. However, in some situations, it may be necessary to consider two independent variables instead of one. Potential areas of application of this kind of systems are digital image processing, seismic analysis, 2-D encoders and even some sophisticated control systems. In digital image filtering, for instance, two spacial directions (horizontal and vertical) have to be taken into account, thus a model with only one independent variable would clearly not be adequate in this context. There are two main approaches when dealing with digital filters, namely using the convolution with the corresponding impulse response, or then using state-space representations. The former is actually the most common choice for finite impulse response filters (FIR filters), but it becomes very inconvenient for infinite impulse response filters (IIR filters). It is also important to point out that the computation of the output of the filter becomes much simplified if a state-space representation is used. In fact, the state-space is a recursive model which allows the calculation of the output without requiring the computation of any convolution. The amount of information that has to be kept in memory is also reduced: knowledge of all previous input samples is not needed to calculate the next output sample, since it is completely determined by the current state of the system and the current input sample. These two characteristics of state-space models may be specially relevant in real-time systems, where computational time and memory available are key factors for good performance. The practical applications and advantages just referred motivate the great amount of research that has been done in past years about 2-D state-space models (see, for instance, [1], [2], [3] and [4]). As might be expected, it turns out that the widely studied 1-D systems theory does not apply directly to the two-dimensional case. In the following, a brief presentation of 2-D systems will be made and the main differences will be highlighted. One of the crucial issues in the context of state-space modelling is the number of state variables 1
2Introduction which are necessary to represent a given input-output relation. Models with a large number of state variables occur in many practical applications. If the model is obtained experimentally, via system identification algorithms, this may happen due to noisy measures. If the model is rigorous, this happens simply because the world we live in is far from being simple. In any case, an approximate representation of the system with a reduced number of state variables (reduced order model) would often be more desirable. With small order models, faster simulations are performed, less memory is required, implementation on a chip is easier, among other advantages. For the one-dimensional case there are rather efficient and relatively simple methods for model order reduction. However, for 2-D systems the problem becomes more complicated, although some algorithms have been proposed over the past few years (see [5], [6], [7] and [8], among others). The purpose of this thesis is investigating the existence and details of a possible new method to solve this problem. In order to state this purpose in a more concrete way, some preliminary notions and results from 1-D systems theory need to be reviewed. This is done in Chapter 2. Chapter 3 contains an introduction to 2-D systems, which includes a presentation of a particular two-dimensional state-space model, some notions of realization theory and on the stability of this kind of systems. Chapter 4 includes the main results of this thesis. After a brief overview of existing approaches to 2-D model order reduction, some preliminary results are derived using a completely non-explored via, by regarding 2-D systems as 1-D systems with coefficients over the ring of 1-D proper rational functions. Then, an existing 2-D model order reduction algorithm is presented in detail and a new alternative approach is developed. The chapter is concluded with the application of both algorithms to some toy examples. Finally, in Chapter 5, the order reduction approaches discussed before are applied in two case studies with practical relevance.
Chapter 2 Model order reduction for 1-D systems: a brief overview 2.1 Preliminaries A discrete-time 1-D state-space model is given by the equations: x(t+1) = Ax(t)+Bu(t)(2.1) y(t) = Cx(t)+Du(t),(2.2) where t∈Z+ 0,x(t)∈Rnis the state vector, u(t)∈Rpis the input vector, y(t)∈Rmis the output vector, A∈Rn×n,B∈Rn×p,C∈Rm×nand D∈Rm×p. The dimension or order of the model is defined by the number of state components, i.e., it corresponds to the value of n. The output of the model, starting from the initial state x(0) = 0n, when the input is ul(t) = δ(t):= 1,t=0 0,t>0,l=1,..., p,(2.3) is called the impulse response of the state-space model. It is straightforward to check that the impulse response, hΣ(t), of the state-space model Σ= (A,B,C,D)is given by: hΣ(t) = D,t=0 CAt−1B,t>0.(2.4) The formal power series GΣ(z):= ∞ ∑ t=0 hΣ(t)z−t(2.5) 3
4Model order reduction for 1-D systems: a brief overview is the m×pmodel transfer matrix. By using (2.4) and (2.5), one can show that: GΣ(z) = C(zI −A)−1B+D.(2.6) A relevant property of any model transfer matrix is the fact that all of its entries are proper rational functions, i.e., rational functions in which the degree of the numerator polynomial is not larger than the degree of the denominator polynomial (for a proof, see [9]). If the equality holds, the rational function is said to be biproper; if it doesn’t, the rational function is called strictly proper. By abuse of terminology, if all entries of a transfer matrix are proper rational functions, that transfer matrix is itself said to be proper. Defining u(z)and y(z)as u(z) = ∞ ∑ t=0 u(t)z−t,(2.7) y(z) = ∞ ∑ t=0 u(t)z−t,(2.8) it can be shown that, assuming x(0) = 0n, y(z) = GΣ(z)u(z).(2.9) A state-space model Σ= (A,B,C,D)is said to be a realization of a transfer matrix G(z)if the model transfer matrix, GΣ(z), coincides with G(z), i.e., GΣ(z) = G(z). In a time domain formulation, Σ= (A,B,C,D)is said to be a realization of an impulse response, h(t), if the model impulse response, hΣ(t), coincides with h(t), i.e., hΣ(t) = h(t). In either case, this means that Σ= (A,B,C,D)is a realization of an input-output system if its input-output dynamics with zero initial state coincides with the one of the given system. As it is well known, the same transfer matrix (or impulse response) may be realized by statespace models of different orders. However, as pointed out in the introduction, realizations with the smallest possible number of state components, i.e., minimal realizations, are always preferable. So, the question of how to obtain such realizations arises. Before going into that discussion, it is useful to recall the notions of controllability, observability and stability. Definition The system (2.1)-(2.2) or the pair (A,B)is said to be controllable if, for any initial state x0and any final state x∗, there exists a finite sequence of input samples, u(0),u(1),···,u(t∗−1), that transfers the system from x0to x∗, i.e., such that x(0) = x0and x(t∗) = x∗. Otherwise, the system is said to be uncontrollable. Definition The system (2.1)-(2.2) or the pair (A,C)is said to be observable if, for zero inputs, any unknown initial state x0can be determined from a finite sequence of observations of the output, y(0),y(1),···,y(t∗−1). Otherwise, the system is said to be unobservable.
2.1 Preliminaries 5 Definition The system (2.1)-(2.2) or the matrix Ais said to be stable if, for zero input and for any initial condition x0, the infinite sequence x(0),x(1),x(2),··· converges to the zero state. Controllability and observability of a system can be checked through the following theorems. Theorem 2.1.1. The following conditions are necessary and sufficient for a model Σ= (A,B,C,D) to be controllable: 1. rank(C) = n, where C=hB AB ··· An−1Bi; 2. rank hA−λI Bi=n for every eigenvalue λof A. Moreover, if all eigenvalues of A have modulus less than one, then Σis controllable if and only the unique solution P of the Lyapunov equation P=APAT+BBT(2.10) is positive definite. Such solution is called the controllability gramian of the model. Theorem 2.1.2. The following conditions are necessary and sufficient for a model Σ= (A,B,C,D) to be observable: 1. rank(O) = n, where O= C CA . . . CAn−1 ; 2. rank "A−λI C#=n for every eigenvalue λof A. Moreover, if all eigenvalues of A have modulus less than one, then Σis observable if and only if the unique solution Q of the Lyapunov equation Q=ATQA +CTC(2.11) is positive definite. Such solution is called the observability gramian of the model. Theorem 2.1.3. A necessary and sufficient condition for a model Σ= (A,B,C,D)to be stable is that all eigenvalues of A have modulus less than one. Proof. A proof for these theorems can be found in [9]. 2.1.1 Minimality In this subsection, the problem of minimality of the number of state components will be treated. The following definition plays a major role in this discussion.
6Model order reduction for 1-D systems: a brief overview Definition Σ1= (A1,B1,C1,D1)and Σ2= (A2,B2,C2,D2)are equivalent state-space models if there exists a non-singular matrix T∈Rn×nsuch that: A2=T−1A1T,B2=T−1B1,C2=C1T,D2=D1.(2.12) Theorem 2.1.4. Any two equivalent state-space models define the same input-output dynamics for zero initial state. Proof. Use (2.6) to check that Σ1and Σ2yield the same transfer matrix. Remark Note that the converse of this theorem does not hold even for models of the same dimension, i.e., there may exist non-equivalent models (in the sense defined above) that define the same input-output dynamics for zero initial state. Given a system transfer matrix G(z), the problem of minimal realization consists, then, in finding a state-space model Σm= (Am,Bm,Cm,Dm)with minimum dimension, nmin, such that G(z) = Cm(zI −Am)−1Bm+Dm. That nmin is known as the McMillan degree of the system. Theorem 2.1.5. If a system has a single input and a single output (SISO system) and its transfer function g(z)is written as g(z) = n(z)/d(z), where n(z)and d(z)are coprime polynomials, then nmin =deg(d(z)). Proof. It is firstly proved that a realization of g(z)cannot have a dimension less than deg(d(z)) (assuming d(z)and n(z)as coprime). Note that g(z)can be written as g(z) = 1 det(zI −A)C(zI −A)ad jB+D,(2.13) where ad j stands for the adjugate matrix. Since det(zI −A)is nothing but the characteristic polynomial of A, one immediately concludes that its degree equals the size of A,dim(A). Observing that the entries of (zI −A)ad j are all polynomials in z(i.e., there are no rational functions), one concludes that: det(zI −A) = d(z)p(z),(2.14) where p(z)is a nonzero polynomial. Thus, dim(A) = deg(d(z))+ deg(p(z)),(2.15) so dim(A)≥deg(d(z)). The rest of the theorem is proved constructively. Decompose g(z)as g(z) = ˜n(z)/d(z)+k, where ˜n(z)and d(z)are still coprime, kis a constant and deg(˜n(z)) <deg(d(z)). Clearly, ˜n(z)and d(z) can be written as follows: d(z) = zm+αm−1zm−1+···+α0,(2.16) ˜n(z) = βm−1zm−1+βm−2zm−2+···+β0.(2.17)
2.1 Preliminaries 7 It can easily be checked that the following matrices A,B,Cand Dyield a realization for g(z) = n(z)/d(z). A= −αm−1−αm−2··· −α1−α0 1 0 ··· 0 0 0 1 ··· 0 0 . . .. . ..... . .. . . 0 0 ··· 1 0 ,B= 1 0 0 . . . 0 C=hβm−1βm−2··· β1β0i,D=k. (2.18) Hence, a realization where dim(A) = deg(d(z)) was found, so nmin =deg(d(z)). For systems with multiple inputs and multiple outputs (MIMO systems), the following theorem holds. Theorem 2.1.6. The McMillan degree, nmin, of a transfer matrix G(z)equals the degree of the least common denominator of all minors of G(z). Proof. See [9]. By using Theorem 2.1.5 and the construction given in its proof, one can obtain a minimal realization for a transfer function of a SISO system. However, for a given realization, the question of how to check its minimality without computing its transfer matrix remains. Theorem 2.1.7 answers this question. Theorem 2.1.7. A realization Σ= (A,B,C,D)is minimal if and only if (A,B)is controllable and (A,C)is observable. Furthermore, all minimal realizations of a system are equivalent. Proof. See [9]. Remark Besides giving a rather easy way of checking minimality of a realization, Theorem 2.1.7 implicitly tells that it is possible to obtain a minimal realization, from a non-minimal one, just by restricting to controllable and observable states. This can be done applying Kalman decompositions. For a detailed explanation of this procedure see [10]. 2.1.2 Balanced realizations The controllability and observability gramians, introduced in Theorems 2.1.1 and 2.1.2, are going to be very useful for the definition of balanced realizations. The following results provide explicit forms for the gramians. Theorem 2.1.8. The controllability gramian of a stable realization Σ= (A,B,C,D)is given by P=C∞CT ∞,(2.19) where C∞=hB AB ··· AiB···i.
14 Model order reduction for 1-D systems: a brief overview 4. Obtain A, B, C, and D using: A=|CβC† β−1(2.50) B=first p columns of Cβ(2.51) C=first m rows of Oα(2.52) D=h(0),(2.53) where |Cβis formed by the last p(β−1)lines of Oα.Σ= (A,B,C,D)is a minimal realization for the system whose impulse response is h(t). The realization given by this algorithm is obviously exact. However, with a slight modification one can obtain a reduced order realization. In order to do that, the following theorem will be useful. Theorem 2.2.3. Let H ∈Rk×qbe a full rank matrix and H =USVTits SVD, where S= diag(σ1,···,σr,σr+1,···,σk),if k ≤q diag(σ1,···,σr,σr+1,···,σq),if k ≥q (note that S is not necessarily square) The k ×q matrix ˜ H=USrVT, where Sr=diag(σ1,···,σr,0,···,0), has the following properties: 1. It has rank r; 2. It minimizes kH−Xk2for all possible matrices X whose rank is not larger than r; 3. kH−˜ Hk2=σr+1. ˜ H is said to be the low-rank approximation of H of order r. Proof. See [12] Thus, to obtain a reduced order system, one can simply compute a low-rank approximation of Hα,βof the desired order and then find a realization for the new matrix ˜ Hα,β, by using Ho-Kalman or any other algorithm. It is important to point out that this procedure is possible because the low-rank approximation preserves the Hankel matrix structure, i.e., ˜ Hα,βis also a Hankel matrix.
Chapter 3 2-D Systems: Roesser’s state-space model In the two-dimensional case, a state-space model may be defined by the equations: "xh(i+1,j) xv(i,j+1)#="A11 A12 A21 A22#"xh(i,j) xv(i,j)#+"B1 B2#u(i,j)(3.1) y(i,j) = hC1C2i"xh(i,j) xv(i,j)#+Du(i,j),(3.2) where (i,j)∈Z+2 0,x(i,j) = hxh(i,j)Txv(i,j)TiT∈Rnis the state vector, u(i,j)∈Rpis the input vector, y(i,j)∈Rmis the output vector and all matrices are real. Once again, the dimension or order of the system is defined as the dimension of the state vector, n. This model was presented by Robert P. Roesser in [2], so it is usually designated as the Roesser model. Although this is apparently the most used when dealing with 2-D systems, other state-space models exist. For completeness, another widely used model, proposed by Fornasini and Marchesini in [3], is given here: x(i+1,j+1) = A1x(i+1,j)+ A2x(i,j+1)+B1u(i+1,j)+ B2u(i,j+1)(3.3) y(i,j) = Cx(i,j)+Du(i,j).(3.4) Models (3.1)-(3.2) and (3.3)-(3.4) have a common updating structure in the sense that the state at each grid point (i+1,j+1)is computed from the states and inputs at the previous nearest neighbours (i+1,j),(i,j+1). In fact, these models are equivalent, since one can be rewritten in the form of the other by possibly redefining the state variables (see [3]). As stated before, Roesser’s is the most popular model, so, from now on, only this will be considered. Note that, contrarily to what happens in the one-dimensional model, the initial state x(0,0) = [xh(0,0)T,xv(0,0)T]Tis not enough to define the evolution of the system for a given input. Knowledge of xh(0,j)and xv(i,0), for all i,j≥0, is required to compute the evolution of the state vector 15
16 2-D Systems: Roesser’s state-space model and, consequently, the evolution of the output. The impulse response, hΣ(i,j), of a 2-D state-space model Σ= (A11,A12,A21,A22,B1,B2,C1,C2,D) is defined as the output of the system when the input ul(i,j) = δ(i,j):= 1,i=j=0 0,otherwise ,l=1,..., p,(3.5) is applied and zero initial conditions are considered. The 2-D state-space model transfer matrix is the 2-D formal power series GΣ(z1,z2):= ∞,∞ ∑ i=0,j=0 hΣ(i,j)z−j 1z−i 2.(3.6) It can also be expressed as: GΣ(z1,z2) = hC1C2i"z2I−A11 −A12 −A21 z1I−A22#−1"B1 B2#+D.(3.7) Doing some algebraic manipulation, it is possible to show that: GΣ(z1,z2) = (C1+C2(z1I−A22)−1A21)(z2I−A11 −A12(z1I−A22)−1A21)−1(B1+A12(z1I−A22)−1B2)+ +C2(z1I−A22)−1B2+D. (3.8) Like in the 1-D case, all entries of a 2-D state-space model transfer matrix are proper rational functions. However, since here those functions depend on two variables, a new definition of properness has to be considered. Definition A rational function g(z1,z2) = n(z1,z2)/d(z1,z2), where n(z1,z2)and d(z1,z2)are polynomials, is said to be proper if: 1. The degree in z1of d(z1,z2)is not less than the degree in z1of n(z1,z2). 2. The degree in z2of d(z1,z2)is not less than the degree in z2of n(z1,z2). 3. Denoting the degrees of d(z1,z2)in z1and in z2by kand q, respectively, the coefficient of the monomial zk 1zq 2of d(z1,z2)is nonzero. If, in 1. and 2., the expression "not less" can be replaced by "larger", g(z1,z2)is called strictly proper. Once again, if all entries of a transfer matrix are proper rational functions, that transfer matrix is also said to be proper. Analogously to what was defined for 1-D systems, Σ= (A11,A12,A21,A22,B1,B2,C1,C2,D)is said to be a realization of a transfer matrix G(z1,z2)or impulse response h(i,j)if, respectively,
3.1 First level and second level realizations 17 GΣ(z1,z2) = G(z1,z2)or hΣ(i,j) = h(i,j). Assuming that a 2-D proper transfer matrix, G(z1,z2), is given, one can always see it as a 1-D transfer matrix, F(z2)=(G(z1))(z2), where the coefficients are in the ring1of proper rational functions in the variable z1with coefficients in R, here denoted by Rp(z1). This statement, which is the key idea of R. Eising’s algebraic approach for 2-D systems (see [1]), motivates the discussion of the following section. 3.1 First level and second level realizations In this section, it is shown in detail how to obtain a Roesser’s state-space realization of a given 2-D transfer matrix. The approach to 2-D systems as 1-D systems over a ring will be explored. 3.1.1 First level realizations as 1-D systems over a ring The set of polynomials in z1and z2with real coefficients is denoted by R[z1,z2], the set of rational functions in z1and z2with real coefficients is denoted by R(z1,z2)and Rm×p p(z1,z2)stands for the set of 2-D proper rational m×pmatrices. If G(z1,z2)∈Rm×p p(z1,z2), then it can be written as G(z1,z2) = N(z1,z2)/D(z1,z2), where N(z1,z2)∈ Rm×p[z1,z2]and D(z1,z2) = d0(z1) + d1(z1)z2+···+dq(z1)zq 2∈R[z1,z2], with dq(z1)nonzero. Dividing N(z1,z2)and D(z1,z2)by dq(z1)makes all coefficients of F(z2) = (G(z1))(z2)become proper rational functions in z1(recall that G(z1,z2)was assumed to be proper). Furthermore, the denominator polynomial becomes monic, i.e., its leading coefficient equals one. Now, G(z1,z2)can be seen as an element of (Rm×p p(z1))p(z2), i.e., as a 1-D transfer matrix whose coefficients are in the ring of 1-D proper transfer functions, Rp(z1). One can also see the corresponding impulse response of the system, h(i,j), as a 1-D impulse response Twith T(i)∈Rp(z1). Thus, if one has an algorithm to obtain a (preferably) minimal realization of F(z2)or Tover Rp(z1), then it will be possible to find a realization Σ= (A(z1),B(z1),C(z1),D(z1)) such that: G(z1,z2) = C(z1)(z2I−A(z1))−1B(z1)+D(z1).(3.9) Such Σis called a first level realization of G(z1,z2). Clearly, the state-space model for a first level realization follows a structure that is completely identical to the classic 1-D state-space model: xi+1(z1) = A(z1)xi(z1)+B(z1)ui(z1)(3.10) yi(z1) = C(z1)xi(z1)+ D(z1)ui(z1),(3.11) 1See Appendix Afor the definition of ring
18 2-D Systems: Roesser’s state-space model where ui(z1)and yi(z1)are related with the input, u(i,j), and the output, y(i,j), of the 2-D system by: ui(z1) = ∞ ∑ j=0 u(i,j)z−j 1(3.12) yi(z1) = ∞ ∑ j=0 y(i,j)z−j 1.(3.13) Remark Since the variables z1and z2play an identical role in the transfer matrix description, G(z1,z2)may also be seen as an element of (Rm×p p(z2))p(z1). Thus, the discussion above remains valid if the roles of these variables are interchanged. Next, an algorithm to find a minimal realization over a principal ideal domain2Rfrom an impulse response over Rwill be given. This algorithm was presented by R. Eising in [1], who also proved that the ring Rp(z1)is actually a principal ideal domain. Algorithm 3. Minimal realization over a principal ideal domain R Input data: impulse response h with h(i)∈R 1. Build the Hankel matrix Hα,β 2. Factorize Hα,βas a Smith form, i.e., Hα,β=U"D0 0 0#V,(3.14) where U and V are unimodular matrices (i.e., invertible over R) and D is nmin ×nmin diagonal. This factorization is always possible due to the fact that Hα,βis a matrix over a principal ideal domain (see [1]). 3. Define matrices Oαand Cβas Oα:=U"D 0#,Cβ:=hI0iV.(3.15) Note that a right inverse of Cβis C† β=V−1"I 0#and OαCβ=Hα,β. 4. Obtain A ∈Rnmin×nmin , B ∈Rnmin×p, C ∈Rm×nmin and D ∈Rm×pas in Algorithm 2(subsection 2.2.2). Σ= (A,B,C,D)is a realization of h over R. Remark It is shown in [1] that any realization algorithm that starts from a factorization OαCβ, over R, such that Oαis right regular (i.e., the zero vector is the only vector with entries in Rthat belongs to the kernel of Oα) and Cβis right invertible, will produce a realization over R. 2See Appendix Afor the definition of principal ideal domain
3.1 First level and second level realizations 19 The algorithm just presented implicitly leads to the following theorem. Theorem 3.1.1. Let R be a principal ideal domain and h with h(i)∈Rm×pan impulse response whose minimal realizations over Q(R), the field3of fractions of R, have dimension nmin. Then, there exists a minimal realization of h over R with dimension nmin. Proof. See [1]. For the case treated in this thesis, it could be more useful to have a realization algorithm that starts from the transfer matrix instead of the impulse response. Such algorithm is also presented in [1]. However, as it is going to be shown in the following example, obtaining the impulse response from a transfer matrix is not that hard, so Algorithm 3will be enough for this discussion. Example Consider the following SISO proper transfer function: g(z1,z2):=z2 z2 2z1+2z1.(3.16) This transfer function can be rewritten as g(z1,z2) = z2 z1 z2 2+2.(3.17) Now, g(z1,z2)can be seen as an element of (Rp(z1))p(z2). Since the numerator and the denominator polynomials in z2are coprime, one concludes, from Theorems 2.1.5 and 3.1.1, that the minimal dimension of the first level realization is nmin =2. It is easy to expand g(z1,z2)as a formal power series in z−k 2,k=0,1,2,...: g(z1,z2) = 1 z1z2 1 1−−2 z2 2=1 z1z2 1−2 z2 2 +2 z2 22 +···+−2 z2 2k +···!= =1 z1z−1 2+−2 z1z−3 2+···+(−2)k z1z−(2k+1) 2+··· (3.18) If g(z1,z2)is thought as a function of the complex variable z2, this expansion corresponds to the Laurent series at z2=∞. Note that, by the definition of a transfer function, the value of the impulse response at "time" k, h(k), corresponds to the coefficient of z−k 2in the above series. Since nmin =2, the Hankel matrix H2,3contains all the data needed to find a minimal realization. H2,3="1/z10−2/z1 0−2/z10#(3.19) 3See Appendix Afor the definition of field
20 2-D Systems: Roesser’s state-space model Now one could compute a Smith decomposition for H2,3, but the following factorization is rather obvious and satisfies the conditions stated in the previous remark: H2,3="1/z10 0−2/z1#"1 0 −2 0 1 0 #.(3.20) Thus, O2="1/z10 0−2/z1#and C3="1 0 −2 0 1 0 #. A first level realization Σ= (A(z1),B(z1),C(z1),D(z1)) for g(z1,z2)is finally obtained using the formulas indicated in the step 4. of Algorithm 2: A="0−2 1 0 #"1 0 0 1#−1 ="0−2 1 0 #, B="1 0#,C=h1/z10i,D=0. (3.21) Remark Compare the obtained realization with the structure of the one given in the proof of Theorem 2.1.5, which was stated for a system over a field. It is not by chance that the realization obtained here follows exactly that structure. In fact, for a SISO system, one can always find a minimal realization over R(z1)by simply extracting the coefficients of the 2-D transfer function, when it is written like in (3.17). Then, one just has to build matrices A,B,Cand Das done in that proof. This gives a very fast way of finding a minimal first level realization of a 2-D SISO transfer function. 3.1.2 Second level realizations It has just been shown how to obtain a first level realization from a 2-D transfer matrix G(z1,z2). The next step is to obtain a realization of the 2-D input-ouput system that does not depend on either z1or z2, i.e., to obtain a Roesser model that describes the system. Such model will be called asecond level realization of G(z1,z2). Consider the system (3.10)-(3.11) as depending only in z1, i.e., consider ias a constant. Rewrite the system as "xi+1(z1) yi(z1)#="A(z1)B(z1) C(z1)D(z1)#"xi(z1) ui(z1)#.(3.22) Thus, it can be seen as a 1-D system with input hxi(z1)Tui(z1)TiTand output hxi+1(z1)Tyi(z1)TiT whose transfer matrix is H(z1) = "A(z1)B(z1) C(z1)D(z1)#. If a realization for H(z1)is found, then one actually obtains a second level realization. The fact that it indeed corresponds to a Roesser model might not be obvious, but it will become clear in the following.
3.2 Equivalent 2-D state-space models 21 Suppose that a (preferably) minimal realization for H(z1)is found: xv(j+1) = ˜ Axv(j)+ h˜ B1˜ B2i"xh(i,j) u(i,j)#(3.23) "xh(i+1,j) y(i,j)#="˜ C1 ˜ C2#xv(j)+"˜ D11 ˜ D12 ˜ D21 ˜ D22#"xh(i,j) u(i,j)#,(3.24) where xv(i,j)is the new state vector and xh(i,j)is related with xi(z1)by xi(z1) = ∞ ∑ j=0 xh(i,j)z−j 1.(3.25) Reorganizing the equations, one obtains finally: "xh(i+1,j) xv(i,j+1)#="˜ D11 ˜ C1 ˜ B1˜ A#"xh(i,j) xv(i,j)#+"˜ D12 ˜ B2#u(i,j)(3.26) y(i,j) = h˜ D21 ˜ C2i"xh(i,j) xv(i,j)#+˜ D22u(i,j).(3.27) This corresponds obviously to a Roesser model, defined in (3.1)-(3.2). Remark Even if the realization of H(z1)defined in equations (3.23)-(3.24) is minimal, it is not guaranteed that the obtained Roesser model is a minimal realization of the initial 2-D transfer function G(z1,z2). A clear explanation of this fact will be given later on. 3.2 Equivalent 2-D state-space models By applying a change of basis to the state vector of a 2-D model, it is possible obtain a new model with the same input-ouput dynamics (i.e., with the same transfer function). However, for this case, the problem is not as trivial as it was for 1-D systems (recall the first results of section 2.1.1). Consider a 2-D state-space model Σ= (A11,A12,A21,A22,B1,B2,C1,C2,D)of dimension n. From now on, such model will sometimes be abbreviately denoted by Σ= (A,B,C,D), where A:="A11 A12 A21 A22#, B:="B1 B2#,C:=hC1C2i. (3.28) Defining Z:="z2In20 0z1In1#,(3.29)
22 2-D Systems: Roesser’s state-space model where n1:=dim(A22)and n2:=dim(A11), the transfer matrix of Σmay be expressed as G(z1,z2) = C(Z−A)−1B+D.(3.30) Note that equations (2.6) and (3.30) have a rather similar appearance. The only relevant difference is that zin (2.6) is a scalar, while Zin (3.30) is an n×nmatrix. This will be of vital importance in the following. Consider the transfer function of the 2-D model Σ= (T−1AT,T−1B,CT,D), where Tis an arbitrary nonsingular n×nreal matrix: G(z1,z2) = CT(Z−T−1AT )−1T−1B+D= =C(TZT−1−A)−1B+D.(3.31) Clearly, for a general T, models Σand Σare not realizations of the same input-output system, since they do not yield the same transfer function. However, if matrices Zand Tcommute, G(z1,z2)and G(z1,z2)obviously coincide and, therefore, Σand Σdefine the same input-output dynamics. This is a key difference relatively to the 1-D case, in which every nonsingular matrix T∈Rn×nwould generate a model with the same transfer function. Given the structure of Z, defined in (3.29), it is not hard to see that Zand Tcommute, and hence G(z1,z2)and G(z1,z2)coincide, if and only if T∈T, where: T=(T∈Rn×n:T="T20 0T1#,T1∈Rn1×n1and nonsingular,T2∈Rn2×n2and nonsingular). (3.32) Remark In a state-space perspective, applying a transformation T∈Tcorresponds to perform a separate change of basis both for the horizontal and for the vertical state. That is, the original horizontal state xhis transformed into a new horizontal state xh=T−1 2xhand the original vertical state xvis transformed into xv=T−1 1xv. Note that there is no relation between xhand xvneither between xvand xh. The result presented in this section has a crucial importance in one of the model order reduction algorithms that are presented later on. That algorithm relies upon a change of basis that transforms the original model into a balanced realization, in a sense that is somehow related with the 1-D definition. 3.3 Controllability and observability of 2-D models Like in the one-dimensional case, controllability and observability of a realization are somehow related to its minimality. To state the definitions of these properties, the notion of coprimeness of polynomial matrices in two variables is needed. Definition Two matrices P(z1,z2)and Q(z1,z2)over R[z1,z2], with the same number of rows, are called left coprime with respect to C[z1,z2]if, for every left common factor D(z1,z2)such
3.4 Minimality of 2-D models 23 that P(z1,z2) = D(z1,z2)˜ P(z1,z2)and Q(z1,z2) = D(z1,z2)˜ Q(z1,z2), where D(z1,z2),˜ P(z1,z2)and ˜ Q(z1,z2)are matrices over C[z1,z2]and D(z1,z2)is a square matrix, one necessarily has that det(D(z1,z2)) is a complex number d6=0. The definition of right coprimeness is analogous to this one. Note that polynomials with complex coefficients are considered in these definitions because the field where coefficients belong to must be algebraically closed. Definition The system (3.1)-(3.2) is controllable if "z2I−A11 −A12 −A21 z1I−A22#and "B1 B2#(3.33) are left coprime with respect to C[z1,z2]. Definition The system (3.1)-(3.2) is observable if [C1C2]and "z2I−A11 −A12 −A21 z1I−A22#(3.34) are right coprime with respect to C[z1,z2]. Contrarily to what was done for the one-dimensional case, definitions of controllability and observability given here are only formal. However, for the purpose of this thesis, the importance of these notions is simply related with the minimality of the realization, so these formal definitions, which are also used in [1], are enough. For 1-D systems, analogous definitions could have been used, because they imply the definitions that were actually previously stated (see section 2.1). 3.4 Minimality of 2-D models As shown before, the problem of finding a minimal first level realization is equivalent to find a minimal realization for a system defined over a ring. Algorithm 3gives a solution for this problem. However, as mentioned at the end of the previous section, for a Roesser model, it is not clear what is the minimum dimension of the state vector that is needed to define the system. It is known, though, that if a Roesser model is controllable and observable, then the matrices A11 and A22 of the model (3.1)-(3.2) will have, respectively, dimensions q×qand k×k, where qis the degree in z2and kis the degree in z1of the corresponding transfer function, when it is written as a fraction of coprime polynomials. If the denominator of the transfer function is separable, i.e., if D(z1,z2) = D1(z1)D2(z2) = D2(z2)D1(z1), it is indeed possible to construct a realization where A11 has dimension q×qand A22 has dimension k×k, so it is surely a minimal realization with order n=k+q. However, for the more general case, it is not even known if there exists a realization with dimension k+q. R. Eising established in [1] upper bounds for the dimension of a minimal realization over R. E. Sontag proved the interesting fact that, in some cases, the dimension of a
30 Model order reduction for 2-D systems very useful for model order reduction. P. Misra et al. ([18]) followed this idea and presented a model order reduction algorithm for separable denominator systems. K. Zhou et al. ([19]) used the concept of a pseudo-balanced realization for 2-D systems, introduced in [20], to develop a method which is applicable to any 2-D realization described by a Roesser model, but conditions for the stability of the reduced order system are only given for separable denominator systems. C. Xiao et al. ([21]) proposed a quite simple algorithm, also starting from a Roesser state-space representation. The biggest computation effort required by this algorithm is the resolution of some Lyapunov equations, what makes its complexity very similar to the complexity of the 1-D case. The asymptotic stability of the obtained reduced order system is also guaranteed if the original one is also asymptotically stable. However, once again, it has the drawback of being only applicable to separable denominator systems. Recently, C. Wang et al. ([22]) came up with an algorithm for model order reduction of positive 2-D systems where the error system (i.e., the system defined by the difference of the original and reduced order transfer functions) satisfies a prescribed constraint for its H∞norm. A positive system is, however, a very particular class of systems, where the state components and the output are nonnegative whenever the initial conditions and input are nonnegative. As just pointed out, a great part of the existing model order reduction methods for 2-D systems can only be applied to particular classes of these systems, namely to separable denominator ones. However, the relevance of these systems is far from being negligible, since any 2-D FIR filter is indeed a separable denominator system and any stable IIR filter can be approximated by a FIR ([21]). It is also interesting to observe that none of the methods found compute the reduced order model by using the first level realization. This approach would imply the usage of a model order reduction method for 1-D systems defined over a ring (more precisely, over a principal ideal domain). Apparently, although some investigation about minimality of this kind of systems has already been done (see, for instance, [1], [23] and [24]), such method does not exist yet. In this chapter, the main difficulties of this problem will be highlighted and some new results will be presented. There is a particular perspective of multidimensional systems which was found to be useful in the development of model order reduction algorithms. In fact, a 2-D system may be modelled as a constant gain system plus a structured uncertainty, which represents the shift operators. Uncertain systems arise very commonly in robust control problems and some algorithms for model order reduction of these kind of systems already exist (see [8]). One of these algorithms will be presented in great detail later on. When applied to multidimensional systems, that algorithm may be included in the last class of algorithms described above, since it also uses an extension of the concept of balanced realizations. 4.2 Order reduction of first level realizations – preliminary results The focus of this section is on balancing first level realizations. The notion of controllability and observability gramians will be extended for these kind of realizations and some effort developed
4.2 Order reduction of first level realizations – preliminary results 31 to indeed obtain a rational balanced realization will be presented. 4.2.1 Generalized gramians For a matter of simplicity, the reasoning that leads to the definitions of the generalized gramians will assume that the considered model is a SISO one. Recall that the state-space model corresponding to a first level realization Σ= (A(z1),B(z1),C(z1), D(z1)) is given by: xi+1(z1) = A(z1)xi(z1)+B(z1)ui(z1)(4.1) yi(z1) = C(z1)xi(z1)+ D(z1)ui(z1),(4.2) where ui(z1) = ∞ ∑ j=0 u(i,j)z−j 1,(4.3) yi(z1) = ∞ ∑ j=0 y(i,j)z−j 1,(4.4) and A(z1),B(z1),C(z1)and D(z1)are matrices over Rp(z1). The energy of the signal u(i,j)is defined analogously to the 1-D case: Eu:= ∞,∞ ∑ i=0,j=0 u(i,j)2.(4.5) By using Parseval’s identity (see, for instance, [25]), one may write the above sum as Eu= ∞ ∑ i=0 1 2πZπ −π ui(e−jω)ui(ejω)dω,(4.6) which can also be expressed with a path integral in the complex plane: Eu= ∞ ∑ i=0 1 2πjI|z1|=1ui(z−1 1)ui(z1)dz1 z1.(4.7) If both the integral and the series converge, their order may be interchanged: Eu=1 2πjI|z1|=1 ∞ ∑ i=0 ui(z−1 1)ui(z1)dz1 z1.(4.8) The state of the system (4.1)-(4.2) after Nsamples is given by: xN(z1) = CN(z1)UN(z1),(4.9) where CN(z1):=hB(z1)A(z1)B(z1)··· A(z1)NB(z1)i(4.10)
32 Model order reduction for 2-D systems and UN(z1):= uN−1(z1) uN−2(z1) ··· u0(z1) .(4.11) For a given state xN(z1), the solution of (4.9) with minimum 2-norm for each ωsuch that z1=ejω is UN(z1) = CN(z1)∗(CN(z1)CN(z1)∗)−1xN(z1),(4.12) where the operator ∗applied over a rational matrix M(z)denotes the operation defined by M(z)∗:= M(z−1)T. Let U∞(z1)and C∞(z1)denote, respectively, UN(z1)and CN(z1)when Nis extended to infinity. The minimum control energy required to transfer the system from the zero initial state to a given final state xf ∞(z1)in an arbitrarily large number of samples is Eu|min =1 2πjI|z1|=1 U∞(z−1 1)TU∞(z1)dz1 z1= =1 2πjI|z1|=1xf ∞(z1)∗(C∞(z1)C∞(z1)∗)−1xf ∞(z1)dz1 z1. (4.13) Comparing equations (2.1.2) and (4.13) immediately leads to the following definition. Definition The controllability gramian of a first level realization Σ= (A(z),B(z),C(z),D(z)) is defined as P(z):=C∞(z)C∞(z)∗, where C∞(z)is the controllability matrix extended to infinity. An analogous reasoning motivates the definition of observability gramian of first level realizations. Start by considering the energy of the output signal: Ey:= ∞,∞ ∑ i=0,j=0 y(i,j)2= ∞ ∑ i=0 1 2πjI|z1|=1yi(z−1 1)yi(z1)dz1 z1.(4.14) Defining YN(z1):= y0(z1) y1(z1) . . . yN−1(z1) (4.15) and ON(z1):= C(z1) C(z1)A(z1) . . . C(z1)A(z1)N−1 ,(4.16)
4.2 Order reduction of first level realizations – preliminary results 33 it is easy to verify that, given an initial state xz(0)and assuming zero input, the sequence of outputs YN(z1)can be determined through: YN(z1) = ON(z1)x0(z1).(4.17) The energy of the output signal of the system with initial state x0(z1)and zero input is, therefore: Ey=1 2πjI|z1|=1 Y∞(z−1 1)TY∞(z1)dz1 z1= =1 2πjI|z1|=1(O∞(z1)x0(z1)TO∞(z−1 1)x0(z−1 1)dz1 z1= =1 2πjI|z1|=1x0(z−1 1)∗O∞(z−1 1)∗O∞(z−1 1)x0(z−1 1)dz1 z1, (4.18) where Y∞(z1)and O∞(z1)are YN(z1)and ON(z1), respectively, when Nis extended to infinity. The definition of observability gramian of a first level realization is now obvious. Definition The observability gramian of a first level realization Σ= (A(z),B(z),C(z),D(z)) is defined as Q(z):=O∞(z−1)∗O∞(z−1), where O∞(z)is the observability matrix extended to infinity. Remark In the previous definitions the sub-index of zwas deliberately omitted. From now on, this option will be kept whenever it does not arise any confusion for the reader. Note that it was always being assumed that the first level realizations depended on z1, but if z2is chosen the same results hold. Observe that the previous definitions are only formal, i.e., no assumptions or conditions about convergence were stated. However, they are meaningless definitions if P(ejω)and Q(ejω)are not well defined for all ω∈[−π,π]. The following theorem states conditions for that convergence to hold. Theorem 4.2.1. If A(z)is such that maxω∈[0,π]ρ(A(ejω)) <1, where ρ() denotes the spectral radius, then the series defining P(ejω)and Q(ejω)converge for all ω∈R. Proof. Only the case of P(z)is considered, since the proof for Q(z)is completely analogous. Note that the entries of A(z)and B(z)are defined over Rp(z), and so these matrices have the property that A(ejω)∗=¯ A(ejω)T, where ¯ A(ejω)denotes the matrix A(ejω)with conjugate entries. Hence, ρ(A(ejω)) = ρ(A(ejω)∗), so, if maxω∈[0,π]ρ(A(ejω)) <1 the series ∞ ∑ i=0 A(ejω)iB(ejω)B(ejω)∗(A(ejω)∗)i=C∞(ejω)C∞(ejω)∗(4.19) converges for all ω∈[−π,π]. Due to the periodicity of A(ejω)and B(ejω), the result is valid for all ω∈R.
34 Model order reduction for 2-D systems Corollary 4.2.2. If A(z)satisfies the conditions of Theorem 4.2.1, then P(ejω)≥0and Q(ejω)≥0 for all ω∈R. Although conditions for the convergence of P(ejω)and Q(ejω)have been given, the only way one has to compute these matrices is through the series that define them, which is a rather inconvenient way. Moreover, rationality of P(z)and Q(z)is not ensured yet. The following results solve both problems. Theorem 4.2.3. If A(z)satisfies the conditions of Theorem 4.2.1, then: 1. (I−A(z−1)⊗A(z)), where ⊗denotes the Kronecker product, is a square nonsingular rational matrix; 2. The unique solution X(z)of the Lyapunov equation X(z) = A(z)X(z)A(z)∗+B(z)B(z)∗(4.20) is a rational matrix such that vec(X(z)) = (I−A(z−1)⊗A(z))−1vec(B(z)B(z)∗),(4.21) where vec() denotes de vectorization operation, which transforms a matrix into a vector by stacking its columns; 3. X(z)coincides with P(z)for z =ejω. Proof. 1. Clearly, (I−A(z−1)⊗A(z)) is a square rational matrix, since A(z)is a square rational matrix. The proof of the nonsingularity follows. Consider a point z0=ejω0. If (I−A(z−1 0)⊗ A(z0))−1exists, then (I−A(z−1)⊗A(z)) is nonsingular as a rational matrix. Moreover, (I−A(z−1 0)⊗A(z0))−1exists if and only if A(z−1 0)⊗A(z0)has no eigenvalues equal to one. Since A(z)satisfies the conditions of Theorem 4.2.1,ρ(A(z0)) = ρ(A(z0)−1)<1. It is possible to prove that the spectral radius of a Kronecker product equals the product of the spectral radius of each matrix (see [11]), thus ρ(A(z−1 0)⊗A(z0)) = ρ(A(z−1 0))ρ(A(z0)) <1. Consequently, (I−A(z−1 0)⊗A(z0))−1exists and, therefore, (I−A(z−1)⊗A(z)) is a square nonsingular rational matrix. 2. Using the fact that vec(MNR) = RT⊗Mvec(N)(see [11]), (4.20) is equivalent to (I−A(z−1)⊗A(z))vec(X(z)) = vec(B(z)B(z)∗).(4.22) Since (I−A(z−1)⊗A(z)) is an invertible rational matrix, the solution vec(X(z)is uniquely given by (4.21), proving that the solution X(z)of (4.20) is unique. 3. It is enough to recall the proof of 2.1.8, since this one follows the same reasoning.
4.2 Order reduction of first level realizations – preliminary results 35 For the observability gramian analogous results hold. Theorem 4.2.4. If A(z)satisfies the conditions of Theorem 4.2.1, then: 1. (I−A(z−1)⊗A(z)) is a square nonsingular rational matrix; 2. The unique solution Y (z)of the Lyapunov equation Y(z) = A(z−1)∗Y(z)A(z−1)+C(z−1)∗C(z−1)(4.23) is a rational matrix such that vec(Y(z)) = (I−A(z)∗⊗A(z−1)∗)vec(C(z−1)∗C(z−1)); (4.24) 3. Y(z)coincides with Q(z)for z =ejω. Proof. Analogous to the proof of 4.2.3. Remark In fact, the solutions X(z)and Y(z)of these Lyapunov equations coincide with the respective gramians wherever P(z)and Q(z)are well defined. Thus, X(z)and Y(z)can be seen as analytic continuations of P(z)and Q(z), respectively. For this reason and also because z=ejωis actually the only region where these gramians have some meaning, from now on, P(z)and Q(z) are redefined as the solutions X(z)of (4.20) and Y(z)of (4.23) themselves. The assumption that A(z)satisfies the conditions of Theorem 4.2.1 and thus these gramians are well defined in z=ejω will hold for the remaining of the discussion. The notions of controllability and observability gramians are now clear for first level realizations. The next step would be performing a change of basis such that these gramians become equal and diagonal. For this purpose, it is necessary to understand how rational matrices can be factorized. This problem motivates the discussion of the next subsection. 4.2.2 Factorization of rational matrices In this subsection, two types of factorization for rational matrices will be presented: spectral factorization and a pseudo singular value decomposition. Conditions for the existence of a spectral factorization and an algorithm to obtain such factorization will be given. Before defining both factorizations, the notions of pole and zero of a rational matrix must be clarified. Definition A rational matrix G(z)has a pole at z0∈Cif at least one of its entries has a pole at z0. Definition A rational matrix G(z)has a zero at z0∈Cif the rank of G(z0)over Cis strictly less than the rank of G(z)over R(z).
36 Model order reduction for 2-D systems Now, two particularly relevant types of rational matrices may be defined. Definition A square matrix B(z)over R(z)is said to be inner if B(z)B(z)∗=I. Definition A full column rank matrix M(z)over R(z)is said to be outer if its poles and zeros are all located inside the closed unit circle (i.e., boundary included). 4.2.2.1 Spectral factorization If one takes any rational matrix M(z), the matrix Φ(z)defined by Φ(z) = M(z)M(z)∗is a rational matrix satisfying the following two properties: Φ(z) = Φ(z)∗,(4.25) Φ(ejω)≥0∀ω∈R.(4.26) The spectral factorization problem concerns with the reversal of this construction: given a rational matrix Φ(z)satisfying (4.25) and (4.26), find an M(z)such that Φ(z) = M(z)M(z)∗. Before treating the matrix case, it will be useful to solve this problem for scalar rational functions. Theorem 4.2.5. For all rational function g(z)that satisfies g(z) = g(z−1)for all z ∈Cand g(ejω)≥0for all ω∈R, there exists a rational function f (z), having all its poles and zeros inside the closed unit circle, such that g(z) = f(z)f(z−1). Proof. The proof will be given through the next algorithm. The following algorithm describes how to compute the spectral factorization of a function that satisfies the conditions established in Theorem 4.2.5. Algorithm 4. Spectral factorization of a rational function Input data: rational function g(z)satisfying the conditions of Theorem 4.2.5. 1. Write a factorization of g(z)into polynomials g(z) = γzlpi(z)pc(z)po(z) qi(z)qc(z)qo(z),(4.27) where γis a real constant, l ∈Z, pi(z)and qi(z)are polynomials that have all their zeros inside the open unit circle except the origin, po(z)and qo(z)have all their zeros outside the closed unit circle and pc(z)and qc(z)have all their zeros on the boundary of the unit circle. Note that, due to the positivity condition, γmust be nonnegative and all zeros of pc(z)and qc(z)must have even multiplicity. Furthermore, the condition g(z) = g(z−1)implies that pi(α) = 0if and only if po(α−1) = 0, where αis any nonzero complex number. The same holds for qi(α)and qo(α).
4.2 Order reduction of first level realizations – preliminary results 37 Thus, pi(z), pc(z)and po(z)can be written as pi(z) = K−1 ∏ j=0 (ajz+1)kj,|aj|>1,(4.28) pc(z) = W−1 ∏ j=0 (z+cj)2wj,|cj|=1,(4.29) po(z) = K−1 ∏ j=0 (z+aj)kj,(4.30) and the analogous holds for qi(z), qc(z)and qo(z). 2. Define ˜pc(z)as ˜pc(z) = W−1 ∏ j=0 (z+cj)wj(4.31) and ˜qc(z)analogously. 3. Build f (z)as f(z) = √γzlpi(z)˜pc(z) qi(z)˜qc(z).(4.32) One has g(z) = f(z)f(z−1). Now, one can turn to the matrix case. Theorem 4.2.6. Let Φ(z)be an n ×n rational matrix of rank k and suppose that it satisfies (4.25) and (4.26). Under these conditions, there exists an outer rational matrix M(z)of size n ×k such that Φ(z) = M(z)M(z)∗. Proof. Once again, the sketch of the proof will be given through the following algorithm. Algorithm 5. Spectral factorization of a rational matrix Input data: rational matrix Φ(z)satisfying the conditions of Theorem 4.2.6. 1. If Φ(z)is identically zero, the problem is already solved. If it is not, take a nonzero element of the diagonal of Φ(z)and, by row and column permutations, place it in the position (1,1). These permutations correspond to building a matrix ¯ Φ(z)such that ¯ Φ(z) = UΦ(z)U,(4.33) where U is a constant and orthogonal matrix. The existence of a nonzero element in the diagonal of Φ(z)is ensured because Φ(ejω)is a nonnegative hermitian matrix. 2. Compute the spectral factorization of the first element, ¯ φ11(z), of ¯ Φ(z). Say, ¯ φ11(z) = f11(z)f11(z−1).
38 Model order reduction for 2-D systems 3. Build the matrix ¯ ¯ Φ(z)as ¯ ¯ Φ(z):="f11(z)0 0I#−1 ¯ Φ(z)"f11(z−1)0 0I#−1 .(4.34) Clearly, the first element of ¯ ¯ Φ(z)is equal to 1. 4. Define R(z)as R(z):="1 0 −¯ ¯ Φ21(z)I#,(4.35) where ¯ ¯ Φ21(z):= ¯ ¯ φ21(z) . . . ¯ ¯ φn1(z) . 5. Compute R(z)¯ ¯ Φ(z)R(z)∗to obtain: R(z)¯ ¯ Φ(z)R(z)∗="1 0 0˜ Φ22(z)#.(4.36) 6. Repeat steps 1-5 over ˜ Φ22(z)and so on until getting the identity matrix. Then, the inverse transformations must be performed to obtain the spectral factor. Both algorithms presented in this section were adapted from proofs of theorems in [12]. There, a different form of spectral factorization is considered, which is more suitable for continuous time transfer matrices. An example of a spectral factorization of a rational matrix will be given later on. 4.2.2.2 Pseudo Singular Value Decomposition In this subsection, another form of factorization for rational matrices is presented. This was firstly proposed by Tsai et al. in [26]. Definition Apseudo singular value decomposition (PSVD) of a matrix Φ(z)∈R(z)k×n,k≥n, is a factorization Φ(z) = W(z)"S(z) 0#V(z)∗(4.37) , where W(z),S(z)and V(z)are defined over R(z)and have dimensions k×k,n×nand n×n, respectively. Furthermore, W(z)andV(z)are inner, S(z) = diag(σ1(z),···,σn(z)) and |σ1(ejω)|≥ ···≥|σn(ejω)|,∀ω∈R. In the following example, a matrix that has a PSVD is given.
4.2 Order reduction of first level realizations – preliminary results 39 Example Consider the following matrix: Φ(z) = "2+32z −3−6z+24z2 2(1+2z)(5+8z) 3(2+z)(4+z)(−1+2z) 2(2+z)(4+z)(5+8z) 3(1+4z)2(−1+4z2) 2+32z −3−6z+24z2#.(4.38) This matrix can be factored as: Φ(z):=W(z)S(z)W(z)∗,(4.39) where W(z) = 1 √2"1+2z 2+z−(1+2z)(1+3z)(1+4z) (2+z)(3+z)(4+z) 4+z 1+4z 1+3z 3+z#,(4.40) S(z) = "4 −1+2z0 08 3+12z#.(4.41) It is straightforward to check that W(z)W(z)∗=I. Furthermore, it is also not hard to verify that 4 −1+2ejω≥ 8 3+12ejω,∀ω∈R.(4.42) Thus, this factorization is a PSVD of Φ(z). This is a natural extension to rational matrices of the traditional singular value decomposition. However, unfortunately, such factorization is not always possible, i.e., an arbitrary Φ(z)∈R(z) may not have a PSVD. The structure of the class of rational matrices that have such factorization is also not easy to identify, therefore there is no algorithm to obtain the PSVD of a given rational matrix, if it exists. These problems make the task of finding a rational balanced realization very hard to solve. 4.2.3 Towards balancing first level realizations The expression rational balanced realization was already used a couple of times previously. Although the definition might be rather intuitive, it was not conveniently stated yet. Definition A minimal first level model Σ= (A(z),B(z),C(z),D(z)), of dimension nmin, is a rational balanced realization if P(z) = Q(z) = S(z):=diag(σ1(z),···,σnmin (z)),(4.43) |σ1(ejω)|≥···≥|σnmin (ejω)|,∀ω∈R,(4.44) where P(z)and Q(z)are, respectively, the controllability and observability gramians of Σ. Now, it is clear that if one can find a rational balanced realization, then one can find a reduced order first level realization by simply truncating matrices A(z),B(z)and C(z)of such realization.
46 Model order reduction for 2-D systems 4.3.1 Beck-Doyle algorithm The algorithm presented in this subsection is proposed by C.Beck and J.Doyle in [8]. There, the subject is exposed in a more general framework, since it applies to both multidimensional and uncertain systems. Here, the focus will be exclusively on two-dimensional systems, but the generalization to the n-D case is straightforward. The case of uncertain systems can be treated within the framework of n-D systems, as it will be illustrated later on. The following definition plays a major role in this approach. Definition A 2-D model Σ= (A,B,C,D)is a balanced realization if there exist P≥0 and Q≥0 that satisfy the linear matrix inequalities (LMI) P≥APAT+BBT,(4.76) Q≥ATQA +CTC,(4.77) and such that P=Q=S:=diag(S2,S1),(4.78) where the Si≥0 are diagonal and dim(Si) = ni. The only relevant difference of this definition relatively to the 1-D case is the fact that inequalities are used instead of equalities. As a consequence, for a given system, neither the balanced realization nor the balanced Sare unique. The following theorem gives conditions for the existence of a balanced realization. Theorem 4.3.1. [8] Let Σ= (A,B,C,D)be a 2-D model and define Z as in (3.29), Tas in (3.32) and ¯ U as in (3.44). There exist P ≥0and Q ≥0, both in T, satisfying (4.76) and (4.77), respectively, if and only if (Z−A)is nonsingular in ¯ U. This theorem guarantees the existence of balanced realizations for any internally stable system. In fact, if one finds solutions Pand Qfor the LMI above that belong to T, one can find an admissible similarity transformation T(i.e., a T∈T) that transforms the original realization into a balanced one. This procedure will be explained in detail later on. Given a balanced realization, the way of finding the reduced order model is analogous to the 1- D case. Admit that Σ= (A11,A12,A21,A22,B1,B2,C1,C2,D)is a balanced realization. One has P=Q=S=diag(S2,S1), where Si=diag(σ1i,...,σrii,σ(ri+1)i,...,σnii).(4.79) Suppose that one desires an approximate model with dimension r1in the vertical state and r2in the horizontal state. Then, one can build matrices ˆ A11 and ˆ A22 by extracting the upper r2×r2 and r1×r1blocks of matrices A11 and A22, respectively. Matrices ˆ B1,ˆ B2,ˆ C1and ˆ C2are built by truncating B1,B2,C1and C2accordingly. The model Σr= ( ˆ A11,ˆ A12,ˆ A21,ˆ A22,ˆ B1,ˆ B2,ˆ C1,ˆ C2,D)
4.3 Order reduction of second level realizations 47 will be that desired approximate model. Moreover, it has the properties stated in the following theorem. Theorem 4.3.2. Suppose that Σ= (A11,A12,A21,A22,B1,B2,C1,C2,D)is a balanced realization, with transfer matrix G(z1,z2), whose Si=diag(σ1i,...,σrii,σ(ri+1)i,...,σnii). Then, the model Σr= (ˆ A11,ˆ A12,ˆ A21,ˆ A22,ˆ B1,ˆ B2,ˆ C1,ˆ C2,D), where matrices are as defined above, with transfer matrix Gr(z1,z2), has the following properties: 1. (ˆ Z−ˆ A), where ˆ Z="z2Ir20 0z1Ir1#and ˆ A="ˆ A11 ˆ A12 ˆ A21 ˆ A22#, is nonsingular in ¯ U; 2. kG(z1,z2)−Gr(z1,z2)kH∞:=max∀(ω1,ω2)∈R2kG(ejω1,ejω2)−Gr(ejω1,ejω2)k2≤2(σr1+1+ ···+σn1)+2(σr2+1+···+σn2). Proof. See [8]. Note that Theorem 4.3.2 shows that if one finds a solution for (4.76) or (4.77) that is singular, then one can reduce the order of the model with no error. This fact introduces the following remarkable result about minimality of 2-D models. Theorem 4.3.3. Given a model Σ= (A,B,C,D), with transfer function G(z1,z2)such that (Z− A)is invertible in ¯ U, there exists a lower order model Σr= ( ˆ A,ˆ B,ˆ C,D), with transfer function Gr(z1,z2), such that Gr(z1,z2) = G(z1,z2)if and only if there exist singular P ≥0or Q ≥0, both in T, satisfying (4.76) and (4.77). Furthermore, max(dim(A)−dim(ˆ A)) equals the number of zero-valued eigenvalues of the product PQ. Proof. See [27]. For a matter of convenience, the Beck-Doyle model order reduction algorithm is now presented in detail and step by step. Algorithm 6. Beck-Doyle algorithm Input data: a 2-D model Σ= (A11,A12,A21,A22,B1,B2,C1,C2,D) 1. Find solutions P ≥0and Q ≥0, both in T, for the Lyapunov inequalities P≥APAT+BBT,(4.80) Q≥ATQA +CTC.(4.81) Say P =diag(P2,P1)and Q =diag(Q2,Q1). 2. Find invertible matrices T1and T2such that T−1 iPi(T−1 i)T=TT iQiTi=Si=diag(σ1i,...,σnii),i=1,2.(4.82) Algorithm 1(section 2.1.2) may be used for this purpose.
48 Model order reduction for 2-D systems 3. Build the similarity transformation T :=diag(T2,T1)and apply it over Σ, obtaining a new realization Σb= (Ab,Bb,Cb,D) = (T−1AT,T−1B,CT,D).(4.83) This realization is a balanced one. 4. Choose the dimensions of the reduced order horizontal and vertical states, say r2and r1, respectively. Build matrices ˆ A11 and ˆ A22 by extracting the upper r2×r2and r1×r1blocks of matrices A11band A22band matrices ˆ B1,ˆ B2,ˆ C1and ˆ C2by truncating B1b, B2b, C1band C2baccordingly. The model Σr= ( ˆ A,ˆ B,ˆ C,D)has reduced order r1+r2and satisfies the properties listed in Theorem 4.3.2. Remark The step 1. of the previous algorithm is actually far from being trivial. If the admissible solutions of (4.80) and (4.81) were unstructured, they could be easily found by adding an arbitrary positive matrix to the right member of the inequalities and transforming them into equalities. However, the constraint that both solutions belong to Trequires more advanced methods that will not be discussed here. Fortunately, some numerical software applications (such as MATLAB) provide powerful LMI toolboxes to solve this problem. When comparing the previous algorithm with the one for 1-D systems (recall section 2.2.1), one may wonder why equalities instead of inequalities are used in the latter. In fact, inequalities could be used in the one-dimensional case also. However, when equalities are used, the singular values of Pand Qtend to be smaller, thus the error bound of the reduced order system is also smaller. 4.3.2 An alternative approach Recall the 2-D state-space equations considered in this thesis: "xh(i+1,j) xv(i,j+1)#="A11 A12 A21 A22#"xh(i,j) xv(i,j)#+"B1 B2#u(i,j)(4.84) y(i,j) = hC1C2i"xh(i,j) xv(i,j)#+Du(i,j).(4.85) One can reorganize these equations in two particularly interesting forms: xh(i+1,j) = A11xh(i,j)+hA12 B1i"xv(i,j) u(i,j)#(4.86) "xv(i,j+1) y(i,j)#="A21 C1#xh(i,j)+"A22 B2 C2D#"xv(i,j) u(i,j)#(4.87) and
4.3 Order reduction of second level realizations 49 xv(i,j+1) = A22xv(i,j)+hA21 B2i"xh(i,j) u(i,j)#(4.88) "xh(i+1,j) y(i,j)#="A12 C2#xv(i,j)+"A11 B1 C1D#"xh(i,j) u(i,j)#.(4.89) Clearly, equations (4.86)-(4.87) represent a 1-D system with input hxv(i,j)Tu(i,j)TiTand output hxv(i,j+1)Ty(i,j)TiT. Analogously, equations (4.88)-(4.89) represent a 1-D system with input hxh(i,j)Tu(i,j)TiTand output hxh(i+1,j)Ty(i,j)TiT. It is assumed that systems (4.88)- (4.89) and (4.86)-(4.87) are controllable and observable (in the 1-D sense). If this is not the case, one can discard the uncontrollable or unobservable subspaces obtaining exact lower order realizations for the original systems. Hence, one can apply the conventional 1-D model order reduction algorithm, described in section 2.2.1, considering one of these systems. This will reduce the dimension of either the horizontal state (if form (4.86)-(4.87) is chosen) or the vertical state (if form (4.88)-(4.89) is chosen). The dimension of the other state vector can of course be reduced by taking the reduced order system obtained in the previous step, rewriting it in the other form and applying the algorithm again. Note, however, that the applicability of this algorithm requires that A11 and A22 are stable matrices (in the 1-D sense). The next theorem gives conditions for this requirement to hold. Theorem 4.3.4. Consider a 2-D model Σ= (A,B,C,D)where (Z−A)is nonsingular in ¯ U. Then, ρ(A11)<1and ρ(A22)<1. Proof. Assume that (Z−A)is nonsingular in ¯ U. Then, by Theorem 3.5.5,Σis internally stable. Suppose that the initial conditions are xh(0,0) = x0,xh(0,j) = 0n2,∀j≥1,and xv(i,0) = 0n1,∀i≥0,(4.90) and zero inputs are applied. It is straightforward to check that xh(k,0) = A11kx0,k=1,2,3... (4.91) Since the 2-D model is internally stable, the infinite sequence xh(0,0),xh(1,0),xh(2,0),... converges to the zero state for any arbitrary x0. Therefore, A11 must be a stable matrix, i.e., ρ(A11)<1. To prove that ρ(A22)<1, one can repeat this proof interchanging the roles of xhand xv. Like in any other model reduction algorithm, having an upper bound for the error of the approximation is highly desirable. For this case, which is based in the 1-D balanced truncation algorithm, it is straightforward to get one. Recall that, according to Theorem 2.2.1, the reduced order system
50 Model order reduction for 2-D systems transfer function, Gr(z), satisfies: kG(z)−Gr(z)kH∞≤2(σr+1+···+σn),(4.92) where G(z)is the original transfer function and the σiare the discarded singular values of that system. Consequently, if one chooses form (4.88)-(4.89) and defines Hv(z1):="A(z1)B(z1) C(z1)D(z1)#and Hv r(z1):="Ar(z1)Br(z1) Cr(z1)Dr(z1)#,(4.93) where A(z1):=A12(z1I−A22)−1A21 +A11,(4.94) B(z1):=A12(z1I−A22)−1B2+B1,(4.95) C(z1):=C2(z1I−A22)−1A21 +C1,(4.96) D(z1):=C2(z1I−A22)−1B2+D(4.97) and Ar(z1),Br(z1),Cr(z1)and Dr(z1)are defined analogously using the truncated matrices, then: kHv(z1)−Hv r(z1)kH∞≤2(σv r+11+···+σv n1),(4.98) where the σv i1are the discarded singular values of the model (4.88)-(4.89) when it is seen as 1-D system. Note that the quadruple of matrices (A(z1),B(z1),C(z1),D(z1)) is a first level realization corresponding to the 2-D model Σ= (A11,A12,A21,A22,B1,B2,C1,C2,D), while the quadruple (Ar(z1),Br(z1),Cr(z1),Dr(z1)) is a first level realization corresponding to the obtained reduced order 2-D model. For the form (4.86)-(4.87), if one defines Hh(z2)and Hh r(z2)in the same way as Hv(z1)and Hv r(z1), respectively, the following error bound holds: kHh(z2)−Hh r(z2)kH∞≤2(σh r+1+···+σh n),(4.99) where the σi2are the discarded singular values of the model (4.86)-(4.87) when it is seen like a 1-D system. 4.3.3 Some academic application examples In this section, the two methods just presented are applied to some given 2-D state-space models in order to demonstrate the effectiveness of both and also to highlight the main advantages and drawbacks of each of them. Before presenting the first example, it is important to discuss some options that were taken in the computational implementation of both methods. The most relevant one is related with the first step of Beck-Doyle algorithm (recall Algortithm 6in section 4.3.1), i.e., with the computation of the solutions of the LMI (4.80) and (4.81). As pointed out before, MATLAB is able to compute
4.3 Order reduction of second level realizations 51 solutions for those inequalities. However, there are infinitely many admissible solutions. Thus, an optimization criterion should be defined. Here and also in [28], the following heuristic is used: min PTrace(P):P≥APAT+BBT(4.100) and min QTrace(Q):Q≥ATQA +CTC.(4.101) Note that Pand Qare hermitian matrices and, for any hermitian matrix X, one has Trace(X) = ∑iσi(X), where the σi(X)are the singular values of X. Recall that the error of the Beck-Doyle reduced order system is bounded by the sum of the square roots of the discarded singular values of the product PQ, which are invariant under any change of basis. Given that Trace(PQ)≤Trace(P)Trace(Q)(4.102) (see [28]), separately minimizing the trace of Pand Qleads to solutions for which the bound for the value of ∑iσi(PQ)is lowered. Consequently, the error of the reduced order is potentially smaller. Furthermore, this criterion can be easily implemented using the MATLAB LMI Control Toolbox. For a complete explanation of how to use this toolbox, see [29]. As for the implementation of the alternative approach, there are not many relevant aspects to highlight. In the examples presented here, the order reduction is always made by firstly reducing the dimension of the horizontal state and then reducing the dimension of the vertical one. This was simply an arbitrary choice, though. In Appendix C, the MATLAB code that implements both algorithms is presented. In order to compare the performance of each of the algorithms for the given examples, the sum of the discarded singular values may appear to be a reasonable measure. However, for the second method, it does not provide a rigorous error bound, unless the order reduction is made exclusively for one of the state vectors (either horizontal or vertical). Hence, also the following dimensionless quantity, known as the peak signal-to-noise ratio (PSNR), is considered: PSNR :=10log10 maxi,jh(i,j)2 MSE ,(4.103) where MSE denotes the mean squared error: MSE :=1 MN M−1 ∑ i=0 N−1 ∑ j=0 (h(i,j)−hr(i,j))2.(4.104) Here, h(i,j)and hr(i,j)denote the impulse responses of the original and of the reduced order single-output systems, respectively. If the system has multiple outputs, this measure can still be used for each output separately. It is common to express the value of the PSNR in the dimensionless unit dB. Since the impulse responses considered here have typically infinite length, for the evaluation of the PSNR it is necessary to truncate them. Here, M=N=50 is used.
52 Model order reduction for 2-D systems In the sequel, three numerical examples are presented. Note that all the following given models are internally stable. Example 1. Consider the following 2-D model Σ= (A11,A12,A21,A22,B1,B2,C1,C2,D), also presented as an example in [16] A11 = 0 1 0 0 0 0 1 0 0 0 0 1 −0.28214 0.5512 −0.8756 1.3618 ,A12 =04×4, A21 = −0.020056 0.11489 −0.16782 0.2271 0.01159 −0.054709 0.12089 −0.15035 0.026037 0.03553 −0.0348 0.047409 0.032325 −0.055488 0.045669 0.07734 , A22 = 000−0.090322 1 0 0 0.19922 010 −0.39063 0 0 1 0.75 ,B1= 0 0 0 1 , B2= 0.3681 −0.3151 0.2273 −0.0730 ,C1=h0.2610 −0.1276 −0.0339 0.4243i, C2=h0 0 0 1i,D=0.6520. (4.105) Note that, since A12 is a zero matrix, this is a separable denominator system, i.e., the denominator of the corresponding transfer function can be factored as the product of a polynomial in z1by a polynomial in z2. This can easily be checked by applying (3.7). The impulse response and the magnitude of the frequency response of this system are represented in Figure 4.1. In the following, a reduced order model in which the vertical state has dimension n1=3and the horizontal state has dimension n2=3will be obtained using both methods. Beck-Doyle algorithm Computing P and Q according to (4.100) and (4.101) and diagonalizing these matrices yields: Pbal =Qbal =S=diag(4.2713,1.7611,0.8225,0.7254,3.7842,2.0321,1.8910,1.8092)(4.106) Hence, the discarded singular values will be σ41=1.8092 and σ42=0.7254. Consequently, the transfer function of the reduced order system, Gr(z1,z2), satisfies kG(z1,z2)−Gr(z1,z2)kH∞≤2(σ41+σ42) = 5.0692,(4.107)
4.3 Order reduction of second level realizations 53 where G(z1,z2)is the original system transfer function. The reduced order model Σr= ( ˆ A,ˆ B,ˆ C,D)is obtained by simply truncating the balanced realization (which was left out for a matter of brevity): ˆ A11 = 0.8013 0.2718 −0.0885 −0.2712 0.7330 0.1583 −0.1193 −0.3117 0.1321 ,ˆ A12 =03×3 ˆ A21 = −0.1607 0.0666 −0.0100 0.1016 0.0069 0.0504 −0.0628 −0.0753 −0.0206 , ˆ A22 = 0.7082 −0.2124 −0.2849 0.2707 −0.5090 0.3116 −0.1288 −0.6228 0.0268 ,ˆ B1= 0.9645 0.6208 0.4781 , ˆ B2= −0.0983 0.2799 −0.1012 ,ˆ C1=h0.5360 −0.2393 0.2243i, ˆ C2=h−0.9548−0.5252−0.6024i. (4.108) The sum of the discarded singular values is 2.5345 and the PSNR of the impulse of this reduced order model is 36.665dB. The computation time was ≈0.47s. Figure 4.2 represents the impulse response and the frequency response of this reduced order model. In order to compare the reduced order model with the original one, the plots of the errors of the impulse response and of the frequency response are presented in Figure 4.3. Alternative approach Start by finding a balanced realization (in the 1-D sense) for the system in the form (4.86)-(4.87). The corresponding gramians are: Ph bal =Qh bal =Sh=diag(1.7889,0.6513,0.3442,0.3221).(4.109) Reduce the order of the horizontal state by truncating the balanced realization. This corresponds to discarding the singular value σh 4=0.3221. After writing the reduced order model in the form (4.88)-(4.89) and balancing (in the 1-D sense) one obtains a realization with gramians: Pv bal =Qv bal =Sv=diag(0.6566,0.4947,0.4344,0.3993).(4.110) The singular value σv 4=0.3993 is discarded by truncating the matrices of the realization. The
54 Model order reduction for 2-D systems final reduced order model Σr= ( ˆ A,ˆ B,ˆ C,D)has: ˆ A11 = 0.8026 0.2452 −0.0981 −0.2640 0.7499 0.1930 −0.1604 −0.3322 0.1053 ,ˆ A12 =03×3, ˆ A21 = 0.3619 −0.1697 −0.0311 −0.1584 0.0619 −0.0804 −0.1964 −0.1712 −0.0699 , ˆ A22 = 0.3619 −0.1697 −0.0311 −0.1584 0.0619 −0.0804 −0.1964 −0.1712 −0.0699 ,ˆ B1= −0.7667 −0.3603 −0.3409 , ˆ B2= −0.1384 0.3738 0.2518 ,ˆ C1=h−0.6866 0.3519 −0.1938i, ˆ C2=h−0.5344 −0.4018 0.2420i. (4.111) Moreover, this 2-D system is BIBO stable. The sum of the discarded singular values is 0.7213 and the impulse response of this model yields a PSNR =36.950dB. The computation time was ≈0.048s. The plots for this reduced order model and for the corresponding error are displayed in figures 4.4 and 4.5. As the results show, the alternative approach performs slightly better for this system. Since that method is also less complex than the Beck-Doyle algorithm, in a computational point of view, it is clearly preferable in this case. In fact, the computation time for the alternative approach was almost ten times smaller than the computation time for the Beck-Doyle algorithm.
4.3 Order reduction of second level realizations 55 (a) Impulse response (b) Frequency response (magnitude) Figure 4.1: Original system – Example 1
62 Model order reduction for 2-D systems (a) Impulse response (b) Frequency response (magnitude) Figure 4.6: Original system – Example 2, output 1
4.3 Order reduction of second level realizations 63 (a) Impulse response (b) Frequency response (magnitude) Figure 4.7: Original system – Example 2, output 2
64 Model order reduction for 2-D systems (a) Impulse response (b) Frequency response (magnitude) Figure 4.8: Reduced order system (Alternative approach) – Example 2, output 1
4.3 Order reduction of second level realizations 65 (a) Impulse response (b) Frequency response (magnitude) Figure 4.9: Reduced order system (Alternative approach) – Example 2, output 2
66 Model order reduction for 2-D systems (a) Impulse response (b) Frequency response (magnitude) Figure 4.10: Error (Alternative approach) – Example 2, output 1
4.3 Order reduction of second level realizations 67 (a) Impulse response (b) Frequency response (magnitude) Figure 4.11: Error (Alternative approach) – Example 2, output 2
68 Model order reduction for 2-D systems Example 3. The following model was used by K. Zhou et al. to test their model order reduction method: A11 = 0.5370 −0.0688 0.9855 0.5039 1.0000 0 0 0 0 0 0.5388 −0.0666 0 0 1.0000 0 , A12 = −1 0 0 0 −1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 −1 0 0 0 0 0 0 0 0 0 0 0 , A21 = −0.3907 0.2450 −0.4836 −0.2473 0.2512 −0.1451 0.0270 0.0138 1.2705 1.1068 0.1981 0.1013 1.7964 0.4220 0.5921 0.3027 0 0 −0.3934 0.2425 0 0 0.2520 −0.1425 0 0 1.2708 1.1072 0 0 1.7975 0.4233 ,(4.118) A22 = 0.4907 1.0000 0 0 0.4907 0 −0.4907 0 −0.0274 0 0 0 −0.0274 0 0.0274 0 −0.2011 0 0 1.0000 −0.2011 0 0.2011 0 −0.6008 0 0 0 −0.6008 0 0.6008 0 0 0 0 0 0.4912 1.0000 0 0 0 0 0 0 −0.0282 0 0 0 0 0 0 0 −0.2011 0 0 1.0000 0 0 0 0 −0.6008 0 0 0 , B1= 1.3404 0 1.3404 0 ,B2= −0.6578 0.0367 0.2695 0.8054 −0.6585 0.0378 0.2695 0.8054 ×10−3, C1=h0.9837 0.5016 0.9855 0.5039i,
4.3 Order reduction of second level realizations 69 C2=h−1 0 1 0 −1 0 1 0i, D=0.0013. The impulse and frequency responses of this system are represented in Figure 4.12. The dimension of the horizontal state will be reduced to 3, while the dimension of the vertical state will be reduced to 5. Beck-Doyle algorithm Once again, the procedure is the same. The obtained diagonal gramians are: Pbal =Qbal =S=diag(542.5809,407.4976,294.1651,249.2085, 509.1803,317.9776,207.8968,162.8105,96.7848,71.5243,3.0771,1.7056).(4.119) These singular values are clearly large, thus the reduced order model is expected to be a rough approximation of the original one. More concretely, discarding one horizontal state and three vertical states yields a reduced order system whose transfer function Gr(z1,z2)satisfies: kG(z1,z2)−Gr(z1,z2)kH∞≤2(σ61+σ71+σ81+σ42) = 651.0309,(4.120) where G(z1,z2)is the original system transfer function. The corresponding reduced order model is Σr= ( ˆ A,ˆ B,ˆ C,D), where: ˆ A11 = 0.4284 −0.0750 −0.0022 0.1960 0.3663 −0.0119 0.1192 −0.4135 0.1992 , ˆ A12 = −0.3796 0.2646 0.2988 0.2475 −0.0932 −0.2843 −0.1603 −0.4666 0.2364 −0.0745 −0.0473 −0.1145 −0.2469 0.0519 −0.0136 , ˆ A21 = −0.5397 −0.0972 −0.0748 0.1053 −0.5664 0.0757 0.1713 −0.1255 −0.6096 0.0005 0.0569 0.0932 0.0803 0.1623 −0.0536 ,
70 Model order reduction for 2-D systems ˆ A22 = 0.3925 −0.1703 0.1143 0.2592 −0.1854 0.1063 0.3046 −0.1947 −0.2230 −0.2532 0.0979 −0.2866 0.0747 0.1342 0.0817 0.0718 0.1981 −0.1019 −0.0139 −0.2164 0.1674 0.2276 −0.0869 0.0384 −0.3230 ,(4.121) ˆ B1= 12.0649 −10.2401 −6.4287 ,ˆ B2= −0.0042 0.0084 0.0090 −0.0036 −0.0024 , ˆ C1=h1.9632 2.9827 −1.5114i, ˆ C2=h−8.0253 −10.2356 3.4016 −5.3367 −4.9216i. The obtained PSNR is 41.0756dB, which may be considered a surprisingly large value, given that the error of the reduced model transfer function is also large. The computation time was ≈0.55s. Alternative approach The gramians of the 1-D balanced realizations are: Ph bal =Qh bal =Sh=diag(34.2824,10.9502,2.2389,1.2802)(4.122) Pv bal =Qv bal =Sv=diag(6.6260,2.3896,1.1610,0.7580,0.2196,0.0954,0.4036,0.0107)(4.123) which are clearly lower than the singular values obtained with Beck-Doyle algorithm. The corresponding reduced order model is Σr= ( ˆ A,ˆ B,ˆ C,D), where: ˆ A11 = 0.8026 −0.2912 −0.0017 0.3046 0.4392 −0.3252 −0.0139 0.3709 0.0315 , ˆ A12 = 0.3767 0.3902 −0.2859 −0.0001 0.3432 0.2275 0.1174 −0.0353 0.6639 −0.1337 −0.2319 −0.1674 0.0914 −0.4088 −0.0013 , ˆ A21 = 1.8617 0.2220 −0.1314 0.4380 −1.1033 −0.3210 0.4468 0.6423 0.0286 −0.2782 0.2440 −0.7015 −0.1550 0.0130 0.2199 ,
4.3 Order reduction of second level realizations 71 ˆ A22 = 0.6385 0.3987 0.1004 −0.0361 −0.0152 −0.2029 0.3197 −0.5431 −0.1389 −0.1225 −0.2233 0.0259 −0.3708 0.2562 0.1732 0.0506 0.1815 −0.1422 −0.0437 −0.0630 0.0439 0.1617 −0.1699 0.2131 −0.1311 ,(4.124) ˆ B1= −2.6085 1.8216 −0.4862 ,ˆ B2= −0.0019 −0.0021 0.0007 0.0019 0.0002 , ˆ C1=h−1.5720 −0.8011 −0.1150i, ˆ C2=h−1.8759 0.9308 0.3413 0.0503 0.0244i. Note that, for this reduced order model, one has ρ(ˆ A11) = 0.5243 <1and ρ(ˆ A22) = 0.4080 <1, thus these matrices are stable in the 1-D sense. This fact was ensured a priori by Theorem 2.2.1. However, it is easy to check that the matrix ˆ A does not accomplish the sufficient BIBO stability conditions stated in Theorem 3.5.4. If one computes the spectral radius of ˆ A, one obtains ρ(ˆ A) = 1.2084 >1, thus the matrix (ˆ Z−ˆ A)is singular at some (z∗ 1,z∗ 2)∈C2such that z1=z2=z and |z|=1.2084. This (z∗ 1,z∗ 2)is in ¯ U, so ˆ A does not satisfy that BIBO stability test. Hence, one may suspect that this reduced order 2-D model is unstable. Plots 4.15(a) and 4.15(b) clearly show that this suspicion is true. In fact, this is the main drawback of the alternative approach: given a BIBO stable 2-D model, there is no guarantee that the reduced order model is also BIBO stable. The computation time of the alternative approach for the model order reduction was ≈0.050s.
78 Model order reduction for 2-D systems
Chapter 5 Two case studies In this chapter, the approaches for model order reduction of 2-D systems presented in section 4.3 are applied to two models with practical relevance. The first one describes the distribution of the pollution along a river and its evolution along time. Hence, it is intrinsically a 2-D model and the application of both model order reduction algorithms is straightforward. The second one is the state-space model of an active suspension system of a bus. There, the only considered independent variable is time, hence it is a one-dimensional model. However, one of the parameters on which the system depends has not a fixed value, thus that system is uncertain. That example shows how the 2-D model order reduction algorithms described previously may be extended to model order reduction of 1-D uncertain systems. 5.1 River pollution model A big variety of river water quality problems are caused by pollutants that are discharged into the river as a consequence of human activities. Organic compounds included in these discharges are thereby oxidized by bacteria, algae and fish and converted into inorganic substances and heat. A simple approach is reducing the variety of polluting compounds to one class of substances and evaluating their concentration by the amount of oxygen needed for their complete biochemical degradation. Such quantity is designated by biological oxygen demand (BOD). Another variable that plays an important role in this process is the dissolved oxygen (DO) concentration. Besides providing a good criterion for water quality, this quantity occurs naturally in the selfpurification process of the river. Based on these considerations, E. Fornasini proposed in [30] a two-dimensional model that describes the variation of the BOD concentration and DO deficit (with respect to the saturation level) along time and space. The model assumes that the variations of BOD and DO along the cross sections of the river are much less relevant than the variations along the longitudinal one, thus a single space variable is enough to describe the dynamics of the system. Moreover, in the model that is presented here, the stream velocity of the river is assumed to be constant all over the river 79
80 Two case studies stretch. Let β(t,l)and δ(t,l)denote, respectively, BOD concentration and DO deficit (with respect to the saturation level) that exist in the elementary river reach centered in lat time t. BOD and DO values at (t+∆t,l+∆l)are computed taking into account [30]: 1. The self purification process, due to the degradation of the discharged pollutants, which results in a decrease of a1β(t,l)∆tin the BOD concentration and in a decrease of the DO deficit by the same amount. 2. The reaeration process, which takes place at the water/atmosphere interface, and that is assumed to result in a decrease in the DO deficit of a2δ(t,l)∆t. 3. The diffusion, which is a natural process in which the molecules of a substance move along their concentration gradient (i.e., from a more concentrated area to a less concentrated area). This is modelled assuming that the BOD concentration and DO deficit of the elementary water volume centred on lat time tundergoes variations in ∆tthat are proportional to β(t,l− ∆l)−β(t,l)and β(t,l+∆l)−β(t,l), for BOD, and to δ(t,l−∆l)−δ(t,l)and δ(t,l+∆l)− δ(t,l), for DO deficit. 4. BOD sources (effluents, local runoff, etc.) and reoxygenation agents (plants, algae, etc.), respectively uβ(t,l)and uδ(t,l). The 2-D model presented here is discrete in both time and space. The time is divided into intervals of ∆tand the river is divided into elementary reaches of length ∆l, which are related by: ∆l=v∆t,(5.1) where vis the stream velocity. To simplify the notation, β(i∆t,j∆l),δ(i∆t,j∆l),uβ(i∆t,j∆l) and uδ(i∆t,j∆l),(i,j)∈Z+2 0, are, from now on, abusively denoted by β(i,j),δ(i,j),uβ(i,j)and uδ(i,j), respectively. The dynamics of the system is described by the following equations: β(i+1,j+1) = Dβ∆tβ(i,j−1)+(1−¯a1∆t)β(i,j)+Dβ∆tβ(i,j+1)+M(1−a1∆t)uβ(i,j)(5.2) δ(i+1,j+1) = a1∆tβ(i,j)+ Dδ(i,j−1)+(1−¯a2∆t)δ(i,j)+Dδ∆tδ(i,j+1)−N(1−a2∆t)uδ(i,j)(5.3) where ¯a1:=a1+2Dβand ¯a2:=a2+2Dδ. Defining xh(i,j):="β(i,j+1) δ(i,j+1)#,(5.4) xv(i,j):= β(i,j−1) β(i,j) δ(i,j−1) δ(i,j) ,(5.5)
5.1 River pollution model 81 and choosing β(i,j)and δ(i,j)as the outputs of the system, these equations can be translated into the following Roesser model: "xh(i+1,j) xv(i,j+1)#= Dβ∆t0Dβ∆t1−¯a1∆t0 0 0Dδ∆t0a1∆t Dδ∆t1−¯a2∆t 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 "xh(i,j) xv(i,j)#+ + M(1−a1∆t)0 0−N(1−a2∆t) 0 0 0 0 0 0 0 0 u(i,j) (5.6) y(i,j) = "000100 000001#x(i,j),(5.7) where u(i,j):=huβ(i,j)uδ(i,j)iTand y(i,j):=hβ(i,j)δ(i,j)iT. Here, the following reasonable values are used: v=0.40m/s,a1=25%/day,a2=45%/day,Dβ=30%/day,Dδ=35%/day.(5.8) The time step is ∆t=1s, thus, according to (5.1), the river is divided into reaches of ∆l=0.40m. The order of this model will be reduced by using both the Beck-Doyle algorithm and the alternative approach proposed in this thesis. In both, the total order of the model is going to be reduced to 5. Beck-Doyle algorithm One has clearly two possible ways to reduce the order of the model from 6 to 5: discarding one dimension either in the horizontal or in the vertical state. Given that the order of the horizontal state is 2 and the order of the vertical state is 4, one can suspect that it is more reasonable to discard one vertical dimension. Computing the diagonal gramians of the balanced realization yields: Pbal =Qbal =S=diag(2.2581,0.9975,2.2581,1.4677,0.9975,0.2953)×104.(5.9) The optimization criterion that was used for computing the gramians is the same that was used in 4.3.3. The smallest "vertical" singular value is σ41=2.953×103, while the smallest "horizontal" singular value is σ22=9.975×103. Therefore, the error bound for the reduced order system is tighter if a vertical dimension is discarded. In fact, computation of both possibilities confirms that the obtained error is smaller if that option is chosen. For a matter of brevity, only the model
82 Two case studies corresponding to that possibility is shown here: ˆ A11 ="0.3587 0.0209 0.0255 0.3936#×10−4,ˆ A12 ="0.9999 0.0060 −0.0000 −0.0000 0.0025 0.9999 #, ˆ A21 = 0.9999 −0.0000 0.0095 0.0019 −0.0000 1.0000 ,ˆ A22 = 0.0001 0.0000 −0.0000 −0.0075 −0.0001 0.0031 0.0000 0.0000 0.0000 , ˆ B1="0.8995 −0.3659 −0.4943 −0.8120#,ˆ B2=03×2, ˆ C1=02×2,ˆ C2="1.1292 −118.7876 0.2038 0.5424 0.0076 0.9871#. (5.10) Alternative approach Here, also, one can discard either one horizontal or one vertical dimension. Computing both the horizontal and the vertical gramians of both (1-D) balanced realizations yields: Ph bal =Qh bal =Sh=diag(1.4141,1.4141),(5.11) Pv bal =Qv bal =Sv=diag(1.4141,1.4141,1,2.8646×10−5).(5.12) Therefore, once again, discarding one vertical state yields a reduced order model with a much better error bound than discarding a horizontal one and, by computation of both alternatives, this option proved to be actually the most adequate. This reduced order model is defined by the matrices: ˆ A11 ="0.3472 0 0 0.4051#×10−4,ˆ A12 ="−0.7906 0.2862 0.0000 −0.2862 −0.7906 −0.0000#, ˆ A21 = −1.1182 −0.4048 0.4048 −1.1181 −0.0000 0.0000 ,ˆ A22 = 0.0000 −0.0000 0.0000 −0.0000 0.0000 −0.0000 −0.7907 0.2863 −0.0000 , ˆ B1="1.0000 0 0−0.9999#,ˆ B2=03×2, ˆ C1=02×2,ˆ C2="−0.0000 0.0000 1.0000 −0.2863 −0.7907 0.0000#. (5.13)
5.1 River pollution model 83 Discarded singular value PSNR [dB] Comput. time [s] B-D Alt. B-D Alt. B-D Alt. Output 1 (β(i,j)) 2.9530×1032.8646×10−544.5673 179.1492 0.46 0.043 Output 2 (δ(i,j)) 95.1741 82.6402 Table 5.1: Quantitative comparison between the approaches for the order reduction of a river pollution model. In Table 5.1, the performance of both methods in this example is compared. The discarded singular value is much larger in the Beck-Doyle algorithm than in the alternative approach, therefore the error bound is much tighter for the latter. Furthermore, the PSNR for the impulse response of the output β(i,j)is much larger in the alternative approach, although for the output δ(i,j)it is slightly smaller. In terms of computational time, the alternative approach was able to reduce the order of the model in more than 10 times quicker than the Beck-Doyle algorithm, revealing again to be a much faster algorithm. Hence, for this example, it is clearly more advantageous to use the alternative approach. Figures 5.1 and 5.2 show the plots of the impulse and frequency responses of the original model. Figures 5.3-5.6 show the errors of the reduced order models obtained with both approaches.
84 Two case studies (a) Impulse response (b) Frequency response (magnitude) Figure 5.1: Original river model – output β(i,j)
5.1 River pollution model 85 (a) Impulse response (b) Frequency response (magnitude) Figure 5.2: Original river model – output δ(i,j)
86 Two case studies (a) Impulse response (b) Frequency response (magnitude) Figure 5.3: Error of the reduced order river model (Beck-Doyle algorithm) – output β(i,j)
5.1 River pollution model 87 (a) Impulse response (b) Frequency response (magnitude) Figure 5.4: Error of the reduced order river model (Beck-Doyle algorithm) – output δ(i,j)
94 Two case studies model as: ˙x(t) = A11cx(t)+hA12cB1ci"w(t) u(t)#(5.26) "¯ δw(t) y(t)#="A21c C1c#x(t)+"A22cB2c C2cDc#"w(t) u(t)#(5.27) This model has the structure of a 1-D model with input hw(t)u(t)TiT, output h¯ δw(t)y(t)TiT and state vector x(t). Therefore, it can be discretized by using any traditional discretization procedure. Here, zero-order hold is used. The matrices of the corresponding discretized model Σ2D d= (A11,A12,A21,A22,B1,B2,C1,C2,D)are related with the ones of the continuous time model by the following equalities (see, for instance, [32]): A11 =eA11cTs:= ∞ ∑ k=0 A11cTsk k!,(5.28) hA12 B1i=ZTs 0eA11cτhA12cB1cidτ,(5.29) "A21 C1#="A21c C1c#,(5.30) "A22 B2 C2D#="A22cB2c C2cDc#,(5.31) where Tsdenotes the chosen sampling period. Here, Ts=0.01s and the matrices of the discretized model are: A11 = 0.9706 0.0145 0.0085 0.0015 0.0033 0.9962 0.0004 0.0096 −5.5045 2.6872 0.7019 0.2832 0.5752 −0.7054 0.0739 0.9257 ,A12 = 0.0001 0.0006 0.0169 0.1087 , A21 =h−5.6809 5.6809 −0.5681 0.5681i,A22 =−0.7391, B1= 0.0149 −0.0000 0.0004 0.0000 2.8173 −0.0000 0.1302 0.0000 ,B2=h−0.0038 −0.1136i×10−4, C1= 86.9565 −86.9565 8.6957 −8.6957 −1 1 0 0 1 0 0 0 C2= 11.3137 0 0 , D= 0.0000 0.0002 0 0 −1 0 . (5.32)
5.2 Active suspension system of a bus 95 Now, the order of the model may be reduced. Before that, though, it is important to relate the internal stability of this 2-D structured model, Σ2D d, with the robust stability of the uncertain model Σc. Defining A2D:="A11 A12 A21 A22#(5.33) and Z:="zI20 0¯ δ#,(5.34) one has that Σ2D dis internally stable if and only if (Z−A2D)is nonsingular for all (z,¯ δ)∈C2: |z|≥1,|¯ δ|≥1. It was stated previously that the uncertain model Σcis robustly stable if it is stable for all δ∈[−1,1]. Equivalently, since ¯ δ=δ−1,Σcis robustly stable if it is stable for all ¯ δ∈R such that |¯ δ|≥ 1. In fact, the uncertainty considered in this example is intrinsically real (i.e., it makes no sense to admit complex values for the value of the mass m2), thus one should not expect that the robust stability of the uncertain model Σcimplies the internal stability of the 2-D model Σ2D d. Therefore, there is no guarantee that the Beck-Doyle algorithm is applicable in this case. In fact, when one tries to compute solutions for (4.80) and (4.81), one concludes that these LMI are infeasible. Hence, Σ2D dis internally unstable and the Beck-Doyle algorithm is not applicable. Fortunately, one has that ρ(A11) = 0.9917 <1 and ρ(A22) = 0.7391 <1, so the alternative approach proposed in this thesis may be used. Clearly, since the dimension of the state vector associated with the uncertainty (i.e., the dimension of A22) is one, it is pointless to reduce the order of this state. The dimension of the state vector of the nominal system (i.e., the dimension of A11) is 4 and it will be reduced to 3. The reduction is made as in the previous examples and yields the reduced order model ˆ Σ2D d= ( ˆ A11,ˆ A12,ˆ A21,A22,ˆ B1,B2,ˆ C1,C2,D), where: ˆ A11 = 0.9925 −0.0791 0.0452 0.0789 0.9677 0.0857 −0.0439 0.0833 0.7120 ,ˆ A12 = 0.2653 −0.2598 −0.2255 , ˆ A21 =h0.0710 0.1498 −0.2993i,ˆ B1= 1.0528 0.0000 −2.2802 0.0000 4.5918 −0.0000 , ˆ C1= −1.0869 −2.2930 4.5821 0.0000 0.0192 0.0010 0.0270 0.0114 0.0055 . (5.35) The discarded singular value is σh 4=11.8107. The reduced order discrete-time uncertain statespace model is obtained by computing a first level realization corresponding to the model ˆ Σ2D d and replacing ¯ δby δ−1. Such model is ˆ Σd= ( ˆ A(δ),ˆ B(δ),ˆ C(δ),ˆ D(δ)), where these matrices are
96 Two case studies obtained through: ˆ A(δ) = ˆ A12(¯ δI−A22)−1ˆ A21 +ˆ A11 ¯ δ=δ−1,(5.36) ˆ B(δ) = ˆ A12(¯ δI−A22)−1B2+ˆ B1¯ δ=δ−1,(5.37) ˆ C(δ) = C2(¯ δI−A22)−1ˆ A21 +ˆ C1¯ δ=δ−1,(5.38) ˆ D(δ) = C2(¯ δI−A22)−1B2+D¯ δ=δ−1.(5.39) Performing these calculations, one obtains finally: ˆ A(δ) = 0.7525δ+0.9925 0.7391δ+1−0.0187δ−0.07907 0.7391δ+1−0.04602δ+0.04518 0.7391δ+1 0.03985δ+0.07887 0.7391δ+10.6764δ+0.9677 0.7391δ+10.1411δ+0.08568 0.7391δ+1 −0.04843δ−0.04386 0.7391δ+10.02779δ+0.08331 0.7391δ+10.5938δ+0.712 0.7391δ+1 , ˆ B(δ) = 0.7781δ+1.053 0.7391δ+1−1.556×10−6δ+1.972×10−6 0.7391δ+1 −1.685δ−2.28 0.7391δ+13.371×106δ+5.666×10−7 0.7391δ+1 3.394δ+4.592 0.7391δ+1−6.788×10−6δ−1.265×10−5 0.7391δ+1 , ˆ C(δ) = 4.441×10−16δ−1.087 0.7391δ+1−2.293 0.7391δ+1−1.332×10−15δ+4.582 0.7391δ+1 1.779×10−50.01916 0.0009805 0.02695 0.01144 0.005477 , ˆ D(δ) = −8.47×10−22δ+5.797×10−6 0.7391δ+1−2.711×10−20δ+0.0001739 0.7391δ+1 0 0 −1 0 . (5.40) In figures 5.8 and 5.9, the responses of the non-reduced discretized uncertain model to independent impulses of 1m in q2and 15kN in Fare displayed for various admissible values of δ. Note that, due to the type of discretization that was used, a discrete-time impulse of amplitude Kcorresponds to a continuous-time rectangular pulse s(t)of amplitude Kand width Ts, i.e.: s(t):= K,0≤t≤Ts 0,t>Ts .(5.41) The error of the reduced order system for the same inputs is plotted in figures 5.10 and 5.11. Observing these error plots, one concludes that the error is considerably larger when δis close to -1, i.e., when the mass m2is close to its minimum possible value. The relative error from input kto output lis defined as: εk,l:=∑Ns n=0|hk,l(n)−ˆ hk,l(n)| ∑Ns n=0|hk,l(n)|,(5.42) where hk,land ˆ hk,lare the impulse responses from input kto output lof the original and reduced order systems, respectively, and Nsis the total number of samples. In Table 5.2 the values of the relative error from each input to each output are presented, for δ=−1,0 and 1.
5.2 Active suspension system of a bus 97 Input 1 (q2) Input 2 (F) δ=−1δ=0δ=1δ=−1δ=0δ=1 Output 1 (¨q2) 0.6693 0.2231 0.4337 0.7559 0.4321 1.0998 Output 2 (q2−q1) 0.9320 0.5343 0.6856 1.2059 1.1415 1.3501 Output 3 (q1−q0) 0.6700 0.1983 0.3826 1.1260 0.6873 1.3008 Table 5.2: Relative error of the impulse responses of the reduced order system The values in this table confirm what was stated before: the error is actually large for δ=−1. For the input F, the error is even larger for δ=1. Furthermore, the table shows that the error for the input q2is smaller than the error for the input F. As it is clear through the analysis of Table 5.2, the approximation obtained with this reduced order system yields a rather large error for the input Fand also for the input q2when δ=−1. It might be interesting, therefore, to compare these results with those obtained by performing the 1-D balanced truncation reduction for the original system when one takes δ=−1,0 and 1. Note that, when one replaces δby a constant value, the obtained system is not an uncertain system anymore, thus the "classic" 1-D model order reduction algorithm may be applied. However, the obtained system is an approximation of the original one only for that pre-specified value of δ. For that reason, it will be called a local reduced order model. In figures 5.12-5.17, the responses of the original and reduced order uncertain and local models are compared for δ=−1,0 and 1. In Table 5.3 the relative errors of the local reduced order systems are presented, for the same values of δ. Input 1 (q2) Input 2 (F) δ=−1δ=0δ=1δ=−1δ=0δ=1 Output 1 (¨q2) 0.0260 0.2288 0.3265 0.1824 0.4390 0.5022 Output 2 (q2−q1) 0.1540 0.5572 0.6342 0.7361 1.1662 1.1733 Output 3 (q1−q0) 0.0208 0.2051 0.2907 0.2895 0.6980 0.7492 Table 5.3: Relative errors of the impulse responses of the local reduced order systems As this table shows, for δ=−1 and 1, the errors of the local reduced order systems are rather smaller than the errors of the uncertain reduced order system. This could be expected a priori. In fact, in the computation of the uncertain reduced order model, there is an implicit constraint: the entries of the uncertain model must be proper rational functions in the variable ¯ δ=δ−1in which the degree of the denominator may be at most one. Hence, these entries should not be expected to interpolate exactly the entries of each local reduced order model that may be computed for each
98 Two case studies value of δin the interval [−1,1]. Therefore, the obtained error is expected to be larger for the uncertain reduced order model. However, for δ=0, the relative errors of both the uncertain reduced order model and the local reduced order model are very close. Figures 5.13 and 5.16 confirm that the local reduced order model and the uncertain reduced order model impulse responses almost coincide for δ=0. Figure 5.8: Response of the original system to an impulse of 1m in q2, for the indicated values of δ.
5.2 Active suspension system of a bus 99 Figure 5.9: Response of the original system to an impulse of 15kN in F, for the indicated values of δ. Figure 5.10: Error of the response of the uncertain reduced order system to an impulse of 1m in q2, for the indicated values of δ.
100 Two case studies Figure 5.11: Error of the response of the uncertain reduced order system to an impulse of 15kN in F, for the indicated values of δ. Figure 5.12: Responses of the original and reduced order systems (uncertain and local) to an impulse of 1m in q2, for δ=−1.
5.2 Active suspension system of a bus 101 Figure 5.13: Responses of the original and reduced order systems (uncertain and local) to an impulse of 1m in q2, for δ=0. Figure 5.14: Responses of the original and reduced order systems (uncertain and local) to an impulse of 1m in q2, for δ=1.
102 Two case studies Figure 5.15: Responses of the original and reduced order systems (uncertain and local) to an impulse of 15kN in F, for δ=−1. Figure 5.16: Responses of the original and reduced order systems (uncertain and local) to an impulse of 15kN in F, for δ=0.
5.2 Active suspension system of a bus 103 Figure 5.17: Responses of the original and reduced order systems (uncertain and local) to an impulse of 15kN in F, for δ=1.
110 Relative degree of rational functions – some algebraic properties 4. If, moreover, p1(0)6=0 and q1(0)6=0, then d(g1(z−1)) = 0. Proof. Let g1(z) = αm1zm1+αm1−1zm1−1+···+α0 zn1+βn1−1zn1−1+···+β0,(B.4) where α06=0 and β06=0, because p1(0)6=0 and q1(0)6=0. Then, g1(z−1) = αm1z−m1+αm1−1z−(m1−1)+···+α0 z−n1+βn1−1z−(n1−1)+···+β0= =α0zn1+···+αm1−1zn1−(m1−1)+αm1zn1−m1 β0zn1+···+βn1−1z+1. (B.5) Thus, d(g1(z−1)) = n1−n1=0.
Appendix C MATLAB implementation of the algorithms C.1 Beck-Doyle algorithm function [ A11r,A12r,A21r,A22r,B1r,B2r,C1r,C2r,D,err ] = ... BeckDoyleModRed( A11,A12,A21,A22,B1,B2,C1,C2,D,hdisc,vdisc ) % Model order reduction of the 2−D model Sigma=(A11,A12,A21,A22,B1,B2, % C1,C2,D) using the Beck−Doyle algorithm, described in section 4.3.1 % hdisc and vdisc contain the number of horizontal and vertical states % to be discarded % err gives the sum of the discarded singular values A2d=[A11, A12; A21, A22]; B2d=[B1; B2]; C2d=[C1, C2]; nh=length(A11); nv=length(A22); %LMI for the controllability gramian setlmis([]); p = lmivar(1,[nh 1;nv 1]); lmiterm([−1 1 1 p],1,1); lmiterm([2 1 1 p],A2d,A2d'); % LMI : A*P*A' lmiterm([2 1 1 p],1,−1); % LMI : −P lmiterm([2 1 1 0],B2d*B2d'); % LMI : B*B' ctrgram=getlmis; c=mat2dec(ctrgram,eye(nh+nv)); options=[1e−5,0,0,0,0]; 111
112 MATLAB implementation of the algorithms [~,popt]=mincx(ctrgram,c,options); P=dec2mat(ctrgram,popt,p); P1=P(1:nh,1:nh); P2=P(nh+1:nh+nv,nh+1:nh+nv); %LMI for the observability gramian setlmis([]); q=lmivar(1,[nh 1;nv 1]); lmiterm([−1 1 1 q],1,1); lmiterm([2 1 1 q],A2d',A2d); % LMI : A'*P*A lmiterm([2 1 1 q],1,−1); % LMI : −Q lmiterm([2 1 1 0],C2d'*C2d); % LMI : C'*C obsgram=getlmis; c=mat2dec(obsgram,eye(nh+nv)); options=[1e−5,0,0,0,0]; [~,qopt]=mincx(obsgram,c,options); Q=dec2mat(obsgram,qopt,q); Q1=Q(1:nh,1:nh); Q2=Q(nh+1:nh+nv,nh+1:nh+nv); %balancing the realization [U,S,~]=svd(P1); T1=U*sqrt(S); [U,S,~]=svd(P2); T2=U*sqrt(S); T=[T1 zeros(nh,nv);zeros(nv,nh) T2]; Pp=T\P/T'; Qq=T'*Q*T; Aa=T\A2d*T; Bb=T\B2d; Cc=C2d*T; Qq1=Qq(1:nh,1:nh); Qq2=Qq(nh+1:nh+nv,nh+1:nh+nv); [U,~,~]=svd(Qq1); T1=U; [U,~,~]=svd(Qq2); T2=U; T=[T1 zeros(nh,nv); zeros(nv,nh) T2]; Ppp=T\Pp/T'; Qqq=T'*Qq*T; Aaa=T\Aa*T; Bbb=T\Bb; Ccc=Cc*T; Qqq1=Qqq(1:nh,1:nh);
C.2 Alternative approach 113 Qqq2=Qqq(nh+1:nh+nv,nh+1:nh+nv); [~,S,~]=svd(Qqq1); T1=inv(S.^(1/4)); [~,S,~]=svd(Qqq2); T2=inv(S.^(1/4)); T=[T1 zeros(nh,nv); zeros(nv,nh) T2]; Pbal=T\Ppp/T' Qbal=T'*Qqq*T A2dbal=T\Aaa*T; B2dbal=T\Bbb; C2dbal=Ccc*T; %the 2−D realization (A2dbal,B2dbal,C2dbal,D) is a balanced one %now, perform the reduction A11r=A2dbal(1:nh−hdisc,1:nh−hdisc); A12r=A2dbal(1:nh−hdisc,nh+1:nh+nv−vdisc); A21r=A2dbal(nh+1:nh+nv−vdisc,1:nh−hdisc); A22r=A2dbal(nh+1:nh+nv−vdisc,nh+1:nh+nv−vdisc); B1r=B2dbal(1:nh−hdisc,:); B2r=B2dbal(nh+1:nh+nv−vdisc,:); C1r=C2dbal(:,1:nh−hdisc); C2r=C2dbal(:,nh+1:nh+nv−vdisc); err=0; for i=nh−hdisc+1:nh err=err+Pbal(i,i); end for i=nh+nv−vdisc+1:nh+nv err=err+Pbal(i,i); end end C.2 Alternative approach function [ A11r,A12r,A21r,A22r,B1r,B2r,C1r,C2r,D,err ] = ... altModRed( A11,A12,A21,A22,B1, B2,C1,C2,D,hdisc,vdisc ) % Model order reduction of the 2−D model Sigma=(A11,A12,A21,A22,B1,B2, % C1,C2,D) using the alternative approach described in section 4.3.2 % hdisc and vdisc contain the number of horizontal and vertical states % to be discarded
114 MATLAB implementation of the algorithms nh=length(A11); nv=length(A22); [ny,nu]=size(D); A11r=A11; A12r=A12; A21r=A21; A22r=A22; B1r=B1; B2r=B2; C1r=C1; C2r=C2; err=0; if hdisc~=0 % representation of the system in the form (4.86)−(4.87) Ah=A11; Bh=[A12, B1]; Ch=[A21; C1]; Dh=[A22, B2; C2, D]; %calculating the gramians Ph=dlyap(Ah,Bh*Bh'); Qh=dlyap(Ah',Ch'*Ch); %balancing the realization [U,S,~]=svd(Ph); T=U*sqrt(S); Pph=T\Ph/T'; Qqh=T'*Qh*T; Aah=T\Ah*T; Bbh=T\Bh; Cch=Ch*T; [U,~,~]=svd(Qqh); T=U; Ppph=T\Pph/T'; Qqqh=T'*Qqh*T; Aaah=T\Aah*T; Bbbh=T\Bbh; Ccch=Cch*T; [~,S,~]=svd(Qqqh); T=inv(S.^(1/4)); Phbal=T\Ppph/T';
C.2 Alternative approach 115 Qhbal=T'*Qqqh*T; Abal=T\Aaah*T; Bbal=T\Bbbh; Cbal=Ccch*T; %performing the order reduction Ar=Abal(1:nh−hdisc,1:nh−hdisc); Br=Bbal(1:nh−hdisc,:); Cr=Cbal(:,1:nh−hdisc); Dr=Dh; for i=nh−hdisc+1:nh err=err+Phbal(i,i); end nh=nh−hdisc; A11r=Ar; A12r=Br(:,1:nv); A21r=Cr(1:nv,:); A22r=Dr(1:nv,1:nv); B1r=Br(:,nv+1:nv+1+nu−1); B2r=Dr(1:nv,nv+1:nv+1+nu−1); C1r=Cr(nv+1:nv+1+ny−1,:); C2r=Dr(nv+1:nv+1+ny−1,1:nv); % the horizontal state of the system has now reduced order nh−hdisc end if vdisc~=0 % representation of the system in the form (4.88)−(4.89) Av=A22r; Bv=[A21r, B2r]; Cv=[A12r; C2r]; Dv=[A11r, B1r; C1r, D]; %calculating the gramians Pv=dlyap(Av,Bv*Bv'); Qv=dlyap(Av',Cv'*Cv); %balancing the realization [U,S,~]=svd(Pv); T=U*sqrt(S); Ppv=T\Pv/T'; Qqv=T'*Qv*T;
116 MATLAB implementation of the algorithms Aav=T\Av*T; Bbv=T\Bv; Ccv=Cv*T; [U,~,~]=svd(Qqv); T=U; Pppv=T\Ppv/T'; Qqqv=T'*Qqv*T; Aaav=T\Aav*T; Bbbv=T\Bbv; Cccv=Ccv*T; [~,S,~]=svd(Qqqv); T=inv(S.^(1/4)); Pvbal=T\Pppv/T'; Qvbal=T'*Qqqv*T; Abal=T\Aaav*T; Bbal=T\Bbbv; Cbal=Cccv*T; Ar=Abal(1:nv−vdisc,1:nv−vdisc); Br=Bbal(1:nv−vdisc,:); Cr=Cbal(:,1:nv−vdisc); Dr=Dv; for i=nv−vdisc+1:nv err=err+Pvbal(i,i); end nv=nv−vdisc; A11r=Dr(1:nh,1:nh); A12r=Cr(1:nh,:); A21r=Br(:,1:nh); A22r=Ar; B1r=Dr(1:nh,nh+1:nh+1+nu−1); B2r=Br(:,nh+1:nh+1+nu−1); C1r=Dr(nh+1:nh+1+ny−1,1:nh); C2r=Cr(nh+1:nh+1+ny−1,:); % the vertical state of the system has now reduced order nv−vdisc end % the model order reduction is now complete end
References [1] R. Eising. 2-D Systems, an algebraic approach. Mathematisch Centrum, Amsterdam, The Netherlands, 1979. [2] R.P. Roesser. A discrete state-space model for linear image processing. IEEE Transactions on Automatic Control, AC-20(1):1 – 10, 1975/02. [3] E. Fornasini and G. Marchesini. Doubly-indexed dynamical systems: state-space models and structural properties. Mathematical Systems Theory, 12(1):59 – 72, 1978. [4] E.D. Sontag. On first-order equations for multidimensional filters. IEEE Transactions on Acoustics, Speech and Signal Processing, ASSP-26(5):480 – 2, 1978/10. [5] Hong Luo, Wu-Sheng Lu, and A. Antoniou. A weighted balanced approximation for 2-D discrete systems and its application to model reduction. IEEE Transactions on Circuits and Systems I: Fundamental Theory and Applications, 42(8):419 – 29, 1995/08. [6] M. Diab, V. Sreeram, and W.Q. Liu. Model reduction of 2-D separable-denominator transfer functions via quasi-kalman decomposition. volume 3, pages 1680 – 1683, Hong Kong, 1997. [7] P.N. Paraskevopoulos, P.E. Panagopoulos, G.K. Vaitsis, S.J. Varoufakis, and G.E. Antoniou. Model reduction of 2-D systems via orthogonal series. Multidimensional Systems and Signal Processing, 2(1):69 – 83, 1991/03. [8] C.L. Beck, John Doyle, and Keith Glover. Model reduction of multidimensional and uncertain systems. IEEE Transactions on Automatic Control, 41(10):1466–1477, 1996. [9] Chi-Tsong Chen. Linear System Theory and Design. Oxford University Press, Third edition, 1999. [10] Tohru Katayama. Subspace Methods for System Identification. Springer, First edition, 2005. [11] L. Hogben. Handbook of Linear Algebra. Discrete Mathematics and Its Applications. Taylor & Francis, 2007. [12] H. Schumacher and J.C. Willems. Lecture Notes of the course "Mathematical Systems Theory and Linear Systems". Dutch Institute for Systems and Control – DISC, The Netherlands, 1987. [13] A.V. Oppenheim, A.S. Willsky, and I.T. Young. Signals and systems. Prentice-Hall signal processing series. Prentice-Hall, 1983. [14] M. Vidyasagar and N. K. Bose. Input-output stability of linear systems defined over measure spaces. In Proceedings of 1975 Midwest Symposium on Circuits and Systems, pages 394– 397, 1975. 117
118 REFERENCES [15] D. Goodman. Some stability properties of two-dimensional linear shift-invariant digital filters. IEEE Transactions on Circuits and Systems, CAS-24(4):201 – 8, 1977/04. [16] Tong-Yi Guo, Chyi Hwang, Leang-San Shieh, and Chen-Hung Chen. Reduced-order models of 2-D linear discrete separable-denominator system using bilinear routh approximations. IEEE Proceedings, Part G: Circuits, Devices and Systems, 139(1):45 – 56, 1992. [17] Qing Wang, James Lam, Huijun Gao, and Qingyang Wang. Energy-to-peak model reduction for 2-D discrete systems in Fornasini-Marchesini form. European Journal of Control, 12(4):420 – 430, 2006. [18] P. Misra and T. Manickam. Balanced realization of separable-denominator multidimensional systems. Linear Algebra and Its Applications, 188-189:521 – 47, 1993/07. [19] K. Zhou, J.L. Aravena, Guoxiang Gu, and Dapeng Xiong. 2-D model reduction by quasibalanced truncation and singular perturbation. IEEE Transactions on Circuits and Systems II: Analog and Digital Signal Processing, 41(9):593 – 602, 1994/09. [20] W.-S. Lu, E. B. Lee, and Q.-T. Zhang. Balanced approximation of two-dimensional and delay-differential systems. International Journal of Control, 46(6):2199–2218, 1987. [21] Chengshan Xiao, V. Sreeram, W.Q. Liu, and A.N. Venetsanopoulos. Identification and model reduction of 2-D systems via the extended impulse response Gramians. Automatica, 34(1):93 – 101, 1998/01. [22] Cuihong Wang and Lin Jia. H∞model reduction for positive 2-D discrete systems in Roesser model. pages 1733 – 8, Piscataway, NJ, USA, 2012. [23] E.D. Sontag. The lattice of minimal realizations of response maps over rings. Mathematical Systems Theory, 11(2):169 – 75, 1977. [24] Jana Nemcova and Jan H. van Schuppen. Realization theory for rational systems: Minimal rational realizations. Acta Applicandae Mathematicae, pages 1 – 22, 2009. [25] A.V. Oppenheim, R.W. Schafer, and J.R. Buck. Discrete-time signal processing. Prentice- Hall signal processing series. Prentice Hall, 1999. [26] Mi-Ching Tsai, Da-Wei Guf, Ian Postlethwaite, and Brian D. O. Anderson. Inner functions and a pseudo-singular-value decomposition in super-optimal h-infinity control. International Journal of Control, 51(5):1119–1131, 1990. [27] C.L. Beck and John Doyle. A necessary and sufficient minimality condition for uncertain systems. IEEE Transactions on Automatic Control, 44(10):1802–1813, 1999. [28] P. Bendotti and C.L. Beck. On the role of LFT model reduction methods in robust controller synthesis for a pressurized water reactor. IEEE Transactions on Control Systems Technology, 7(2):248–257, 1999. [29] P. Gahinet, A. Nemirovski, A.J. Laub, and M. Chilali. LMI Control Toolbox For Use With MATLAB. The Mathworks, 1995. [30] Ettore Fornasini. A 2-D systems approach to river pollution modelling. Multidimensional Systems and Signal Processing, 2(3):233–265, 1991.
REFERENCES 119 [31] S. Weiland. Lecture Notes of the course "Robust Control". Eindhoven University of Technology – The Netherlands, 2011. [32] G.F.A. Franklin, J.D.A. Powell, and M.L.A. Workman. Digital control of dynamic systems. Addison-Wesley world student series. Addison Wesley Longman, 1998.