Chapter 1 Linear Programming. Paragraph 5 Duality

Similar documents
Farkas Lemma, Dual Simplex and Sensitivity Analysis

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)

March 13, Duality 3

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

Part 1. The Review of Linear Programming

Review Solutions, Exam 2, Operations Research

1 Review Session. 1.1 Lecture 2

Lecture 10: Linear programming duality and sensitivity 0-0

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

F 1 F 2 Daily Requirement Cost N N N

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

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

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

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

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

The Simplex Algorithm

Linear Programming Duality

4. Duality and Sensitivity

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)

Duality of LPs and Applications

Duality Theory, Optimality Conditions

Understanding the Simplex algorithm. Standard Optimization Problems.

Linear and Combinatorial Optimization

Simplex Algorithm Using Canonical Tableaus

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

Discrete Optimization

"SYMMETRIC" PRIMAL-DUAL PAIR

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

Lectures 6, 7 and part of 8

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

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

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

Sensitivity Analysis

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

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

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

IE 5531: Engineering Optimization I

4.6 Linear Programming duality

2.098/6.255/ Optimization Methods Practice True/False Questions

Chap6 Duality Theory and Sensitivity Analysis

Foundations of Operations Research

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

Math Models of OR: Sensitivity Analysis

CO350 Linear Programming Chapter 8: Degeneracy and Finite Termination

Week 3 Linear programming duality

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

Worked Examples for Chapter 5

BBM402-Lecture 20: LP Duality

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

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

Linear Programming Inverse Projection Theory Chapter 3

OPTIMISATION /09 EXAM PREPARATION GUIDELINES

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

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

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

AM 121: Intro to Optimization

Sensitivity Analysis and Duality in LP

OPTIMISATION 2007/8 EXAM PREPARATION GUIDELINES

Optimization 4. GAME THEORY

1. Algebraic and geometric treatments Consider an LP problem in the standard form. x 0. Solutions to the system of linear equations

Systems Analysis in Construction

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

Today: Linear Programming (con t.)

EE364a Review Session 5

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

Math Models of OR: Some Definitions

Lecture Notes 3: Duality

In the original knapsack problem, the value of the contents of the knapsack is maximized subject to a single capacity constraint, for example weight.

Optimisation and Operations Research

Lecture 4: Algebra, Geometry, and Complexity of the Simplex Method. Reading: Sections 2.6.4, 3.5,

4. The Dual Simplex Method

Introduction to Mathematical Programming

Linear Programming: Chapter 5 Duality

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

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

A Review of Linear Programming

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

OPERATIONS RESEARCH. Linear Programming Problem

CO350 Linear Programming Chapter 6: The Simplex Method

3. THE SIMPLEX ALGORITHM

The Dual Simplex Algorithm

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

Summary of the simplex method

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

56:171 Operations Research Fall 1998

Chapter 3, Operations Research (OR)

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

Answer the following questions: Q1: Choose the correct answer ( 20 Points ):

Optimization (168) Lecture 7-8-9

Supplementary lecture notes on linear programming. We will present an algorithm to solve linear programs of the form. maximize.


U.C. Berkeley CS294: Beyond Worst-Case Analysis Handout 12 Luca Trevisan October 3, 2017

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

Linear Programming and the Simplex method

Linear Programming, Lecture 4

IE 5531: Engineering Optimization I

Appendix PRELIMINARIES 1. THEOREMS OF ALTERNATIVES FOR SYSTEMS OF LINEAR CONSTRAINTS

MATH 445/545 Test 1 Spring 2016

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

The Strong Duality Theorem 1

Transcription:

Chapter 1 Linear Programming Paragraph 5 Duality

What we did so far We developed the 2-Phase Simplex Algorithm: Hop (reasonably) from basic solution (bs) to bs until you find a basic feasible solution (bfs) or until it becomes clear that none exists. Hop from bfs to bfs until you cannot find an improving solution or the improving trajectory is unbounded. We have seen that we can guarantee termination but that the worst-case runtime is exponential. Again: Note that LP is polynomial time solvable! CS 149 - Intro to CO 2

Lower Bounds on the Objective Let π Ñ m, π. Consider two sets: P 1 = {x Ñ n Ax b, x } and P 2 = {x Ñ n π T Ax π T b, x }. Since π, it is clear that P 1 Œ P 2, in other words: For all x P 1 we have that π T Ax π T b. Now assume that π and also π T A c T. Then, for all x P 1, we have that π T b π T Ax c T x. Therefore, every such π provides us with a lower bound on the objective! CS 149 - Intro to CO 3

Duality The problem of finding the best such lower bound π T b with π Ñ such that π T A c T, π is called the Dual Problem of (P 1,c). Formally, let P 3 = {π Ñ m A T π c, π }. Then, (P 3,b) is called the dual of the primal (P 1,c). Theorem The dual of the dual is the primal. For all primal feasible x and dual feasible π it holds that π T b c T x [weak duality]. CS 149 - Intro to CO 4

Example Minimize x 1 +3x 2 +x 3 such that 2x 1 +x 2 3 -x 1 +x 3 4 (P) x 1, x 2, x 3 π 1T = (1/2,1) Relax P 1 to.5x 2 +x 3 5.5 x 1, x 2, x 3 Maximize 3π 1 +4π 2 such that 2π 1 - π 2 1 π 1 3 (D) π 2 1 π 1 is dual feasible and shows: every feasible x (if any exists!) has an objective value of at least 5.5! CS 149 - Intro to CO 5

Example Minimize x 1 +3x 2 +x 3 such that 2x 1 +x 2 3 -x 1 +x 3 4 (P) x 1, x 2, x 3 π T = (1,1) Relax P 1 to x1+x2+x3 7 x 1, x 2, x 3 Maximize 3π 1 +4π 2 such that 2π 1 - π 2 1 π 1 3 (D) π 2 1 π is dual optimal and shows: every feasible x (if any exists!) has an objective value of at least 7! CS 149 - Intro to CO 6

The Dual of the Standard Form P 1 = {x Ñ n Ax = b, x } (LP) S = (P 1,c) P 2 = {x Ñ n Ax b, -Ax -b, x } (LP) C = (P 2,c) P 3 = {(η,μ) Ñ m A T η -A T μ c, η,μ } @ P 4 = {π Ñ m A T π c} [π not non-negative anymore!] The dual of (LP) S is therefore (P 4,b). CS 149 - Intro to CO 7

The Dual of Unspecified Forms Min c T x A M+ x b + A M x = b A M- x b - x N+ x N unrestricted x N- Max b T π π M+ π M unrestricted π M- (A T ) N+ π c N+ (A T ) N π = c N (A T ) N- π c N- M+ M M- = {1,..,m} N+ N N- = {1,..,n} CS 149 - Intro to CO 8

Strong Duality c T = c T c BT A B -1 A -c T x A B -1 A A B -1 b Given is an LP in standard form. We know: The current bfs x in the tableau is optimal when c T c BT A B -1 A ñ (c BT A B -1 ) A c. Therefore, π T := c BT A B -1 is dual feasible! But: π T b = c BT A B -1 b= c BT x B = c T x! CS 149 - Intro to CO 9

Duality The problem of finding the best such lower bound π T b with π Ñ such that π T A c T, π is called the Dual Problem of (P 1,c). Formally, let P 3 = {π Ñ m A T π c, π }. Then, (P 3,b) is called the dual of the primal (P 1,c). Theorem The dual of the dual is the primal. For all primal feasible x and dual feasible π it holds that π T b c T x [weak duality]. For primal optimal x and dual optimal π it holds that π T b = c T x [strong duality]. CS 149 - Intro to CO 1

Complementary Slackness Consider an LP in canonical form with x primal optimal, and π dual optimal. c T x = π T b π T Ax c T x π T (Ax -b) =. π T b = c T x π T Ax π T b (c T - π T A) x =. Consequently, since π, Ax -b, π can only have non-zero components where there is no slack in the corresponding primal constraint. Analogously, since x, c T - π T A, x can only have non-zero components where there is no slack in the corresponding dual constraint. CS 149 - Intro to CO 11

Relation of Primal and Dual Primal Dual Finite Optimum Unbounded Infeasible Finite Optimum [sd] [wd] [sd] Unbounded [wd] [wd] [wd] Infeasible [sd] [wd] wd weak duality sd strong duality CS 149 - Intro to CO 12

Farkas Lemma Given are a i Ñ n,1 i m, and a vector c Ñ n. The cone of the a i is defined as the set C(a 1,..,a m ) := {x Ñ n x = Σπ i a i, π i }. Farkas Lemma (For all y with y T a i for all i it holds y T c ) c C(a 1,..,a m ). Proof: Exercise! CS 149 - Intro to CO 13

The Dual Simplex Algorithm We have seen how we compute a dual optimal solution after having solved the primal with the simplex algorithm. Consequently, we can solve the primal by solving the dual! In case that c, π = is dual feasible so we may save the effort for solving phase I when focusing on the dual right away. Example: Transportation Problem, Diet Problem, Shortest Path, CS 149 - Intro to CO 14

The Dual Simplex Algorithm Recall that the dual works by looking at A T instead of A in the tableau. Consequently, we can simply exchange the roles of rows and columns and consider matrix entries with opposite sign. Assume we are dual feasible. Then: Search for a row with negative b i. (no such i dual optimal primal feasible) Find a column j such that a ij < and c j / -a ij is minimal! (no such j dual unbounded primal infeasible) Pivot around a ij. CS 149 - Intro to CO 15

The Dual Simplex Algorithm Consider our instance of the diet problem: CS 149 - Intro to CO 16

Examples Diet Problem M B Amount needed [g] Cost/kg [$] 2 15 Minimize 25M + 15B Carbs [%] 1 25 5 1M + 25B 5 Fat [%] 1 5 25 1M + 5B 25 Protein [%] 15 2 6 15M + 2B 6 CS 149 - Intro to CO 17

The Dual Simplex Algorithm Consider our instance of the diet problem: B 5 4 $ 1 25-1 15-25 -5 2 1-1 -5-25 2 4 5 M 1-15 -2-6 CS 149 - Intro to CO 18

The Dual Simplex Algorithm Consider our instance of the diet problem: B 5 4 $ 1 3/4-5/4 55/4 35/4-45 25 2 1-1/4-25/4-1 2 4 5 M -1/2 3/4 1 3 CS 149 - Intro to CO 19

The Dual Simplex Algorithm Consider our instance of the diet problem: B 5 4 $ 1 11/5 7/5 1/5-8/5-67 11 2-4/25 1/25 1 8/5 2 4 5 M 3/25-4/25 1 9/5 CS 149 - Intro to CO 2

Shadow Prices Consider production planning. In the optimal tableau, the relative costs of the slack variables are exactly -c BT A B -1. Note that the objective in the simplex was to minimize. Thus, the relative costs of slack variables give us the dual solution. If a slack variable is not in the basis, it is in the optimal solution. I.e. the corresponding constraint is tight for optimality. Now, the relative costs tell us, how much we could gain if the constraint was not tight. Consequently, the optimal duals are called shadow prices of their corresponding constraints. CS 149 - Intro to CO 21

Thank you!