CO350 Linear Programming Chapter 7: The Two-Phase Method: 13th June 2005
CO350 Linear Programming Chapter 7: The Two-Phase Method: 13th June 2005
Recap
In the past week and a half, we learned the simplex method
and its relation with duality.
Motivation
Consider the LP
max cT x
(P ) s.t. Ax = b
x ≥ 0
We have assumed that a feasible basis is always given.
But in practice, it is usually not easy to spot a feasible
basis.
X
So, we change the objective function!
m
max − ui
i=1
(A)
s.t. Ax + u = b
x , u ≥ 0
Example
Given the LP problem
max (w =) − u1 − u2
s.t. x1 + 2x2 + x4 + u 1 = 4
(A)
x 2 − x3 + x4 + u2 = 1
x1 , x2 , x3 , x4 , u1 , u2 ≥ 0
[x∗1 , x∗2 , x∗3 , x∗4 , u∗1 , u∗2 ]T is optimal for (A) with value 0
=⇒ u∗1 = u∗2 = 0
=⇒ [x∗1 , x∗2 , x∗3 , x∗4 ]T is feasible for (P ).
So
(P ) has a feasible solution ⇐⇒ (A) has optimal value 0.
Chapter 7: The Two-Phase Method 6
Example (cont’d)
max (w =) − x5 − x 6
(A) s.t. x1 + 2x2 + x4 + x5 = 4
x2 − x 3 + x4 + x6 = 1
x1 , x2 , x3 , x4 , x5 , x6 ≥ 0
[We let x5 = u1 and x6 = u2 .]
We solve the auxiliary problem starting from the obvious
feasible basis B = {5, 6}.
The corresponding tableau is
w − x1 − 3x2 + x3 − 2x4 = −5
x1 + 2x2 + x 4 + x5 = 4
x2 − x 3 + x4 + x6 = 1
Note: the w-row is obtained by subtracting x5 -row and
x6 -row from w = −x5 − x6 .
Chapter 7: The Two-Phase Method 8
Example (cont’d)
c̄1 = 1 > 0, so x1 enters. t = min{4/1, −} = 4, so x5 leaves.
Pivot on (5, 1) gives the tableau
w − x2 + x 3 − x4 + x 5 = −1
x1 + 2x2 + x4 + x 5 = 4
x2 − x 3 + x4 + x6 = 1
Example (cont’d)
c̄3 = 1 > 0, so x3 enters. t = min{2/2, −} = 1, so x1 leaves.
Pivot on (1, 3) gives the tableau
1 3
z + x
2 1
− x
2 4
= −1
1 1
x
2 1
+ x3 − x
2 4
= 1
1 1
x
2 1
+ x2 + x
2 4
= 2