38
1 Computation of the Joint Spectral Radius with Optimization Techniques Amir Ali Ahmadi Goldstine Fellow, IBM Watson Research Center Joint work with: Raphaël Jungers (UC Louvain) Pablo A. Parrilo (MIT) R. Jungers, P.A. Parrilo, Mardavij Roozbehani (MIT) Workshop on Real Algebraic Geometry with a View Towards Systems Control and Free Positivity April 2014, Oberwolfach

Computation of the Joint Spectral Radius with Optimization ... · Computation of the Joint Spectral Radius with Optimization Techniques Amir Ali Ahmadi Goldstine Fellow, IBM Watson

  • Upload
    others

  • View
    6

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Computation of the Joint Spectral Radius with Optimization ... · Computation of the Joint Spectral Radius with Optimization Techniques Amir Ali Ahmadi Goldstine Fellow, IBM Watson

1

Computation of the Joint Spectral Radiuswith Optimization Techniques

Amir Ali AhmadiGoldstine Fellow, IBM Watson Research Center

Joint work with:•Raphaël Jungers (UC Louvain)•Pablo A. Parrilo (MIT)•R. Jungers, P.A. Parrilo, Mardavij Roozbehani (MIT)

Workshop on Real Algebraic Geometry with a View Towards Systems Control and Free Positivity April 2014, Oberwolfach

Page 2: Computation of the Joint Spectral Radius with Optimization ... · Computation of the Joint Spectral Radius with Optimization Techniques Amir Ali Ahmadi Goldstine Fellow, IBM Watson

2

The Joint Spectral Radius

Given a finite set of matrices

Joint spectral radius (JSR):

If only one matrix:

Spectral Radius

Page 3: Computation of the Joint Spectral Radius with Optimization ... · Computation of the Joint Spectral Radius with Optimization Techniques Amir Ali Ahmadi Goldstine Fellow, IBM Watson

Trackability of Graphs

Noisy observations:

How does the number of possible paths grow with length of observation?

N(t): max. number of possible paths over all observations of length t

Graph is called trackable if N(t) is bounded by a polynomial in t

Graph trackable iff

Page 4: Computation of the Joint Spectral Radius with Optimization ... · Computation of the Joint Spectral Radius with Optimization Techniques Amir Ali Ahmadi Goldstine Fellow, IBM Watson

4

JSR and Switched/Uncertain Linear Systems

Joint spectral radius (JSR):

“Uniformly stable” iff

Switched linear dynamics:

Linear dynamics:

“Stable” iff

Spectral radius:

Page 5: Computation of the Joint Spectral Radius with Optimization ... · Computation of the Joint Spectral Radius with Optimization Techniques Amir Ali Ahmadi Goldstine Fellow, IBM Watson

5

Stability around an equilibrium point

Controller design for this humanoid presented in:

[Majumdar, AAA, Tedrake, CDC’14 – submitted] Done by SDSOS Optimization[AAA, Majumdar,’13]

Page 6: Computation of the Joint Spectral Radius with Optimization ... · Computation of the Joint Spectral Radius with Optimization Techniques Amir Ali Ahmadi Goldstine Fellow, IBM Watson

6

Computation of JSR

[Blondel, Tsitsiklis]

If only one matrix:

For more than one matrix:

(even for 2 matrices of size 47x47 !!)

Open problem: decidability of testing

Would become decidable if rational finiteness conjecture is true

Finiteness conjecture: equality achieved at finite k

Lower bounds on JSR:

Upper bounds on JSR: from Lyapunov theory

Page 7: Computation of the Joint Spectral Radius with Optimization ... · Computation of the Joint Spectral Radius with Optimization Techniques Amir Ali Ahmadi Goldstine Fellow, IBM Watson

7

This Talk

1. A meta-SDP-algorithm for computing upper bounds

Lyapunov theory + basic automata theory

2. Exact JSR of rank-one matricesvia dynamic programming

3. Uncertain nonlinear systems

SOS-convex Lyapunov functions

Page 8: Computation of the Joint Spectral Radius with Optimization ... · Computation of the Joint Spectral Radius with Optimization Techniques Amir Ali Ahmadi Goldstine Fellow, IBM Watson

8

Common Lyapunov function

If we can find a function

such that

[Ch

aos,

Yo

rke]

then,

Such a function always exists! But may be extremely difficult to find!!

Page 9: Computation of the Joint Spectral Radius with Optimization ... · Computation of the Joint Spectral Radius with Optimization Techniques Amir Ali Ahmadi Goldstine Fellow, IBM Watson

9

Computationally-friendly common Lyapunov functions

If we can find a function

such that

then,

[Blondel, Nesterov, Theys]

[Ando, Shih]

Common quadratic Lyapunov function:

Common SOS Lyapunov function [Parrilo, Jadbabaie]

Our approach: use multiple Lyapunov functions

Page 10: Computation of the Joint Spectral Radius with Optimization ... · Computation of the Joint Spectral Radius with Optimization Techniques Amir Ali Ahmadi Goldstine Fellow, IBM Watson

10

Multiple Lyapunov functions

Can we do better with more than one Lyapunov function?

How?max-of-quadratics

Page 11: Computation of the Joint Spectral Radius with Optimization ... · Computation of the Joint Spectral Radius with Optimization Techniques Amir Ali Ahmadi Goldstine Fellow, IBM Watson

11

Multiple Lyapunov functions

Consider another SDP:min-of-quadratics

Page 12: Computation of the Joint Spectral Radius with Optimization ... · Computation of the Joint Spectral Radius with Optimization Techniques Amir Ali Ahmadi Goldstine Fellow, IBM Watson

12

Even stranger SDPs…

Feasibility of the following SDP also implies stability:

Where do these conditions come from?

Can we give a unifying framework?

Page 13: Computation of the Joint Spectral Radius with Optimization ... · Computation of the Joint Spectral Radius with Optimization Techniques Amir Ali Ahmadi Goldstine Fellow, IBM Watson

13

Representation of Lyapunov inequalities via labeled graphs

What property of the graph implies stability?

[AAA, Jungers, Parrilo, Roozbehani SIAM J. on Control and Opt.,’13]

Page 14: Computation of the Joint Spectral Radius with Optimization ... · Computation of the Joint Spectral Radius with Optimization Techniques Amir Ali Ahmadi Goldstine Fellow, IBM Watson

14

Graph expansion

Page 15: Computation of the Joint Spectral Radius with Optimization ... · Computation of the Joint Spectral Radius with Optimization Techniques Amir Ali Ahmadi Goldstine Fellow, IBM Watson

15

Path-complete graphs

Defn. A labeled directed graph G(N,E) is path-complete if for every word of finite length there is an associated directed path in its expanded graph Ge(Ne,Ee).

Path-completeness can be checked with standard algorithms in automata theory

Page 16: Computation of the Joint Spectral Radius with Optimization ... · Computation of the Joint Spectral Radius with Optimization Techniques Amir Ali Ahmadi Goldstine Fellow, IBM Watson

16

Path-complete graphs and stability

Gives immediate proofs for existing methods

Introduces numerous new methods

THM. If Lyapunov functions satisfying Lyapunov inequalitiesassociated with any path-complete graph are found, then the switched system is uniformly stable (i.e., JSR<1).

Page 17: Computation of the Joint Spectral Radius with Optimization ... · Computation of the Joint Spectral Radius with Optimization Techniques Amir Ali Ahmadi Goldstine Fellow, IBM Watson

17

Quick proofs

For example:

Page 18: Computation of the Joint Spectral Radius with Optimization ... · Computation of the Joint Spectral Radius with Optimization Techniques Amir Ali Ahmadi Goldstine Fellow, IBM Watson

18

Let’s revisit our strange SDP

Page 19: Computation of the Joint Spectral Radius with Optimization ... · Computation of the Joint Spectral Radius with Optimization Techniques Amir Ali Ahmadi Goldstine Fellow, IBM Watson

19

Approximation guarantees

THM. Given any desired accuracy

we can explicitly construct a graph G (with ml-1 nodes)such that the corresponding SDP achieves the accuracy.

max-of-quadraticsmin-of-quadratics

- tighter than known SOS bounds - proof relies on the John’s ellipsoid thm

Page 20: Computation of the Joint Spectral Radius with Optimization ... · Computation of the Joint Spectral Radius with Optimization Techniques Amir Ali Ahmadi Goldstine Fellow, IBM Watson

20

No bound on size of SDP

THM. [AAA, Jungers, IFAC’14]

Given any positive integer d,there are families of switched systems that are uniformly stable (i.e., have JSR<1), but yet this fact cannot be proven with

•a polynomial Lyapunov function of degree ≤ d

•a max-of-quadratics Lyapunov function with ≤ d pieces

•a min-of-quadratics Lyapunov function with ≤ d pieces

•a polytopic Lyapunov function with ≤ d facets.

Kozyakin’90:

JSR<1 JSR>1

Page 21: Computation of the Joint Spectral Radius with Optimization ... · Computation of the Joint Spectral Radius with Optimization Techniques Amir Ali Ahmadi Goldstine Fellow, IBM Watson

21

JSR of Rank One Matricesand the Maximum Cycle Mean Problem

[AAA, Parrilo, IEEE Conf. on Decision and Control,’12]

Page 22: Computation of the Joint Spectral Radius with Optimization ... · Computation of the Joint Spectral Radius with Optimization Techniques Amir Ali Ahmadi Goldstine Fellow, IBM Watson

22

Basic facts about rank one matrices

A rank one iff

spectral radius:

Products of rank one matrices have rank at most one:

Page 23: Computation of the Joint Spectral Radius with Optimization ... · Computation of the Joint Spectral Radius with Optimization Techniques Amir Ali Ahmadi Goldstine Fellow, IBM Watson

23

Cycles and cycle gains

Easy definitions:•Cycle•Simple cycle•Cycle gain

•Maximum cycle gain

•Gain-maximizing cycle

Page 24: Computation of the Joint Spectral Radius with Optimization ... · Computation of the Joint Spectral Radius with Optimization Techniques Amir Ali Ahmadi Goldstine Fellow, IBM Watson

24

From matrix products to cycles in graphs

Nodes: matrices

Complete directed graph on m nodes:

Edge weights:

Page 25: Computation of the Joint Spectral Radius with Optimization ... · Computation of the Joint Spectral Radius with Optimization Techniques Amir Ali Ahmadi Goldstine Fellow, IBM Watson

25

Maximum cycle gain gives the JSR

Thm: Let cmax be a gain-maximizing cycle, with lmax and ρcmax

denoting its length and the product of the weights on its edges, respectively.Then, the joint spectral radius is given by:

Proof sketch:

Page 26: Computation of the Joint Spectral Radius with Optimization ... · Computation of the Joint Spectral Radius with Optimization Techniques Amir Ali Ahmadi Goldstine Fellow, IBM Watson

26

Finiteness property and the optimal product

Corollary:

•The JSR is achieved by the spectral radius of a finite matrix product, of length at most m. (In particular, the finiteness property holds. – independently shown by Gurvits et al.)

•There always exists an optimal product where no matrix appears more than once.

Proof: A simple cycle does not visit a node twice.

Bound of m is tight.

Page 27: Computation of the Joint Spectral Radius with Optimization ... · Computation of the Joint Spectral Radius with Optimization Techniques Amir Ali Ahmadi Goldstine Fellow, IBM Watson

27

Not fun to enumerate all simple cycles…

Page 28: Computation of the Joint Spectral Radius with Optimization ... · Computation of the Joint Spectral Radius with Optimization Techniques Amir Ali Ahmadi Goldstine Fellow, IBM Watson

28

Maximum Cycle Mean Problem (MCMP)

• Cycle mean

• Maximum cycle mean (MCM)

Page 29: Computation of the Joint Spectral Radius with Optimization ... · Computation of the Joint Spectral Radius with Optimization Techniques Amir Ali Ahmadi Goldstine Fellow, IBM Watson

29

Karp’s algorithm for MCMP

Run time O(|N||E|)

Page 30: Computation of the Joint Spectral Radius with Optimization ... · Computation of the Joint Spectral Radius with Optimization Techniques Amir Ali Ahmadi Goldstine Fellow, IBM Watson

30

Take logs and apply Karp

Nodes: matrices

Complete directed graph on m nodes:

Edge weights:

Run time: O(m3+m2n)

Page 31: Computation of the Joint Spectral Radius with Optimization ... · Computation of the Joint Spectral Radius with Optimization Techniques Amir Ali Ahmadi Goldstine Fellow, IBM Watson

31

Common quadratic Lyapunov function can fail

(can be proven e.g. using our algorithm)

An LMI searching for a common quadratic Lyapunov function can only prove

Page 32: Computation of the Joint Spectral Radius with Optimization ... · Computation of the Joint Spectral Radius with Optimization Techniques Amir Ali Ahmadi Goldstine Fellow, IBM Watson

32

Nonlinear Switched Systems &

SOS-Convex Lyapunov Functions

[AAA, Jungers, IEEE Conf. on Decision and Control,’13]

Page 33: Computation of the Joint Spectral Radius with Optimization ... · Computation of the Joint Spectral Radius with Optimization Techniques Amir Ali Ahmadi Goldstine Fellow, IBM Watson

33

Nonlinear switched systems

Lemma: Unlike the linear case, a common Lyapunov function for the corners does not imply stability of the convex hull.

Ex. Common Lyapunov function:

But unstable:

Page 34: Computation of the Joint Spectral Radius with Optimization ... · Computation of the Joint Spectral Radius with Optimization Techniques Amir Ali Ahmadi Goldstine Fellow, IBM Watson

34

But a convex Lyapunov function implies stability

Suppose we can find a convex common Lyapunov function:

Then, then we have stability of the convex hull.

Proof:

Page 35: Computation of the Joint Spectral Radius with Optimization ... · Computation of the Joint Spectral Radius with Optimization Techniques Amir Ali Ahmadi Goldstine Fellow, IBM Watson

35

SOS-Convexity

Search for an sos-convex Lyapunov function is an SDP!But except for some specific degrees and dimensions, there are convex polynomials that are not sos-convex:

8

3

6

3

2

2

4

3

4

2

2

3

6

2

8

2

6

3

2

1

4

3

2

2

2

1

2

3

4

2

2

1

4

3

4

1

2

3

2

2

4

1

4

2

4

1

2

3

6

1

2

2

6

1

8

1

30607044

162416335

43254011832)(

xxxxxxx

xxxxxxxxxxx

xxxxxxxxxxxp

[AAA, Parrilo – Math Prog., ’11]

sos (Helton &Nie)

sos-convexLyapunov function:

sos-convexpolynomial:

Page 36: Computation of the Joint Spectral Radius with Optimization ... · Computation of the Joint Spectral Radius with Optimization Techniques Amir Ali Ahmadi Goldstine Fellow, IBM Watson

36

ROA Computation via SDP

sos-convex, deg=14

• Left: Cannot make any statements about ROA

• Right: Level set is part of ROA under arbitrary switching

non-convex, deg=12

Page 37: Computation of the Joint Spectral Radius with Optimization ... · Computation of the Joint Spectral Radius with Optimization Techniques Amir Ali Ahmadi Goldstine Fellow, IBM Watson

37

A converse Lyapunov theorem

Proof idea:Approximate original Lyapunov function with convex polynomialsIn a second step, go from convex to sos-convex

Uses a Positivstellensatz result of Claus Scheiderer:

Thm: SOS-convex Lyapunov functions are universal(i.e., necessary and sufficient) for stability.

Given any two positive definite forms g and h, there exists an integer k such that g.hk is sos.

Page 38: Computation of the Joint Spectral Radius with Optimization ... · Computation of the Joint Spectral Radius with Optimization Techniques Amir Ali Ahmadi Goldstine Fellow, IBM Watson

38

Joint Spectral Radius

Has lots of applications…

Want to know more? http://aaa.princeton.edu/

Powerful approximation algorithms based onLyapunov theory + optimization…

A lot less understood for nonlinear switched systems…