• Aucun résultat trouvé

On the compact formulation of the derivation of a transfer matrix with respect to another matrix

N/A
N/A
Protected

Academic year: 2021

Partager "On the compact formulation of the derivation of a transfer matrix with respect to another matrix"

Copied!
15
0
0

Texte intégral

(1)

HAL Id: inria-00345508

https://hal.inria.fr/inria-00345508

Submitted on 9 Dec 2008

HAL is a multi-disciplinary open access

archive for the deposit and dissemination of

sci-entific research documents, whether they are

pub-lished or not. The documents may come from

teaching and research institutions in France or

abroad, or from public or private research centers.

L’archive ouverte pluridisciplinaire HAL, est

destinée au dépôt et à la diffusion de documents

scientifiques de niveau recherche, publiés ou non,

émanant des établissements d’enseignement et de

recherche français ou étrangers, des laboratoires

publics ou privés.

On the compact formulation of the derivation of a

transfer matrix with respect to another matrix

Thibault Hilaire, Philippe Chevrel

To cite this version:

Thibault Hilaire, Philippe Chevrel. On the compact formulation of the derivation of a transfer matrix

with respect to another matrix. [Research Report] RR-6760, INRIA. 2008. �inria-00345508�

(2)

a p p o r t

d e r e c h e r c h e

ISSN 0249-6399 ISRN INRIA/RR--6760--FR+ENG Thème NUM

INSTITUT NATIONAL DE RECHERCHE EN INFORMATIQUE ET EN AUTOMATIQUE

On the compact formulation of the derivation of a

transfer matrix with respect to another matrix

Thibault HILAIRE — Philippe CHEVREL

N° 6760

(3)
(4)

Centre de recherche INRIA Rennes – Bretagne Atlantique IRISA, Campus universitaire de Beaulieu, 35042 Rennes Cedex

Téléphone : +33 2 99 84 71 00 — Télécopie : +33 2 99 84 71 71

On the compact formulation of the derivation of

a transfer matrix with respect to another matrix

Thibault HILAIRE

, Philippe CHEVREL

Th`eme NUM — Syst`emes num´eriques ´

Equipe-Projet CAIRN

Rapport de recherche n° 6760 — August 2008 — 11 pages

Abstract: A new operator is considered, allowing compact formulae and proofs in the context of the derivation of a transfer matrix with respect to another matrix. The problem of the parametric sensitivity matrix calculation is chosen for illustration. It consists in deriving a Multiple Input Multiple Output transfer function with respect to a parametric matrix and is central in robust control theory. Efficient algorithms may be straightforwardly got from the compact analytic formulae using the operator introduced.

Key-words: sensitivity, derivative, robust control

CAIRN Project, INRIA/IRISA

(5)

Une expression compacte pour la drivation

d’une fonction de transfert par une matrice

R´esum´e : Dans ce papier, un nouvel oprateur mathmatique est considr, perme-ttant des expressions compactes dans le contexte de la drivation d’une matrice de fonction de transfert par rapport une matrice. Le problme de la sensi-bilit paramtrique sert d’illustration. Il consiste en la drivation d’une fonction de transfert plusieurs entres et plusieurs sorties par rapport une matrice de paramtres. Ce problme est central en commande robuste, notamment pour la recherche de ralisations efficaces vis--vis de leur implantation numrique. Mots-cl´es : sensibilit, drivation, commande robuste

(6)

On the compact formulation of the derivation of a transfer matrix 3

1

Motivation

One important questioning in control theory is robustness. A property asso-ciated to a given system will be said to be robust if it is still satisfied when the system is slightly modified. Different properties may be considered, such as stability or say a certain level of performance measured, e.g. thanks to system norms. The problem is crucial in the theory of feedback, because the systems considered are (physical or mathematical) models which are representing the process with some approximations and uncertainties [10, 2]. Moreover, the feedback controller itself may be considered as an uncertain system, due to the inevitable approximation coming from the implementation. In particular, the use of computers introduces Finite Word Length quantification of the controller parameters [3, 7].

Whatever the case, the computation of the parametric sensitivity of MIMO transfer function is of particular interest. The problem involves the calculus of a matrix with respect to (w.r.t.) another matrix. But, as far the authors know, it exists no special techniques or special properties to simplify the expressions induced.

For example, let A ∈ Rn×n, B ∈ Rn×m, C ∈ Rp×n and D ∈ Rp×m be four

matrices defining the MIMO transfer function H1 [8] :

H1:

C Cp×q

z 7→ C(zIn− A)−1B+ D (1)

The sensitivity measure (in the context of FWL implementation) used (e.g. Gevers and Li [3]) is M , ∂H1 ∂A 2 2 + ∂H1 ∂B 2 2 + ∂H1 ∂C 2 2 + ∂H1 ∂D 2 2 (2) where k.k2is the transfer function L2-norm.

The analytic expression of ∂H1

∂A, ∂H1 ∂B , ∂H1 ∂C and ∂H1

∂D are easy to formulate in the

SISO1 case (when p = q = 1, so H

1(z) ∈ C), but these expressions are less

obvious in the MIMO case.

After having recalled general definitions and classical properties on matrix and transfer function derivatives in section 2, section 3 introduces a new oper-ator ⊛ to simplify derivative expressions in the MIMO case. Finally, a more complicated example is solved in section 4, before conclusion in section 5.

2

Definitions

Let’s introduce some interesting definitions about matrix and transfer function derivatives.

Definition 1 (Scalar derivative w.r.t. a matrix) Let X ∈ Rm×n be a

ma-trix and f : Rm×n→ C a scalar function of X, differentiable w.r.t. each element

of X.

1Single I nput S ingle Output

(7)

4 T. Hilaire & P. Chevrel

The derivative of f w.r.t. X is defined as the matrix ∂X∂f ∈ Cm×n such

 ∂f ∂X  i,j , ∂f ∂Xi,j (3) where Xi,j is the(i, j) element of X.

This derivative defines the sensitivity of f w.r.t. X.

This definition can be extended to functions with values in Cp×l as follow :

Definition 2 (Derivative of a matrix w.r.t. a matrix) Let X ∈ Rm×n be

a matrix and f : Rm×n→ Cp×l a function of X, where each component of f is

differentiable w.r.t. each element of X.

The derivative of f with respect to X is a matrix of Cmp×nl partitioned in m× n

matrix blocks of Cp×l. Each(i, j)th

block is defined by ∂f ∂Xi,j ∈ Cp×l (4) Then ∂f ∂X ,       ∂f ∂X1,1 ∂f ∂X1,2 . . . ∂f ∂X1,n ∂f ∂X2,1 ∂f ∂X2,2 . . . ∂f ∂X2,n .. . ... . .. ... ∂f ∂Xm,1 ∂f ∂Xm,2 . . . ∂f ∂Xm,n       (5)

which can also be written as : ∂f ∂X = m X r=1 n X s=1 Er,sm,n⊗ ∂f ∂Xr,s (6) where the matrices En,m

r,s of Rn×m are the elementary matrices defined by

Er,sn,mi,j, δr,iδs,j (7)

and⊗ is the Kronecker product.

Remark 1 When X is a row vector and f (X) a column vector, ∂X∂f is the jacobian matrix of f .

Other definitions of the derivative of a matrix w.r.t. a matrix are sometimes used : ∂A ∂X , ∂Vec(A) ∂Vec(X) or ∂A ∂X , ∂Vec(A)

∂Vec(X)⊤, in order to get a jacobian matrix. It

exempts to consider blocks of matrices ∂X∂fi,j. However some useful propositions (like proposition 1 and theorem 1) are more easy according to definition 2. Remark 2 ∂X

∂X, the derivative of X ∈ R

p×q w.r.t. itself, is a constant matrix

of Rp2×q2 such that : ∂X ∂X = p X r=1 l X s=1 Er,sp,l⊗ Er,sp,l  (8) = p X r=1 l X s=1 Ep(r−1)p+r,(s−1)l+s2,l2 (9) INRIA

(8)

On the compact formulation of the derivation of a transfer matrix 5

The transfer function sensitivity (SISO and MIMO case) is defined below Definition 3 (Transfer function sensitivity) Let X ∈ Rm×n be a matrix

and H : C → Cp×q the transfer function which associate H(z) to all z ∈ C.

H(z) is supposed to be parametrized by X and to be differentiable w.r.t. each element of X whatever z∈ C.

Finally, the sensitivity function of H w.r.t. X is the transfer function denoted by ∂H ∂X, such that ∂H ∂X : C → Cpm×qn z 7→ ∂(H(z))∂X (10)

Remark 3 The subsequent properties on matrix derivatives also hold for trans-fer function, without any modifications.

The General Leibniz product rule for derivative of a product of matrices w.r.t. a matrix is the main property used when dealing with matrix derivative. Proposition 1 Let’s consider X ∈ Rk×l, Y ∈ Rl×m and Z ∈ Rp×l. The

derivative of the product XY with respect to Z is ∂(XY ) ∂Z = ∂X ∂Z(Il⊗ Y ) + (Ip⊗ X) ∂Y ∂Z (11) Proof:

The proof can be found in [1].

Remark 4 Proposition 1 applied to ∂(Y Y∂Z−1) leads to ∂ Y−1 ∂Z = − Ip⊗ Y −1 ∂ Y ∂Z Il⊗ Y −1 (12) When considering the initial example H1 (eq. (1)), it comes then (∀z ∈ C)

∂H1 ∂A (z) = In⊗ C(zIn− A) −1 ∂ A ∂A In⊗ (zIn− A) −1B (13) ∂H1 ∂B (z) = In⊗ C(zIn− A) −1 ∂ B ∂B (14) ∂H1 ∂C (z) = ∂C ∂C In⊗ (zIn− A) −1 B (15) ∂H1 ∂D (z) = ∂D ∂D (16)

The formulae given in equations (13) to (16) suffer from some drawbacks. First, they are expressed with constant matrices ∂A

∂A, ∂B ∂B, ∂C ∂C and ∂D ∂D that do

not depends on A, B, C or D (they only depend on their dimensions). Secondly, their manipulations may be rather tedious when dealing with such complicate expressions as in section 4. Lastly, a more compact form is possible, as proposed in section 3.

(9)

6 T. Hilaire & P. Chevrel

3

A new operator for compact derivatives

for-mulae

In order to simplify the expressions, the new operator ⊛ is proposed. Three propositions show how to use this operator in classical linear derivative problem. Definition 4 Let G and H be two transfer functions in Cm×p and Cl×n.

The operator ⊛ is defined by

G ⊛ H ,Vec(G).Vec(H⊤

)⊤

(17) where Vec is the usual operator that vectorize a matrix. It corresponds to the product of each element of G with each element of H, in a particular order.

This operator is used to state the main proposition of this paper, which encompass and simplify the Leibnitz rule of proposition 1 :

Theorem 1 Let X be a matrix in Rp×land G, H be two transfer functions with

values respectively in Cm×p and Cl×n. G and H are supposed to be independent

w.r.t. X. Then ∂(GXH) ∂X = G ⊛ H (18) ∂(GX−1H) ∂X = (GX −1) ⊛ (X−1H) (19) Proof:

From proposition 1 and equation (9), ∂(GXH) ∂X = X r,s (Ip⊗ G) Ep 2,l2 (r−1)p+r,(s−1)l+s(Il⊗ H) (20)

Considering relationAEi,jp2,l2B= A•,iBj,•where A•,i denotes the ith column

of A and Bj,• the jth row of B, then

∂(GXH) ∂X =

X

r,s

(Ip⊗ G)•,(r−1)p+r(Il⊗ H)(s−1)l+s,• (21)

The term (Ip⊗ G)•,(r−1)p+r corresponds to

(Ip⊗ G) ⊤ •,(r−1)p+r =  0 . . . G•,r 0 . . . ↑ rth block  (22) INRIA

(10)

On the compact formulation of the derivation of a transfer matrix 7 so it is possible to write (Ip⊗ G)•,(r−1)p+r(Il⊗ H)(s−1)l+s,• = Er,sp,l⊗ (G•,r.Hs,•) (23) =                  0 G•,r.Hs,• 0 (r, s)th block (size m × n)                  (24)

Finally, (G•,r.Hs,•)i,j= Gi,r.Hs,j; so

 ∂(GXH) ∂X  (r−1)m+i,(s−1)n+j = Gi,r.Hs,j (25) and then, ∂(GXH) ∂X = Vec(G).Vec(H ⊤ )⊤ (26) Using the previous result leads equations (13) to (16) to the simplified ex-pressions : ∂H1 ∂A = C(zIn− A) −1 ⊛ (zI n− A)−1B  (27) ∂H1 ∂B = C(zIn− A) −1 ⊛ I n (28) ∂H1 ∂C = In⊛ (zIn− A) −1 B (29) ∂H1 ∂D = In⊛ In (30)

Practically, the additional following properties are useful to simplify the derivative task and get compacter expressions. The proofs are trivial.

Proposition 2 (Ip⊗ G) (X ⊛ Y ) (Il⊗ H) = (GX) ⊛ (Y H) (31) Proposition 3 A ⊛ C A ⊛ D B ⊛ C B ⊛ D  = A B ⊛C D  (32) RR n° 6760

(11)

8 T. Hilaire & P. Chevrel

4

Application to the case of closed-loop transfer

function

In this section the problem consisting in deriving the redheffer product [9], and its specialization the lower linear fractional transformation of two transfer functions, is studied. The problem has an important practical interest in the context of robust control theory [10], when considering the model uncertainties of the process or even of the controller in the sense of FWL implementation [3]. Let’s consider a plant P controlled by a controller C in a standard form [10] (see fig. 1). W (k) ∈ Rp1 and Z(k) ∈ Rm1 are the exogenous inputs and outputs

(to control), whereas U (k) ∈ Rp2 and Y (k) ∈ Rm2 are the control and measure

signals.

P

m 1 m2

C

p1 p2 W(k) Z(k) U(k) Y(k)

S

Figure 1: Closed-loop system considered

The plant P is defined by the recurrent relation    XP(k + 1) = AXP(k) + B1W(k) + B2U(k) Z(k) = C1XP(k) + D11W(k) + D12U(k) Y(k) = C2XP(k) + D21W(k) (33) where A ∈ RnP×nP, B 1∈ RnP×p1, B2∈ RnP×p2, C1∈ Rm1×nP, C2∈ Rm2×nP,

D11∈ Rm1×p1, D12∈ Rm1×p2, D21∈ Rm2×p1. Note that the D22 term is null.

The controller is defined by 

X(k + 1) = AZX(k) + BZY(k)

U(k) = CZX(k) + DZY(k) (34)

with AZ ∈ Rn×n, BZ ∈ Rn×m2, CZ ∈ Rp2×n and DZ ∈ Rp2×m2.

The transfer function of the closed-loop system S is then (lower linear fractional transformation)

¯

H: z → ¯C zInP+n− ¯A

−1 ¯

B+ ¯D (35)

with ¯A∈ RnP+n×nP+n, ¯B∈ RnP+n×p1, ¯C∈ Rm1×nP+nand ¯D∈ Rm1×p1 and

¯ A = A + B2DZC2 B2CZ BZC2 AZ  ¯ B = B1+ B2DZD21 BZD21  ¯ C = C1+ D12DZC2 D12CZ D¯ = D11+ D12DZD21 (36)

Last point, the matrices AZ, BZ, CZ and DZ depends on matrices J, K, L,

M, N , P , Q, R and S (J ∈ Rl×l, K ∈ Rn×l, L ∈ Rp2×l, M ∈ Rl×n, N ∈ Rl×m2,

(12)

On the compact formulation of the derivation of a transfer matrix 9

P ∈ Rn×n, Q ∈ Rn×m2, R ∈ Rp2×n, S ∈ Rp2×m2) that contain the exact

coefficients for the realization of C [5], with

AZ = KJ−1M + P, BZ = KJ−1N+ Q, (37)

CZ = LJ−1M+ R, DZ = LJ−1N+ S. (38)

Those parameters are grouped in a single matrix Z ∈ Rl+n+p2×l+n+m2 as

Z ,   −J M N K P Q L R S   (39)

In order to evaluate the sensitivity of ¯H w.r.t Z (this sensitivity is linked to the good performance of the global scheme in the FWL context [3, 4, 6]), the problem is then to compute ∂ ¯H

∂Z (or equivalently ∂ ¯H ∂J, ∂ ¯H ∂K, ∂ ¯H ∂L, ..., ∂ ¯H ∂S).

Proposition 4 The sensitivity of ¯H with respect to Z is given by ∂ ¯H ∂Z =h ¯C zI− ¯A −1 ¯ M1+ ¯M2 i ⊛h ¯N1 zI− ¯A −1 ¯ B+ ¯N2 i (40) with ¯ M1= B2LJ−1 0 B2 KJ−1 I n 0  ¯ N1=   J−1N C 2 J−1M 0 In C2 0   (41) ¯ M2= D12LJ−1 0 D12 N¯2=   J−1N D 21 0 D21   (42) Proof:

Proposition 1 on equation (35) gives ∂ ¯H ∂Z = Il+n+p2⊗ ¯C(zI − ¯A) −1 ∂A¯ ∂Z Il+n+m2⊗ (zI − ¯A) −1B¯ + Il+n+p2⊗ ¯C(zI − ¯A) −1 ∂B¯ ∂Z +∂ ¯C ∂Z Il+n+m2⊗ (zI − ¯A) −1B +¯ ∂ ¯D ∂Z (43)

Then, let’s denote Θ =DZ CZ BZ AZ  , ¯Acan be reformulate by ¯ A=A 0 0 0  +B2 0 0 In  ΘC2 0 0 In  (44) So, with theorem 1

∂ ¯A ∂Z =  Il+n+p2⊗ B2 0 0 In  ∂Θ ∂Z  Il+n+m2⊗ C2 0 0 In  (45) RR n° 6760

(13)

10 T. Hilaire & P. Chevrel

By similar process, it is obvious that ∂ ¯B ∂Z =  Il+n+p2⊗B2 0 0 In  ∂Θ ∂Z  Il+n+m2⊗D21 0  (46) ∂ ¯C ∂Z = Il+n+p2⊗ D12 0  ∂ Θ ∂Z  Il+n+m2⊗ C2 0 0 In  (47) ∂ ¯D ∂Z = Il+n+p2⊗ D12 0  ∂ Θ ∂Z  Il+n+m2⊗D21 0  (48) Then, the derivatives of Θ w.r.t. J, K, L, M , N , P , Q, R and S are

∂Θ ∂J = −  LJ−1 KJ−1  ⊛ J−1N J−1M ∂Θ ∂K = 0 I  ⊛ J−1N J−1M ∂Θ ∂P = 0 I  ⊛ 0 I ∂Θ ∂M =  LJ−1 KJ−1  ⊛ 0 I ∂Θ ∂N =  LJ−1 KJ−1  ⊛ I 0 ∂Θ ∂L = I 0  ⊛ J−1N J−1M ∂Θ ∂Q = 0 I  ⊛ I 0 ∂Θ ∂R = I 0  ⊛ 0 I ∂Θ ∂S = I 0  ⊛ I 0 (49)

So, with proposition 3 : ∂Θ ∂Z =  LJ−1 0 I p2 KJ−1 I n 0  ⊛   J−1N J−1M 0 In Im2 0   (50) With property 2, ∂ ¯A ∂Z, ∂ ¯B ∂Z, ∂ ¯C ∂Z and ∂ ¯D

∂Z are obtained and lead to equation (40).

5

Conclusion

In order to simplify the calculus of derivative of matrices with respect to another matrix, the operator ⊛ has been introduced, and some important properties associated have been stated. Its interest has been illustrated by application in robust control. Not only the expressions are made more compact, but also the related numerical computations of transfer function sensitivity are made more tractable. This has led in practical to a successful application in the context of FWL implementation [6].

References

[1] J. Brewer. Kronecker products and matrix calculus in system theory. IEEE Trans. on Circuits and Systems, 25(9):772–779, September 1978.

[2] M. Eslami. Theory of Sensitivity in Dynamic Systems. Springer-Verlag, 1994.

[3] M. Gevers and G. Li. Parametrizations in Control, Estimation and Filter-ing Probems. SprFilter-inger-Verlag, 1993.

(14)

On the compact formulation of the derivation of a transfer matrix 11

[4] T. Hilaire, P. Chevrel, and J-P. Clauzel. Low parametric sensitivity re-alization design for FWL implementation of MIMO controllers : Theory and application to the active control of vehicle longitudinal oscillations. In Proc. of Control Applications of Optimisation CAO’O6, April 2006. [5] T. Hilaire, P. Chevrel, and Y. Trinquet. Implicit state-space representation :

a unifying framework for FWL implementation of LTI systems. In P. Piztek, editor, Proc. of the 16th IFAC World Congress. Elsevier, July 2005. [6] T. Hilaire, P. Chevrel, and J.F. Whidborne. A unifying framework for

finite wordlength realizations. IEEE Trans. on Circuits and Systems, 8(54), August 2007.

[7] R. Istepanian and J.F. Whidborne, editors. Digital Controller implemen-tation and fragility. Springer, 2001.

[8] T. Kailath. Linear Systems. Prentice-Hall, 1980.

[9] R. Redheffer. On a certain linear fractional transformation. J. Math. Phys, 39:269–286, 1960.

[10] K. Zhou, J. Doyle, and K. Glover. Robust and Optimal Control. Prentice-Hall, 1996.

(15)

Centre de recherche INRIA Rennes – Bretagne Atlantique IRISA, Campus universitaire de Beaulieu - 35042 Rennes Cedex (France)

Centre de recherche INRIA Bordeaux – Sud Ouest : Domaine Universitaire - 351, cours de la Libération - 33405 Talence Cedex Centre de recherche INRIA Grenoble – Rhône-Alpes : 655, avenue de l’Europe - 38334 Montbonnot Saint-Ismier Centre de recherche INRIA Lille – Nord Europe : Parc Scientifique de la Haute Borne - 40, avenue Halley - 59650 Villeneuve d’Ascq

Centre de recherche INRIA Nancy – Grand Est : LORIA, Technopôle de Nancy-Brabois - Campus scientifique 615, rue du Jardin Botanique - BP 101 - 54602 Villers-lès-Nancy Cedex

Centre de recherche INRIA Paris – Rocquencourt : Domaine de Voluceau - Rocquencourt - BP 105 - 78153 Le Chesnay Cedex Centre de recherche INRIA Saclay – Île-de-France : Parc Orsay Université - ZAC des Vignes : 4, rue Jacques Monod - 91893 Orsay Cedex

Centre de recherche INRIA Sophia Antipolis – Méditerranée : 2004, route des Lucioles - BP 93 - 06902 Sophia Antipolis Cedex

Éditeur

INRIA - Domaine de Voluceau - Rocquencourt, BP 105 - 78153 Le Chesnay Cedex (France)

http://www.inria.fr ISSN 0249-6399

Figure

Figure 1: Closed-loop system considered

Références

Documents relatifs

The elasto-capillary coiling mechanism allows to create composite threads that are highly extensible: as a large amount of fiber may be spooled inside a droplet, the total length X

La procédure d'expertise judiciaire en matière civile Mougenot, Dominique Published in: L'expertise Publication date: 2016 Document Version le PDF de l'éditeur Link to

We consider in ultrahyperbolic Clifford analysis, [1], [5], [6], the rep- resentation of a k-vector function F : Ω → Cl k p,q , with 0 < k < n, in terms of functions

Abstract 2014 The transfer matrix in one dimension is generalized in order to treat a wide class of problems. Solutions involving the Schrödinger and Dirac equations

ii) We discuss the competition between Anderson localization and coherent leakage in presence of disorder. Near the band edges and in the presence of. disorder, the «

MIMO results presented above have been obtained with 50 sensors. We now assess the convergence of the MIMO estimates with increasing numbers of sensors distributed uniformly along

Computing generating functions of ordered partitions with the transfer-matrix method 197 Theorem 1.10 The following statistics are Euler-Mahonian on OP k n :. mak + bInv, lmak +

The matrices u~~~, u~~~ contribute (2N)~ independent parameters each and A.. Since each A, is doubly degenerate, we again expect to have less then 8 N~+ N effectively