Quadratic reformulation techniques for 0-1 quadratic programs

Similar documents
Semidefinite Programming Basics and Applications

Convexification of Mixed-Integer Quadratically Constrained Quadratic Programs

Nonconvex Quadratic Programming: Return of the Boolean Quadric Polytope

A Note on Representations of Linear Inequalities in Non-Convex Mixed-Integer Quadratic Programs

MIT Algebraic techniques and semidefinite optimization February 14, Lecture 3

Comparing Convex Relaxations for Quadratically Constrained Quadratic Programming

Lagrange Duality. Daniel P. Palomar. Hong Kong University of Science and Technology (HKUST)

4y Springer NONLINEAR INTEGER PROGRAMMING

E5295/5B5749 Convex optimization with engineering applications. Lecture 5. Convex programming and semidefinite programming

Convex Optimization M2

Cutting Planes for First Level RLT Relaxations of Mixed 0-1 Programs

EE 227A: Convex Optimization and Applications October 14, 2008

Lecture: Examples of LP, SOCP and SDP

The min-cut and vertex separator problem

CSC Linear Programming and Combinatorial Optimization Lecture 10: Semidefinite Programming

Solving large Semidefinite Programs - Part 1 and 2

Convex Optimization. (EE227A: UC Berkeley) Lecture 6. Suvrit Sra. (Conic optimization) 07 Feb, 2013

Semidefinite Programming

Lecture 20: November 1st

Decomposition Methods for Quadratic Zero-One Programming

5. Duality. Lagrangian

On Valid Inequalities for Quadratic Programming with Continuous Variables and Binary Indicators

Convex Optimization M2

Acyclic Semidefinite Approximations of Quadratically Constrained Quadratic Programs

Relaxations and Randomized Methods for Nonconvex QCQPs

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

Problem 1 (Exercise 2.2, Monograph)

Lecture 1. 1 Conic programming. MA 796S: Convex Optimization and Interior Point Methods October 8, Consider the conic program. min.

Convex relaxation. In example below, we have N = 6, and the cut we are considering

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

Duality. Lagrange dual problem weak and strong duality optimality conditions perturbation and sensitivity analysis generalized inequalities

Lecture: Duality.

Solution to EE 617 Mid-Term Exam, Fall November 2, 2017

Linear and non-linear programming

Lecture: Duality of LP, SOCP and SDP

A STRENGTHENED SDP RELAXATION. via a. SECOND LIFTING for the MAX-CUT PROBLEM. July 15, University of Waterloo. Abstract

Lecture 18: Optimization Programming

A A x i x j i j (i, j) (j, i) Let. Compute the value of for and

Continuous Optimisation, Chpt 9: Semidefinite Problems

ELE539A: Optimization of Communication Systems Lecture 15: Semidefinite Programming, Detection and Estimation Applications

minimize x x2 2 x 1x 2 x 1 subject to x 1 +2x 2 u 1 x 1 4x 2 u 2, 5x 1 +76x 2 1,

CE 191: Civil and Environmental Engineering Systems Analysis. LEC 05 : Optimality Conditions

A notion of Total Dual Integrality for Convex, Semidefinite and Extended Formulations

Convex Optimization Boyd & Vandenberghe. 5. Duality

Lagrange duality. The Lagrangian. We consider an optimization program of the form

Introduction to Semidefinite Programming I: Basic properties a

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

There are several approaches to solve UBQP, we will now briefly discuss some of them:

Convex relaxation. In example below, we have N = 6, and the cut we are considering

Lecture 7: Convex Optimizations

SEMIDEFINITE PROGRAM BASICS. Contents

10 Numerical methods for constrained problems

l p -Norm Constrained Quadratic Programming: Conic Approximation Methods

EE/AA 578, Univ of Washington, Fall Duality

Lagrangian-Conic Relaxations, Part I: A Unified Framework and Its Applications to Quadratic Optimization Problems

Convex Optimization and Modeling

4. Algebra and Duality

Sparse Covariance Selection using Semidefinite Programming

Lecture 1: Entropy, convexity, and matrix scaling CSE 599S: Entropy optimality, Winter 2016 Instructor: James R. Lee Last updated: January 24, 2016

Convex Optimization and Support Vector Machine

Trust Region Problems with Linear Inequality Constraints: Exact SDP Relaxation, Global Optimality and Robust Optimization

Module 04 Optimization Problems KKT Conditions & Solvers

Lecture 4: September 12

March 5, 2012 MATH 408 FINAL EXAM SAMPLE

Semidefinite and Second Order Cone Programming Seminar Fall 2001 Lecture 5

Lecture 8. Strong Duality Results. September 22, 2008

On the local stability of semidefinite relaxations

Optimality Conditions for Constrained Optimization

March 8, 2010 MATH 408 FINAL EXAM SAMPLE

Homework 5. Convex Optimization /36-725

Optimization for Communications and Networks. Poompat Saengudomlert. Session 4 Duality and Lagrange Multipliers

Lecture 14: Optimality Conditions for Conic Problems

Optimal solutions for unrelated parallel machines scheduling problems using convex quadratic reformulations

IE 521 Convex Optimization

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

minimize x subject to (x 2)(x 4) u,

10725/36725 Optimization Homework 4

Homework 3. Convex Optimization /36-725

Nonlinear Optimization: What s important?

Multi-stage convex relaxation approach for low-rank structured PSD matrix recovery

Agenda. Applications of semidefinite programming. 1 Control and system theory. 2 Combinatorial and nonconvex optimization

Online generation via offline selection - Low dimensional linear cuts from QP SDP relaxation -

Lecture Note 5: Semidefinite Programming for Stability Analysis

Copositive Programming and Combinatorial Optimization

Math Matrix Algebra

Duality Theory of Constrained Optimization

Relations between Semidefinite, Copositive, Semi-infinite and Integer Programming

The Ongoing Development of CSDP

Part IB Optimisation

Research Reports on Mathematical and Computing Sciences

Interior Point Methods: Second-Order Cone Programming and Semidefinite Programming

A Continuation Approach Using NCP Function for Solving Max-Cut Problem

Semidefinite and Second Order Cone Programming Seminar Fall 2001 Lecture 2

CANONICAL DUAL APPROACH TO SOLVING 0-1 QUADRATIC PROGRAMMING PROBLEMS. Shu-Cherng Fang. David Yang Gao. Ruey-Lin Sheu. Soon-Yi Wu

1 Overview. 2 A Characterization of Convex Functions. 2.1 First-order Taylor approximation. AM 221: Advanced Optimization Spring 2016

Duality (Continued) min f ( x), X R R. Recall, the general primal problem is. The Lagrangian is a function. defined by

TMA4180 Solutions to recommended exercises in Chapter 3 of N&W

12. Interior-point methods

On Efficient Semidefinite Relaxations for Quadratically Constrained Quadratic Programming

Compression, Matrix Range and Completely Positive Map

Transcription:

OSE SEMINAR 2014 Quadratic reformulation techniques for 0-1 quadratic programs Ray Pörn CENTER OF EXCELLENCE IN OPTIMIZATION AND SYSTEMS ENGINEERING ÅBO AKADEMI UNIVERSITY ÅBO NOVEMBER 14th 2014

2 Structure of the presentation Joint work with PhD student Otto Nissfolk and prof. Tapio Westerlund. Background Convexification and some examples Quadratic and semidefinite programming Quadratic Convex Reformulation (QCR method) Nondiagonal perturbation (NDQCR) Numerical experiments

3 0-1 Quadratic Program (QP) A standard 0-1 QP has the form: Q, A, B are matrices and q, a, b are vectors of appropriate dimensions. Some applications include: Max-Cut of a graph (unconstrained) Knapsack problems (inequality constrained) Graph bipartitioning Task allocation Quadratic assignment problems Coulomb glass Gray-scale pattern problems, taixxc instances from QAPLIB

4 Convexity The following are equivalent (Q = Q T ): The quadratic function f x = x T Qx is convex on R n. The matrix Q is positive semidefinite (psd, Q 0). All eigenvalues of Q are non-negative (λ i 0). A sufficient condition for convexity: A diagonally dominant matris is psd. Definition: A matrix Q is diagonally dominant if Q ii Q ij i i j

5 Convexification of 0-1 QPs Basic approach: If Q is indefinite, add sufficient large quadratic terms to the diagonal and subtract the same amount from the linear terms. Recall that: x i 0,1 x i 2 = x i Example 1 f x = x T 1 3 3 2 x = x 1 2 + 6x 1 x 2 + 2x 2 2 f x = x T 1 3 3 2 x = xt 3 3 3 5 x 2 3 T x = 3x1 2 + 6x 1 x 2 + 5x 2 2 2x 1 3x 2 Indefinite Positive semidefinite

6 Convexification of 0-1 QPs Example 2: a) Diagonal dominance, b) Minimum eigenvalue, c) Best diagonal min x T Qx s. t. x 0,1 4 Q = 1 2 3 2 2 2 3 4 3 3 2 0 2 4 0 2 eig(q) = 5.17 1.04 0.95 8.26 a) Diagonal dominance Q = 7 2 3 2 2 9 3 4 3 3 6 0 2 4 0 6 q = 6 7 4 8 eig( Q) = 1.66 4.90 6.88 14.56 min x T Qx q T x s. t. x [0,1] 4 optimal value = 5. 93 b) Minimum eigenvalue Q = 6.17 2 3 2 2 7.17 3 4 3 3 7.17 0 2 4 0 3.17 q = 5.17 5.17 5.17 5.17 eig( Q) = 0 4.13 6.12 13.43 min x T Qx q T x optimal value = 5. 34 s. t. x [0,1] 4

Convexification of 0-1 QPs c) The best diagonal. The QCR method allows computation of the diagonal that gives the highest optimal value of the relaxation. Q = 2.93 2 3 2 2 4.28 3 4 3 3 6.83 0 2 4 0 6.20 q = 1.93 2.28 4.83 8.20 min x T Qx q T x optimal value = 4. 08 s. t. x [0,1] 4 eig( Q) = 0 1.31 6.71 12.21 7 min x T Qx optimal value = 3 s. t. x 0,1 4 Bounding: 5. 93 5. 34 4. 08 3

Semidefinite relaxation of 0-1 QPs 8 Relaxation into a positive semidefinite matrix variable X = xx T X xx T 0 1 xt x X 0 A quadratic expression in x is linear in X: x T Qx = Q X = i j Q ij X ij Binary condition: x i 0,1 x i 2 x i = 0 X ii = x i Semidefinite relaxation: min s. t. Q X + q T x Ax = a Bx b diag X = x 1 x T x X 0

Deriving the dual problem 9 Lagrangian relaxation of 0-1 QP: f x, λ, μ, δ = x T Qx + q T x + λ T Ax a + μ T Bx b + = x T (Q + Diag δ n i=1 Q q c δ i (x i 2 x i ) )x + (q + A T λ + B T T μ δ) x λ T a μ T b Lagrangian dual problem: sup inf x T Qx + q T x + δ, λ, μ x R n c which equals a semidefinite program max s. t. t 1 t + c 2 qt 0 1 2 q Q δ R n, λ R m k, μ R +

The primal and dual 10 min s. t. Q X + q T x Ax = a Bx b diag X = x 1 x T x X 0 max s. t. t 1 t + c 2 qt 0 1 2 q Q δ R n, λ R m k, μ R + Solution give optimal values on the multipliers : δ, λ, μ. These are used to construct the best diagonal perturbation of matrix Q according to Q = Q + Diag δ.

11 Strengthening Inclusion of constraints may improve bounding quality. There are many ways to include or construct quadratic constraints. 1) Add new redundant quadratic constraints (some examples) x i x j 0, x i x j x i + x j 1, x i x j x i, x i x j x j 2) Combine and multiply existing linear constraints (some examples) p T x = s x i p T x = x i s i p T x = s (1 x i )p T x = (1 x i )s i p T x = s r T x = t pt xr T x = st x T pr T x = st Ax = a Ax a 2 = 0 x T A T Ax = a T a

12 Our strengthening Original 0-1 QP Strengthened SDP relaxation Multipliers from all quadratic constraints are used to convexify the objective function so that the lower bound becomes as high as possible. Multipliers: δ R n, α R, S, T, U, V 0

13 Convexified 0-1 QP problem

14 NDQCR method

15 NDQCR versus QCR Example 3:

16 NDQCR versus QCR Best reformulation strategy (ii) Multipliers Matrices Convexified QP

17 Boolean least squares The problem is to identify a binary signal x 0,1 n from a collection of noisy measurements.

18 Coulomb glass problem Given n sites in the plane. k of these sites are filled with electrons. Find the configuration that has minimal energy. Energy = Coulomb interaction + site specific energy Variables: x 0,1 n x i = 0, if site i is empty 1, if site i is filled min s. t. x T Qx + q T x e T x = k x 0,1 n Q ij = 0, if i = j 1, 2r ij if i j r ij

19 NDQCR on Coulomb glass problems (n=50, n=100) k = n 2 in all experiments Constraints X ij 0 and X ij x i + x j 1 are included for indeces corresponding to the p% largest elements of Q. Even a small fraction of nondiagonal elements has a large impact on the total solution time. 2% - 10% non-diagonal elements result in fastest solution times.

20 The taixxc instances from QAPLIB These instances are a special type of QAP problem where the flow matrix F is binary and rank-1. F = bb T where b 0,1 n. The objective function of QAP can be rewritten and simplified using the binary rank-1 property: trace DXFX T = trace DXbb T X T = trace DXb Xb T = trace Dyy T = trace y T Dy = y T Dy

21 NDQCR (Y 0) versus QCR on tai36c p =11 QCR NDQCR CPU time 433 s 15 s SDP gap 24 % 4 %

22 NDQCR on problem tai64c

23 Conclusions A technique for non-diagonal perturbation was presented. Non-diagonal perturbation was obtained from squared norm constraints and a set of redundant RLT inequalities. Gives tight bounding and fast solution for small to medium sized problems. Full application becomes impossible for large problems. The inclusion of just a few RLT inequalities may also have large impact on the solution time and bounding quality. Future work: Construct reasonable fast heuristic procedures to find a good set of inequalities to include.

24 Some references on quadratic reformulation 24

25 THANK YOU FOR YOUR ATTENTION 25