Benchmarks for the Numerical Solution of Algebraic ... - CiteSeerX

14 downloads 0 Views 307KB Size Report
Equations. Peter Benner. Alan J. Laub y. Volker Mehrmann ...... 13] S. Bhattacharyya, A. Del Nero Gomes, and J. Howze. The structure of robust disturbance.
Benchmarks for the Numerical Solution of Algebraic Riccati Equations Peter Benner

Alan J. Lauby

Volker Mehrmannz

Two collections of benchmark examples are presented for the numerical solution of continuous-time and discrete-time algebraic Riccati equations. These collections may serve for testing purposes in the construction of new numerical methods, but may also be used as a reference set for the comparison of methods.

Introduction The solution of algebraic Riccati equations (discrete-time or continuous-time) is an important task in many applications. Among those are the linear-quadratic regulator problem, Kalman ltering, H1 {control, total least-squares problems, canonical factorization, solution of two-point boundary value problems, model reduction problems, and many others. See the monographs [3, 15, 36, 43] and the references therein. Due to its importance in practice, numerous numerical methods that di er with respect to accuracy, numerical stability, eciency, implementability on parallel computers, etc., have been proposed for the solution of these problems. See [15, 16, 39, 43] and the references therein. Currently further methods are being developed in order to address the needs in large scale problems, the use of modern computer architectures, and also to re ect recent theoretical developments in this area. In such a situation it is extremely important to have a set of examples to test and compare di erent methods and their implementation. Such a set of benchmark examples should be well analyzed, standardized and freely available to serve the scienti c community as well as industrial users. We have collected and implemented such a benchmark collection for the numerical solution of continuous-time algebraic Riccati equations (CARE) of the form 0 = Q + AT X + XA ? XGX

(1)

and discrete-time algebraic Riccati equations (DARE) of the form 0 = AT XA ? X ? (AT XB + S )(R + B T XB )?1 (B T XA + S T ) + Q:

(2)

Zentrum fur Technomathematik, FB3-Mathematik und Informatik, Universitat Bremen, D-28334 Bremen, FRG. e-mail: [email protected] Supported by Deutsche Forschungsgemeinschaft, research grant Me 790/7-1 Singulare Steuerungsprobleme. y Dean, College of Engineering, 1050 Engineering II University of California, Davis, CA 95616-5294, USA. email:[email protected] This author has been supported by National Science Foundation Grant ECS-9120643 and Air Force Oce of Scienti c Research Grant F49620-94-1-0104DEF. z Fakultat fur Mathematik, Technische Universitat Chemnitz{Zwickau, D-09107 Chemnitz, FRG. e-mail: [email protected] Supported by Deutsche Forschungsgemeinschaft, research grant Me 790/7-1 Singulare Steuerungsprobleme. 

1

Here A; G; Q; X 2 IRnn , B; S 2 IRnm , and R 2 IRmm . The matrices Q = QT and G = GT ~ , G = BR?1 B T with C 2 IRpn, Q~ = Q~ T 2 IRpp, may be given in factored form Q = C T QC and B , R as before. The algebraic Riccati equations (ARE) (1) and (2) usually have many solutions but in applications often a particular solution is required. The properties of the algebraic Riccati equations arising in the several areas mentioned above and of the required solutions di er slightly, but the exisiting numerical methods can usually be used to solve the AREs in all these problem classes as they are mostly oriented towards the forms given in (1) and (2) rather than the actual physical background. One of the most important applications of (1) is the solution of linear-quadratic control problems. As the properties (both theoretical and numerical) of AREs and their solution methods can most appropriately be described using this mathematical model, we focus here on this problem class. In the continuous-time case, the autonomous linear-quadratic optimal control problem is given by: Minimize Z 1  1 ~ (t) + u(t)T Ru(t) dt y(t)T Qy (3) J (x0 ; u) = 2 0 subject to the dynamics

x_ (t) = Ax(t) + Bu(t); x(0) = x0 ; y(t) = Cx(t):

(4) (5)

Under some typical controllability or stabilizability assumptions, the solution of the optimal control problem (3){(5) is given by the feedback law

u(t) = ?R?1B T Xx(t);

(6)

where X is the unique stabilizing, positive semide nite solution of (1) (see e.g. [43, 60]). Analogously the DARE (2) arises from a discrete-time linear-quadratic control problem: Minimize 1   X ~ k + 2xTk Suk + uTk Ruk ykT Qy (7) J (x0 ; u) = 12 subject to the di erence equation

k=0

xk+1 = Axk + Buk ; k = 0; 1; : : : ; yk = Cxk ; k = 0; 1; : : : :

x0 = ;

(8) (9)

Again, under suitable assumptions the solution of the optimal control problem (7){(9) is given by the feedback law

uk = ?(R + B T XB )?1 (AT XB + S )T xk ; k = 0; 1; : : : ; where X is the unique stabilizing positive semide nite solution of (2) (see, e.g., [43, 55]). 2

Most of the examples contained in the benchmark collection arise from such linear-quadratic optimal control problems. It will be pointed out whenever we give an example with a di erent physical background. One common approach to solve (1) or (2) is to compute the Lagrange invariant subspaces of the Hamiltonian matrix H , constructed from the coecients "

#

#

"

?BR?1B T 2 IR2n2n; H = ?AQ ??AGT = ?CAT QC ~ ?AT in the continuous-time case or the symplectic pencil " # " # ^ 0 I G A n L ? M = ?Q^ I ?  0 A^T : n

(10)

in the discrete time case, respectively, where A^ := A ? B T R?1 S; Q^ := Q ? S T R?1 S: In the discrete-time case, if A^ is invertible, the symplectic pencil is equivalent to the symplectic matrices " # ^ + GA^?T Q^ ?GA^?T A ? 1 Z = M L= (11) ?A^?T Q^ A^?T ; # " ?1 ?1 G ^ ^ A A ? 1 (12) or Z~ = L M = Q^ A^?1 Q^ A^?1 G + A^T : Actually, H and L ? M; Z are the system matrices of the Euler-Lagrange equations of the optimal control problems, see [36, 43]. In the continuous-time case, the assumption that R is nonsingular is necessary as otherwise, the CARE (1) can not be formulated. (The optimal control problem (3){(5) may still have a solution, though.) On the other hand, in the discrete-time case, this assumption is not necessary and it is not uncommon for R being singular, e.g., in stochastic realization problems where R represents the measurement noise covariance matrix. In that case, the symplectic pencil (10) cannot be formed, but the DARE has a close relationship to the extended symplectic pencil (ESP)

L~ ? M~

2 = 64

3

2

3

In 0 0 A 0 B Q ?In S 75 ?  64 0 ?AT 0 75 : 0 ?B T 0 ST 0 R

(13)

The relationship between the Riccati equations and the Lagrange invariant subspaces is as follows. Consider the invariant subspace corresponding to the eigenvalues of H in the open left half plane, or the de ating subspace of the symplectic pencil L ? M (the ESP L~ ? M~ ) corresponding h to the eigenvalues iT h inside the open iT unit disk, respectively. If this subspace is T T T T T spanned by U1 U2 (or U1 U2 U3 for the ESP (13)) and U1 is invertible, then

X = U2 U1?1 3

(14)

is the stabilizing solution of (1) or (2), respectively, e.g. [16, 38, 39, 43, 60]. All other solutions are obtained via di erent Lagrange invariant (de ating) subspaces, too. At this point it should be noted that it is possible to transform a continuous-time algebraic Riccati equation (CARE) into a DARE (and vice versa) via a (generalized) Cayley transformation, i.e., the Hamiltonian matrix corresponding to the CARE is transformed into a symplectic matrix/pencil. From this symplectic pencil it is possible to derive the coecient matrices of a corresponding DARE under certain regularity assumptions; see [44]. In this way, it is possible to create a DARE example from a CARE example and vice versa. We do not use this approach here, though, and restrict ourselves to data arising naturally in a discrete-time setting and/or highlighting some of the properties of discrete-time algebraic Riccati equations. In the sequel, we denote by (A) the set of eigenvalues or spectrum of a matrix A. The spectral norm of a matrix is given by q

j Aj = maxfjj :  2 (AT A)g and the given matrix condition numbers are based upon the spectral norm,

(A) = j Aj j A?1 j ; A 2 IRll : All numerical values of norms and condition numbers were computed by the MATLAB functions norm and cond. In the testing of numerical methods it is not only important to know the exact solution of the problem, but also the sensitivity of the problem under small perturbations (such as roundo errors), measured by the condition number of the problem. The \right" condition number of algebraic Riccati equations is still an open problem. In the continuous-time case one usually refers to the condition number which was introduced by Arnold [4], Arnold and Laub [5], and Byers [17], and the estimates and bounds given by Kenney and Hewer [31]. Let A, G , and Q be real n  n matrices \near" A, G, and Q with respect to the 2-norm and in addition, assume G, Q to be symmetric positive semide nite. (A, G , Q may be considered as perturbed input data.) De ne A = A ? A, G = G ? G, and Q = Q ? Q. Then denoting the stabilizing solution of the CARE (1) by X , the CARE condition number presented in [17, 31] is de ned by   j  X j : j Aj  j Aj ; j Gj  j Gj ; j Qj  j Qj : K = lim sup CARE

!0

j X j

Let Zi , i = 0; 1; 2, be the solutions of the Lyapunov equations (A ? GX )T Zi + Zi (A ? GX ) = ?X i ; and de ne

p

i = 0; 1; 2;

j j Z2 j j Aj + j Z2 j j Gj ; KU = j Z0 j j Qj + 2 j Z0j X j 1 j j Aj + j Z2 j j Gj : KL = j Z0 j j Qj + 2j Zj X j 4

(15) (16) (17)

Then one can prove (see [31]) that 1K  K CARE  KU : 3 L In most cases KL is close to KU , i.e., this provides a very good approximation to KCARE . (Note that in [31] a more re ned lower bound is given which in some cases is closer to KU .) Since for the analysis of the conditioning the upper bound is more important and since the bounds are almost always very close, we only give the upper bound KU as an approximation for KCARE . In the discrete-time case the situation is similar, see, e.g., [25, 34, 50, 57]. For simplicity, we use here the condition number proposed in [25]. This condition number measures the sensitivity of the stabilizing DARE solution with respect to rst-order perturbations by means of the Frechet derivative of the DARE at X . In [25] it is shown that, assuming Q  0, R > 0, such a condition number is given by (18) K = j [ Z 1 ; Z2 ; Z3 ] j ; DARE

where

j Xj F





Z1 = j Aj F P ?1 In FdT X + (FdT X In )T ;   Z2 = ?jjGj F P ?1 A^T X (In + GX )?1 A^T X (In + GX )?1 ; Z3 = j Qj F P ?1 :

(19) (20) (21)

Here, denoting the j th unit vector by ej , the permutation matrix T is de ned by

T=

n X i;j =1

ei eTj ej eTi ;

where denotes the Kronecker product. Furthermore, P is the matrix representation of the Stein (discrete Lyapunov) operator

(Z ) = Z ? FdT ZFd ; and

Fd = A^ ? (R + B T XB )?1 B T X A^

is the feedback matrix in the discrete-time case. We will give the condition numbers KCARE and KDARE for each of the benchmark examples together with some other relevant values that are important in order to check the behaviour of a Riccati solver under certain circumstances.

Acquiring the Benchmark Collections All presented examples of the collections for the CARE (or DARE) may be generated by FORTRAN 77 subroutines CAREX.F (or DAREX.F) and the MATLAB1 functions carex.m (or darex.m), respectively. 1 MATLAB

is a trademark of The MathWorks, Inc.

5

A detailed description of all the examples and the data, prologs of the subroutines and further reference tables is given in the two technical reports [11, 12]. The FORTRAN 77 codes can be obtained via netlib (e.g., at the ftp sites netlib.att.com, elib.zib-berlin.de, or any netlib mirror site) from the directory netlib/control. The MATLAB codes are available at the The MathWorks, Inc. ftp site, ftp.mathworks.com and its mirror sites from the directory control/carex (CARE benchmark collection) and control/darex (DARE benchmark collection). In the future it is planned to extend the collections whenever new and interesting examples are available. The authors appreciate any comments regarding the collected examples or suggestions for new examples.

Benchmark Collections

The benchmark collection for both cases is split into four parts: parameter-free examples of xed dimension, parameter-dependent problems of xed size, parameter-free examples of scalable size, and scalable examples with parameters. For all parameters needed in the examples there exist default values that are also given in the tables. These default values are chosen in such a way that the collection of examples can be used as a testset for the comparison of methods. For each continuous-time example, we provide norms and condition numbers of the stabilizing solution X and the Hamiltonian matrix H . One possible source for loss of accuracy in the numerical solution of AREs is the condition number of U1 in (14). If the columns of [U1T ; U2T ]T are orthonormal, then it can be shown (see [32, 25]) that (U1 )  1 + j X j . We do not show (U1 ) in the tables as it is not given uniquely and may be di erent if U1 is computed by di erent methods. But j X j may be used as an indicator for (U1 ) due to the bound given above and moreover, if U2 is invertible, then (U1 )  (X )=(U2 ) such that a large (X ) may also signal a large (U1 ). A large condition number of H may indicate that one can expect problems with methods like the sign function method [18, 23, 53], that depend on inversions of H . On the other hand, a large condition number may also be due to a large norm of H rather than to ill conditioning with respect to inversion. We also give the absolute value of the real part of the eigenvalue of H closest to the imaginary axis and denote it by jreminj := minf jRe()j :  2 (Fc ) g; where Fc := A ? BR?1B T X is the closed-loop matrix in the continuous-time case. Note that the eigenvalues of Fc are the eigenvalues of H in the open left half plane. (In some applications one is also interested in Riccati solutions if H has eigenvalues on the imaginary axis; in that case, obviously jremin j = 0.) A small jreminj indicates eigenvalues close to te imaginary axis. Most of the numerical methods for the solution of CAREs have problems handling such eigenvalues. In particular, methods that do not respect the special structure of the problem may fail as small perturbations can cause eigenvalues with small real part to cross the imaginary axis; see, e.g., [59]. For computing the system properties we use the exact stabilizing solution if an analytical solution is available. Otherwise, we computed approximations by the multishift algorithm [2] 6

and the Schur vector method [38]. If possible, these approximations were re ned by Newton's method [33] possibly combined with an exact line search [9, 10] to achieve the highest possible accuracy. We then chose the approximate solution with smallest residual norm to compute the properties of the example. (Note that this is not necessarily the most accurate solution !) In one example we used the sign function method to compute a rst approximation to the solution which was then re ned by Newton's method combined with exact line search. For each discrete-time example, we provide the condition number (A^) which shows if the symplectic matrix Z in (11) can be formed safely (though it is still preferable to use the pencil approach and thereby avoid a matrix inversion unless A^?1 is \easy" to form). The column jCmax j indicates the absolute value of the closed-loop eigenvalue of largest modulus, i.e.,

jCmax j := maxf jj :  2 (Fd ) g where

Fd := A ? B (R + B T XB )?1 (B T XA + S T )

is the feedback matrix in the discrete-time case. The eigenvalues of Fd are the (generalized) eigenvalues of the symplectic matrix (pencils) in (10), (11) inside the unit circle. Further, we give norms and condition numbers of the stabilizing solution X . The remarks concerning the correspondence of (U1 ) and j X j , (X ) do also apply here as well as the discussion of jre minj C re if we replace the imaginary axis by the unit circle and min by max . For examples without an analytical solution available, we computed approximations by the generalized Schur vector method [5, 46]. If possible, these approximations were re ned by Newton's method [5, 27, 43] to achieve the highest possible accuracy. We then chose the approximate solution with smallest residual norm and recomputed the solution using the optimal scaling strategy proposed in [25]. This computed solution was then used to determine the properties of the example. We do not describe or investigate the properties of the given examples beyond the ARE setting as our focus is the numerical solution of AREs. For those examples that have an actual control-theoretic background we refer the reader to the original sources for properties, problems, and signi cance of the given data in control-theoretic terms. We also want to emphasize that part of the examples, are contrived to highlight some of the properties of AREs and the numerical methods to solve them. These may be \pathological" examples from the point of view of control engineering, but in developing numerical methods it is also of importance to study the behaviour of an algorithm in extreme situations in order to derive a robust solution method and to detect possible limitations of the applicability of the algorithm.

Reference Tables and Special Features The description of each example in the collection contains a table with some of the system properties. We refrain here from describing in detail the whole collection but instead we will point out important features of the examples. For the actual data, please consult the technical reports [11] and [12]. The following values describing the examples are given in the tables:

n

| the order of the Riccati equation, i.e., X 2 IRnn ; 7

m

| interpreting the data as data from a linear-quadratic optimal control problem, m denotes the number of inputs of the system; p | interpreting the data as data from a linear-quadratic optimal control problem, p denotes the number of outputs of the system; default | default setting for the parameters of the examples; X | availability of an analytical solution ('yes' = +, 'no' = {); j X j | 2-norm of the stabilizing solution of the CARE/DARE; (X ) | 2-norm condition number of the stabilizing solution of the CARE/DARE; j H j | 2-norm of the Hamiltonian matrix corresponding to the CARE; (H ) | 2-norm condition number of the Hamiltonian matrix corresponding to the stabilizing solution of the CARE; (A) | 2-norm condition number of the state matrix A or A^, respectively; jreminj | absolute value of the real part of eigenvalue(s) of H closest to the imaginary axis; C jmaxj | absolute value of the eigenvalue of the (extended) symplectic matrix/pencil inside the unit disk closest to the unit circle; KU | upper bound for the CARE condition number as given in (16); KDARE | DARE condition number given in (18). Moreover, \{" indicates that a value cannot be computed (e.g., if the data has properties such that the corresponding magnitude is not de ned); the value \1" for a matrix condition number indicates that the matrix is singular. Besides, we use the notation a (b) to denote the real number a  10b in order to save some space in the tables.

Parameter-free problems of xed size CARE examples

n m p X  jre min j

jHj

(H )

jXj

(X )

KU

1

2

1

2

+

1.0

2.4

5.8

3.0

3.0

2

2

1

2

+

0.50

16.2

257.1

31.4

1

5.0 52.6

3

4

2

4

{

0.73

7.8

55.8

6.1

215.3

21.9

4

8

2

8

{

0.10

3.4

305.9

4.8

1 3 (3)

5

9

3

9

{

0.34

216.7

6

30

3

5

{

0.18

1 4 (8)

no.

:

: 1:5 (10) 3 4 (3)

2.7

:

3 6 (3)

: 1:1 (3)

1

33.6 850.4

:

3 7 (9)

Table 1: CARE examples with xed size without parameters. 1. Source: [38, Example 1]. This example can be used for a rst veri cation of any solver for (1), since the solution may be computed by hand. There are no particular properties or diculties. 2. Source: [38, Example 2]. The underlying system is stabilizable-detectable, but uncontrollable-unobservable. 8

3. Source: [8]. Here the system matrices describe a mathematical model of an L-1011 aircraft. The constant coecient Q in (1) has one negative, real eigenvalue of order O(10?3 ) although from theory, Q is supposed to be positive semide nite. This may re ect a small perturbation in the input data. The computed stabilizing solution is nevertheless positive de nite with eigenvalues greater than one. 4. Source: [13]. The data come from a mathematical model of a binary distillation column with condenser, reboiler, and nine plates. The constant term Q of (1) is inde nite and the computed stabilizing solution is inde nite, too. 5. Source: [48]. This is the data for a 9th-order continuous state space model of a tubular ammonia reactor. It should be noted that the underlying model includes a disturbance term which is neglected in this context. 6. Source: [20]. This example is a well-studied problem in control theory. The data come from a control problem for a J{100 jet engine as a special case of a multivariable servomechanism problem. In the cost functional of the linear-quadratic optimal control problem as given in (3), R and Q~ are chosen as identities of appropriate size such that G = BB T , Q = CT C. The data of this example di er by 10 orders of magnitude and the norm and condition number of H are quite large. The matrix H can be considered as badly balanced with respect to balancing unsymmetric matrices as proposed in [47]. The eigenvalues of H vary in magnitude from O(10?1 ) to O(102 ). From the structure of the control problem it is clear that the Hamiltonian matrix corresponding to (1) has isolated eigenvalues. These are given by eigenvalues at 20 with algebraic multiplicity three and at 33:3 with algebraic multiplicity one.

DARE examples 1. Source: [38, Example 2]. This is an example of stabilizable-detectable, but uncontrollable-unobservable data. 2. Source: [38, Example 3], [35, Example 6.15]. This example illustrates a simple discrete-time linear-quadratic optimal control problem as de ned by (7){(9). 3. Source: [58, Example II]. In this example, the matrix R in (2) is singular and therefore, the symplectic pencil (10) cannot be formed. In order to solve the DARE by a de ating subspace method, we thus have to work with the extended symplectic pencil as given in (13). Due to the singularity of R, the condition number KDARE is not de ned here (represented by \{" in the table). This example can be used, e.g., as a rst test of any solver to deal with a singular weighting/measurement noise covariance matrix. 9

n m p X

(A)

jCmax j

jXj

1

2

1

2

+

115.0

0.50

21.0

2

2

2

2

{

1.1

0.69

3

2

1

1

+

5.8

4

2

2

2

{

5

2

1

2

+

1 1

0.00

6

4

2

4

{

7

4

2

4

8

4

4

9

5

10 11

no.

(X )

1

: ?2)

18.9

5.0

4.7

1.0

1.0

{

0.69

127.0

2 8 (3)

:

{

0.38

5.2

114.1

1.9

1.0

0.94

35.4

3.3

30.6

{

19.9

0.99

2.1

183.3

790.4

4

{

378.6

65.8

6 8 (12)

:

5 1 (4)

2

5

{

23.5

73.9

73.7

100.8

6

2

2

{

1

0.98 0.67

2.5

37.4

3.9

9

3

2

{

1 6 (6)

0.96

607.7

:

1?

1:8 105

5 1(

KDARE

1

:

74.2

Table 2: DARE examples with xed size without parameters. 4. Source: [29]. This is another example with a singular R{matrix. Furthermore, we have a nonzero S {matrix. Again, the DARE condition number KDARE can not be computed due to the singular matrix R. 5. Source: [30], [44, Example 2]. This example shows one of the major di erences between the properties of continuoustime algebraic Riccati equations and their discrete counterparts. This DARE has only two solutions, one positive de nite and one inde nite. In the case of a continuous-time system, controllability ensures the existence of a positive semide nite and a negative semide nite solution. But here, despite the fact that (A; B ) is controllable, no negative semide nite solution exists. See the analysis in [44] for details. The stabilizing solution in the control-theoretic sense is the positive de nite solution. 6. Source: [1]. The data of this example represent a very simple control problem for a satellite. The system is given by equations describing the small angle altitude variations about the roll and yaw axes of a satellite in circular orbit. These equations originally form a second-order di erential equation. A rst-order realization of this model and sampling every 0:1 seconds yields a standard system as given in (8){(9). 7. Source: [41]. This is a simple example of a control system having slow and fast modes. One complex conjugate pair of the computed closed-loop eigenvalues is located on a circle with radius  0:99 around the origin, i.e., relatively close to the unit circle. Requiring that this distance should not cause problems for any DARE solver seems to be reasonable. 8. Source: [42, Example 4.3]. 10

All the generalized eigenvalues of the corresponding symplectic pencil L ? M are real. The distance of the largest closed-loop eigenvalue from the unit circle is of order 10?5 . The problem is designed so that (L + M ) = O(1011 ). Due to this large condition number and the eigenvalues close to the unit circle, problems with the convergence of the iteration process are to be expected when the DARE is solved via a method based on the sign function iteration (e.g., the method presented in [23]). Note that KDARE signals only a very mild ill-conditioning of the DARE. 9. Source: [22, Section 2.7.4]. The fth-order linearized state-space model of a chemical plant presented in [24, 56] is discretized by sampling every 0:5 seconds, yielding a discrete-time linear-quadratic control problem of the form (7){(9). 10. Source: [21]. The data for this example were obtained from a slightly more general dynamical system than the one given in (8){(9) as the output depends explicitly upon the control, i.e.,

y(t) = Cx(t) + Du(t);

t  0:

The corresponding optimal control problem can be solved using the DARE (2) by setting ~ , R = R~ + DT QD ~ , and S = C T QD ~ . Q = C T QC The system properties are benign. The system can easily be transformed to a standard system as in (10). Therefore, this example is helpful for a rst veri cation of any DARE solver based on the extended formulation given in (13), since the results can be compared to those obtained by any other solver based on the formulation by the symplectic pencil (10). 11. Source: [48]. This is the data for a 9th-order discrete state-space model of a tubular ammonia reactor. It should be noted that the underlying model includes a disturbance term which is neglected in this context. The continuous state-space model of this problem yields the data of CARE Example 5. The discrete-time model is obtained by sampling every 30 seconds. In the discrete model, only the rst and fth state variables are used as outputs. Besides, the weighting matrices in (7) di er from the ones chosen for the continuous-time problem.

Parameter-dependent problems of xed size CARE examples

7. Source: [5, Example 1]. Here, the matrix B in (4) and thus the matrix G in (1) depend upon a parameter ". As " ! 0, the matrix pair (A; B ) becomes unstabilizable and the norm of the stabilizing solution X tends to 1. Condition esitmators in numerical methods for computing the stable invariant subspace of H yield estimates for U1 of order 1="2 . This is in accordance with the theoretical bound (X )  8="2 . 11

no.

n m p

7

2

1

1

8

2

2

1

9

2

1

2

10

2

2

2

11

2

1

2

12

3

3

3

13

4

1

2

14

4

1

1

default

" = 10?6 " = 10?8 " = 106 " = 10?7 "=0 " = 106 " = 10?6 " = 10?6

X

jremin j

jHj

(H )

+

1.00

3.0

5.2

{

0.70

+

7 1 (2)

:

: 1:0 (6)

1 4(

2.6

: 1:0 (6) 1:3 (14)

15.4

+

: ?7)

+

0.0

+

1 0 (6)

{

0.25

{

1 0 (6)

:

: ?13)

jXj

4.0

(X ) 8:0 (12) 9:4 (6) 2:0 (6) 1:7 (7)

58.4

2.6

6.9

1

2.7

1 5 (8)

: 9:3 (3) 1:4 (3)

2 0 (12)

: 1:0 (12)

3.5

6 0 (12)

3.0

5 7 (13)

13.2

9 1 (8)

4.2

17.9

1.0

1.0

3 5 (6)

5 0(

:

:

:

KU 3.0

: 8:7 (5) 3:8 (3) 6 7 (9)

: 1:0 (13)

4 1 (13)

Table 3: CARE examples with xed size and parameters. 8. Source: [5, Example 3]. This is an example with increasingly ill-conditioned control weighting matrix R. (R has a parameter ".) If " < 1, then (R) = O(1=") and as " ! 0, the elements of G = BR?1 B T become increasingly large such that the CARE becomes increasingly ill balanced in the sense of [52]. 9. Source: [32, Example 2] In example, the matrix A contains a parameter ". As " grows, j X j increases like p"this and the Riccati equation becomes ill conditioned in terms of KCARE and KU . One of the closed-loop eigenvalues approaches zero as " ! 0. In this case, (X ) = O(1=") and (H ) = O(1="2 ). Hence, this example may be used to test the ability of a CARE solver to deal with bad scaling due to the A{matrix and mild ill conditioning (" ! +1), as well as with closed-loop eigenvalues close to the imaginary axis and very ill-conditioned Hamiltonian matrices (" ! 0). 10. Source: [7]. The coecient matrices A and Q in (1) depend upon a parameter ". As " ! 0, then H becomes increasingly ill conditioned, i.e., (H ) = O(1="2 ), whereas (X ) behaves like 1=". Note that for " = 10?7 , then KL = 2:0 which is three orders of magnitude smaller than KU . This shows that KU , KL may sometimes be far apart and thus, KU may overestimate KCARE by orders of magnitude. 11. Source: [28]. This example represents a type of algebraic Riccati equation arising in H1{control problems as presented, e.g., in [40]. The stabilizing solution X of (1) for " > 0 is constant and solves (1) for arbitrary ". In particular, for " = 0 it is still the solution obtained by an H {invariant Lagrangian subspace, i.e., the required solution in the sense of H1 {control. The spectrum of H is f"  j g. Hence the closed-loop eigenvalues approach the imaginary axis as " ! 0. Note that for " = 0, the condition number KCARE as given in [31] is not de ned. 12

12. Source: [52]. Here, all three coecient matrices of the CARE (1) depend upon a parameter ". For growing ", the CARE becomes more and more badly scaled which leads to a signi cant loss of accuracy in all CARE solvers based on eigenvalue methods. This demonstrates the need to use an appropriate scaling as proposed in [32, 45]. 13. Source: [19] . The data of this example describe a magnetic tape control problem. The matrices A and B in the underlying system contain a parameter ". As " ! 0, the pair (A; B ) becomes unstabilizable and the condition numbers (X ), (H ), and KCARE (as measured by KL and KU ) increase. The CARE (1) and the Hamiltonian matrix H become very badly scaled. 14. Source: [5, Example 2]. In this example, the data can be interpreted as a single input/single output linearquadratic optimal control problem of the form (3){(5). The matrix A depends upon a parameter ". As " ! 0, a pair of complex conjugate eigenvalues of the Hamiltonian p 2 " matrix H approaches the imaginary axis (   2 { , where { = ?1), (A; B ) gets close to an unstabilizable system, and the CARE becomes fairly ill conditioned as measured by KU .

DARE Examples no.

n m p

12

2

1

2

13

3

3

3

14

4

1

1

default

" = 106 " = 106  = 108, D = 1:0 K = 1:0, r = 41

X  (A) + + +

1 1 1

jCmax j 0.00 0.38

p5

 1 ? 108

jXj : 9:1 (6) 3:1 (7)

1 0 (12)

(X ) KDARE 1:0 (12) 2.7 9.1

:

3 1 (7)

2.5

:

1 8 (8)

Table 4: DARE examples with xed size and parameters. 12. Source: modi ed from [25, Example 2]. Here, the matrix A has a parameter ". As " ! 1, this becomes an example of a DARE which is badly scaled in the sense of [51] due to the fact that j Aj F  j Gj F ; j Qj F . The norm (and condition) of the stabilizing solution grow like "2 whereas the DARE condition number KDARE remains constant. 13. Source: [51]. In this example, the blocks G and Q of the symplectic pencil in (10) contain a parameter ". For growing ", the symplectic pencil becomes more and more badly scaled which leads to a signi cant loss of accuracy in all DARE solvers based on eigenvalue methods. This demonstrates the need to use an appropriate scaling as proposed in [25]. 14. Source: [14, 46] The underlying dynamical system describes a very simple process control of a paper 13

machine. The continuous-time model with time delay is sampled at intervals of length D, yielding a singular transition matrix A. The time delay is equal to the length of three sampling intervals. The other parameters de ning the system are a rst-order time constant  and the steady-state gain K . Due to the variety of parameters in this example, it is possible to investigate DAREs with critical properties in many aspects. Since these properties merely rely on  and r, these e ects can be produced by keeping K and D constant and varying  (and r). For   D; K the largest closed-loop eigenvalue approaches the unit circle. For   D; K the norm and condition of the stabilizing solution X become large and the DARE becomes ill conditioned with respect to KDARE .

Examples of scalable size without parameters CARE examples no. 15 16

n m p default X  jre min j j H j (H ) j X j (X ) KU 2N ? 1 N N ? 1 N = 20 { 0.66 10.0 425.4 28.8 1 50.9 n n n n = 64 + 1.0 4.1 4.1 1.0 8.1 5.0

Table 5: Scalable CARE examples without parameters. 15. Source: [38, Example 4], [6]. The matrices presented here describe a mathematical model of position and velocity control for a string of high-speed vehicles. (This problem is also known as \smart highway" or \intelligent highway".) If N vehicles are to be controlled, the size of the system matrices will be n = 2N ? 1. The stabilizing solution is singular (rank(X ) = n ? 1). The system does not have any particular bad properties for growing n. All condition numbers only grow very mildly. The closed-loop eigenvalues are all of magnitude O(1). Hence, this example is particularly well suited for testing how an algorithm behaves when the dimension of the problem increases. Moreover, the corresponding Hamiltonian matrix is very sparse and can therefore also be used to test numerical methods for large and sparse Hamiltonian matrices. 16. Source: [38, Example 5]. In this example, all system matrices and the solution of (1) are circulant. Most eigenvalues of the Hamiltonian matrix have algebraic multiplicity 2 (but all eigenvalues have geometric multiplicity 1). Growth of the problem size n does not in uence norms and condition numbers. All the closed-loop modes  are real and of magnitude O(1). Therefore, this example is perfectly suited to test the behavior of algorithms for growing problem size. The CARE can be solved using an inverse discrete Fourier transformation and the theory of circulant matrices such that an exact solution is available.

14

Parameter-dependent examples of scalable size CARE examples

no. 17

n n

m 1

p 1

18

n

1

1

19

2`

2

2`

20

2` ? 1

`

`

default X n = 21 { q = r = 1:0 n = 100, { a = 0:01 b = c = 1:0 1 = 1 = 0:2 2 = 2 = 0:3 ` = 30,  = { 1:0  =  = 4:0 ` = 211 {

jreminj 7:5 (?2)

j Hj 1.0

(H ) 1.0

j Xj

2:4 (9)

(X )

1

KU 1:3 (9)

0.10

1:2 (3)

1:4 (5)

7:1 (?4)

1

1:0 (4)

6:2 (?3)

2.2

1:1 (5)

218.0

448.0

1:5 (3)

1:6 (?2) 4:1 (11) 5:5 (14)

7:2 (7)

1:4 (22) 3:0 (8)

Table 6: Scalable CARE examples with parameters. 17. Source: [38, Example 6]. This example describes a system of n integrators connected in series and a feedback controller is supposed to be applied to the nth system. The resulting dynamics are given by a single input/single output system. (For more details about the physical background see [38].) The eigenvalues of the Hamiltonian matrix are the roots of

2n + (?1)n qr = 0; where in the cost functional in (7), we have Q~ = q and R = r, q; r 2 IR. It is known that x1np= pqr (note the correction from [38]). Therefore, the relative error jx ? qrj in x1n , i.e., 1npqr , may be used as an indicator of the accuracy of the results. The diculty in this example lies in the fact that U1 becomes extremely ill-conditioned with respect to inversion as n increases and the elements of X become very large in magnitude. Observe that the condition number of U1 increases for increasing values of q and r whereas KU remains constant. This re ects the fact that both values may (or may not) signal some kind of ill conditioning of the CARE. 18. Source: [54]. The data of this example come from a linear-quadratic control problem of one-dimensional heat ow. This problem is described in terms of in nite-dimensional operators on a Hilbert space and the optimal control can be obtained solving an operator Riccati equation. Using a standard nite element approach based on linear B{splines, a nitedimensional approximation to the problem may be obtained by the solution of algebraic Riccati equations (1). The order of the CARE increases when reducing the meshsize in the grid for the underlying approximation scheme. The other parameters are used to de ne the operators in the underlying in nite-dimensional mathematical model. 15

19. Source: modi ed from [26, Example 3]. The data in this example come from a stabilization/optimal control problem for a second-order system which is given by a model of a string consisting of coupled springs, dashpots, and masses. The inputs are two forces, one of them at each side of the string. The parameters in this example are the number of springs and some constants de ning the physical properties of the system. 20. Source: modi ed from [49]. As in Example 19, the underlying mechanical system is described by a second-order ordinary di erential equation and an output equation which is transformed to a standard, rst-order system as in (4){(5). The data come from a problem arising in power plants. The resulting system is neither observable nor detectable. We may overcome this problem by eliminating the unobservable state variable, see [11] for details. The weighting matrix Q~ in the cost functional (3) is chosen to normalize the rows of C , i.e., Q~ = WCT WC , where WC is a diagonal weighting matrix such that the rows of WC C have unit length. The control weighting matrix R is chosen as identity. As default values we use data provided by [37] corresponding to a generator axle in a hydroelectric power plant. For the default data, the Hamiltonian matrix has a very large norm and condition number despite the scaling of the output matrix. (Without the scaling corresponding to WC , these values are even larger by about 10 orders of magnitude.) This is due to the large entries in A. The reference solution was computed by the sign function method as proposed in [18] where the defect correction was performed using Newton's method combined with exact line search [10]. Due to the bad scaling of this example, it was necessary to scale the Lyapunov equation (15) by j Aj 1 when computing KU .

DARE examples no. 15

n m p default n 1 n n = 100, r = 1

X  (A) jCmax j +

1

0.00

j X j (X ) KDARE 100.0

100.0

279.8

Table 7: Scalable DARE examples with parameters. 15. Source: modi ed from [46, Example 3]. In this example, the closed-loop eigenvalues are all zero, that is, the spectrum of the symplectic pencil L ? M in (10) is given by the generalized eigenvalues 1 = : : : = n = 0 and n+1 = : : : = 2n = 1. This example can be used to test any DARE solver for growing dimension of the problem. The DARE condition number KDARE increases only slowly. The stabilizing solution of (2) has the very simple form X = diag (1; 2; : : : ; n) and for any order n of the DARE, j X j = (X ) = n. Here, R = r 2 IR. Note that the choice of r does not in uence the stabilizing solution X but for r < 1, the condition number KDARE behaves like 1=r. 16

Concluding Remarks We have presented two benchmark collections for the numerical solution of continuous-time and discrete-time algebraic Riccati equations. The collections are available as FORTRAN 77 subroutines and MATLAB m- les. The examples are selected so that di erent properties of numerical methods like numerical stability, eciency or dimensional e ects can be studied and the eciency and accuracy can be compared.

Acknowledgements We wish to thank V. Sima for pointing out some sources of industrial examples to us and A. Varga for fruitful discussions about the design of the FORTRAN 77 subroutine CAREX.F. Furthermore, we wish to thank W. Lang and T. Penzl for providing examples.

References [1] G. Ackerson and K. Fu. On the state estimation in switching environments. IEEE Trans. Automat. Control, AC-15:10{17, 1970. [2] G.S. Ammar, P. Benner, and V. Mehrmann. A multishift algorithm for the numerical solution of algebraic Riccati equations. Electr. Trans. Num. Anal., 1:33{48, 1993. [3] B. D. O. Anderson and J. B. Moore. Linear Optimal Control. Prentice-Hall, Englewood Cli s, NJ, 1971. [4] W.F. Arnold, III. On the Numerical Solution of Algebraic Matrix Riccati Equations. PhD thesis, Univ. of Southern California, Dept. of Elec. Eng.|Systems, Los Angeles, CA, December 1983. [5] W.F. Arnold, III and A.J. Laub. Generalized eigenproblem algorithms and software for algebraic Riccati equations. Proc. IEEE, 72:1746{1754, 1984. [6] M. Athans, W.S. Levine, and A. Levis. A system for the optimal and suboptimal position and velocity control for a string of high-speed vehicles. In Proc. 5th Int. Analogue Computation Meetings, Lausanne, Switzerland, September 1967. [7] Z. Bai and Q. Qian. Inverse free parallel method for the numerical solution of algebraic Riccati equations. In J.G. Lewis, editor, Proc. Fifth SIAM Conf. Appl. Lin. Alg., Snowbird, UT, pages 167{171, Philadelphia, PA, 1994. SIAM. [8] S. Beale and B. Shafai. Robust control system design with a proportional-integral observer. Internat. J. Control, 50:97{111, 1989. [9] P. Benner and R. Byers. Step size control for Newton's method applied to algebraic Riccati equations. In J.G. Lewis, editor, Proc. Fifth SIAM Conf. Appl. Lin. Alg., Snowbird, UT, pages 177{181, Philadelphia, PA, 1994. SIAM. 17

[10] P. Benner and R. Byers. An exact line search method for solving generalized continuoustime algebraic Riccati equations. IEEE Trans. Automat. Control, 1997. To appear. [11] P. Benner, A. Laub, and V. Mehrmann. A collection of benchmark examples for the numerical solution of algebraic Riccati equations I: Continuous-time case. Technical Report SPC 95 22, Fak. f. Mathematik, TU Chemnitz{Zwickau, 09107 Chemnitz, FRG, 1995. Available from http://www.tu-chemnitz.de/sfb393/spc95pr.html. [12] P. Benner, A. Laub, and V. Mehrmann. A collection of benchmark examples for the numerical solution of algebraic Riccati equations II: Discrete-time case. Technical Report SPC 95 23, Fak. f. Mathematik, TU Chemnitz{Zwickau, 09107 Chemnitz, FRG, 1995. Available from http://www.tu-chemnitz.de/sfb393/spc95pr.html. [13] S. Bhattacharyya, A. Del Nero Gomes, and J. Howze. The structure of robust disturbance rejection control. IEEE Trans. Automat. Control, AC-28:874{881, 1983. [14] W.L. Bialkowski. Application of steady-state Kalman lters{Theory with eld results. In Proc. Joint Automat. Cont. Conf., Philadelphia, PA, 1978. [15] S. Bittanti, A. Laub, and J. C. Willems, editors. The Riccati Equation. Springer-Verlag, Berlin, 1991. [16] A. Bunse-Gerstner, R. Byers, and V. Mehrmann. Numerical methods for algebraic Riccati equations. In S. Bittanti, editor, Proc. Workshop on the Riccati Equation in Control, Systems, and Signals, pages 107{116, Como, Italy, 1989. [17] R. Byers. Numerical condition of the algebraic Riccati equation. Contemp. Math., 47:35{ 49, 1985. [18] R. Byers. Solving the algebraic Riccati equation with the matrix sign function. Linear Algebra Appl., 85:267{279, 1987. [19] J. Chow and P. Kokotovic. A decomposition of near{optimum regulators for systems with slow and fast modes. IEEE Trans. Automat. Control, AC-21:701{705, 1976. [20] E.J. Davison and W. Gesing. The systematic design of control systems for the multivariable servomechanism problem. In M.K Sain, J.L. Peczkowsky, and J.M. Melsa, editors, Alternatives for Linear Multivariable Control. Nat. Eng. Consortium Inc., Chicago, IL, 1978. [21] E.J. Davison and S.H. Wang. Properties and calculation of transmission zeros of linear multivariable systems. Automatica, 10:643{658, 1974. [22] Z. Gajic and X. Shen. Parallel Algorithms for Optimal Control of Large Scale Linear Systems. Springer-Verlag, London, 1993. [23] J.D. Gardiner and A.J. Laub. A generalization of the matrix-sign-function solution for algebraic Riccati equations. Internat. J. Control, 44:823{832, 1986. (see also Proc. 1985 CDC, pp. 1233{1235). [24] K. Gomathi, S. Prabhu, and M. Pai. A suboptimal controller for minimum sensitivity of closed-loop eigenvalues to parameter variations. IEEE Trans. Automat. Control, AC25:587{588, 1980. 18

[25] T. Gudmundsson, C. Kenney, and A.J. Laub. Scaling of the discrete-time algebraic Riccati equation to enhance stability of the Schur solution method. IEEE Trans. Automat. Control, 37:513{518, 1992. [26] J.J. Hench, C. He, V. Kucera, and V. Mehrmann. Dampening controllers via a Riccati equation approach. IEEE Trans. Automat. Control, 1998. To appear. [27] G.A. Hewer. An iterative technique for the computation of steady state gains for the discrete optimal regulator. IEEE Trans. Automat. Control, AC-16:382{384, 1971. [28] G.D. Ianculescu, J. Ly, A.J. Laub, and P.M. Papadopoulos. Space station Freedom solar array H1 control. Talk at 31st IEEE Conf. on Decision and Control, Tucson, AZ, December 1992. [29] V. Ionescu and M. Weiss. On computing the stabilizing solution of the discrete-time Riccati equation. Linear Algebra Appl., 174:229{238, 1992. [30] E. Jonckheere. On the existence of a negative semide nite antistabilizing solution to the discrete algebraic Riccati equation. IEEE Trans. Automat. Control, AC-26:707{712, 1981. [31] C. Kenney and G. Hewer. The sensitivity of the algebraic and di erential Riccati equations. SIAM J. Cont. Optim., 28:50{69, 1990. [32] C. Kenney, A.J. Laub, and M. Wette. A stability-enhancing scaling procedure for SchurRiccati solvers. Sys. Control Lett., 12:241{250, 1989. [33] D.L. Kleinman. On an iterative technique for Riccati equation computations. IEEE Trans. Automat. Control, AC-13:114{115, 1968. [34] M.M. Konstantinov, P.Hr. Petkov, and N.D. Christov. Perturbation analysis of the discrete Riccati equation. Kybernetica, 29:18{29, 1993. [35] H. Kwakernaak and R. Sivan. Linear Optimal Control Systems. Wiley-Interscience, New York, 1972. [36] P. Lancaster and L. Rodman. The Algebraic Riccati Equation. Oxford University Press, Oxford, 1995. [37] W. Lang. Personal communication, 1995. [38] A.J. Laub. A Schur method for solving algebraic Riccati equations. IEEE Trans. Automat. Control, AC-24:913{921, 1979. (see also Proc. 1978 CDC (Jan. 1979), pp. 60-65). [39] A.J. Laub. Invariant subspace methods for the numerical solution of Riccati equations. In S. Bittanti, A.J. Laub, and J.C. Willems, editors, The Riccati Equation, pages 163{196. Springer-Verlag, Berlin, 1991. [40] A. Linnemann. Numerische Methoden fur lineare Regelungssysteme. BI Wissenschaftsverlag, Mannheim, 1993. [41] B. Litkouhi. Sampled-Data Control of Systems with Slow and Fast Modes. PhD thesis, Michigan State University, 1983. 19

[42] L.Z. Lu and W.W. Lin. An iterative algorithm for the solution of the discrete time algebraic Riccati equation. Linear Algebra Appl., 188/189:465{488, 1993. [43] V. Mehrmann. The Autonomous Linear Quadratic Control Problem, Theory and Numerical Solution. Number 163 in Lecture Notes in Control and Information Sciences. Springer-Verlag, Heidelberg, July 1991. [44] V. Mehrmann. A step toward a uni ed treatment of continuous and discrete time control problems. Linear Algebra Appl., 241{243:749{779, 1996. [45] P. Pandey. On scaling an algebraic Riccati equation. In Proc. American Control Conf., pages 1583{1587, San Francisco, CA, June 1993. [46] T. Pappas, A.J. Laub, and N.R. Sandell. On the numerical solution of the discrete-time algebraic Riccati equation. IEEE Trans. Automat. Control, AC-25:631{641, 1980. [47] B.N. Parlett and C. Reinsch. Balancing a matrix for calculation of eigenvalues and eigenvectors. Numer. Math., 13:296{304, 1969. [48] L.M. Patnaik, N. Viswanadham, and I.G. Sarma. Computer control algorithms for a tubular ammonia reactor. IEEE Trans. Automat. Control, AC-25(4):642{651, 1980. [49] T. Penzl. Vorkonditionierung bei der iterativen Losung von Lyapunovgleichungen. Diplomarbeit, Technische Universitat Chemnitz{Zwickau, Fak. f. Mathematik, 09107 Chemnitz, FRG, July 1994. [50] P.H. Petkov, N.D. Christov, and M.M. Konstantinov. Numerical properties of the generalized Schur approach for solving the discrete matrix Riccati equation. In Proc. 18th Spring Conference of the Union of Bulgarian Mathematicians, pages 452{457, Albena, 1989. [51] P.H. Petkov, N.D. Christov, and M.M. Konstantinov. A posteriori error analysis of the generalized Schur approach for solving the discrete matrix Riccati equation. Preprint, Department of Automatics, Higher Institute of Mechanical and Electrical Engineering, 1756 So a, Bulgaria, 1989. [52] P.Hr. Petkov, N.D. Christov, and M.M. Konstantinov. On the numerical properties of the Schur approach for solving the matrix Riccati equation. Sys. Control Lett., 9:197{201, 1987. [53] J.D. Roberts. Linear model reduction and solution of the algebraic Riccati equation by use of the sign function. Internat. J. Control, 32:677{687, 1980. (reprint of Technical Report No. TR-13, CUED/B-Control, Cambridge University, Engineering Department, 1971). [54] I.G. Rosen and C. Wang. A multi{level technique for the approximate solution of operator Lyapunov and algebraic Riccati equations. SIAM J. Numer. Anal., 32(2):514{541, 1995. [55] A.P. Sage. Optimum Systems Control. Prentice-Hall, Englewood Cli s, NJ, 1966. [56] V.G. Shankar and K. Ramar. Pole assignment with minimum eigenvalue sensitivity to parameter variations. Internat. J. Control, 23:493{504, 1976. 20

[57] J. Sun. Backward error of the discrete-time algebraic Riccati equation. Preprint, Dept. Computing Science, Umea University, Umea, Sweden, 1995. [58] P. Van Dooren. A generalized eigenvalue approach for solving Riccati equations. SIAM J. Sci. Statist. Comput., 2:121{135, 1981. [59] C.F. Van Loan. A symplectic method for approximating all the eigenvalues of a Hamiltonian matrix. Linear Algebra Appl., 16:233{251, 1984. [60] W.M. Wonham. Linear Multivariable Control: A Geometric Approach. Springer-Verlag, New York, second edition, 1979.

21

Suggest Documents