Algorithmic Game Theory and Applications. Lecture 7: The LP Duality Theorem

Similar documents
Algorithmic Game Theory and Applications. Lecture 4: 2-player zero-sum games, and the Minimax Theorem

LINEAR PROGRAMMING II

Today: Linear Programming (con t.)

Lectures 6, 7 and part of 8

Algorithmic Game Theory and Applications. Lecture 5: Introduction to Linear Programming

Introduction to Mathematical Programming IE406. Lecture 10. Dr. Ted Ralphs

Example Problem. Linear Program (standard form) CSCI5654 (Linear Programming, Fall 2013) Lecture-7. Duality

Lecture Notes 3: Duality

Lecture 10: Linear programming. duality. and. The dual of the LP in standard form. maximize w = b T y (D) subject to A T y c, minimize z = c T x (P)

Linear Programming Duality

The Simplex Algorithm

Lecture 5. x 1,x 2,x 3 0 (1)

Lecture 7 Duality II

Game Theory. Greg Plaxton Theory in Programming Practice, Spring 2004 Department of Computer Science University of Texas at Austin

CSCI5654 (Linear Programming, Fall 2013) Lecture-8. Lecture 8 Slide# 1

Chapter 1 Linear Programming. Paragraph 5 Duality

Lecture 10: Linear programming duality and sensitivity 0-0

Note 3: LP Duality. If the primal problem (P) in the canonical form is min Z = n (1) then the dual problem (D) in the canonical form is max W = m (2)

3. Duality: What is duality? Why does it matter? Sensitivity through duality.

The Strong Duality Theorem 1

Topic: Primal-Dual Algorithms Date: We finished our discussion of randomized rounding and began talking about LP Duality.

BBM402-Lecture 20: LP Duality

Review Solutions, Exam 2, Operations Research

Linear Programming Inverse Projection Theory Chapter 3

Linear Programming: Chapter 5 Duality

3. Linear Programming and Polyhedral Combinatorics

Week 3 Linear programming duality

Part 1. The Review of Linear Programming

Understanding the Simplex algorithm. Standard Optimization Problems.

Introduction to optimization

3. Linear Programming and Polyhedral Combinatorics

Part IB Optimisation

LP Duality: outline. Duality theory for Linear Programming. alternatives. optimization I Idea: polyhedra

4.6 Linear Programming duality

Duality. Peter Bro Mitersen (University of Aarhus) Optimization, Lecture 9 February 28, / 49

II. Analysis of Linear Programming Solutions

Lecture Note 18: Duality

The Primal-Dual Algorithm P&S Chapter 5 Last Revised October 30, 2006

Linear Programming Duality P&S Chapter 3 Last Revised Nov 1, 2004

- Well-characterized problems, min-max relations, approximate certificates. - LP problems in the standard form, primal and dual linear programs

Discrete Optimization

4. Duality and Sensitivity

Game Theory: Lecture 3

Algorithms and Theory of Computation. Lecture 13: Linear Programming (2)

Farkas Lemma, Dual Simplex and Sensitivity Analysis

CSC373: Algorithm Design, Analysis and Complexity Fall 2017 DENIS PANKRATOV NOVEMBER 1, 2017

Zero-Sum Games Public Strategies Minimax Theorem and Nash Equilibria Appendix. Zero-Sum Games. Algorithmic Game Theory.

princeton univ. F 13 cos 521: Advanced Algorithm Design Lecture 17: Duality and MinMax Theorem Lecturer: Sanjeev Arora

F 1 F 2 Daily Requirement Cost N N N

Lecture #21. c T x Ax b. maximize subject to

Introduction to linear programming

Sensitivity Analysis and Duality

Theory and Internet Protocols

Planning and Optimization

1 Seidel s LP algorithm

Linear and Integer Optimization (V3C1/F4C1)

CO 250 Final Exam Guide

Linear and Combinatorial Optimization

Chapter 2: Linear Programming Basics. (Bertsimas & Tsitsiklis, Chapter 1)

Chap6 Duality Theory and Sensitivity Analysis

Duality Theory, Optimality Conditions

Math 5593 Linear Programming Week 1

Midterm Review. Yinyu Ye Department of Management Science and Engineering Stanford University Stanford, CA 94305, U.S.A.

LINEAR PROGRAMMING. Relation to the Text (cont.) Relation to Material in Text. Relation to the Text. Relation to the Text (cont.

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

A Review of Linear Programming

21. Solve the LP given in Exercise 19 using the big-m method discussed in Exercise 20.

Optimisation and Operations Research

16.1 L.P. Duality Applied to the Minimax Theorem

x 1 + x 2 2 x 1 x 2 1 x 2 2 min 3x 1 + 2x 2

Sensitivity Analysis and Duality in LP

Optimization (168) Lecture 7-8-9

(P ) Minimize 4x 1 + 6x 2 + 5x 3 s.t. 2x 1 3x 3 3 3x 2 2x 3 6

Duality of LPs and Applications

Optimality, Duality, Complementarity for Constrained Optimization

COMP3121/9101/3821/9801 Lecture Notes. Linear Programming

Optimization 4. GAME THEORY

Motivating examples Introduction to algorithms Simplex algorithm. On a particular example General algorithm. Duality An application to game theory

MAT016: Optimization

Sensitivity Analysis

Chapter 3, Operations Research (OR)

4. Duality Duality 4.1 Duality of LPs and the duality theorem. min c T x x R n, c R n. s.t. ai Tx = b i i M a i R n

CS261: A Second Course in Algorithms Lecture #9: Linear Programming Duality (Part 2)

MATH 373 Section A1. Final Exam. Dr. J. Bowman 17 December :00 17:00

Optimization - Examples Sheet 1

Decision Procedures An Algorithmic Point of View

TRINITY COLLEGE DUBLIN THE UNIVERSITY OF DUBLIN. School of Mathematics

Lecture 15 (Oct 6): LP Duality

Introduction to Mathematical Programming

How to Take the Dual of a Linear Program

Duality in Linear Programs. Lecturer: Ryan Tibshirani Convex Optimization /36-725

1 Overview. 2 Extreme Points. AM 221: Advanced Optimization Spring 2016

March 13, Duality 3

CSC304: Algorithmic Game Theory and Mechanism Design Fall 2016

OPTIMISATION 2007/8 EXAM PREPARATION GUIDELINES

EE364a Review Session 5

IE 5531: Engineering Optimization I

1 The linear algebra of linear programs (March 15 and 22, 2015)

Introduction to linear programming using LEGO.

Introduction to Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras

Transcription:

Algorithmic Game Theory and Applications Lecture 7: The LP Duality Theorem Kousha Etessami

recall LP s in Primal Form 1 Maximize c 1 x 1 + c 2 x 2 +... + c n x n a 1,1 x 1 + a 1,2 x 2 +... + a 1,n x n b 1 a 2,1 x 1 + a 2,2 x 2 +... + a 2,n x n b 2...... a m,1 x 1 + a i,2 x 2 +... + a m,n x n b m x 1,..., x n 0 An LP can concisely be represented in matrix notation: Define the (m n)-matrix A by: (A) i,j = a i,j. Define (column) vectors x = [x 1,..., x n ] T, b = [b 1,..., b m ] T & c = [c 1,..., c n ] T. The LP is: Maximize c T x Ax b x 1,..., x n 0

Solving LPs against an Adversary Suppose you want to optimize this Primal LP: Maximize c T x Ax b x 1,..., x n 0 Suppose an Adversary comes along with a m-vector y R m, y 0, such that: c T y T A For any solution, x, you may have for the Primal: c T x (y T A)x (because x 0 & c T y T A) = y T (Ax) y T b (because y T 0 & Ax b) So, the adversary s goal is to minimize y T b, subject to c T y T A, i.e., to optimize the following Dual LP: Minimize b T y A T y c y 1,..., y m 0 2

The LP Duality Theorem As we saw, a feasible value of the primal LP is at most the optimal value of the dual, i.e.: Proposition ( Weak Duality ) If x R n and y R m are optimal feasible solutions to the primal and dual LPs, then: c T x b T y Amazingly, equality holds! Theorem( Strong Duality, von Neumann 47) One of the following four situations holds: 1. Both the primal and dual LPs are feasible, and for any optimal solutions x of the primal and y of the dual: c T x = b T y 2. The primal is infeasible and the dual is unbounded. 3. The primal is unbounded and the dual is infeasible. 4. Both LPs are infeasible. 3

Simplex and the Duality Theorem 4 It turns out, LP Duality follows from the proof of correctness of the Simplex algorithm (which we didn t provide). In fact, suppose Simplex on the Primal LP halts and produces an optimal solution vector x. Let y j = ĉ n+j, where ĉ n+j is the coefficient of the slack variable x n+j in the last objective function f(x) associated with the final dictionary for the primal LP. This defines y R m, and it turns out the following holds: Fact y 0, A T y c, and c T x = b T y. So, using Simplex, we can actually compute an optimal solution for the dual while we compute an optimal solution for the primal (or find out neither exists).

Complementary Slackness Useful Corollary of LP Duality: solutions x and y to the primal and dual LPs, respectively, are both optimal if and only if both of the following hold: For each primal constraint, (Ax) i b i, i = 1,..., m, either (Ax ) i = b i or yi = 0 (or both). For each dual constraint, (A T y) j c j, j = 1,..., n, either (A T y ) j = c j or x j = 0 (or both). Proof By weak duality c T x ((y ) T A)x = (y ) T (Ax ) (y ) T b By strong duality each inequality holds with equality precisely when x and y are optimal. So, when optimal, (((y ) T A) c T )x = 0. Since both ((y ) T A) c T ) 0 and x 0, it must be that for each j = 1,..., n, (A T y ) j = c j or x j = 0 Likewise, when optimal, (y ) T (b Ax ) = 0, and thus, for each i = 1,..., m, (Ax ) i = b i or y i = 0. 5

general recipe for LP duals If the primal is: 6 Maximize c T x (Ax) i b i, i = 1,..., d, (Ax) i = b i, i = d + 1,..., m, x 1,..., x r 0 Then the dual is: Minimize b T y (A T y) j c j, j = 1,..., r, (A T y) j = c j, j = r + 1,..., n, y 1,..., y d 0 Strong Duality holds also in this more general setting. Fact: The dual of the dual is the primal.

Duality and the Minimax Theorem Recall the LP for solving Minimax for Player 1 in a zero-sum game given by matrix A: Maximize v v (x T A) j 0 for j = 1,..., m 2, x 1 +... + x m1 = 1, x i 0 for j = 1,..., m 1. What is the Dual to this LP? It can be shown to be: Minimize u Subject to constraints: u (Ay) i 0 for i = 1,..., m 1, y 1 +... + y m2 = 1 y j 0 for j = 1,..., m 2. This is exactly the LP for Player 2 s optimal strategy! Thus, the minimax theorem follows from Duality: the optimal value for the two LPs is the same. 7

From Minimax to LP Duality In fact, LP Duality can also be derived from the Minimax Theorem. Consider (A a (m n)-matrix): Maximize c T x Ax b x 1,..., x n 0 Proof (sketch) that Minimax LP-duality: Consider the zero-sum payoff matrix: B = 0 A b A T 0 c b T c T 0 This is a symmetric zero-sum game: B = B T. By a simple exercise, such a game must have minimax value 0, and every minmaximizer for player 1 is also a maxminimizer for player 2. Consider a symmetric minimax profile: ((Y, X, z), (Y, X, z)) for this game. Here Y is a (row) vector of length m, and X is a (row) vector of length n, and z R. 8

more in Minimax LP-duality 9 Suppose z > 0, in the minimax strategy (Y, X, z). Note that, by the Minimax Theorem, we have AX bz 0 and cz A T Y 0 Letting y = (1/z)Y, and x = (1/z)X, we would have Ax b and A T y c, i.e., feasible solutions for the LP and its Dual. Moreover, by Useful Corollary to Minimax, player 1 can switch to ANY pure strategy j in its support (i.e., where x 1 (j) > 0) and not change its profit. Let it switch to the last row (i.e., letting z = 1). Then we also have: by cx = 0, and hence by cx = 0. Thus, by = cx The only thing left to prove is: Claim If both the LP and its Dual are feasible, the game B has some minimax profile where z > 0.

remarks 10 The claim can be proved (see [Dantzig 51], [Raghavan,HGT,Ch.20]) using facts related to the geometry of LP and Minimax: specifically the Farkas lemmas. Such Farkas Lemmas can actually be proved very nicely using Fourier-Motzkin elimination. Here is a Farkas lemma: Ax b has no solutions if and only if there exists y 0 such that y T A = 0 and y T b < 0. (HW1 asks you to prove this.) This proof is somewhat unsatisfactory because the Farkas lemmas are essentially equivalent to LPduality. (A recent modification of this proof, by [Adler 2013], avoids the use of Farkas lemmas.)

Significance of LP Duality 11 The Duality Theorem is an extremely important fact in subjects like mathematical economics and combinatorial optimization. So much so that we can not possibly do it justice. Often, you can learn something about an LP by looking at its dual. In Economics, one often sets up an LP to optimize some economic goal. Often, the dual LP can be meaningfully interpreted as a problem of optimizing some real economic counter goal. The fact that the optimal solutions of the two goals are the same is very powerful. Duality has many consequences in algorithms. For example, duality implies that LPs can be solved in NP co-np. (Of course, we know from [Khachian 79] that the LP problem is in P.)

more on algorithmic significance approximation algorithms: hard combinatorial optimization problems can often be formulated as Integer Linear Progams (ILPs). One can often use the LP-relaxation of the ILP together with its Dual to find approximate solutions and to bound the proximity of the approximate solution to the optimal. (See, e.g., [Vazirani 2001].) Many important results in combinatorics can be viewed as particular manifestations of LP Duality. Max-Flow Min-Cut Theorem; Hall s Theorem; Dilworth s Theorem; Konig-Egervary Theorem... Each result says the maximum value of one useful quantity associated with a combinatorial object is the same as the minimum value of another useful quantity associated with it. These follow from LP-Duality: dual LPs for these complementary quantities can be set up (with solutions that consist necessarily of integers, due to the LPs structure). 12

food for thought (in this case thought for food ) Recall the Diet Problem. It has the form: Minimize c T x Ax b x 1,..., x n 0 Construct the dual to this LP. What do the dual variables mean in the context of the diet problem? Try to come up with an interpretation. (Hint: try to assign consistent units of measure to the primal variables, constants, and coefficients. These will determine the units of measure of the dual variables, and will guide you toward an interpretation.) What is the dual LP trying to optimize? 13