Top Banner
ORF 307: Lecture 7 Linear Programming: Chapter 5 Duality II Robert Vanderbei Feb 27, 2018 Slides last edited on February 26, 2018 http://www.princeton.edu/rvdb
16

ORF 307 Lecture 7 Chapter 5: Duality I - Operations Research and

Feb 11, 2022

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: ORF 307 Lecture 7 Chapter 5: Duality I - Operations Research and

ORF 307: Lecture 7

Linear Programming: Chapter 5Duality II

Robert Vanderbei

Feb 27, 2018

Slides last edited on February 26, 2018

http://www.princeton.edu/∼rvdb

Page 2: ORF 307 Lecture 7 Chapter 5: Duality I - Operations Research and

Complementary Slackness

Primal Problem:

maxn∑

j=1

cjxj

s.t.n∑

j=1

aijxj + wi = bi i = 1, . . . ,m

xj ≥ 0 j = 1, . . . , n

wi ≥ 0 i = 1, . . . ,m

Dual Problem:

minm∑i=1

biyi

s.t.m∑i=1

yiaij − zj = cj j = 1, . . . , n

yi ≥ 0 i = 1, . . . ,m

zj ≥ 0 j = 1, . . . , n

Theorem. At optimality, we have

xjzj = 0, for j = 1, 2, . . . , n,

wiyi = 0, for i = 1, 2, . . . ,m.

1

Page 3: ORF 307 Lecture 7 Chapter 5: Duality I - Operations Research and

Proof

Recall the proof of the Weak Duality Theorem:

∑j

cjxj ≤∑j

(cj + zj)xj =∑j

∑i

yiaij

xj =∑ij

yiaijxj

=∑i

∑j

aijxj

yi =∑i

(bi − wi)yi ≤∑i

biyi,

The inequalities come from the fact that

xjzj ≥ 0, for all j,

wiyi ≥ 0, for all i.

By Strong Duality Theorem, the inequalities are equalities at optimality.

2

Page 4: ORF 307 Lecture 7 Chapter 5: Duality I - Operations Research and

Dual Simplex Method

3

Page 5: ORF 307 Lecture 7 Chapter 5: Duality I - Operations Research and

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: y3 enters, z2 leaves.

On the primal dictionary: w3 leaves, x2 enters.

After pivot...(Seed = 3, generate 3x, with negation)

4

Page 6: ORF 307 Lecture 7 Chapter 5: Duality I - Operations Research and

Dual Simplex Method: Second Pivot

Going in, we have:

Looking at dual: y2 enters, z1 leaves.

Looking at primal: w2 leaves, x1 enters.

5

Page 7: ORF 307 Lecture 7 Chapter 5: Duality I - Operations Research and

Dual Simplex Method Pivot Rule

Referring 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 theleast (on the dual side).

Next primal dictionary shown on next page...

6

Page 8: ORF 307 Lecture 7 Chapter 5: Duality I - Operations Research and

Dual Simplex Method: Third Pivot

Going in, we have:

Which variable must leave and which must enter?

See next page...

7

Page 9: ORF 307 Lecture 7 Chapter 5: Duality I - Operations Research and

Dual Simplex Method: Third Pivot—Answer

Answer is: w1 leaves, x4 enters.

Resulting dictionary is OPTIMAL:

8

Page 10: ORF 307 Lecture 7 Chapter 5: Duality I - Operations Research and

Dual-Based Phase I Method

9

Page 11: ORF 307 Lecture 7 Chapter 5: Duality I - Operations Research and

Dual-Based Phase I Method

Example:

Seed = 4

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.

Phase I—First Pivot: w1 leaves, x3 enters.

Let’s go pivoting...

10

Page 12: ORF 307 Lecture 7 Chapter 5: Duality I - Operations Research and

Recall initial dictionary:

Dual pivot: w1 leaves, x3 enters.

Afterpivot:

11

Page 13: ORF 307 Lecture 7 Chapter 5: Duality I - Operations Research and

Recall current dictionary:

Dual pivot: w4 leaves, x2 enters.

Afterpivot:

12

Page 14: ORF 307 Lecture 7 Chapter 5: Duality I - Operations Research and

Recall current dictionary:

Dual pivot: w2 leaves, x1 enters.

Afterpivot:

Feasible!

13

Page 15: ORF 307 Lecture 7 Chapter 5: Duality I - Operations Research and

Current dictionary is feasible:

Ignore fake objective. Use the real objective. Primal pivot: w1 enters, w3 leaves.

Afterpivot:

14

Page 16: ORF 307 Lecture 7 Chapter 5: Duality I - Operations Research and

Getting close:

Primal pivot: w4 enters, w1 leaves.

Afterpivot:

Optimal!

15