Semialgebraic Relaxations using Moment-SOS Hierarchies

Similar documents
Formal Proofs, Program Analysis and Moment-SOS Relaxations

New applications of moment-sos hierarchies

Certified Roundoff Error Bounds using Semidefinite Programming

A new look at nonnegativity on closed sets

arxiv: v2 [math.oc] 16 Oct 2014

The moment-lp and moment-sos approaches

Strong duality in Lasserre s hierarchy for polynomial optimization

Approximating Pareto Curves using Semidefinite Relaxations

LMI MODELLING 4. CONVEX LMI MODELLING. Didier HENRION. LAAS-CNRS Toulouse, FR Czech Tech Univ Prague, CZ. Universidad de Valladolid, SP March 2009

Convex Optimization & Parsimony of L p-balls representation

Convergence rates of moment-sum-of-squares hierarchies for volume approximation of semialgebraic sets

Semidefinite Programming

6-1 The Positivstellensatz P. Parrilo and S. Lall, ECC

Sum of Squares Relaxations for Polynomial Semi-definite Programming

Semidefinite Programming

On Polynomial Optimization over Non-compact Semi-algebraic Sets

COURSE ON LMI PART I.2 GEOMETRY OF LMI SETS. Didier HENRION henrion

Approximate Optimal Designs for Multivariate Polynomial Regression

arxiv: v1 [math.oc] 31 Jan 2017

Convex computation of the region of attraction for polynomial control systems

4. Algebra and Duality

Hilbert s 17th Problem to Semidefinite Programming & Convex Algebraic Geometry

Fast ADMM for Sum of Squares Programs Using Partial Orthogonality

Advanced SDPs Lecture 6: March 16, 2017

arxiv: v1 [math.oc] 26 Jul 2013

Convex Optimization. (EE227A: UC Berkeley) Lecture 28. Suvrit Sra. (Algebra + Optimization) 02 May, 2013

Optimization over Polynomials with Sums of Squares and Moment Matrices

How to generate weakly infeasible semidefinite programs via Lasserre s relaxations for polynomial optimization

Example: feasibility. Interpretation as formal proof. Example: linear inequalities and Farkas lemma

The moment-lp and moment-sos approaches in optimization

Robust and Optimal Control, Spring 2015

Moments and Positive Polynomials for Optimization II: LP- VERSUS SDP-relaxations

Representations of Positive Polynomials: Theory, Practice, and

Semidefinite Programming Basics and Applications

Computer Proof Assistants and Univalent Foundations of Mathematics

SPECTRA - a Maple library for solving linear matrix inequalities in exact arithmetic

Towards Solving Bilevel Optimization Problems in Quantum Information Theory

Minimum Ellipsoid Bounds for Solutions of Polynomial Systems via Sum of Squares

Moments and convex optimization for analysis and control of nonlinear partial differential equations

3 (Due ). Let A X consist of points (x, y) such that either x or y is a rational number. Is A measurable? What is its Lebesgue measure?

arxiv: v1 [math.oc] 9 Sep 2015

Moments and Positive Polynomials for Optimization II: LP- VERSUS SDP-relaxations

Introduction to Semidefinite Programming I: Basic properties a

Convex sets, conic matrix factorizations and conic rank lower bounds

arxiv: v2 [math.oc] 30 Sep 2015

Exact SDP Relaxations for Classes of Nonlinear Semidefinite Programming Problems

I.3. LMI DUALITY. Didier HENRION EECI Graduate School on Control Supélec - Spring 2010

Optimization on linear matrix inequalities for polynomial systems control

9. Interpretations, Lifting, SOS and Moments

4. Convex optimization problems

Lecture Note 5: Semidefinite Programming for Stability Analysis

1 Number Systems and Errors 1

arxiv: v1 [cs.sc] 10 Jul 2013

Inner approximations of the region of attraction for polynomial dynamical systems

Convergence under Subdivision and Complexity of Polynomial Minimization in the Simplicial Bernstein Basis

MIT Algebraic techniques and semidefinite optimization February 14, Lecture 3

A ten page introduction to conic optimization

SDP Relaxations for MAXCUT

Lecture 3: Semidefinite Programming

Convex computation of the region of attraction for polynomial control systems

Linear conic optimization for nonlinear optimal control

Continuous Optimisation, Chpt 9: Semidefinite Optimisation

A JOINT+MARGINAL APPROACH TO PARAMETRIC POLYNOMIAL OPTIMIZATION

Non-linear Interpolant Generation and Its Application to Program Verification

Convex computation of the region of attraction of polynomial control systems

Semidefinite Relaxations Approach to Polynomial Optimization and One Application. Li Wang

Non-commutative polynomial optimization

arxiv:math/ v1 [math.oc] 13 Mar 2007

Lecture 6 Verification of Hybrid Systems

Fast Algorithms for SDPs derived from the Kalman-Yakubovich-Popov Lemma

Non-Convex Optimization via Real Algebraic Geometry

Cylindrical Algebraic Decomposition in Coq

Comparison of Lasserre s measure based bounds for polynomial optimization to bounds obtained by simulated annealing

An explicit construction of distinguished representations of polynomials nonnegative over finite sets

LECTURE 25: REVIEW/EPILOGUE LECTURE OUTLINE

Region of attraction approximations for polynomial dynamical systems

Ranks of Real Symmetric Tensors

What can be expressed via Conic Quadratic and Semidefinite Programming?

Convex optimization problems. Optimization problem in standard form

Introduction to Applied Linear Algebra with MATLAB

POLYNOMIAL OPTIMIZATION WITH SUMS-OF-SQUARES INTERPOLANTS

Lecture 8 : Eigenvalues and Eigenvectors

Semidefinite programming lifts and sparse sums-of-squares

Semidefinite approximations of projections and polynomial images of semialgebraic sets

Convexification of Mixed-Integer Quadratically Constrained Quadratic Programs

SEMIDEFINITE PROGRAM BASICS. Contents

Strange Behaviors of Interior-point Methods. for Solving Semidefinite Programming Problems. in Polynomial Optimization

Solving Global Optimization Problems with Sparse Polynomials and Unbounded Semialgebraic Feasible Sets

Fidelity and trace norm

APPENDIX A. Background Mathematics. A.1 Linear Algebra. Vector algebra. Let x denote the n-dimensional column vector with components x 1 x 2.

Stability and Robustness Analysis of Nonlinear Systems via Contraction Metrics and SOS Programming

Exact algorithms for linear matrix inequalities

A General Framework for Convex Relaxation of Polynomial Optimization Problems over Cones

An Exact Jacobian SDP Relaxation for Polynomial Optimization

Semidefinite Approximations of Reachable Sets for Discrete-time Polynomial Systems

Second-order cone programming

2 (Bonus). Let A X consist of points (x, y) such that either x or y is a rational number. Is A measurable? What is its Lebesgue measure?

Detecting global optimality and extracting solutions in GloptiPoly

arzelier

Sum-of-Squares Method, Tensor Decomposition, Dictionary Learning

Transcription:

Semialgebraic Relaxations using Moment-SOS Hierarchies Victor Magron, Postdoc LAAS-CNRS 17 September 2014 SIERRA Seminar Laboratoire d Informatique de l Ecole Normale Superieure y b sin( par + b) b 1 1 b1 b2 par + b3 = par 500 b2 b3 par + b3 b par b2 par b 1 V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 1 / 47

Personal Background 2008 2010: Master at Tokyo University HIERARCHICAL DOMAIN DECOMPOSITION METHODS (S. Yoshimura) 2010 2013: PhD at Inria Saclay LIX/CMAP FORMAL PROOFS FOR NONLINEAR OPTIMIZATION (S. Gaubert and B. Werner) 2014 now: Postdoc at LAAS-CNRS MOMENT-SOS APPLICATIONS (J.B. Lasserre and D. Henrion) V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 2 / 47

Errors and Proofs Mathematicians want to eliminate all the uncertainties on their results. Why? M. Lecat, Erreurs des Mathématiciens des origines à nos jours, 1935. 130 pages of errors! (Euler, Fermat, Sylvester,... ) V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 3 / 47

Errors and Proofs Possible workaround: proof assistants COQ (Coquand, Huet 1984) HOL-LIGHT (Harrison, Gordon 1980) Built in top of OCAML V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 3 / 47

Complex Proofs Complex mathematical proofs / mandatory computation K. Appel and W. Haken, Every Planar Map is Four-Colorable, 1989. T. Hales, A Proof of the Kepler Conjecture, 1994. V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 4 / 47

From Oranges Stack... Kepler Conjecture (1611): The maximal density of sphere packings in 3D-space is π 18 Face-centered cubic Packing Hexagonal Compact Packing V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 5 / 47

...to Flyspeck Nonlinear Inequalities The proof of T. Hales (1998) contains mathematical and computational parts Computation: check thousands of nonlinear inequalities Robert MacPherson, editor of The Annals of Mathematics: [...] the mathematical community will have to get used to this state of affairs. Flyspeck [Hales 06]: Formal Proof of Kepler Conjecture V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 6 / 47

...to Flyspeck Nonlinear Inequalities The proof of T. Hales (1998) contains mathematical and computational parts Computation: check thousands of nonlinear inequalities Robert MacPherson, editor of The Annals of Mathematics: [...] the mathematical community will have to get used to this state of affairs. Flyspeck [Hales 06]: Formal Proof of Kepler Conjecture Project Completion on 10 August by the Flyspeck team!! V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 6 / 47

A Simple Example In the computational part: Multivariate Polynomials: x := x 1 x 4 ( x 1 + x 2 + x 3 x 4 + x 5 + x 6 ) + x 2 x 5 (x 1 x 2 + x 3 + x 4 x 5 + x 6 ) + x 3 x 6 (x 1 + x 2 x 3 + x 4 + x 5 x 6 ) x 2 (x 3 x 4 + x 1 x 6 ) x 5 (x 1 x 3 + x 4 x 6 ) V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 7 / 47

A Simple Example In the computational part: Semialgebraic functions: composition of polynomials with,, +,,, /, sup, inf,... p(x) := 4 x q(x) := 4x 1 x r(x) := p(x)/ q(x) l(x) := π 2 + 1.6294 0.2213 ( x 2 + x 3 + x 5 + x 6 8.0) + 0.913 ( x 4 2.52) + 0.728 ( x 1 2.0) V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 7 / 47

A Simple Example In the computational part: Transcendental functions T : composition of semialgebraic functions with arctan, exp, sin, +,,,... V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 7 / 47

A Simple Example In the computational part: Feasible set K := [4, 6.3504] 3 [6.3504, 8] [4, 6.3504] 2 Lemma 9922699028 from Flyspeck: ( p(x) ) x K, arctan + l(x) 0 q(x) V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 7 / 47

Existing Formal Frameworks Formal proofs for Global Optimization: Bernstein polynomial methods [Zumkeller 08] restricted to polynomials Taylor + Interval arithmetic [Melquiond 12, Solovyev 13] robust but subject to the CURSE OF DIMENSIONALITY V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 8 / 47

Existing Formal Frameworks Lemma 9922699028 from Flyspeck: ( 4 x ) x K, arctan + l(x) 0 4x1 x Dependency issue using Interval Calculus: One can bound 4 x/ 4x 1 x and l(x) separately Too coarse lower bound: 0.87 Subdivide K to prove the inequality K 3 K = K 1 K 0 K 4 K 2 V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 8 / 47

Introduction Moment-SOS relaxations Another look at Nonnegativity New Applications of Moment-SOS Hierarchies Conclusion

Polynomial Optimization Problems Semialgebraic set K := {x R n : g 1 (x) 0,..., g m (x) 0} p := min p(x): NP hard x K Sums of squares Σ[x] e.g. x 2 1 2x 1x 2 + x 2 2 = (x 1 x 2 ) 2 Q(K) := { } σ 0 (x) + m j=1 σ j(x)g j (x), with σ j Σ[x] V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 9 / 47

Polynomial Optimization Problems Archimedean module The set K is compact and the polynomial N x 2 2 Q(K) for some N > 0. belongs to Assume that K is a box: product of closed intervals Normalize the feasibility set to get K := [ 1, 1] n K := {x R n : g 1 := 1 x 2 1 0,, g n := 1 x 2 n 0} n x 2 2 belongs to Q(K ) V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 10 / 47

Convexification and the K Moment Problem Borel σ-algebra B (generated by the open sets of R n ) M + (K): set of probability measures supported on K. If µ M + (K) then 1 µ : B [0, 1], µ( ) = 0, µ(r n ) < 2 µ( i B i ) = i µ(b i ), for any countable (B i ) B 3 K µ(dx) = 1 supp(µ) is the smallest set K such that µ(r n \K) = 0 V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 11 / 47

Convexification and the K Moment Problem p = inf p(x) = inf p dµ x K µ M + (K) K V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 11 / 47

Convexification and the K Moment Problem Let (x α ) α N n be the monomial basis Definition A sequence y has a representing measure on K if there exists a finite measure µ supported on K such that y α = K x α µ(dx), α N n. V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 11 / 47

Convexification and the K Moment Problem L y (q) : q R[x] α q α y α Theorem [Putinar 93] Let K be compact and Q(K) be Archimedean. Then y has a representing measure on K iff L y (σ) 0, L y (g j σ) 0, σ Σ[x]. V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 11 / 47

Lasserre s Hierarchy of SDP relaxations Moment matrix M(y) u,v := L y (u v), u, v monomials Localizing matrix M(g j y) associated with g j M(g j y) u,v := L y (u v g j ), u, v monomials V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 12 / 47

Lasserre s Hierarchy of SDP relaxations M k (y) contains ( n+2k ) variables, has size (n+k n n ) Truncated matrix of order k = 2 with variables x 1, x 2 : M 2 (y) = 1 x 1 x 2 x 2 1 x 1 x 2 x 2 2 1 1 y 1,0 y 0,1 y 2,0 y 1,1 y 0,2 x 1 y 1,0 y 2,0 y 1,1 y 3,0 y 2,1 y 1,2 x 2 y 0,1 y 1,1 y 0,2 y 2,1 y 1,2 y 0,3 x 2 1 y 2,0 y 3,0 y 2,1 y 4,0 y 3,1 y 2,2 x 1 x 2 y 1,1 y 2,1 y 1,2 y 3,1 y 2,2 y 1,3 x 2 2 y 0,2 y 1,2 y 0,3 y 2,2 y 1,3 y 0,4 V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 12 / 47

Lasserre s Hierarchy of SDP relaxations Consider g 1 (x) := 2 x 2 1 x2 2. Then v 1 = deg g 1 /2 = 1. 1 x 1 x 2 1 2 y 2,0 y 0,2 2y 1,0 y 3,0 y 1,2 2y 0,1 y 2,1 y 0,3 M 1 (g 1 y) = x 1 2y 1,0 y 3,0 y 1,2 2y 2,0 y 4,0 y 2,2 2y 1,1 y 3,1 y 1,3 x 2 2y 0,1 y 2,1 y 0,3 2y 1,1 y 3,1 y 1,3 2y 0,2 y 2,2 y 0,4 M 1 (g 1 y)(3, 3) = L(g 1 (x) x 2 x 2 ) = L(2x 2 2 x 2 1 x2 2 x 4 2) = 2y 0,2 y 2,2 y 0,4 V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 12 / 47

Lasserre s Hierarchy of SDP relaxations Truncation with moments of order at most 2k v j := deg g j /2 Hierarchy of semidefinite relaxations: inf y L y (p) = α K p α x α µ(dx) = α p α y α M k (y) 0, M k vj (g j y) 0, 1 j m, y 1 = 1. V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 12 / 47

Semidefinite Optimization F 0, F α symmetric real matrices, cost vector c Primal-dual pair of semidefinite programs: P : inf y α c α y α s.t. α F α y α F 0 0 (SDP) D : sup Y Trace (F 0 Y) s.t. Trace (F α Y) = c α, Y 0. Freely available SDP solvers (CSDP, SDPA, SEDUMI) V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 13 / 47

Primal-dual Moment-SOS M + (K): space of probability measures supported on K Polynomial Optimization Problems (POP) (Primal) (Dual) inf p dµ = sup λ K s.t. µ M + (K) s.t. λ R, p λ Q(K) V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 14 / 47

Primal-dual Moment-SOS Truncated quadratic module Q k (K) := Q(K) R 2k [x] For large enough k, zero duality gap [Lasserre 01]: Polynomial Optimization Problems (POP) (Moment) (SOS) inf p α y α = sup λ α s.t. M k vj (g j y) 0, 0 j m, s.t. λ R, y 1 = 1 p λ Q k (K) V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 14 / 47

Practical Computation Hierarchy { of SOS relaxations: } λ k := sup λ : p λ Q k (K) λ Convergence guarantees λ k p [Lasserre 01] If p p Q k (K) for some k then: y := (1, x 1, x 2, (x 1) 2, x 1 x 2,..., (x 1) 2k,..., (x n) 2k ) is a global minimizer of the primal SDP [Lasserre 01]. V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 15 / 47

Practical Computation Caprasse Problem x [ 0.5, 0.5] 4, x 1 x 3 3 + 4x 2x 2 3 x 4 + 4x 1 x 3 x 2 4 + 2x 2x 3 4 + 4x 1 x 3 + 4x 2 3 10x 2x 4 10x 2 4 + 5.1801 0. Scale on [0, 1] 4 SOS of degree at most 4 Redundant constraints x 2 1 1,..., x2 4 1 V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 15 / 47

The No Free Lunch Rule Exponential dependency in 1 Relaxation order k (SOS degree) 2 number of variables n Computing λ k involves ( n+2k n ) variables At fixed k, O(n 2k ) variables V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 16 / 47

Introduction Moment-SOS relaxations Another look at Nonnegativity New Applications of Moment-SOS Hierarchies Conclusion

Another look at Nonnegativity Knowledge of K through µ M + (K) Independent of the representation of K Typical from INVERSE PROBLEMS reconstruct K from measuring moments of µ M + (K) V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 17 / 47

Another look at Nonnegativity Borel σ-algebra B (generated by the open sets of R n ) Lemma A continuous function p : R n R is nonnegative on K iff the set function ν : B B K B p(x) dµ(x) belongs to M +. V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 18 / 47

Another look at Nonnegativity ν : B B K B p(x) dµ(x) Proof 1 Only if part is straightforward 2 If part If ν M + then p(x) 0 for µ-almost all x K, i.e. there exists G B such that µ(g) = 0 and p(x) 0 on K\G. K = K\G (from the support definition). Let x K. There is a sequence (x l ) K\G such that x l x, as l. By continuity of p and p(x l ) 0, one has p(x) 0. V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 19 / 47

The K Moment Problem Definition A sequence y has a representing measure on K if there exists a finite measure µ supported on K such that y α = K x α µ(dx), α N n. V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 20 / 47

The K Moment Problem L y (q) : q R[x] α q α y α Theorem [Putinar 93] Let K be compact and Q(K) be Archimedean. Then y has a representing measure on K iff L y (σ) 0, L y (g j σ) 0, σ Σ[x]. V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 20 / 47

The K Moment Problem Theorem [Lasserre 11] Let K be compact and µ M + be arbitrary fixed with moments y α = K x α µ(dx), α N n. Then a polynomial p is nonnegative on K iff M k (p y) 0, k N. V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 20 / 47

Hierarchy of Outer Approximations Cone of nonnegative polynomials C(K) d R d [x] Each entry of the matrix M k (p y) is linear in the coefficients of p The set k := {p R d [x] : M k (p y) 0} is closed and convex, called spectrahedron Nested outer approximations: 0 1 k C(K) d V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 21 / 47

Hierarchy of Outer Approximations Hierarchy of upper bounds for p := inf x K p(x) Theorem [Lasserre 11] Let K be closed and µ M + (K) be arbitrary fixed with moments (y α ), α N n. Consider the hierarchy of SDP: Then u k p, as k. u k := max{λ : M k ((p λ) y) 0} = max{λ : λ M k (y) M k (p y)}. V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 22 / 47

Hierarchy of Outer Approximations Hierarchy of upper bounds for p := inf x K p(x) Computing u k : GENERALIZED EIGENVALUE PROBLEM for the pair [M k (p y), M k (y)]. Index the matrices in the basis of orthonormal polynomials w.r.t. µ: u k = max{λ : λ I M k (p y)} = λ min (M k (p y)), a standard MINIMAL EIGENVALUE PROBLEM. V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 22 / 47

Hierarchy of Outer Approximations Primal-Dual Moment-SOS (Primal) (Dual) u k := min p(x) σ(x) dµ(x) K u k := max λ s.t. σ(x) dµ(x) = 1, s.t. λ R, K σ Σ k [x] λ M k (y) M k (p y). Then u k, u k p, as k. V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 23 / 47

Interpretation of the Primal Problem u k { := min p σ dµ : ν(k) = 1, ν(r n \K) = 0, σ Σ ν K }{{} k [x] } dν The measure ν approximates the DIRAC measure δ x=x at a global minimizer x K and 1 ν is absolutely continuous w.r.t. µ 2 the density of ν is σ Σ k [x] V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 24 / 47

Example with uniform probability measure Polynomial p := 0.375 5x + 21x 2 32x 3 + 16x 4 on K := [0, 1] V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 25 / 47

Example with uniform probability measure Probability Density σ Σ 10 [x] V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 25 / 47

Extension to the non-compact case In this case, the measure µ needs to satisfy CARLEMAN-type sufficient condition to limit the growth of its moments (y α ): L y (x 2t i ) 1/(2t) = +, i = 1,..., n. t=1 e.g. dµ(x) := exp( x 2 2 /2) dµ 0, with µ 0 M + (K) finite V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 26 / 47

Extension to the non-compact case dµ(x) := exp( x 2 2 /2) dx, for K = Rn dµ(x) := exp( n i=1 x i) dx, for K = R n + dµ(x) := dx, when K is a box, simplex V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 26 / 47

Introduction Moment-SOS relaxations Another look at Nonnegativity New Applications of Moment-SOS Hierarchies Conclusion

Introduction Moment-SOS relaxations Another look at Nonnegativity New Applications of Moment-SOS Hierarchies Semialgebraic Maxplus Optimization Formal Nonlinear Optimization Pareto Curves Polynomial Images of Semialgebraic Sets Program Analysis with Polynomial Templates Conclusion

General informal Framework Given K a compact set and f a transcendental function, bound f = inf x K f (x) and prove f 0 f is underestimated by a semialgebraic function f sa Reduce the problem f sa := inf x K f sa (x) to a polynomial optimization problem (POP) V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 27 / 47

General informal Framework Approximation theory: Chebyshev/Taylor models mandatory for non-polynomial problems hard to combine with Sum-of-Squares techniques (degree of approximation) V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 27 / 47

Maxplus Approximation Initially introduced to solve Optimal Control Problems [Fleming-McEneaney 00] Curse of dimensionality reduction [McEaneney Kluberg, Gaubert-McEneaney-Qu 11, Qu 13]. Allowed to solve instances of dim up to 15 (inaccessible by grid methods) In our context: approximate transcendental functions V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 28 / 47

Maxplus Approximation Definition Let γ 0. A function φ : R n R is said to be γ-semiconvex if the function x φ(x) + γ 2 x 2 2 is convex. y par + a 1 par + a 2 arctan par a 2 m a 1 a 2 M a par a 1 V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 28 / 47

Nonlinear Function Representation Exact parsimonious maxplus representations y a V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 29 / 47

Nonlinear Function Representation Exact parsimonious maxplus representations y a V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 29 / 47

Nonlinear Function Representation Abstract syntax tree representations of multivariate transcendental functions: leaves are semialgebraic functions of A nodes are univariate functions of D or binary operations V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 29 / 47

Nonlinear Function Representation For the Simple Example from Flyspeck: + l(x) arctan r(x) V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 29 / 47

Maxplus Optimization Algorithm First iteration: + y arctan l(x) arctan r(x) m a 1 par a 1 M a 1 control point {a 1 }: m 1 = 4.7 10 3 < 0 V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 30 / 47

Maxplus Optimization Algorithm Second iteration: + y arctan l(x) arctan r(x) m a 2 par a 2 a 1 par a 1 M a 2 control points {a 1, a 2 }: m 2 = 6.1 10 5 < 0 V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 30 / 47

Maxplus Optimization Algorithm Third iteration: y + arctan l(x) arctan r(x) m a 2 a 3 par a 2 par par a 3 a 1 a a 1 M 3 control points {a 1, a 2, a 3 }: m 3 = 4.1 10 6 > 0 OK! V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 30 / 47

Contributions Published: X. Allamigeon, S. Gaubert, V. Magron, and B. Werner. Certification of inequalities involving transcendental functions: combining sdp and max-plus approximation, ECC Conference 2013. X. Allamigeon, S. Gaubert, V. Magron, and B. Werner. Certification of bounds of non-linear functions: the templates method, CICM Conference, 2013. In revision: X. Allamigeon, S. Gaubert, V. Magron, and B. Werner. Certification of Real Inequalities Templates and Sums of Squares, arxiv:1403.5899, 2014. V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 31 / 47

Introduction Moment-SOS relaxations Another look at Nonnegativity New Applications of Moment-SOS Hierarchies Semialgebraic Maxplus Optimization Formal Nonlinear Optimization Pareto Curves Polynomial Images of Semialgebraic Sets Program Analysis with Polynomial Templates Conclusion

The General Formal Framework We check the correctness of SOS certificates for POP We build certificates to prove interval bounds for semialgebraic functions We bound formally transcendental functions with semialgebraic approximations V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 32 / 47

Formal SOS bounds When q Q(K), σ 0,..., σ m is a positivity certificate for q Check symbolic polynomial equalities q = q in COQ Existing tactic ring [Grégoire-Mahboubi 05] Polynomials coefficients: arbitrary-size rationals bigq [Grégoire-Théry 06] Much simpler to verify certificates using sceptical approach Extends also to semialgebraic functions V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 33 / 47

Formal Nonlinear Optimization Inequality #boxes Time Time 9922699028 39 190 s 2218 s 3318775219 338 1560 s 19136 s Comparable with Taylor interval methods in HOL-LIGHT [Hales-Solovyev 13] Bottleneck of informal optimizer is SOS solver 22 times slower! = Current bottleneck is to check polynomial equalities V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 34 / 47

Contribution For more details on the formal side: X. Allamigeon, S. Gaubert, V. Magron and B. Werner. Formal Proofs for Nonlinear Optimization. Submitted for publication, arxiv:1404.7282 V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 35 / 47

Introduction Moment-SOS relaxations Another look at Nonnegativity New Applications of Moment-SOS Hierarchies Semialgebraic Maxplus Optimization Formal Nonlinear Optimization Pareto Curves Polynomial Images of Semialgebraic Sets Program Analysis with Polynomial Templates Conclusion

Bicriteria Optimization Problems Let f 1, f 2 R d [x] two conflicting criteria Let S := {x R n : g 1 (x) 0,..., g m (x) 0} a semialgebraic set { } (P) min (f 1(x) f 2 (x)) x S Assumption The image space R 2 is partially ordered in a natural way (R 2 + is the ordering cone). V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 36 / 47

Bicriteria Optimization Problems g 1 := (x 1 2) 3 /2 x 2 + 2.5, g 2 := x 1 x 2 + 8( x 1 + x 2 + 0.65) 2 + 3.85, S := {x R 2 : g 1 (x) 0, g 2 (x) 0}. f 1 := (x 1 + x 2 7.5) 2 /4 + ( x 1 + x 2 + 3) 2, f 2 := (x 1 1) 2 /4 + (x 2 4) 2 /4. V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 36 / 47

Parametric sublevel set approximation Inspired by previous research on multiobjective linear optimization [Gorissen-den Hertog 12] Workaround: reduce P to a parametric POP (P λ ) : f (λ) := min x S { f 2(x) : f 1 (x) λ }, V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 37 / 47

A Hierarchy of Polynomial underestimators Moment-SOS approach [Lasserre 10]: (D d ) max q R 2d [λ] 2d q k /(1 + k) k=0 s.t. f 2 (x) q(λ) Q 2d (K). The hierarchy (D d ) provides a sequence (q d ) of polynomial underestimators of f (λ). lim d 1 0 (f (λ) q d (λ))dλ = 0 V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 38 / 47

A Hierarchy of Polynomial underestimators Degree 4 V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 39 / 47

A Hierarchy of Polynomial underestimators Degree 6 V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 39 / 47

A Hierarchy of Polynomial underestimators Degree 8 V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 39 / 47

Contributions Numerical schemes that avoid computing finitely many points. Pareto curve approximation with polynomials, convergence guarantees in L 1 -norm V. Magron, D. Henrion, J.B. Lasserre. Approximating Pareto Curves using Semidefinite Relaxations. Operations Research Letters. arxiv:1404.4772, April 2014. V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 40 / 47

Introduction Moment-SOS relaxations Another look at Nonnegativity New Applications of Moment-SOS Hierarchies Semialgebraic Maxplus Optimization Formal Nonlinear Optimization Pareto Curves Polynomial Images of Semialgebraic Sets Program Analysis with Polynomial Templates Conclusion

Approximation of sets defined with Let B R 2 be the unit ball and assume that f (S) B. Another point of view: with f (S) = {y B : x S s.t. h(x, y) 0}, h(x, y) := y f (x) 2 2 = (y 1 f 1 (x)) 2 + (y 2 f 2 (x)) 2. Approximate f (S) as closely as desired by a sequence of sets of the form : Θ d := {y B : q d (y) 0}, for some polynomials q d R 2d [y]. V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 41 / 47

A Hierarchy of Outer approximations for f (S) f (x) := (x 1 + x 1 x 2, x 2 x 3 1 )/2 Degree 2 V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 42 / 47

A Hierarchy of Outer approximations for f (S) f (x) := (x 1 + x 1 x 2, x 2 x 3 1 )/2 Degree 4 V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 42 / 47

A Hierarchy of Outer approximations for f (S) f (x) := (x 1 + x 1 x 2, x 2 x 3 1 )/2 Degree 6 V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 42 / 47

A Hierarchy of Outer approximations for f (S) f (x) := (x 1 + x 1 x 2, x 2 x 3 1 )/2 Degree 8 V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 42 / 47

Introduction Moment-SOS relaxations Another look at Nonnegativity New Applications of Moment-SOS Hierarchies Semialgebraic Maxplus Optimization Formal Nonlinear Optimization Pareto Curves Polynomial Images of Semialgebraic Sets Program Analysis with Polynomial Templates Conclusion

One-loop with Conditional Branching r, s, T i, T e R[x] x 0 X 0, with X 0 semialgebraic set x = x 0 ; while (r(x) 0){ if (s(x) 0){ x = T i (x); } else { x = T e (x); } } V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 43 / 47

Bounding Template using SOS Sufficient condition to get bounding inductive invariant: α := min q R[x] sup q(x) x X 0 s.t. q q T i 0, q q T e 0, q 2 2 0. Nontrivial correlations via polynomial templates q(x) {x : q(x) α} X k k N V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 44 / 47

Bounds for k N X k X 0 := [0.9, 1.1] [0, 0.2] r(x) := 1 s(x) := 1 x 2 1 x 2 2 T i (x) := (x 2 1 + x 3 2, x3 1 + x2 2) T e (x) := ( 1 2 x2 1 + 2 5 x3 2, 3 5 x3 1 + 3 10 x2 2) Degree 6 V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 45 / 47

Bounds for k N X k X 0 := [0.9, 1.1] [0, 0.2] r(x) := 1 s(x) := 1 x 2 1 x 2 2 T i (x) := (x 2 1 + x 3 2, x3 1 + x2 2) T e (x) := ( 1 2 x2 1 + 2 5 x3 2, 3 5 x3 1 + 3 10 x2 2) Degree 8 V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 45 / 47

Bounds for k N X k X 0 := [0.9, 1.1] [0, 0.2] r(x) := 1 s(x) := 1 x 2 1 x 2 2 T i (x) := (x 2 1 + x 3 2, x3 1 + x2 2) T e (x) := ( 1 2 x2 1 + 2 5 x3 2, 3 5 x3 1 + 3 10 x2 2) Degree 10 V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 45 / 47

Contribution For more details: A. Adjé and V. Magron. Polynomial Template Generation using Sum-of-Squares Programming. Submitted for publication, arxiv:1409.3941 V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 46 / 47

Introduction Moment-SOS relaxations Another look at Nonnegativity New Applications of Moment-SOS Hierarchies Conclusion

Conclusion With MOMENT-SOS HIERARCHIES, you can Optimize nonlinear (transcendental) functions Approximate Pareto Curves, images and projections of semialgebraic sets Analyze programs V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 47 / 47

Conclusion Further research: Alternative polynomial bounds using geometric programming (T. de Wolff, S. Iliman) Mixed LP/SOS certificates (trade-off CPU/precision) V. Magron Semialgebraic Relaxations using Moment-SOS hierarchies 47 / 47

End Thank you for your attention! http://homepages.laas.fr/vmagron/