Linear Programming: Chapter 5 Duality

Similar documents
ORF 307: Lecture 2. Linear Programming: Chapter 2 Simplex Methods

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)

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

Review Solutions, Exam 2, Operations Research

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

Chap6 Duality Theory and Sensitivity Analysis

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

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

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

Part 1. The Review of Linear Programming

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

Understanding the Simplex algorithm. Standard Optimization Problems.

MAT016: Optimization

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

The Strong Duality Theorem 1

1 Review Session. 1.1 Lecture 2

Standard Form An LP is in standard form when: All variables are non-negativenegative All constraints are equalities Putting an LP formulation into sta

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

The Simplex Algorithm

Summary of the simplex method

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

Linear Programming Duality

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

Introduction to Mathematical Programming

F 1 F 2 Daily Requirement Cost N N N

OPERATIONS RESEARCH. Michał Kulej. Business Information Systems

CO350 Linear Programming Chapter 8: Degeneracy and Finite Termination

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

Sensitivity Analysis

Summary of the simplex method

Slack Variable. Max Z= 3x 1 + 4x 2 + 5X 3. Subject to: X 1 + X 2 + X x 1 + 4x 2 + X X 1 + X 2 + 4X 3 10 X 1 0, X 2 0, X 3 0

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

IE 5531: Engineering Optimization I

A Review of Linear Programming

UNIT-4 Chapter6 Linear Programming

Prelude to the Simplex Algorithm. The Algebraic Approach The search for extreme point solutions.

The Dual Simplex Algorithm

min 4x 1 5x 2 + 3x 3 s.t. x 1 + 2x 2 + x 3 = 10 x 1 x 2 6 x 1 + 3x 2 + x 3 14

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

Chapter 3, Operations Research (OR)

MATH 445/545 Test 1 Spring 2016

Dual Basic Solutions. Observation 5.7. Consider LP in standard form with A 2 R m n,rank(a) =m, and dual LP:

Systems Analysis in Construction

Farkas Lemma, Dual Simplex and Sensitivity Analysis

Chapter 1 Linear Programming. Paragraph 5 Duality

December 2014 MATH 340 Name Page 2 of 10 pages

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


MATH2070 Optimisation

Slide 1 Math 1520, Lecture 10

c) Place the Coefficients from all Equations into a Simplex Tableau, labeled above with variables indicating their respective columns

II. Analysis of Linear Programming Solutions

Special cases of linear programming

"SYMMETRIC" PRIMAL-DUAL PAIR

AM 121: Intro to Optimization Models and Methods

Lecture 11 Linear programming : The Revised Simplex Method

A Parametric Simplex Algorithm for Linear Vector Optimization Problems

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

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

Introduction. Very efficient solution procedure: simplex method.

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

LINEAR PROGRAMMING 2. In many business and policy making situations the following type of problem is encountered:

ORF 307: Lecture 4. Linear Programming: Chapter 3 Degeneracy

CSC Design and Analysis of Algorithms. LP Shader Electronics Example

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

Introduction to optimization

AM 121 Introduction to Optimization: Models and Methods Example Questions for Midterm 1

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

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

Lecture Notes 3: Duality

9.1 Linear Programs in canonical form

56:171 Operations Research Fall 1998

Sensitivity Analysis and Duality in LP

MATH 210 EXAM 3 FORM A November 24, 2014

4. Duality and Sensitivity

LP. Lecture 3. Chapter 3: degeneracy. degeneracy example cycling the lexicographic method other pivot rules the fundamental theorem of LP

Optimization (168) Lecture 7-8-9

56:270 Final Exam - May

Chapter 4 The Simplex Algorithm Part I

Formulating and Solving a Linear Programming Model for Product- Mix Linear Problems with n Products

4.6 Linear Programming duality

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

Optimisation and Operations Research

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

MA 162: Finite Mathematics - Section 3.3/4.1

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

56:171 Operations Research Midterm Exam - October 26, 1989 Instructor: D.L. Bricker

Metode Kuantitatif Bisnis. Week 4 Linear Programming Simplex Method - Minimize

Math 210 Finite Mathematics Chapter 4.2 Linear Programming Problems Minimization - The Dual Problem

Optimization 4. GAME THEORY

Sensitivity Analysis and Duality

The dual simplex method with bounds

15-780: LinearProgramming

Minimum cost transportation problem

Linear Programming. H. R. Alvarez A., Ph. D. 1

1. Introduce slack variables for each inequaility to make them equations and rewrite the objective function in the form ax by cz... + P = 0.

Worked Examples for Chapter 5

CHAPTER 2. The Simplex Method

AM 121: Intro to Optimization

March 13, Duality 3

Transcription:

Linear Programming: Chapter 5 Duality Robert J. Vanderbei September 30, 2010 Slides last edited on October 5, 2010 Operations Research and Financial Engineering Princeton University Princeton, NJ 08544 http://www.princeton.edu/ rvdb

Resource Allocation Recall the resource allocation problem (m = 2, n = 3): maximize c 1 x 1 + c 2 x 2 + c 3 x 3 subject to a 11 x 1 + a 12 x 2 + a 13 x 3 b 1 a 21 x 1 + a 22 x 2 + a 23 x 3 b 2 x 1, x 2, x 3 0, where c j = profit per unit of product j produced b i = units of raw material i on hand a ij = units raw material i required to produce 1 unit of prod j.

Closing Up Shop If we produce one unit less of product j, then we free up: a 1j units of raw material 1 and a 2j units of raw material 2. Selling these unused raw materials for y 1 and y 2 dollars/unit yields a 1j y 1 + a 2j y 2 dollars. Only interested if this exceeds lost profit on each product j: a 1j y 1 + a 2j y 2 c j, j = 1, 2, 3. Consider a buyer offering to purchase our entire inventory. Subject to above constraints, buyer wants to minimize cost: minimize b 1 y 1 + b 2 y 2 subject to a 11 y 1 + a 21 y 2 c 1 a 12 y 1 + a 22 y 2 c 2 a 13 y 1 + a 23 y 2 c 3 y 1, y 2 0.

Duality Every Problem: maximize subject to n c j x j j=1 n a ij x j b i j=1 i = 1, 2,..., m x j 0 j = 1, 2,..., n, Has a Dual: minimize subject to m b i y i i=1 m y i a ij c j i=1 j = 1, 2,..., n y i 0 i = 1, 2,..., m.

Dual of Dual Primal Problem: n maximize c j x j subject to j=1 n a ij x j b i j=1 i = 1,..., m x j 0 j = 1,..., n, Original problem is called the primal problem. A problem is defined by its data (notation used for the variables is arbitrary). Dual in Standard Form: m maximize b i y i subject to i=1 m a ij y i c j i=1 j = 1,..., n y i 0 i = 1,..., m. Dual is negative transpose of primal. Theorem Dual of dual is primal.

Weak Duality Theorem If (x 1, x 2,..., x n ) is feasible for the primal and (y 1, y 2,..., y m ) 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 = ij y i a ij x j = i j a ij x j y i i b i y i.

Gap or No Gap? An important question: Is there a gap between the largest primal value and the smallest dual value? Primal Values Dual Values Primal Values Gap Dual Values No Gap Answer is provided by the Strong Duality Theorem (coming later).

Simplex Method and Duality A Primal Problem: Its Dual: Notes: Dual is negative transpose of primal. Primal is feasible, dual is not. Use primal to choose pivot: x 2 enters, w 2 leaves. Make analogous pivot in dual: z 2 leaves, y 2 enters.

Second Iteration After First Pivot: Primal (feasible): Dual (still not feasible): Note: negative transpose property intact. Again, use primal to pick pivot: x 3 enters, w 1 leaves. Make analogous pivot in dual: z 3 leaves, y 1 enters.

After Second Iteration Primal: Is optimal. Dual: Negative transpose property remains intact. Is optimal. Conclusion Simplex method applied to primal problem (two phases, if necessary), solves both the primal and the dual.

Strong Duality Theorem Conclusion on previous slide is the essence of the strong duality theorem which we now state: Theorem. If the primal problem has an optimal solution, x = (x 1, x 2,..., x n), then the dual also has an optimal solution, y = (y 1, y 2,..., y m), and c j x j = j i b i y i. Paraphrase: If primal has an optimal solution, then there is no duality gap.

Duality Gap Four possibilities: Primal optimal, dual optimal (no gap). Primal unbounded, dual infeasible (no gap). Primal infeasible, dual unbounded (no gap). Primal infeasible, dual infeasible (infinite gap). Example of infinite gap: maximize 2x 1 x 2 subject to x 1 x 2 1 x 1 + x 2 2 x 1, x 2 0.

Complementary Slackness Theorem. At optimality, we have x j z j = 0, for j = 1, 2,..., n, w i y i = 0, for i = 1, 2,..., m.

Proof Recall the proof of the Weak Duality Theorem: c j x j j j (c j + z j )x j = j i y i a ij x j = ij y i a ij x j = i j a ij x j y i = i (b i w i )y i i b i y i, The inequalities come from the fact that x j z j 0, for all j, w i y i 0, for all i. By Strong Duality Theorem, the inequalities are equalities at optimality.

Dual Simplex Method When: dual feasible, primal infeasible (i.e., pinks on the left, not on top). An Example. Showing both primal and dual dictionaries: Looking at dual dictionary: y 2 enters, z 2 leaves. On the primal dictionary: w 2 leaves, x 2 enters. After pivot...

Dual Simplex Method: Second Pivot Going in, we have: Looking at dual: y 1 enters, z 4 leaves. Looking at primal: w 1 leaves, x 4 enters.

Dual Simplex Method Pivot Rule Refering to the primal dictionary: Pick leaving variable from those rows that are infeasible. Pick entering variable from a box with a negative value and which can be increased the least (on the dual side). Next primal dictionary shown on next page...

Dual Simplex Method: Third Pivot Going in, we have: Which variable must leave and which must enter? See next page...

Dual Simplex Method: Third Pivot Answer Answer is: x 2 leaves, x 1 enters. Resulting dictionary is OPTIMAL:

Dual-Based Phase I Method Example: Notes: Two objective functions: the true objective (on top), and a fake one (below it). For Phase I, use the fake objective it s dual feasible. Two right-hand sides: the real one (on the left) and a fake (on the right). Ignore the fake right-hand side we ll use it in another algorithm later. Phase I First Pivot: w 3 leaves, x 1 enters. After first pivot...

Dual-Based Phase I Method Second Pivot Recall current dictionary: Dual pivot: w 2 leaves, x 2 enters. After pivot:

Dual-Based Phase I Method Third Pivot Current dictionary: Dual pivot: w 1 leaves, w 2 enters. After pivot: It s feasible!

Fourth Pivot Phase II Current dictionary: It s feasible. Ignore fake objective. Use the real thing (top row). Primal pivot: x 3 enters, w 4 leaves.

Final Dictionary After pivot: Problem is unbounded!