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

Similar documents
LINEAR PROGRAMMING II

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

Chapter 1 Linear Programming. Paragraph 5 Duality

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

IE 5531: Engineering Optimization I

Lecture slides by Kevin Wayne

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

Linear Programming: Chapter 5 Duality

Chap6 Duality Theory and Sensitivity Analysis

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

Part 1. The Review of Linear Programming

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

Linear Programming Duality

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

Another max flow application: baseball

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

Lecture 10: Linear programming duality and sensitivity 0-0

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 #21. c T x Ax b. maximize subject to

4.6 Linear Programming duality

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

CSCI 1951-G Optimization Methods in Finance Part 01: Linear Programming

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)

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

AM 121: Intro to Optimization Models and Methods

Lecture Note 18: Duality

CSC Design and Analysis of Algorithms. LP Shader Electronics Example

Today: Linear Programming (con t.)

Linear and Combinatorial Optimization

Planning and Optimization

CS599: Convex and Combinatorial Optimization Fall 2013 Lecture 17: Combinatorial Problems as Linear Programs III. Instructor: Shaddin Dughmi

Duality Theory, Optimality Conditions

Lectures 6, 7 and part of 8

2.098/6.255/ Optimization Methods Practice True/False Questions

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

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

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

Summary of the simplex method

Sensitivity Analysis and Duality in LP

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

Sensitivity Analysis and Duality

OPERATIONS RESEARCH. Michał Kulej. Business Information Systems

Linear Programming Inverse Projection Theory Chapter 3

4. Duality and Sensitivity

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

Operations Research. Duality in linear programming.

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

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

Farkas Lemma, Dual Simplex and Sensitivity Analysis

CS 6820 Fall 2014 Lectures, October 3-20, 2014

Computational Complexity. IE 496 Lecture 6. Dr. Ted Ralphs

Understanding the Simplex algorithm. Standard Optimization Problems.

Review Solutions, Exam 2, Operations Research

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

F 1 F 2 Daily Requirement Cost N N N

Theory and Internet Protocols

Class Meeting #20 COS 226 Spring 2018

The use of shadow price is an example of sensitivity analysis. Duality theory can be applied to do other kind of sensitivity analysis:

Algorithms and Theory of Computation. Lecture 11: Network Flow

CS711008Z Algorithm Design and Analysis

4.5 Simplex method. LP in standard form: min z = c T x s.t. Ax = b

Outline. Outline. Outline DMP204 SCHEDULING, TIMETABLING AND ROUTING. 1. Scheduling CPM/PERT Resource Constrained Project Scheduling Model

Resource Constrained Project Scheduling Linear and Integer Programming (1)

Linear Programming. 1 An Introduction to Linear Programming

Lecture 1 Introduction

MVE165/MMG631 Linear and integer optimization with applications Lecture 5 Linear programming duality and sensitivity analysis

BBM402-Lecture 20: LP Duality

Introduction to Algorithms

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

1 Review Session. 1.1 Lecture 2

Yinyu Ye, MS&E, Stanford MS&E310 Lecture Note #06. The Simplex Method

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

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

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

Duality of LPs and Applications

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

UNIT-4 Chapter6 Linear Programming

Ann-Brith Strömberg. Lecture 4 Linear and Integer Optimization with Applications 1/10

CO350 Linear Programming Chapter 6: The Simplex Method

Math 5593 Linear Programming Week 1

Operations Research Lecture 6: Integer Programming

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

END3033 Operations Research I Sensitivity Analysis & Duality. to accompany Operations Research: Applications and Algorithms Fatih Cavdur

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

4. Algebra and Duality

29 Linear Programming

Lecture 11: Post-Optimal Analysis. September 23, 2009

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

3. Linear Programming and Polyhedral Combinatorics

Input: System of inequalities or equalities over the reals R. Output: Value for variables that minimizes cost function

MATH2070 Optimisation

How to Take the Dual of a Linear Program

An introductory example

56:171 Operations Research Fall 1998

III. Linear Programming

6.854J / J Advanced Algorithms Fall 2008

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

Discrete Optimization

CS-E4830 Kernel Methods in Machine Learning

The Simplex Algorithm

Transcription:

Algorithms and Theory of Computation Lecture 13: Linear Programming (2) Xiaohui Bei MAS 714 September 25, 2018 Nanyang Technological University MAS 714 September 25, 2018 1 / 15

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) = (12, 28) = z 800 Nanyang Technological University MAS 714 September 25, 2018 2 / 15

LP Duality Primal problem (P) max 13A + 23B s.t. 5A + 15B 480 4A + 4B 160 35A + 20B 1190 Goal: find a upper bound on optimal value. A, B 0 Ex 1. Multiply 2nd inequality by 6: 24A + 24B 960 = z = 13A + 23B 24A + 24B 960 Ex 2. Add 1 times 1st inequality to 2 times 2nd inequality = z = 13A + 23B 13A + 23B 800 Recall lower bound: (A, B) = (12, 28) = z 800 Combine upper and lower bounds: z = 800 Nanyang Technological University MAS 714 September 25, 2018 3 / 15

LP Duality 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. Dual problem (D) min 480C + 160H + 1190M s.t. 5C + 4H + 35M 13 15C + 4H + 20M 23 C, H, M 0 Nanyang Technological University MAS 714 September 25, 2018 4 / 15

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 Nanyang Technological University MAS 714 September 25, 2018 5 / 15

LP Duals Canonical form. Primal (P) max c T x s.t. Ax b x 0 Dual (D) min y T b s.t. A T y c y 0 Property The dual of the dual is the primal. Nanyang Technological University MAS 714 September 25, 2018 6 / 15

Taking Duals LP dual recipe. Primal (P) maximize minimize Dual (D) a i x = b i unrestricted constraints a i x b i y i 0 variables a i x b i y i 0 x j 0 a T y c j variables x j 0 a T y c j constraints unrestricted a T y = c j Nanyang Technological University MAS 714 September 25, 2018 7 / 15

Weak Duality Theorem Theorem If x is feasible for the primal and y is feasible for the dual, then c j x j b i y i. j i Proof. c j x j j j ( i y i a ij )x j = i,j y i a ij x j = i ( j a ij x j )y i i b i y i Nanyang Technological University MAS 714 September 25, 2018 8 / 15

Gap or No Gap? An important question Is there a gap between the largest primal value and the smallest dual value? Answer is provided by the Strong Duality Theorem Nanyang Technological University MAS 714 September 25, 2018 9 / 15

Strong Duality Theorem Theorem If the primal problem has an optimal solution x, then the dual also has an optimal solution y, and c j x j = b i y i. j i Paraphrase. If primal has an optimal solution, then there is no duality gap. Nanyang Technological University MAS 714 September 25, 2018 10 / 15

Duality Gap There are four possibilities. 1 Primal optimal, dual optimal (no gap) 2 Primal unbounded, dual infeasible (no gap) 3 Primal infeasible, dual unbounded (no gap) 4 Primal infeasible, dual infeasible (infinite gap) Nanyang Technological University MAS 714 September 25, 2018 11 / 15

Applications: Max-Flow Formulate as linear programming. s 3 2 a 1 b 1 3 t (P) max f sa + f sb s.t. f sa 3 f sb 2 f ab 1 f at 1 f bt 3 f sa f ab f at = 0 f sb + f ab f bt = 0 Nanyang Technological University MAS 714 September 25, 2018 12 / 15

Applications: Max-Flow Formulate as linear programming. s 3 2 a 1 b 1 3 t (D) min 3y sa + 2y sb + y ab + y at + 3y bt s.t. y sa + u a 1 y sb + u b 1 y ab u a + u b 0 y at u a 0 y bt u b 0 y sa, y sb, y ab, y at, y bt 0 Dual describes the min-cut problem! Nanyang Technological University MAS 714 September 25, 2018 13 / 15

History of LP 1947. Simplex algorithm. (Dantzig) 1950. Applications in many fields. military logistics operation research control theory filter design structural optimization 1979. Ellipsoid algorithm. (Khachian) first polynomial time algorithm for LP geometric divide-and-conquer solvable in O(mn 3 L) arithmetic operations L = number of bits to encode input theoretical result, not remotely practical 1984. Projective scaling algorithm. (Karmarkar) O(n 3.5 L) running time efficient implementations possible 1990. Interior point methods. O(n 3 L) running time and practical Nanyang Technological University MAS 714 September 25, 2018 14 / 15

Part I Summary Algorithm Design Techniques greedy divide and conquer dynamic programming Problems Search, Sorting, LCS Graphs traversing graphs (BFS, DFS) minimum spanning trees shortest paths network flows Linear Programming Data Structures lists, stacks, queues, union find, priority queues Nanyang Technological University MAS 714 September 25, 2018 15 / 15