prezentácia programu powerpointoravec/pedagogy/sdp... · references –g. blekherman , p. a....

55
Semidefinite Optimization J. Oravec Slovak University of Technology in Bratislava

Upload: others

Post on 18-Jul-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

Semidefinite Optimization

J. Oravec

Slovak University of Technology in Bratislava

Page 2: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

Semidefinite Optimization

– super class of convex optimization problems

SDP

SOCP

QCQP

QP

LP

Convex Optimization

Page 3: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

Linear Programming

– standard LP:

Page 4: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

Linear Programming

– standard LP:

– feasibility set:

– polyhedron

x1

x2

Page 5: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

Linear Programming

– standard LP:

– feasibility set:

– polyhedron

– polytope

x1

x2

Page 6: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

Linear Programming

– standard LP:

– feasibility set:

– polyhedron

– polytope

x1

x2

x*

Page 7: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

Linear Programming

– standard LP:

– feasibility set:

– polyhedron

– polytope

x1

x2

x*

degeneracy:infinitely many solutions

Page 8: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

Linear Programming

– standard LP:

– feasibility set:

– polyhedron:

– polytope:

Page 9: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

Linear Programming

– primal LP:

– dual LP:

Page 10: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

– optimization of a linear function subject to constraints of linear matrix inequality:

Semidefinite Programming

– decision variables are symmetric matrices:

Page 11: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

Semidefinite Programming

– standard SDP:

Page 12: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

Semidefinite Programming

– standard SDP:

– feasibility set:

– spectrahedron

Page 13: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

Semidefinite Programming

– standard SDP:

– feasibility set:

– spectrahedron

semialgebric set

Page 14: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

Semidefinite Programming

– standard SDP:

– feasibility set:

– spectrahedron

Page 15: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

Semidefinite Programming

– primal SDP:

– dual SDP:

Page 16: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

– Lyapunov function:

– quadratic Lyapunov function:

Lyapunov Stability

– Lyapunov stability (discrete time domain)

– Lyapunov stability (continuous time domain)

A. Lyapunov: The general problem of the stability of motion, 1892

Page 17: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

Lyapunov Stability

A. Lyapunov: The general problem of the stability of motion, 1892

Page 18: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

Lyapunov Stability

A. Lyapunov: The general problem of the stability of motion, 1892

Page 19: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

Lyapunov Stability

A. Lyapunov: The general problem of the stability of motion, 1892

Page 20: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

Lyapunov Stability

A. Lyapunov: The general problem of the stability of motion, 1892

Page 21: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

Lyapunov Stability

A. Lyapunov: The general problem of the stability of motion, 1892

Page 22: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

Lyapunov Stability

A. Lyapunov: The general problem of the stability of motion, 1892

Page 23: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

Lyapunov Stability

A. Lyapunov: The general problem of the stability of motion, 1892

Page 24: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

Lyapunov Stability

A. Lyapunov: The general problem of the stability of motion, 1892

Page 25: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

Lyapunov Stability

A. Lyapunov: The general problem of the stability of motion, 1892

Page 26: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

Lyapunov Stability

A. Lyapunov: The general problem of the stability of motion, 1892

Page 27: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

Lyapunov Stability

A. Lyapunov: The general problem of the stability of motion, 1892

Page 28: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

Lyapunov Stability

A. Lyapunov: The general problem of the stability of motion, 1892

Page 29: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

Lyapunov Stability

A. Lyapunov: The general problem of the stability of motion, 1892

Page 30: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

– Lyapunov function:

– quadratic Lyapunov function:

Lyapunov Stability

– Lyapunov stability (discrete time domain)

– Lyapunov stability (continuous time domain)

A. Lyapunov: The general problem of the stability of motion, 1892

Page 31: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

YALMIP

– originally: Yet Another LMI Parser

– since 2003, by Johan Löfberg, Linköping University

– language for modeling and solution of the (non-)convex

optimization problems in MATALB

– freely available: https://yalmip.github.io

– YALMIP : A Toolbox for Modeling and Optimization in MATLAB,

In Proceedings of the CACSD Conference, Taipei, Taiwan, 2004.

Page 32: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

YALMIP: How to

– define decision variable:

>>P = sdpvar(N,N,’symmetric’) % symmetric matrix NxN

>>P = sdpvar(N,N) % symmetric matrix NxN

>>P = sdpvar(N) % symmetric matrix NxN

>>P = sdpvar(N,N,’full’) % non-symmetric matrix NxN

Linear matrix variable 2x2 (symmetric, real, 3 variables)

Page 33: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

YALMIP: How to

– define constraints of optimization problem:

>>constr = [ P >= 0 ] % LMI

>>constr = constr + [[ A'*P*A – P ] <= 0] %LMI

++++++++++++++++++++++++++++++++

| ID| Constraint|

++++++++++++++++++++++++++++++++

| #1| Matrix inequality 2x2|

| #2| Matrix inequality 2x2|

++++++++++++++++++++++++++++++++

Page 34: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

YALMIP: How to

– define objective of optimization problem:

>>obj = trace(P)

Linear scalar (real, 2 variables)

Page 35: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

YALMIP: How to

– define settings of optimization problem:

>>opt = sdpsettings('solver','mosek’) % SDP solver

>>opt = sdpsettings(opt,'verbose’,0) % silent mode

Page 36: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

YALMIP: How to

– solve optimization problem:

>>sol = optimize(constr,obj,opt)

yalmiptime: 0.5157

solvertime: 0.1963

info: 'Successfully solved (MOSEK)'

problem: 0

– parser time

Page 37: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

YALMIP: How to

– solve optimization problem:

>>sol = optimize(constr,obj,opt)

yalmiptime: 0.5157

solvertime: 0.1963

info: 'Successfully solved (MOSEK)'

problem: 0

– optimization time

Page 38: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

YALMIP: How to

– solve optimization problem:

>>sol = optimize(constr,obj,opt)

yalmiptime: 0.5157

solvertime: 0.1963

info: 'Successfully solved (MOSEK)'

problem: 0

– no problems detected

Page 39: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

YALMIP: How to

– solve optimization problem:

>>sol = optimize(constr,obj,opt)

yalmiptime: 0.5157

solvertime: 0.1963

info: 'Infeasible problem (MOSEK)'

problem: 1

– solution does not exist

Page 40: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

YALMIP: How to

– solve optimization problem:

>>sol = optimize(constr,obj,opt)

yalmiptime: 0.5157

solvertime: 0.1963

info: 'Unbounded objective function (MOSEK)'

problem: 2

– do not trust the solution and bound the objective function

Page 41: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

YALMIP: How to

– solve optimization problem:

>>sol = optimize(constr,obj,opt)

yalmiptime: 0.5157

solvertime: 0.1963

info: 'Numerical problems (MOSEK)'

problem: 4

– returned solution may not be correct – double-check feasibility

Page 42: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

YALMIP: How to

– recover solution of optimization problem:

>>P_opt = value(P)

>>eigP = eig(P_opt)

>>M = [ A'*P_opt*A - P_opt ]

>>eigM = eig(M)

Page 43: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

YALMIP and SDP solvers

– free: CSDP (OPTI Toolbox), DSDP, LOGDETPPA,

PENLAB (nonline SDPs), SDPA (high-precision),

SDPLR, SDPT3 (logdet), SDPNAL, SEDUMI (default)

– free for academia: MOSEK, PENSDP

– commercial: LMILAB (not recommended), PENBMI

Page 44: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

CP

LP

Linear programming:

Convex Optimization

Page 45: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

CP

QP

LP

Quadratic programming:

Convex Optimization

Page 46: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

CP

QCQP

QP

LP

Quadratically constrained quadratic

programming:

Convex Optimization

Page 47: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

CP

SOCP

QCQP

QP

LP

Second-order cone programming:

Convex Optimization

Page 48: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

CP

Second-order cone programming:

SOCP

QCQP

QP

LP

LP:

S. Boyd – L. Vandenberghe: Convex Optimization, 2004

Convex Optimization

Page 49: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

CP

Second-order cone programming:

SOCP

QCQP

QP

LP

QP:

S. Boyd – L. Vandenberghe: Convex Optimization, 2004

Convex Optimization

Page 50: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

CP QCQP:

SOCP

QCQP

QP

LP

Second-order cone programming:

S. Boyd – L. Vandenberghe: Convex Optimization, 2004

Convex Optimization

Page 51: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

CP QCQP:

SOCP

QCQP

QP

LP

Second-order cone programming:

S. Boyd – L. Vandenberghe: Convex Optimization, 2004

Convex Optimization

Page 52: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

SDP

SOCP

QCQP

QP

LP

CP

MALTAB/YALMIP solvers: MOSEK, PENBMI, CSDP, DSDP, SDPLR, SDPT3, SDPNAL, SEDUMI

Semidefinite programming:

Convex Optimization

Page 53: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

SDP

SOCP

QCQP

QP

LP

CP

SOCP:

Semidefinite programming:

S. Boyd – L. Vandenberghe: Convex Optimization, 2004

Convex Optimization

Page 54: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry

References

– G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization

and Convex Algebraic Geometry

– S. Boyd, L. Vandenberghe (2004): Convex Optimization. Cambridge University Press.

– S. Boyd, L. El Ghaoui, E. Feron, V. Balakrishnan (1994): Linear Matrix Inequalities in

System and Control Theory. SIAM.

– J. Löfberg, YALMIP : A Toolbox for Modeling and Optimization in MATLAB, In

Proceedings of the CACSD Conference, Taipei, Taiwan, 2004.

Page 55: Prezentácia programu PowerPointoravec/pedagogy/sdp... · References –G. Blekherman , P. A. Parrilo and R. R. Thomas (2013): Semidefinite Optimization and Convex Algebraic Geometry