Efficient Implementation of Large Scale Lyapunov and Riccati - - PowerPoint PPT Presentation

efficient implementation of large scale lyapunov and
SMART_READER_LITE
LIVE PREVIEW

Efficient Implementation of Large Scale Lyapunov and Riccati - - PowerPoint PPT Presentation

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook Efficient Implementation of Large Scale Lyapunov and Riccati Equation Solvers Jens Saak


slide-1
SLIDE 1

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook

Efficient Implementation of Large Scale Lyapunov and Riccati Equation Solvers

Jens Saak joint work with Peter Benner (MiIT)

Professur Mathematik in Industrie und Technik (MiIT) Fakult¨ at f¨ ur Mathematik Technische Universit¨ at Chemnitz

Computational Methods with Applications Harrachov August 24, 2007

1/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-2
SLIDE 2

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook

Aim of this talk

What is the aim of this talk? Promote the upcoming release 1.1 of the LyaPack software package.

2/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-3
SLIDE 3

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook

Aim of this talk

What is the aim of this talk? Promote the upcoming release 1.1 of the LyaPack software package. What is LyaPack?

2/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-4
SLIDE 4

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook

Aim of this talk

What is the aim of this talk? Promote the upcoming release 1.1 of the LyaPack software package. What is LyaPack? Matlab toolbox for solving large scale Lyapunov equations (applications like in M. Embrees plenary talk on Tuesday) Riccati equations linear quadratic optimal control problems

2/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-5
SLIDE 5

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook

Origin of the Riccati equations

semi discrete parabolic PDE ˙ x(t) = Ax(t) + Bu(t) x(0) = x0 ∈ X. (Cauchy)

  • utput equation

y(t) = Cx(t) (output) cost function J (u) = 1 2

  • < y, y > + < u, u > dt

(cost) and the linear quadratic regulator problem is LQR problem Minimize the quadratic (cost) with respect to the linear constraints (Cauchy),(output).

3/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-6
SLIDE 6

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook

Origin of the Riccati equations

semi discrete parabolic PDE ˙ x(t) = Ax(t) + Bu(t) x(0) = x0 ∈ X. (Cauchy)

  • utput equation

y(t) = Cx(t) (output) cost function J (u) = 1 2

  • < Cx, Cx > + < u, u > dt

(cost) and the linear quadratic regulator problem is LQR problem Minimize the quadratic (cost) with respect to the linear constraints (Cauchy),(output).

3/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-7
SLIDE 7

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook

Origin of the Riccati equations

In the open literature it is well understood that the

  • ptimal feedback control

is given as u = −BTX∞x, where X∞ is the minimal, positive semidefinite, selfadjoint solution of the algebraic Riccati equation 0 = R(X) := C TC + ATX + XA − XBBTX.

4/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-8
SLIDE 8

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook

Outline

1

LRCF Newton Method for the ARE

2

Reordering Strategies

3

ADI Shift Parameters

4

Column Compression for the low rank factors

5

Generalized Systems

6

Conclusions and Outlook

5/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-9
SLIDE 9

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook Large Scale Riccati and Lyapunov Equations Newton’s method for solving the ARE Cholesky factor ADI for Lyapunov equations

LRCF Newton Method for the ARE

1

LRCF Newton Method for the ARE Large Scale Riccati and Lyapunov Equations Newton’s method for solving the ARE Cholesky factor ADI for Lyapunov equations

2

Reordering Strategies

3

ADI Shift Parameters

4

Column Compression for the low rank factors

5

Generalized Systems

6

Conclusions and Outlook

6/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-10
SLIDE 10

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook Large Scale Riccati and Lyapunov Equations Newton’s method for solving the ARE Cholesky factor ADI for Lyapunov equations

LRCF Newton Method for the ARE

Large Scale Riccati and Lyapunov Equations

We are interested in solving algebraic Riccati equations 0 = ATP + PA − PBBTP + C TC =: R(P). (ARE) where

A ∈ Rn×n sparse, n ∈ N “large” B ∈ Rn×m and m ∈ N with m ≪ n C ∈ Rp×n and p ∈ N with p ≪ n

7/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-11
SLIDE 11

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook Large Scale Riccati and Lyapunov Equations Newton’s method for solving the ARE Cholesky factor ADI for Lyapunov equations

LRCF Newton Method for the ARE

Large Scale Riccati and Lyapunov Equations

We are interested in solving algebraic Riccati equations 0 = ATP + PA − PBBTP + C TC =: R(P). (ARE) where

A ∈ Rn×n sparse, n ∈ N “large” B ∈ Rn×m and m ∈ N with m ≪ n C ∈ Rp×n and p ∈ N with p ≪ n

and Lyapunov equations F TP + PF = −GG T. (LE) with

F ∈ Rn×n sparse or sparse + low rank update, n ∈ N “large” G ∈ Rn×m and m ∈ N with m ≪ n

7/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-12
SLIDE 12

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook Large Scale Riccati and Lyapunov Equations Newton’s method for solving the ARE Cholesky factor ADI for Lyapunov equations

LRCF Newton Method for the ARE

Newton’s method for solving the ARE

Newton’s iteration for the ARE R′|P(Nl) = −R(Pl), Pl+1 = Pl + Nl, where the Frech´ et derivative of R at P is the Lyapunov operator R′|P : Q → (A − BBTP)TQ + Q(A − BBTP), can be rewritten as

  • ne iteration step

(A − BBT Pl)T Pl+1 + Pl+1(A − BBT Pl) = −C T C − PlBBT Pl

i.e. in every Newton step we have to solve a Lyapunov equation of the form (LE)

8/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-13
SLIDE 13

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook Large Scale Riccati and Lyapunov Equations Newton’s method for solving the ARE Cholesky factor ADI for Lyapunov equations

LRCF Newton Method for the ARE

Cholesky factor ADI for Lyapunov equations

Recall Peaceman Rachford ADI: Consider Au = s where A ∈ Rn×n spd, s ∈ Rn. ADI Iteration Idea: Decompose A = H + V with H, V ∈ Rn×n such that (H + pI)v = r (V + pI)w = t can be solved easily/efficiently.

9/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-14
SLIDE 14

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook Large Scale Riccati and Lyapunov Equations Newton’s method for solving the ARE Cholesky factor ADI for Lyapunov equations

LRCF Newton Method for the ARE

Cholesky factor ADI for Lyapunov equations

Recall Peaceman Rachford ADI: Consider Au = s where A ∈ Rn×n spd, s ∈ Rn. ADI Iteration Idea: Decompose A = H + V with H, V ∈ Rn×n such that (H + pI)v = r (V + pI)w = t can be solved easily/efficiently. ADI Iteration If H, V spd ⇒ ∃pj, j = 1, 2, ...J such that u0 = (H + pjI)uj− 1

2

= (pjI − V )uj−1 + s (V + pjI)uj = (pjI − H)uj− 1

2 + s

(PR-ADI) converges to u ∈ Rn solving Au = s.

9/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-15
SLIDE 15

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook Large Scale Riccati and Lyapunov Equations Newton’s method for solving the ARE Cholesky factor ADI for Lyapunov equations

LRCF Newton Method for the ARE

Cholesky factor ADI for Lyapunov equations

The Lyapunov operator L : P → F TP + PF can be decomposed into the linear operators LH : P → F TP LV : P → PF. Such that in analogy to (PR-ADI) we find the ADI iteration for the Lyapunov equation (LE) P0 = (F T + pjI)Pj− 1

2

= −GG T − Pj−1(F − pjI) (F T + pjI)PT

j

= −GG T − PT

j− 1

2 (F − pjI)

(LE-ADI)

10/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-16
SLIDE 16

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook Large Scale Riccati and Lyapunov Equations Newton’s method for solving the ARE Cholesky factor ADI for Lyapunov equations

LRCF Newton Method for the ARE

Cholesky factor ADI for Lyapunov equations

Remarks: If F is sparse or sparse + low rank update, i.e. F = A + VUT then F T + pjI can be written as ˜ A + UV T, where ˜ A = AT + pjI and its inverse can be expressed as

(F T + pjI)−1 = (˜ A + UV T)−1 = ˜ A−1 − ˜ A−1U(I + V T ˜ A−1U)−1V T ˜ A−1

by the Sherman-Morrison-Woodbury formula.

11/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-17
SLIDE 17

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook Large Scale Riccati and Lyapunov Equations Newton’s method for solving the ARE Cholesky factor ADI for Lyapunov equations

LRCF Newton Method for the ARE

Cholesky factor ADI for Lyapunov equations

Remarks: If F is sparse or sparse + low rank update, i.e. F = A + VUT then F T + pjI can be written as ˜ A + UV T, where ˜ A = AT + pjI and its inverse can be expressed as

(F T + pjI)−1 = (˜ A + UV T)−1 = ˜ A−1 − ˜ A−1U(I + V T ˜ A−1U)−1V T ˜ A−1

by the Sherman-Morrison-Woodbury formula. Note: We only need to be able to multiply with A, solve systems with A and solve shifted systems with AT + pjI

11/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-18
SLIDE 18

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook Large Scale Riccati and Lyapunov Equations Newton’s method for solving the ARE Cholesky factor ADI for Lyapunov equations

LRCF Newton Method for the ARE

Cholesky factor ADI for Lyapunov equations

Remarks: If F is sparse or sparse + low rank update, i.e. F = A + VUT then F T + pjI can be written as ˜ A + UV T, where ˜ A = AT + pjI and its inverse can be expressed as

(F T + pjI)−1 = (˜ A + UV T)−1 = ˜ A−1 − ˜ A−1U(I + V T ˜ A−1U)−1V T ˜ A−1

by the Sherman-Morrison-Woodbury formula. (LE-ADI) can be rewritten to iterate on the low rank Cholesky factors Zj of Pj to exploit rk(Pj) ≪ n. [J. R. Li and J. White 2002; T.

Penzl 1999; P. Benner, J.R. Li and T. Penzl 2000]

11/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-19
SLIDE 19

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook Large Scale Riccati and Lyapunov Equations Newton’s method for solving the ARE Cholesky factor ADI for Lyapunov equations

LRCF Newton Method for the ARE

Cholesky factor ADI for Lyapunov equations

Remarks: If F is sparse or sparse + low rank update, i.e. F = A + VUT then F T + pjI can be written as ˜ A + UV T, where ˜ A = AT + pjI and its inverse can be expressed as

(F T + pjI)−1 = (˜ A + UV T)−1 = ˜ A−1 − ˜ A−1U(I + V T ˜ A−1U)−1V T ˜ A−1

by the Sherman-Morrison-Woodbury formula. (LE-ADI) can be rewritten to iterate on the low rank Cholesky factors Zj of Pj to exploit rk(Pj) ≪ n. [J. R. Li and J. White 2002; T.

Penzl 1999; P. Benner, J.R. Li and T. Penzl 2000]

When solving (ARE) to compute the feedback in an LQR-problem for a semidiscretized parabolic PDE, the LRCF-Newton-ADI can directly iterate on the feedback matrix K ∈ Rn×p to save even more

  • memory. [T. Penzl 1999; P. Benner, J. R. Li and T. Penzl 2000]

11/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-20
SLIDE 20

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook Introduction Motivation

Reordering Strategies

1

LRCF Newton Method for the ARE

2

Reordering Strategies Introduction Motivation

3

ADI Shift Parameters

4

Column Compression for the low rank factors

5

Generalized Systems

6

Conclusions and Outlook

12/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-21
SLIDE 21

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook Introduction Motivation

Reordering Strategies

Introduction

Use sparse direct solvers ⇒ Store LU or Cholesky factors frequently used (e.g. for M or A + pjI in case of cyclically used shifts). ⇒ Save storage by reordering Upcoming LyaPack 1.1 let’s you choose between: symmetric reverse Cuthill-McKee (RCM1) reordering approximate minimum degree (AMD2) reordering symmetric AMD2

1[A. George and J. W.-H. Liu 1981]

2[P. Amestoy, T. A. Davis, and I. S. Duff 1996.]

13/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-22
SLIDE 22

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook Introduction Motivation

Reordering Strategies

Motivation

Motivating example: Mass matrix M from a FEM semidiscretization of a 2d heat equation. Dimension of the discrete system: 1357

200 400 600 800 1000 1200 200 400 600 800 1000 1200

nz = 8997 M

200 400 600 800 1000 1200 200 400 600 800 1000 1200

nz = 8997 MRCM

200 400 600 800 1000 1200 200 400 600 800 1000 1200

nz = 8997 MAMD

14/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-23
SLIDE 23

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook Introduction Motivation

Reordering Strategies

Motivation

Motivating example: Mass matrix M from a FEM semidiscretization of a 2d heat equation. Dimension of the discrete system: 1357

200 400 600 800 1000 1200 200 400 600 800 1000 1200

nz = 8997 M

200 400 600 800 1000 1200 200 400 600 800 1000 1200

nz = 112423 chol(M)

200 400 600 800 1000 1200 200 400 600 800 1000 1200

nz = 8997 MRCM

200 400 600 800 1000 1200 200 400 600 800 1000 1200

nz = 32890 chol(MRCM)

200 400 600 800 1000 1200 200 400 600 800 1000 1200

nz = 8997 MAMD

200 400 600 800 1000 1200 200 400 600 800 1000 1200

nz = 11775 chol(MAMD)

14/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-24
SLIDE 24

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook Introduction Available (sub)optimal choices Numerical Tests

ADI Shift Parameters

1

LRCF Newton Method for the ARE

2

Reordering Strategies

3

ADI Shift Parameters Introduction Available (sub)optimal choices Numerical Tests

4

Column Compression for the low rank factors

5

Generalized Systems

6

Conclusions and Outlook

15/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-25
SLIDE 25

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook Introduction Available (sub)optimal choices Numerical Tests

ADI Shift Parameters

Introduction

Optimal parameters solve the min-max-problem min

{pj|j=1,...,J}⊂R

max

γ∈σ(F)

  • J
  • j=1

(pj − λ) (pj + λ)

  • .

Remark Also known as rational Zolotarev problem since he solved it first on real intervals enclosing the spectra in 1877. Another solution for the real case was presented by Wachspress/Jordan in 1963.

16/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-26
SLIDE 26

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook Introduction Available (sub)optimal choices Numerical Tests

ADI Shift Parameters

Introduction

Optimal parameters solve the min-max-problem min

{pj|j=1,...,J}⊂R

max

γ∈σ(F)

  • J
  • j=1

(pj − λ) (pj + λ)

  • .

Remark Wachspress and Starke presented different strategies to compute suboptimal shifts for the complex case around 1990. Wachspress: elliptic Integral evaluation based shifts Starke: Leja Point based shifts (recall M. Embrees plenary talk on Tuesday)

16/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-27
SLIDE 27

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook Introduction Available (sub)optimal choices Numerical Tests

ADI Shift Parameters

Available (sub)optimal choices

ADI shift parameter choices in upcoming LyaPack 1.1

1

heuristic parameters [T. Penzl 1999]

use selected Ritz values as shifts suboptimal ⇒ convergence might be slow in general complex for complex spectra

2

approximate Wachspress parameters [P. Benner, H. Mena, J. Saak 2006]

  • ptimal for real spectra

parameters real if imaginary parts are “small” good approximation of the “outer” spectrum of F needed ⇒ possibly expensive computation

3

  • nly real heuristic parameters

avoids complex computation and storage requirements can be slow if many Ritz values are complex

4

real parts of heuristic parameters

avoids complex computation and storage requirements suitable if imaginary parts are “small”

17/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-28
SLIDE 28

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook Introduction Available (sub)optimal choices Numerical Tests

ADI Shift Parameters

Available (sub)optimal choices

ADI shift parameter choices in upcoming LyaPack 1.1

1

heuristic parameters [T. Penzl 1999]

use selected Ritz values as shifts suboptimal ⇒ convergence might be slow in general complex for complex spectra

2

approximate Wachspress parameters [P. Benner, H. Mena, J. Saak 2006]

  • ptimal for real spectra

parameters real if imaginary parts are “small” good approximation of the “outer” spectrum of F needed ⇒ possibly expensive computation

3

  • nly real heuristic parameters

avoids complex computation and storage requirements can be slow if many Ritz values are complex

4

real parts of heuristic parameters

avoids complex computation and storage requirements suitable if imaginary parts are “small”

17/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-29
SLIDE 29

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook Introduction Available (sub)optimal choices Numerical Tests

ADI Shift Parameters

Available (sub)optimal choices

ADI shift parameter choices in upcoming LyaPack 1.1

1

heuristic parameters [T. Penzl 1999]

use selected Ritz values as shifts suboptimal ⇒ convergence might be slow in general complex for complex spectra

2

approximate Wachspress parameters [P. Benner, H. Mena, J. Saak 2006]

  • ptimal for real spectra

parameters real if imaginary parts are “small” good approximation of the “outer” spectrum of F needed ⇒ possibly expensive computation

3

  • nly real heuristic parameters

avoids complex computation and storage requirements can be slow if many Ritz values are complex

4

real parts of heuristic parameters

avoids complex computation and storage requirements suitable if imaginary parts are “small”

17/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-30
SLIDE 30

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook Introduction Available (sub)optimal choices Numerical Tests

ADI Shift Parameters

Available (sub)optimal choices

ADI shift parameter choices in upcoming LyaPack 1.1

1

heuristic parameters [T. Penzl 1999]

use selected Ritz values as shifts suboptimal ⇒ convergence might be slow in general complex for complex spectra

2

approximate Wachspress parameters [P. Benner, H. Mena, J. Saak 2006]

  • ptimal for real spectra

parameters real if imaginary parts are “small” good approximation of the “outer” spectrum of F needed ⇒ possibly expensive computation

3

  • nly real heuristic parameters

avoids complex computation and storage requirements can be slow if many Ritz values are complex

4

real parts of heuristic parameters

avoids complex computation and storage requirements suitable if imaginary parts are “small”

17/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-31
SLIDE 31

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook Introduction Available (sub)optimal choices Numerical Tests

ADI Shift Parameters

Numerical Tests

Test example Centered finite difference discretized 2d convection diffusion equation: ˙ x = ∆x − 10xx − 100xy + b(x, y)u(t)

  • n the unit square with Dirichlet boundary conditions. (demo l1.m)

18/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-32
SLIDE 32

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook Introduction Available (sub)optimal choices Numerical Tests

ADI Shift Parameters

Numerical Tests

Test example Centered finite difference discretized 2d convection diffusion equation: ˙ x = ∆x − 10xx − 100xy + b(x, y)u(t)

  • n the unit square with Dirichlet boundary conditions. (demo l1.m)

grid size: 75 × 75 ⇒ #states = 5625 ⇒ #unknowns in X = 56252 ≈ 32 · 106

Computations carried out on Intel Core2 Duo @2.13GHz Cache: 2048kB RAM: 2GB

18/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-33
SLIDE 33

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook Introduction Available (sub)optimal choices Numerical Tests

ADI Shift Parameters

Numerical Tests

Test example Centered finite difference discretized 2d convection diffusion equation: ˙ x = ∆x − 10xx − 100xy + b(x, y)u(t)

  • n the unit square with Dirichlet boundary conditions. (demo l1.m)

grid size: 75 × 75 ⇒ #states = 5625 ⇒ #unknowns in X = 56252 ≈ 32 · 106

heuristic parameters time: 44s residual norm: 1.0461e-11 heuristic real parts time: 13s residual norm: 9.0846e-12

  • appr. Wachspress time: 16s residual norm: 5.3196e-12

Remark heuristic parameters are complex problem size exceeds memory limitations in complex case

Computations carried out on Intel Core2 Duo @2.13GHz Cache: 2048kB RAM: 2GB

18/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-34
SLIDE 34

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook Introduction Numerical Tests

Column Compression for the low rank factors

1

LRCF Newton Method for the ARE

2

Reordering Strategies

3

ADI Shift Parameters

4

Column Compression for the low rank factors Introduction Numerical Tests

5

Generalized Systems

6

Conclusions and Outlook

19/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-35
SLIDE 35

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook Introduction Numerical Tests

Column Compression for the low rank factors

Introduction

Problem Low rank factors Z of the solutions X grow rapidly, since a constant number of columns is added in every ADI step. If convergence is weak, at some point #columns in Z > rk(Z). Idea [Antoulas, Gugercin, Sorensen 2003] Use sequential Karhunen-Loeve algorithm; see [Baker 2004] uses QR + SVD for rank truncation

20/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-36
SLIDE 36

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook Introduction Numerical Tests

Column Compression for the low rank factors

Introduction

Problem Low rank factors Z of the solutions X grow rapidly, since a constant number of columns is added in every ADI step. If convergence is weak, at some point #columns in Z > rk(Z). Cheaper idea: Column compression using rank revealing QR factorization (RRQR) Consider X = ZZ T and rk(Z) = r. Compute the RRQR3 of Z Z T = QRΠ where R =

  • R11

R12 R22

  • and R11 ∈ Rr×r

now set ˜ Z T = [R11R12] ΠT then ˜ Z ˜ Z T =: ˜ X = X.

3[ C.H. Bischof and G. Quintana-Ort´

ı 1998]

20/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-37
SLIDE 37

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook Introduction Numerical Tests

Column Compression for the low rank factors

Numerical Tests

Test example Centered finite difference discretized 2d convection diffusion equation: ˙ x = ∆x − 10xx − 100xy + b(x, y)u(t)

  • n the unit square with Dirichlet boundary conditions. (demo l1.m)

21/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-38
SLIDE 38

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook Introduction Numerical Tests

Column Compression for the low rank factors

Numerical Tests

Test example Centered finite difference discretized 2d convection diffusion equation: ˙ x = ∆x − 10xx − 100xy + b(x, y)u(t)

  • n the unit square with Dirichlet boundary conditions. (demo l1.m)

grid size: 75 × 75 ⇒ #states = 5625 ⇒ #unknowns in X = 56252 ≈ 32 · 106

truncation TOL # col. in LRCF time

  • res. norm

– 47 13s 9.0846e-12 eps 46 14s 1.9516e-11 √eps 28 13s 1.9924e-11 Computations carried out on Intel Core2 Duo @2.13GHz Cache: 2048kB RAM: 2GB

21/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-39
SLIDE 39

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook Introduction Numerical Tests

Column Compression for the low rank factors

Numerical Tests

Test example Centered finite difference discretized 2d convection diffusion equation: ˙ x = ∆x − 10xx − 100xy + b(x, y)u(t)

  • n the unit square with Dirichlet boundary conditions. (demo l1.m)

grid size: 75 × 75 ⇒ #states = 5625 ⇒ #unknowns in X = 56252 ≈ 32 · 106

truncation TOL # col. in LRCF time

  • res. norm

– 47 13s 9.0846e-12 eps 46 14s 1.9516e-11 √eps 28 13s 1.9924e-11

Observation [Benner and Quintana-Ort´

ı 2005] showed that truncation tolerance √eps in the

low rank factor Z is sufficient to achieve an error eps in the solution X.

Computations carried out on Intel Core2 Duo @2.13GHz Cache: 2048kB RAM: 2GB

21/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-40
SLIDE 40

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook 2 Basic Ideas in Contrast

Generalized Systems

1

LRCF Newton Method for the ARE

2

Reordering Strategies

3

ADI Shift Parameters

4

Column Compression for the low rank factors

5

Generalized Systems 2 Basic Ideas in Contrast

6

Conclusions and Outlook

22/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-41
SLIDE 41

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook 2 Basic Ideas in Contrast

Generalized Systems

2 Basic Ideas in Contrast

Current Method Transform M ˙ x = Ax + Bu y = Cx to ˙ ˜ x = ˜ A˜ x + ˜ Bu y = ˜ C˜ x

where M = MLMU and ˜ x = MUx, ˜ A = M−1

L AM−1 U , ˜

B = M−1

L B, ˜

C = CM−1

U .

  • 2 additional sparse triangular solves in every multiplication with A
  • 2 additional sparse matrix vector multiplies in solution of ˜

Ax = b and (˜ A + pjI)x = b

  • ˜

B and ˜ C are dense even if B and C are sparse. + preserves symmetry if M, A are symmetric.

23/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-42
SLIDE 42

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook 2 Basic Ideas in Contrast

Generalized Systems

2 Basic Ideas in Contrast

Alternative Method Transform M ˙ x = Ax + Bu y = Cx to ˙ x = ˜ Ax + ˜ Bu y = Cx

where ˜ A = M−1A and ˜ B = M−1B

+ state variable untouched ⇒ solution to (ARE), (LE) not transformed + exploiting pencil structure in (˜ A + pjI) = M−1(A + pjM) reduces

  • verhead
  • current user supplied function structure inefficient here

⇒ rewrite of LyaPack kernel routines needed (work in progress)

23/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-43
SLIDE 43

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook 2 Basic Ideas in Contrast

Generalized Systems

2 Basic Ideas in Contrast

Alternative Method Transform M ˙ x = Ax + Bu y = Cx to ˙ x = ˜ Ax + ˜ Bu y = Cx

where ˜ A = M−1A and ˜ B = M−1B

+ state variable untouched ⇒ solution to (ARE), (LE) not transformed + exploiting pencil structure in (˜ A + pjI)−1 = (A + pjM)−1M reduces

  • verhead
  • current user supplied function structure inefficient here

⇒ rewrite of LyaPack kernel routines needed (work in progress)

23/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-44
SLIDE 44

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook Conlusions Outlook

Conclusions and Outlook

1

LRCF Newton Method for the ARE

2

Reordering Strategies

3

ADI Shift Parameters

4

Column Compression for the low rank factors

5

Generalized Systems

6

Conclusions and Outlook Conlusions Outlook

24/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-45
SLIDE 45

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook Conlusions Outlook

Conclusions and Outlook

Conlusions

Reordering strategies can reduce memory requirements by far

25/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-46
SLIDE 46

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook Conlusions Outlook

Conclusions and Outlook

Conlusions

Reordering strategies can reduce memory requirements by far new shift parameter selection allows easy improvements in ADI performance

25/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-47
SLIDE 47

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook Conlusions Outlook

Conclusions and Outlook

Conlusions

Reordering strategies can reduce memory requirements by far new shift parameter selection allows easy improvements in ADI performance Column compression via RRQR also drastically reduces storage requirements.

25/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-48
SLIDE 48

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook Conlusions Outlook

Conclusions and Outlook

Conlusions

Reordering strategies can reduce memory requirements by far new shift parameter selection allows easy improvements in ADI performance Column compression via RRQR also drastically reduces storage requirements. Especially helpful in differential Riccati equation solvers where 1 ARE solution needs to be stored in every step.

25/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-49
SLIDE 49

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook Conlusions Outlook

Conclusions and Outlook

Conlusions

Reordering strategies can reduce memory requirements by far new shift parameter selection allows easy improvements in ADI performance Column compression via RRQR also drastically reduces storage requirements. Especially helpful in differential Riccati equation solvers where 1 ARE solution needs to be stored in every step. Optimized treatment of generalized systems is work in progress

25/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-50
SLIDE 50

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook Conlusions Outlook

Conclusions and Outlook

Outlook

Theoretical Outlook

Improve stopping Criteria for the ADI process.

e.g. inside the LRCF-Newton method by interpretation as inexact Newton method following the ideas of Sachs et al.

Optimize truncation tolerances for the RRQR

Investigate dependence of residual errors in X on the truncation tolerance

Stabilizing initial feedback computation

Investigate whether the method in [K. Gallivan, X. Rao and P. Van Dooren

2006] can be implemented exploiting sparse matrix arithmetics.

26/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-51
SLIDE 51

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook Conlusions Outlook

Conclusions and Outlook

Outlook

Implementation TODOs User supplied functions for B (and C?) Introduce solvers for DREs Initial stabilizing feedback computation Improve handling of generalized systems of the form M ˙ x = Ax + Bu. Improve the current Arnoldi implementation inside the heuristic ADI Parameter computation RRQR and column compression for complex factors. Simplify calling sequences, i.e. shorten commands by grouping parameters in structures Improve overall performance . . .

26/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers

slide-52
SLIDE 52

LRCF Newton Method for the ARE Reordering Strategies ADI Shift Parameters Column Compression for the LRCF Generalized Systems Conclusions and Outlook Conlusions Outlook

Conclusions and Outlook

Outlook

Implementation TODOs User supplied functions for B (and C?) Introduce solvers for DREs Initial stabilizing feedback computation Improve handling of generalized systems of the form M ˙ x = Ax + Bu. Improve the current Arnoldi implementation inside the heuristic ADI Parameter computation RRQR and column compression for complex factors. Simplify calling sequences, i.e. shorten commands by grouping parameters in structures Improve overall performance . . .

Thank you for your attention!

26/26 jens.saak@mathematik.tu-chemnitz.de Jens Saak Efficient Large Scale Lyapunov and ARE Solvers