LINEAR PROGRAMMING II

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

LINEAR PROGRAMMING I. a refreshing example standard form fundamental questions geometry linear algebra simplex algorithm

Lecture slides by Kevin Wayne

Class Meeting #20 COS 226 Spring 2018

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

Linear Programming. Linear Programming I. Lecture 1. Linear Programming. Linear Programming

Linear Programming. Linear Programming. Brewery Problem: A Toy LP Example. Applications

Today: Linear Programming (con t.)

! Fast commercial solvers: CPLEX, OSL. ! Powerful modeling languages: AMPL, GAMS. ! Ranked among most important scientific advances of 20 th century.

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)

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

Part 1. The Review of Linear Programming

Duality Theory, Optimality Conditions

Lectures 6, 7 and part of 8

Sensitivity Analysis and 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)

Lecture 10: Linear programming duality and sensitivity 0-0

Introduction to linear programming using LEGO.

4.6 Linear Programming duality

"SYMMETRIC" PRIMAL-DUAL PAIR

4. Algebra and Duality

IE 5531: Engineering Optimization I

Linear and Combinatorial Optimization

Farkas Lemma, Dual Simplex and Sensitivity Analysis

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

Linear Programming Duality

Sensitivity Analysis and Duality in LP

Approximate Farkas Lemmas in Convex Optimization

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

6. Linear Programming

Chapter 1 Linear Programming. Paragraph 5 Duality

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

Lecture Note 18: Duality

Chap6 Duality Theory and Sensitivity Analysis

CO 250 Final Exam Guide

Algorithms. Linear Programming. brewer s problem simplex algorithm implementations duality modeling

CS675: Convex and Combinatorial Optimization Fall 2014 Combinatorial Problems as Linear Programs. Instructor: Shaddin Dughmi

Week 3 Linear programming duality

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

EE364a Review Session 5

Chapter 1: Linear Programming

Lecture 5. Theorems of Alternatives and Self-Dual Embedding

Planning and Optimization

Part IB Optimisation

Linear programming: Theory

Chapter 2: Preliminaries and elements of convex analysis

2.098/6.255/ Optimization Methods Practice True/False Questions

LECTURE 10 LECTURE OUTLINE

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

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

4. Duality and Sensitivity

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

Summary of the simplex method

Discrete Optimization

The Simplex Algorithm

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

SAMPLE QUESTIONS. b = (30, 20, 40, 10, 50) T, c = (650, 1000, 1350, 1600, 1900) T.

Solving Dual Problems

OPERATIONS RESEARCH. Michał Kulej. Business Information Systems

IE 521 Convex Optimization Homework #1 Solution

MS-E2140. Lecture 1. (course book chapters )

Introduction to optimization

Understanding the Simplex algorithm. Standard Optimization Problems.

Lecture 3: Semidefinite Programming

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

II. Analysis of Linear Programming Solutions

Lecture 8. Strong Duality Results. September 22, 2008

CS675: Convex and Combinatorial Optimization Fall 2016 Combinatorial Problems as Linear and Convex Programs. Instructor: Shaddin Dughmi

F 1 F 2 Daily Requirement Cost N N N

Convex Optimization & Lagrange Duality

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

Thursday, May 24, Linear Programming

OPTIMISATION 3: NOTES ON THE SIMPLEX ALGORITHM

BBM402-Lecture 20: LP Duality

Chap 2. Optimality conditions

Chapter 3, Operations Research (OR)

Fundamental Theorems of Optimization

MS-E2140. Lecture 1. (course book chapters )

Operations Research. Duality in linear programming.

Fundamentals of Operations Research. Prof. G. Srinivasan. Indian Institute of Technology Madras. Lecture No. # 15

Review Solutions, Exam 2, Operations Research

OPTIMISATION 2007/8 EXAM PREPARATION GUIDELINES

The Dual Simplex Algorithm

Mathematical Optimisation, Chpt 2: Linear Equations and inequalities

Teaching Duality in Linear Programming - the Multiplier Approach

1 Review Session. 1.1 Lecture 2

Linear Programming Inverse Projection Theory Chapter 3

Motivation. Lecture 2 Topics from Optimization and Duality. network utility maximization (NUM) problem:

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

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

C&O 355 Mathematical Programming Fall 2010 Lecture 2. N. Harvey

Theory and Internet Protocols

Linear Programming. Operations Research. Anthony Papavasiliou 1 / 21

COT 6936: Topics in Algorithms! Giri Narasimhan. ECS 254A / EC 2443; Phone: x3748

An introductory example

Duality Theory of Constrained Optimization

+ 5x 2. = x x. + x 2. Transform the original system into a system x 2 = x x 1. = x 1

4TE3/6TE3. Algorithms for. Continuous Optimization

MATH2070 Optimisation

How to Take the Dual of a Linear Program

Transcription:

LINEAR PROGRAMMING II LP duality strong duality theorem bonus proof of LP duality applications Lecture slides by Kevin Wayne Last updated on 7/25/17 11:09 AM

LINEAR PROGRAMMING II LP duality Strong duality theorem Bonus proof of LP duality Applications

LP duality Primal problem. (P) max 13A + 23B s. t. 5A + 15B 480 4A + 4B 160 35A + 20B 1190 A, B 0 Goal. Find a lower bound on optimal value. Easy. Any feasible solution provides one. Ex 1. (A, B) = (34, 0) z* 442 Ex 2. (A, B) = (0, 32) z* 736 Ex 3. (A, B) = (7.5, 29.5) z* 776 Ex 4. (A, B) = (12, 28) z* 800 3

LP duality Primal problem. (P) max 13A + 23B s. t. 5A + 15B 480 4A + 4B 160 35A + 20B 1190 A, B 0 Goal. Find an upper bound on optimal value. Ex 1. Multiply 2 nd inequality by 6: 24 A + 24 B 960. z* = 13 A + 23 B 24 A + 24 B 960. objective function 4

LP duality Primal problem. (P) max 13A + 23B s. t. 5A + 15B 480 4A + 4B 160 35A + 20B 1190 A, B 0 Goal. Find an upper bound on optimal value. Ex 2. Add 2 times 1 st inequality to 2 nd inequality: z* = 13 A + 23 B 14 A + 34 B 1120. 5

LP duality Primal problem. (P) max 13A + 23B s. t. 5A + 15B 480 4A + 4B 160 35A + 20B 1190 A, B 0 Goal. Find an upper bound on optimal value. Ex 2. Add 1 times 1 st inequality to 2 times 2 nd inequality: z* = 13 A + 23 B 13 A + 23 B 800. Recall lower bound. (A, B) = (34, 0) z* 442 Combine upper and lower bounds: z* = 800. 6

LP duality Primal problem. (P) max 13A + 23B s. t. 5A + 15B 480 4A + 4B 160 35A + 20B 1190 A, B 0 Idea. Add nonnegative combination (C, H, M) of the constraints s.t. 13A + 23B (5C + 4H + 35M ) A + (15C + 4H + 20M ) B 480C +160H +1190M Dual problem. Find best such upper bound. (D) min 480C + 160H + 1190M s. t. 5C + 4H + 35M 13 15C + 4H + 20M 23 C, H, M 0 7

LP duality: economic interpretation Brewer: find optimal mix of beer and ale to maximize profits. (P) max 13A + 23B s. t. 5A + 15B 480 4A + 4B 160 35A + 20B 1190 A, B 0 Entrepreneur: buy individual resources from brewer at min cost. C, H, M = unit price for corn, hops, malt. Brewer won t agree to sell resources if 5C + 4H + 35M < 13. (D) min 480C + 160H + 1190M s. t. 5C + 4H + 35M 13 15C + 4H + 20M 23 C, H, M 0 8

LP duals Canonical form. (P) max c T x (D) min y T b s. t. Ax b s. t. A T y c x 0 y 0 9

Double dual Canonical form. (P) max c T x (D) min y T b s. t. Ax b s. t. A T y c x 0 y 0 Property. The dual of the dual is the primal. Pf. Rewrite (D) as a maximization problem in canonical form; take dual. (D') max y T b (DD) min c T z s. t. A T y c s. t. (A T ) T z b y 0 z 0 10

Taking duals LP dual recipe. Primal (P) maximize minimize Dual (D) constraints a x = b i a x b a x b i y i unrestricted y i 0 y i 0 variables variables x j 0 x j 0 unrestricted a T y c j a T y c j a T y = c j constraints Pf. Rewrite LP in standard form and take dual. 11

LINEAR PROGRAMMING II LP duality strong duality theorem bonus proof of LP duality applications

LP strong duality Theorem. [Gale Kuhn Tucker 1951, Dantzig von Neumann 1947] For A R m n, b R m, c R n, if (P) and (D) are nonempty, then max = min. (P) max c T x (D) min y T b s. t. Ax b s. t. A T y c x 0 y 0 Generalizes: Dilworth s theorem. König Egervary theorem. Max-flow min-cut theorem. von Neumann s minimax theorem. Pf. [ahead] 13

LP weak duality Theorem. For A R m n, b R m, c R n, if (P) and (D) are nonempty, then max min. (P) max c T x (D) min y T b s. t. Ax b s. t. A T y c x 0 y 0 Pf. Suppose x R m is feasible for (P) and y R n is feasible for (D). y 0, A x b y T A x y T b x 0, A T y c y T A x c T x Combine: c T x y T A x y T b. 14

Projection lemma Weierstrass theorem. Let X be a compact set, and let f(x) be a continuous function on X. Then min { f(x) : x X } exists. Projection lemma. Let X R m be a nonempty closed convex set, and let y X. Then there exists x * X with minimum distance from y. Moreover, for all x X we have (y x*) T (x x*) 0. obtuse angle y x 2 y x x* X 15

Projection lemma Weierstrass theorem. Let X be a compact set, and let f(x) be a continuous function on X. Then min { f(x) : x X } exists. Projection lemma. Let X R m be a nonempty closed convex set, and let y X. Then there exists x * X with minimum distance from y. Moreover, for all x X we have (y x*) T (x x*) 0. Pf. Define f(x) = y x. Want to apply Weierstrass, but X not necessarily bounded. X φ there exists xʹ X. Define Xʹ = { x X : y x y xʹ } so that Xʹ is closed, bounded, and y x* Xʹ x xʹ min { f(x) : x X } = min { f(x) : x Xʹ }. By Weierstrass, min exists. X 16

Projection lemma Weierstrass theorem. Let X be a compact set, and let f(x) be a continuous function on X. Then min { f(x) : x X } exists. Projection lemma. Let X R m be a nonempty closed convex set, and let y X. Then there exists x * X with minimum distance from y. Moreover, for all x X we have (y x*) T (x x*) 0. Pf. x* min distance y x * 2 y x 2 for all x X. By convexity: if x X, then x* + ε (x x*) X for all 0 < ε < 1. y x* 2 y x* ε(x x*) 2 = y x* 2 + ε 2 (x x*) 2 2 ε (y x*) T (x - x*) Thus, (y x*) T (x - x*) ½ ε (x x*) 2. Letting ε 0 +, we obtain the desired result. 17

Separating hyperplane theorem Theorem. Let X R m be a nonempty closed convex set, and let y X. Then there exists a hyperplane H = { x R m : a T x = α } where a R m, α R that separates y from X. a T x α for all x X a T y < α Pf. Let x* be closest point in X to y. By projection lemma, (y x*) T (x x*) 0 for all x X Choose a = x * y 0 and α = a T x*. If x X, then a T (x x*) 0; thus a T x a T x* = α. Also, at y = a T (x* a) = α a 2 < α y x* x H = { x R m : a T x = α} 18 X

Farkas lemma Theorem. For A R m n, b R m exactly one of the following two systems holds: (I) x R n (II) y R m s. t. Ax = b s. t. A T y 0 x 0 y T b < 0 Pf. [not both] Suppose x satisfies (I) and y satisfies (II). Then 0 > y T b = y T Ax 0, a contradiction. Pf. [at least one] Suppose (I) infeasible. We will show (II) feasible. Consider S = { A x : x 0 } so that S closed, convex, b S. Let y R m, α R be a hyperplane that separates b from S: y T b < α, y T s α for all s S. 0 S α 0 y T b < 0 y T Ax α for all x 0 y T A 0 since x can be arbitrarily large. 19

Another theorem of the alternative Corollary. For A R m n, b R m exactly one of the following two systems holds: (I) x R n s. t. Ax b x 0 (II) y R m s. t. A T y 0 y T b < 0 y 0 Pf. Apply Farkas lemma to: (I' ) x R n, s R m (II' ) y R m s. t. A x + I s = b s. t. A T y 0 x, s 0 I y 0 y T b < 0 20

LP strong duality Theorem. [strong duality] For A R m n, b R m, c R n, if (P) and (D) are nonempty then max = min. (P) max c T x (D) min y T b s. t. Ax b s. t. A T y c x 0 y 0 Pf. [max min] Weak LP duality. Pf. [min max] Suppose max < α. We show min < α. (I) x R n (II) y R m, z R s. t. Ax b s. t. A T y c z 0 c T x α y T b α z < 0 x 0 y, z 0 By definition of α, (I) infeasible (II) feasible by Farkas corollary. 21

LP strong duality (II) y R m, z R s. t. A T y cz 0 y T b α z < 0 y, z 0 Let y, z be a solution to (II). Case 1. [z = 0] Then, { y R m : A T y 0, y T b < 0, y 0 } is feasible. Farkas Corollary { x R n : Ax b, x 0 } is infeasible. Contradiction since by assumption (P) is nonempty. Case 2. [z > 0] Scale y, z so that y satisfies (II) and z = 1. Resulting y feasible to (D) and y T b < α. 22

LINEAR PROGRAMMING II LP duality strong duality theorem bonus proof of LP duality applications

Strong duality theorem Theorem. For A R m n, b R m, c R n, if (P) and (D) are nonempty, then max = min. (P) max c T x s. t. Ax = b x 0 (D) min y T b s. t. A T y c 24

Review: simplex tableaux subtract c B T A B -1 times constraints c B T x B + c N T x N = Z A B x B + A N x N = b x B, x N 0 (c N T c B T A B 1 A N ) x N = Z c B T A B 1 b I x B + A 1 B A N x N = A 1 B b x B, x N 0 initial tableaux tableaux corresponding to basis B multiply by A B -1 Primal solution. x B = A B -1 b 0, x N = 0 Optimal basis. c N T c B T A B -1 A N 0 25

Simplex tableaux: dual solution subtract c B T A B -1 times constraints c B T x B + c N T x N = Z A B x B + A N x N = b x B, x N 0 (c N T c B T A B 1 A N ) x N = Z c B T A B 1 b I x B + A 1 B A N x N = A 1 B b x B, x N 0 initial tableaux tableaux corresponding to basis B multiply by A B -1 Primal solution. x B = A B -1 b 0, x N = 0 Optimal basis. c N T c B T A B -1 A N 0 Dual solution. y T = c T B A B -1 y T b = c T 1 B A B b = c T B x B + c T B x B = c T x min max [ ] y T A = y T A B y T A N [ ] [ c T -1 B A B A ] N = c B T A B -1 A B c B T A B -1 A N = c B T = c T [ T T c B c ] N dual feasible 26

Simplex algorithm: LP duality subtract c B T A B -1 times constraints c B T x B + c N T x N = Z A B x B + A N x N = b x B, x N 0 (c N T c B T A B 1 A N ) x N = Z c B T A B 1 b I x B + A 1 B A N x N = A 1 B b x B, x N 0 initial tableaux tableaux corresponding to basis B multiply by A B -1 Primal solution. x B = A B -1 b 0, x N = 0 Optimal basis. c N T c B T A B -1 A N 0 Dual solution. y T = c T B A B -1 Simplex algorithm yields constructive proof of LP duality. 27

LINEAR PROGRAMMING II LP duality strong duality theorem alternate proof of LP duality applications

LP duality: economic interpretation Brewer: find optimal mix of beer and ale to maximize profits. (P) max 13A + 23B s. t. 5A + 15B 480 4A + 4B 160 35A + 20B 1190 A, B 0 A* = 12 B* = 28 OPT = 800 Entrepreneur: buy individual resources from brewer at min cost. (D) min 480C + 160H + 1190M s. t. 5C + 4H + 35M 13 15C + 4H + 20M 23 C, H, M 0 C* = 1 H* = 2 M* = 0 OPT = 800 LP duality. Market clears. 29

LP duality: sensitivity analysis Q. How much should brewer be willing to pay (marginal price) for additional supplies of scarce resources? A. corn $1, hops $2, malt $0. Q. Suppose a new product light beer is proposed. It requires 2 corn, 5 hops, 24 malt. How much profit must be obtained from light beer to justify diverting resources from production of beer and ale? A. At least 2 ($1) + 5 ($2) + 24 ($0) = $12 / barrel. 30

LP is in NP co-np LP. For A R m n, b R m, c R n, α R, does there exist x R n such that: Ax = b, x 0, c T x α? Theorem. LP is in NP co-np. Pf. Already showed LP is in NP. If LP is infeasible, then apply Farkas lemma to get certificate of infeasibility: (II) y R m, z R s. t. A T y 0 y T b α z < 0 z 0 or equivalently, y T b α z = 1 31