Professional Documents
Culture Documents
EL6233 Lecture3
EL6233 Lecture3
Summary su b jec t to A x b ,
x, b 0.
Initialization: Select a basic feasible solution
xB bˆ B 1b 0, with B the basis matrix.
bˆs bˆ
m in i aˆ i , t 0
aˆ s , t 1 i m aˆ i , t
In compact notation:
min P cT x, subject to: Ax b, x 0, b 0.
@2020 New York University Tandon
2/11/2020 87
School of Engineering
Check the sign of reduced cost at each step
Answer cˆTN cTN (cBT B1 )T N . If all 0, then STOP.
Step 1:
xB x3 , x4 , x5 , xN x1 , x2
T T
c B 0, 0, 0 , c N 1, 2
T T
Step 2:
xB x2 , x4 , x5 , xN x1 , x3
T T
c B 2, 0, 0 , c N 1, 0
T T
c B 2, 1, 0 , c N 0, 0
T T
Step 4: xB x2 , x1 , x3 , xN x4 , x5
T T
c B 2, 1, 0 , c N 0, 0
T T
Optimal, because
T
1
cˆ c N c B B
T
N
T T
N (1, 2) 0.
@2020 New York University Tandon
2/11/2020 89
School of Engineering
The Simplex Tableau
Initial tableau:
Basic xB xN rhs
T T
-P c B c N
0
xB B N b Next,
Basic xB xN rhs
1 1
-P 0 c c B N c B b
T
N
T
B
T
B
xB I B N 1
B b 1
Basic x1 x2 x4 x5 rhs
x3
-P -1 -2 0 0 0 0
x3 -2 1 1 0 0 2
x4 -1 2 0 1 0 7
x5 1 0 0 0 1 3
Basic x1 x2 x4 x5 rhs
x3
-P -1 -2 0 0 0 0
x3 -2 1 1 0 0 2
x4 -1 2 0 1 0 7
x5 1 0 0 0 1 3
Basic x1 x2 x4 x5 rhs
x3
-P -5 0 2 0 0 4
x2 -2 1 1 0 0 2
x4 3 0 -2 1 0 3
x5 1 0 0 0 1 3
x2 0 1 -1/3 2/3 0 4
x1 1 0 -2/3 1/3 0 1
x5 0 0 2/3 -1/3 1 2
Basic rhs
x1 x2 x3 x4 x5
-P 0 0 0 1 2 13
x2 0 1 0 1/2 1/2 5
x1 1 0 0 0 1 3
x3 0 0 1 -1/2 3/2 3
Basic rhs
x1 x2 x3 x4 x5
-P 0 0 0 1 2 13
x2 0 1 0 1/2 1/2 5
x1 1 0 0 0 1 3
x3 0 0 1 -1/2 3/2 3
P 13, at x x 3, x 5.
1 3 2
@2020 New York University Tandon
2/11/2020 96
School of Engineering
An Exercise
Solve the minimization problem:
min P 3 x1 x2 3 x3
subject to 2 x1 x2 x3 2
x1 2 x2 3x3 5
2 x1 2 x2 x3 6
x1 0, x2 0, x3 0.
@2020 New York University Tandon
2/11/2020 97
School of Engineering
Answer
First tableau (pivoting 1 leads to less computation):
x1 x2 x3 x4 x5 x6 rhs
-P -3 -1 -3 0 0 0 0
2 1 1 1 0 0 2
1 2 3 0 1 0 5
2 2 1 0 0 1 6
x1 x2 x3 x4 x5 x6 rhs
-P -1 0 -2 1 0 0 2
2 1 1 1 0 0 2
-3 0 1 -2 1 0 1
-2 0 -1 -2 0 1 2
x1 x2 x3 x4 x5 x6 rhs
-P -7 0 0 -3 2 0 4
5 1 0 3 -1 0 1
-3 0 1 -2 1 0 1
-5 0 0 -4 1 1 3
x1 x2 x3 x4 x5 x6 rhs
0 1 0 -1 0 1 4
1 * 8 *
x , x2 0, x3 , x4 0, x5* 0, x6* 4.
*
1
*
5 5
27
P .
*
min P c x T
subject to Ax b,
x 0.
@2020 New York University Tandon
2/11/2020 103
School of Engineering
The Two‐Phase Method
The phase-I problem:
min P ai
i
subject to Ax a b,
x, a 0,
a a1 , , am : artificial variables
T
min P a1 a2
subject to 3x1 2 x2 a1 14
2x1 4 x2 x3 a2 2
4x1 3 x2 x4 19
x1 , x2 , x3 , x4 , a1 , a2 0.
Now the (initial) basic feasible variable
xB a1 , a2 , x4 with values 14, 2, 19 .
T T
Initial tableau:
x1 x2 x3 x4 a1 a2 rhs
P 0 0 0 0 1 1 0
3 2 0 0 1 0 14
2 -4 -1 0 0 1 2
4 3 0 1 0 0 19
x1 x2 x3 x4 a1 a2 rhs
-5 2 1 0 0 0 -16
P
3 2 0 0 1 0 14
2 -4 -1 0 0 1 2
4 3 0 1 0 0 19
x1 x2 x3 x4 a1 rhs
P 0 -8 -3/2 0 0 -11
0 8 3/2 0 1 11
1 -2 -1/2 0 0 1
0 11 2 1 0 15
x1 x2 x3 x4 a1 rhs
x1 x2 x3 x4 rhs
P 0 0 0 0 0
0 0 1 -16 2
1 0 0 -2 4
0 1 0 3 1
Initial tableau:
x1 x2 x3 x4 rhs
-P 2 3 0 0 0
0 0 1 -16 2
1 0 0 -2 4
0 1 0 3 1
x1 x2 x3 x4 rhs
-P 0 0 0 -5 -11
0 0 1 -16 2
1 0 0 -2 4
0 1 0 3 1
Second tableau:
x1 x2 x3 x4 rhs
-P 0 5/3 0 0 -28/3
0 16/3 1 0 22/3
1 2/3 0 0 14/3
0 1/3 0 1 1/3
3 3
which is attained at the following minimizer:
14 22 1
x , x2 0, x3 , x4 .
*
1
* * *
3 3 3
min P 4 x1 x2 x3
subject to 2x1 x2 2 x3 4
3 x1 3 x2 x3 3
xi 0, i 1, 2,3
j min j : cˆ j 0 .