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

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

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

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

The Strong Duality Theorem 1

Optimisation and Operations Research

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

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)

Linear Programming Duality

Linear Programming: Chapter 5 Duality

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

ORIE 6300 Mathematical Programming I August 25, Lecture 2

The Simplex Algorithm

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

Discrete Optimization

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)

IE 5531: Engineering Optimization I

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

Review Solutions, Exam 2, Operations Research

Understanding the Simplex algorithm. Standard Optimization Problems.

BBM402-Lecture 20: LP Duality

1 Seidel s LP algorithm

Sensitivity Analysis and Duality

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

Part 1. The Review of Linear Programming

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

Sensitivity Analysis and Duality in LP

Linear Programming, Lecture 4

4.6 Linear Programming duality

Lecture 10: Linear programming duality and sensitivity 0-0

Chapter 3, Operations Research (OR)

Farkas Lemma, Dual Simplex and Sensitivity Analysis

Week 3 Linear programming duality

SOLVING INTEGER LINEAR PROGRAMS. 1. Solving the LP relaxation. 2. How to deal with fractional solutions?

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

1 Review Session. 1.1 Lecture 2

MAT016: Optimization

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

Planning and Optimization

Linear Programming Inverse Projection Theory Chapter 3

Duality of LPs and Applications

Lagrange duality. The Lagrangian. We consider an optimization program of the form

How to Take the Dual of a Linear Program

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

Chapter 1 Linear Programming. Paragraph 5 Duality

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

System Planning Lecture 7, F7: Optimization

Today: Linear Programming (con t.)

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

Linear and Combinatorial Optimization

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

Systems Analysis in Construction

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

OPERATIONS RESEARCH. Michał Kulej. Business Information Systems

Lecture 7 Duality II

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

Chap6 Duality Theory and Sensitivity Analysis

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

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

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

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

EE364a Review Session 5

Section Notes 9. IP: Cutting Planes. Applied Math 121. Week of April 12, 2010

New Artificial-Free Phase 1 Simplex Method

Sensitivity Analysis

Summary of the simplex method

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

"SYMMETRIC" PRIMAL-DUAL PAIR

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

Optimization (168) Lecture 7-8-9

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

6.854J / J Advanced Algorithms Fall 2008

Lecture Notes 3: Duality

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

Lec12p1, ORF363/COS323. The idea behind duality. This lecture

14. Duality. ˆ Upper and lower bounds. ˆ General duality. ˆ Constraint qualifications. ˆ Counterexample. ˆ Complementary slackness.

Section Notes 9. Midterm 2 Review. Applied Math / Engineering Sciences 121. Week of December 3, 2018

CS261: A Second Course in Algorithms Lecture #8: Linear Programming Duality (Part 1)

Introduction to Mathematical Programming

Linear Programming and the Simplex method

II. Analysis of Linear Programming Solutions

4. Duality and Sensitivity

The Simplex Method. Lecture 5 Standard and Canonical Forms and Setting up the Tableau. Lecture 5 Slide 1. FOMGT 353 Introduction to Management Science

December 2014 MATH 340 Name Page 2 of 10 pages

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

Lecture 5. Theorems of Alternatives and Self-Dual Embedding

March 13, Duality 3

Conic Linear Optimization and its Dual. yyye

LINEAR PROGRAMMING II

Linear and Integer Optimization (V3C1/F4C1)

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

Chapter 1: Linear Programming

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

MATH2070 Optimisation

UNIT-4 Chapter6 Linear Programming

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

Duality Theory, Optimality Conditions

Linear Programming. Chapter Introduction

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

1 Primals and Duals: Zero Sum Games

Summary of the simplex method

Transcription:

CSCI5654 (Linear Programming, Fall 013) Lecture-7 Duality Lecture 7 Slide# 1 Lecture 7 Slide# Linear Program (standard form) Example Problem maximize c 1 x 1 + + c n x n s.t. a j1 x 1 + + a jn x n b j j {1,,..., m} x 1,..., x n 0 Problem has n variables and m constraints. maximize x 1 + x s.t. x 1 3 x 3 x 1 + x 1 x 1 + x 5 Lecture 7 Slide# 3 Lecture 7 Slide# 4

Bounds on Optimal Value of LP Bounds maximize x 1 + x s.t. x 1 3 x 3 x 1 + x 1 x 1 + x 5 Goal: Find lower and upper bounds on the solution to the LP. Lower Bound: Find a feasible solution x. Then x is a lower bound on optimum. (why?). Eg. (x 1 : 3, x : ) is feasible. Therefore, z = x 1 + x 7. Upper Bounds: Can we find upper bounds to optimum? Lecture 7 Slide# 5 Lecture 7 Slide# 6 Example (continued) Example (continued) Note: maximize x 1 + x z s.t. x 1 3 C1 x 3 C x 1 + x 1 C3 x 1 + x 5 C4 x 1 3 C1 x 3 x 1 + x???. C z Q: Using the inequality above what can you say about the solution to the LP? Note: maximize x 1 + x z s.t. x 1 3 C1 x 3 C x 1 + x 1 C3 x 1 + x 5 C4 x 1 3 C1 x 3 x 1 + x 3 + 3 9. C z Q: Using the inequality above what can you say about the solution to the LP? A: 9 is an upper bound to the solution (i.e., z 9). Lecture 7 Slide# 7 Lecture 7 Slide# 8

Finding Upper Bounds Strategy: Multiply constraint rows by positive quantities. maximize x 1 + x z s.t. x 1 3 C1 x 3 C x 1 + x 1 C3 x 1 + x 5 C4 C1 + C z 9. C4 z 10. Question #1: 1 C3 + 3 C z? Question #: C3 + C1 z? Question #3: Can you think of other combinations? Upper Bounds to LP Solution maximize c 1 x 1 + + c n x n z s.t. a 11 x 1 + + a 1n x n b 1 C1 a 1 x 1 + + a n x n b C.... a m1 x 1 + a mn x n b m Cm x 1,..., x n 0 Consider y 1 C1 + y C + + y m Cm. Q: What are the conditions on y 1,..., y m so that this combination upper bounds z? Lecture 7 Slide# 9 Lecture 7 Slide# 10 Upper Bounds to LP Solution Best upper bound on LP Solution Conditions: Upper Bound: b 1 y 1 +... + b m y m a 11 y 1 + a 1 y + + a m1 y m c 1 a 1 y 1 + a y + + a m y m c a 1n y 1 + a 1n y + + a mn y m c n y 1, y,..., y m 0 Q: What values of y 1,..., y m can yield best bound on optimum??. minimize b 1 y 1 + b y + + b m y m s.t. a 11 y 1 + a 1 y + + a m1 y m c 1 a 1 y 1 + a y + + a m y m c Note: This is called the dual problem. a 1n y 1 + a 1n y + + a mn y m c n y 1, y,..., y m 0. Lecture 7 Slide# 11 Lecture 7 Slide# 1

Dual Problem Primal Problem: decision variables are x 1,..., x n. maximize c 1 x 1 + + c n x n s.t. a j1 x 1 + + a jn x n b j j {1,,..., m} x 1,..., x n 0 Dual Problem: decision variables are y 1,..., y m. minimize b 1 y 1 + + b m y m s.t. a 1j y 1 + + a mj y m c j j {1,,..., n} y 1,..., y n 0 Dual Problem (matrix) Primal LP: Dual LP: (dual in standard form) c x s.t. A x b x 0 max. min. max b y A t y c y 0 b y A t y c y 0 Exercise: Use the information in this frame to prove: The dual of dual problem is the same as the original primal problem. Lecture 7 Slide# 13 Lecture 7 Slide# 14 Example Example (dual) Q: Write down the dual problem. maximize x 1 + x s.t. x 1 3 y 1 x 3 y x 1 + x 1 y 3 x 1 + x 5 y 4 min. 3y 1 + 3y + y 3 + 5y 4 s.t. y 1 y 3 + y 4 1 y + y 3 + y 4 y 1, y, y 3, y 4 0 Dual optimal: y 1 = 0, y = 0, y 3 = 1, y 4 = 3 yields optimal value 8. Lecture 7 Slide# 15 Lecture 7 Slide# 16

Example (dictionary) Example (final dictionary) x 3 = 3 x 1 x 4 = 3 x x 5 = 1 + x 1 x x 6 = 5 x 1 x z = 0 + x 1 + x x 1 = + x 5 x 6 x = 3 x 5 + x 6 x 3 = x 4 = z = 8 1 x 5 3 x 6 Lecture 7 Slide# 17 Lecture 7 Slide# 18 Dual Certificate Dual Certificate Situation: I ask X to solve a large LP for me. After sometime X presents a solution x = (x 1,..., x n) that is claimed to be optimal. Q: How do I verify that X s solution is indeed optimal? A1: OK solve the LP yourself!! (not acceptable) Situation: I ask X to solve a large LP for me. After sometime X presents a solution x = (x 1,..., x n) that is claimed to be optimal. Q: How do I verify that X s solution is indeed optimal? A: Provide dual variables y : (y 1,..., y n ). 1. Check primal feasibility of x.. Check dual feasibility of y. 3. Check that the objective values are the same. Primal-Dual Certificate: In the presence of both, each solution can serve as a certificate to the optimality of the other. Lecture 7 Slide# 19 Lecture 7 Slide# 0

Primal dual correspondences Variable to constraint correspondence: Dual variable (y j ) Primal variable (x i ) Correspondence in dictionary: Primal constraint A j x b j Dual constraint A i y c i Dual variable y j Primal slack variable x n+j. Primal variable (x i ) Dual dictionary slack variable y m+i. Strong Duality Theorem: If x 1,..., x m is primal optimal then there exists a dual optimal solution y 1,..., y m that satisifies c i xi i = j b j y j. ( if primal has optimal solution then the dual has optimum with the same value as primal). Proof: This is theorem 5.1 in Chvátal (pages 58-59). Lecture 7 Slide# 1 Lecture 7 Slide# Example Example (final dictionary) maximize x 1 + x s.t. x 1 3 x 3 x 1 + x 1 x 1 + x 5 x 1 = + x 5 x 6 x = 3 x 5 + x 6 x 3 = x 4 = z = 8 1 x 5 3 x 6 Insight: Dual variables correspond to primal slack variables. x 3 y 1, x 4 y, x 5 y 3, x 6 y 4. Read off dual solution by from objective row of final dictionary: y 1 : 0, y : 0, y 3 : 1, y 4 : 3. Lecture 7 Slide# 3 Lecture 7 Slide# 4

Proof of Strong Duality Relationship Between Primal/Dual Final Dictionary: x i = b i + j Independent a ijx j. z = z + c1 x 1 + + cn+mx n+m Note: ci = 0 if i Basis ci 0 if i Independent. Claim: Set variable y i = (cn+i ). This is a dual feasible solution with optimal value z. Primal Optimal Infeasible Unbounded Optimal Possible Impossible Impossible Dual Infeasible Impossible Possible Possible Unbounded Impossible Possible Impossible Lecture 7 Slide# 5 Lecture 7 Slide# 6 Primal and Dual Infeasible Primal: Dual: max. x s.t. x 1 1 x 1 min. y 1 y s.t. y 1 0 y 1 y 1, y 0 Lecture 7 Slide# 7