sum of squares optimization and applications

21
1 Amir Ali Ahmadi Princeton, ORFE (Affiliated member of PACM, COS, MAE) CDCโ€™17, Tutorial Lecture Melbourne Sum of Squares Optimization and Applications

Upload: others

Post on 16-Apr-2022

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Sum of Squares Optimization and Applications

1

Amir Ali AhmadiPrinceton, ORFE

(Affiliated member of PACM, COS, MAE)

CDCโ€™17, Tutorial LectureMelbourne

Sum of Squares Optimizationand Applications

Page 2: Sum of Squares Optimization and Applications

2

Optimization over nonnegative polynomials

Basic semialgebraic set:

Why do this?!

Example: When is

nonnegative?nonnegative over a given basic semialgebraic set?

๐‘ฅ โˆˆ โ„๐‘› ๐‘”๐‘– ๐‘ฅ โ‰ฅ 0}

Ex: ๐‘ฅ13 โˆ’ 2๐‘ฅ1๐‘ฅ2

4 โ‰ฅ 0๐‘ฅ14 + 3๐‘ฅ1๐‘ฅ2 โˆ’ ๐‘ฅ2

6 โ‰ฅ 0

Page 3: Sum of Squares Optimization and Applications

3

Optimization over nonnegative polynomials

Is ๐‘ ๐‘ฅ โ‰ฅ 0 on {๐‘”1 ๐‘ฅ โ‰ฅ 0,โ€ฆ , ๐‘”๐‘š ๐‘ฅ โ‰ฅ 0}?

Optimization Statistics Control

โ€ข Lower bounds on polynomial optimization problems

โ€ข Fitting a polynomial to data subject to shape constraints(e.g., convexity, or monotonicity)

๐œ•๐‘(๐‘ฅ)

๐œ•๐‘ฅ๐‘—โ‰ฅ 0, โˆ€๐‘ฅ โˆˆ ๐ต

โ€ข Stabilizing controllers

Implies that

๐‘ฅ ๐‘‰ ๐‘ฅ โ‰ค ๐›ฝ}is in the region of attraction

๐‘‰ ๐‘ฅ > 0,๐‘‰ ๐‘ฅ โ‰ค ๐›ฝ โ‡’ ๐›ป๐‘‰ ๐‘ฅ ๐‘‡๐‘“ ๐‘ฅ < 0

๐‘ฅ = ๐‘“(๐‘ฅ)

max๐›พ

๐›พ

s.t. ๐‘ ๐‘ฅ โˆ’ ๐›พ โ‰ฅ 0,โˆ€๐‘ฅ โˆˆ {๐‘”๐‘– ๐‘ฅ โ‰ฅ 0}

Page 4: Sum of Squares Optimization and Applications

4

How would you prove nonnegativity?

Ex. Decide if the following polynomial is nonnegative:

Not so easy! (In fact, NP-hard for degree โ‰ฅ 4)

But what if I told you:

โ€ขIs it any easier to test for a sum of squares (SOS) decomposition?

Page 5: Sum of Squares Optimization and Applications

5

SOSSDP

where

Example coming up in Antonisโ€™ talkFully automated in YALMIP, SOSTOOLS, SPOTLESS, GloptiPoly, โ€ฆ

Page 6: Sum of Squares Optimization and Applications

6

How to prove nonnegativity over a basic semialgebraic set?

Positivstellensatz: Certifies that

Putinarโ€™s Psatz:(1993) under Archimedean condition

Stengleโ€™s Psatz (1974)Schmudgenโ€™s Psatz (1991)โ€ฆ

Search for ๐ˆ๐’Š is an SDP when we bound the degree.

โ‡“๐‘ ๐‘ฅ = ๐œŽ0 ๐‘ฅ + ๐‘– ๐œŽ๐‘– ๐‘ฅ ๐‘”๐‘– ๐‘ฅ ,

where ๐œŽ๐‘– , ๐‘– = 0,โ€ฆ ,๐‘š are sos

All use sos polynomialsโ€ฆ

[Lasserre, Parrilo]

Page 7: Sum of Squares Optimization and Applications

Dynamics and Control

7

Page 8: Sum of Squares Optimization and Applications

Lyapunov theory with sum of squares (sos) techniques

8

Lyapunov function

Ex. Lyapunovโ€™s stability theorem.

(similar local version)

GAS

Page 9: Sum of Squares Optimization and Applications

9

Global stability

GASExample.

Couple lines of code in SOSTOOLS, YALMIP, SPOTLESS, etc.

Output of SDP solver:

Page 10: Sum of Squares Optimization and Applications

Theoretical limitations: converse implications may fail

10

โ€ข Globally asymptotically stable.

โ€ข But no polynomial Lyapunov function of any degree! [AAA, Krstic, Parrilo]

[AAA,Parrilo]

โ€ข Testing asymptotic stability of cubic vector fields is strongly NP-hard. [AAA]

Page 11: Sum of Squares Optimization and Applications

Converse statements possible in special cases

11

1. Asymptotically stable homogeneous polynomial vector field Rational Lyapunov function with an SOS certificate.[AAA, El Khadir]

2. Exponentially stable polynomial vector field on a compact set Polynomial Lyapunov function.[Peet, Papachristodoulou]

3. Asymptotically stable switched linear system Polynomial Lyapunov function with an SOS certificate. [Parrilo, Jadbabaie]

4. Asymptotically stable switched linear system Convex polynomial Lyapunovfunction with an SOS certificate.[AAA, Jungers]

Page 12: Sum of Squares Optimization and Applications

12

Local stability โ€“ SOS on the Acrobot

[Majumdar, AAA, Tedrake ](Best paper award - IEEE Conf. on Robotics and Automation)

Swing-up:

Balance:

Controller designed by SOS

(4-state system)

Page 13: Sum of Squares Optimization and Applications

Statistics and Machine Learning

13

Page 14: Sum of Squares Optimization and Applications

Monotone regression: problem definition

14

Page 15: Sum of Squares Optimization and Applications

NP-hardness and SOS relaxation

15

[AAA, Curmei, Hall]

Page 16: Sum of Squares Optimization and Applications

Approximation theorem

16

[AAA, Curmei, Hall]

Page 17: Sum of Squares Optimization and Applications

Numerical experiments

17

Page 18: Sum of Squares Optimization and Applications

Polynomial Optimization

18

Page 19: Sum of Squares Optimization and Applications

Theorem: Let ๐พ๐‘›,2๐‘‘๐‘Ÿ be a sequence of sets of homogeneous polynomials in

๐‘› variables and of degree 2๐‘‘. If:

(1) ๐พ๐‘›,2๐‘‘๐‘Ÿ โŠ† ๐‘ƒ๐‘›,2๐‘‘ โˆ€๐‘Ÿ and โˆƒ ๐‘ ๐‘›,2๐‘‘ pd in ๐พ๐‘›,2๐‘‘

0

(2) ๐‘ > 0 โ‡’ โˆƒ๐‘Ÿ โˆˆ โ„• s. t. ๐‘ โˆˆ ๐พ๐‘›,2๐‘‘๐‘Ÿ

(3) ๐พ๐‘›,2๐‘‘๐‘Ÿ โŠ† ๐พ๐‘›,2๐‘‘

๐‘Ÿ+1 โˆ€๐‘Ÿ

(4) ๐‘ โˆˆ ๐พ๐‘›,2๐‘‘๐‘Ÿ โ‡’ ๐‘ + ๐œ–๐‘ ๐‘›,2๐‘‘ โˆˆ ๐พ๐‘›,2๐‘‘

๐‘Ÿ , โˆ€๐œ– โˆˆ [0,1]

A meta-theorem for producing hierarchies

19

๐‘ƒ๐‘›,2๐‘‘

๐พ๐‘›,2๐‘‘๐‘Ÿ

=opt. val.

min๐‘ฅโˆˆโ„๐‘›

๐‘(๐‘ฅ)

๐‘ . ๐‘ก. ๐‘”๐‘– ๐‘ฅ โ‰ฅ 0, ๐‘– = 1,โ€ฆ ,๐‘š

POPmax๐›พ

๐›พ

๐‘ . ๐‘ก. ๐‘“๐›พ ๐‘ง โˆ’1

๐‘Ÿ๐‘ ๐‘›+๐‘š+3,4๐‘‘ ๐‘ง โˆˆ ๐พ๐‘›+๐‘š+3,4๐‘‘

๐‘Ÿ

๐‘Ÿ โ†‘ โˆžCompactness assumptions

2๐‘‘ = maximum degree of ๐‘, ๐‘”๐‘–

Then,

where ๐‘“๐›พ is a form which can be written down explicitly from ๐‘, ๐‘”๐‘– .

Example: Artin cones ๐ด๐‘›,2๐‘‘๐‘Ÿ = ๐‘ ๐‘ โ‹… ๐‘ž is sos for some sos ๐‘ž of degree 2๐‘Ÿ}

[AAA, Hall]

Page 20: Sum of Squares Optimization and Applications

20

An optimization-free converging hierarchy

[AAA, Hall]

๐‘ ๐‘ฅ > 0, โˆ€๐‘ฅ โˆˆ ๐‘ฅ โˆˆ โ„๐‘› ๐‘”๐‘– ๐‘ฅ โ‰ฅ 0, ๐‘– = 1, โ€ฆ ,๐‘š}

2๐‘‘ =maximum degree of ๐‘, ๐‘”๐‘–

โ‡”

โˆƒ ๐‘Ÿ โˆˆ โ„• such that

๐‘“ ๐‘ฃ2 โˆ’ ๐‘ค2 โˆ’1

๐‘Ÿ ๐‘– ๐‘ฃ๐‘–

2 โˆ’ ๐‘ค๐‘–2 2 ๐‘‘

+1

2๐‘Ÿ ๐‘– ๐‘ฃ๐‘–

4 + ๐‘ค๐‘–4 ๐‘‘

โ‹… ๐‘– ๐‘ฃ๐‘–2 + ๐‘–๐‘ค๐‘–

2 ๐‘Ÿ2

has nonnegative coefficients,

where ๐‘“ is a form in ๐‘› +๐‘š + 3 variables and of degree 4๐‘‘, which can be explicitly written from ๐‘, ๐‘”๐‘– and ๐‘….

(also leads to DSOS/SDSOS-based converging hierarchies for POP)

Page 21: Sum of Squares Optimization and Applications

21

Ongoing directions: large-scale/real-time verification

โ€ข 30 states, 14 control inputs, cubic dynamics

โ€ข Done with SDSOS optimization (see Georginaโ€™s talk)

Two promising approaches:

1. LP and SOCP-based alternatives to SOS, Georginaโ€™s talkLess powerful than SOS (Jamesโ€™ talk), but good enough for some applications

2. Exploiting problem structure and designing customized algorithms

Antonisโ€™ talk (next), and Pablo Parriloโ€™s plenary (Thu. 8:30am)

Slides/references available at: aaa.princeton.edu