Linear Programming Method For Engineering Management
Linear Programming Method For Engineering Management
Linear Programming Method For Engineering Management
MANAGEMENT
SCIENCE, 13e
Anderson
Sweeney
Williams
Martin
2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
Slides by
JOHN
LOUCKS
St. Edwards
University
Chapter 17
Linear Programming: Simplex Method
2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
Formulate
Problem
as LP
Put In
Standard
Form
Put In
Tableau
Form
2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
Execute
Simplex
Method
A Maximization Problem
Max
50x1 +40x2
s. t.
x1 , x2 > 0
2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
Standard Form
Simplex method
start the initial
solution by zero
profit with zero
production
X1 =0,
X2=0,
Thus,
S1=150
S2=20
and
S3=300
2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
Tableau Form
2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
s3
s1
s2
0
0
zj
cj - zj
50
x2 x1 s2 s3
40 0
Z1=(0*3+0*0+
0*8)
3
5
1 0 0 150
Z2=(0*5+0*1+
0
1
0 1 0 20
0*5)
8
5
0 0 1 Z300
3=(0*1+0*0+
0*0)
50 40
2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
Pivot
elemen
t
s3
50 40 0
s1
150/3
150
s2
20/0
20
0
zj
Highest
positive
value
x2 x1 s2 s3
cj - zj
5
0
300/8
300
50 40
2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
Least
positive
value
x1
s1
s2
0
50
S1
x2 x 1 s2 s3
50 40
3 - (31)
5 - (35/8)
1 - (30/8)
0 - (30/8)
0 - (31/8)
S2
8/8
5/8
0/8
0/8
1/8
300/8
zj
cj - zj
2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
0 - (01)
1 - (05/8)
0 - (00/8)
1 - (00/8)
0 - (01/8)
Pivot
elemen
2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
t2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
Least
positive
value
10
2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
11
2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
13
Because the variables s1, s2, s3, and a4 each appear in a different constraint
with a coefficient of 1, and the right-hand-side values are nonnegative, both
requirements of the tableau form have been satisfied. We can now obtain an
initial basic feasible solution by setting x1 x2 s4 = 0.
2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
14
15
2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
16
2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
17
Final solution
18
Simplex Tableau
2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
19
2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
20
2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
21
Simplex Method
Step 1: Determine Entering Variable
Identify the variable with the most positive
value in the cj - zj row. (The entering column
is called the pivot column.)
Step 2: Determine Leaving Variable
For each positive number in the entering
column, compute the ratio of the right-hand
side values divided by these entering
column values.
If there are no positive values in the
entering column, STOP; the problem is
unbounded.
Otherwise, select the variable with the
minimal
ratio.
(The
is called the
2011 Cengage
Learning. All Rights Reserved.
May not be scanned,
copiedleaving
duplicated, or postedrow
to a
2008
Thomson
South-Western.
AllorRights
Reserved
22
Simplex Method
2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
23
A Minimization Problem
Min
s. t.
2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
24
Standard Form
2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
25
30
60
20
x1 + x2 + x3 + s1
2x1 + x2 + 3x3
- s2 =
x1 - x2 + 2x3
26
Tableau Form
27
s. t.
= 30
= 60
20
x1 + x2 + x3 + s1
2x1 + x2 + 3x3
x1 - x2 + 2x3
- s2 +
a2
+ a3 =
28
Simplex Method
2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
29
Simplex Method
4x3 <
50
x1 -
x2 -
x3 > 0
x2 - 1.5x3 > 0
x1, x2, x3 > 0
2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
31
0s3
s.t.
= 50
2x1 + 3x2 +
- x1 +
x2 +
4x3 + s1
x3
+ s2
= 0
2011 Cengage Learning. All Rights Reserved. May not be scanned,
or duplicated,
or posted to a
- copied
2008
Thomson
South-Western.
Allx
Rights
Reserved
2 + 1.5x
3
publicly accessible
website, in whole
or in part.
+
32
x2 x3 s1 s2 s3
12 18 10
s2
0
0 (* row)
s3
0
-1
50
zj
-1 1.5 0
0
0
0
0
2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
c - zj
12All 18
0
2008
Thomson
South-Western.
Rights10
Reserved
publicly accessible
website, in whole
or in jpart.
33
Iteration 1
Step 1: Determine the Entering Variable
The most positive cj - zj = 18. Thus x2 is the
entering variable.
Step 2: Determine the Leaving Variable
Take the ratio between the right hand side
and
positive numbers in the x2 column:
50/3 = 16 2/3
0/1 = 0
minimum
s2 is the leaving variable and the 1 is the
pivot
element.
2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
34
Iteration 1 (continued)
Step 3: Generate New Tableau
Divide the second row by 1, the pivot
element. Call the "new" (in this case,
unchanged) row the "* row".
Subtract 3 x (* row) from row 1.
Subtract -1 x (* row) from row 3.
New rows 1, 2, and 3 are shown in the
upcoming tableau.
2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
35
Iteration 1 (continued)
Step 4: Calculate zj Row for New Tableau
The new zj row values are obtained by
multiplying the cB column by each column,
element by element and summing.
For example, z1 = 5(0) + -1(18) + -1(0) =
-18.
2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
36
Iteration 1 (continued)
Step 5: Calculate cj - zj Row for New Tableau
The new cj-zj row values are obtained by
subtracting zj value in a column from the cj
value
in the same column.
For example, c1-z1 = 12 - (-18) = 30.
2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
37
x2 x3 s1 s2 s3
12 18 10
s1
0
5
0
1 1 -3 0
50 (* row)
x2 18
-1
1
1 0 1 0
0
s3
0
-1 0 2.5 0
1 1
0
zj
-18 18 18
0 18
cj - May
zj not be scanned,
30copied
0 or-8
-18
2011 Cengage Learning. All Rights Reserved.
duplicated,
posted to a 0
2008
Thomson
South-Western.
AllorRights
Reserved
publicly accessible
website, in whole
or in part.
0
38
2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
39
Iteration 2 (continued)
Step 3: Generate New Tableau
Divide row 1 by 5, the pivot element. (Call
this new row 1 the "* row").
Subtract (-1) x (* row) from the second row.
Subtract (-1) x (* row) from the third row.
Step 4: Calculate zj Row for New Tableau
The new zj row values are obtained by
multiplying the cB column by each
column,
element by element and summing.
2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
40
Iteration 2 (continued)
Step 5: Calculate cj - zj Row for New Tableau
The new cj-zj row values are obtained by
subtracting zj value in a column from the cj
value
in the same column.
For example, c3-z3 = 10 - (24) = -14.
Since there are no positive numbers in the
cj - zj row, this tableau is optimal. The optimal
solution is: x1 = 10; x2 = 10; x3 = 0; s1 = 0; s2
= 0 s3 = 10, and the optimal value of the
objective function is 300.
2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
41
x2 x3
s1 s2 s3
Basis cB 12 18 10
x1 12
1
0 .2 .2 -.6 0
10 (* row)
x2 18
0
1 1.2 .2 .4 0
10
s3
0
0
0 2.7 .2 .4 1
10
zj
12 18
24
0 -14 -6
300
cj - zj
2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
42
Special Cases
Infeasibility
Unboundedness
Alternative Optimal Solution
Degeneracy
2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
43
Infeasibility
2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
44
Example: Infeasibility
LP Formulation
Max
2x1 + 6x2
s. t.
2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
45
Example: Infeasibility
Final Tableau
x1 x2 s1
Basis CB 2 6
x1 2 1
a2
-M 0
s2 a2
3/4
-1/2
0
1/4
-M
0
0 3
-1/2
zj 2 (1/2)M (1/2)M
+3/2 +1/2
-1
M
+6
cj - zj 0 -(1/2)M -(1/2)M
+9/2
-1/2
1 2
-M
-M
2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
-2M
0
46
Example: Infeasibility
In the previous slide we see that the tableau
is the final tableau because all cj - zj < 0.
However, an artificial variable is still positive,
so the problem is infeasible.
2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
47
Unboundedness
2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
48
Example: Unboundedness
LP Formulation
Max
2x1 + 6x2
s. t.
3x2 > 12
x2 >
4x1 +
2x1 +
x1, x2
> 0
2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
49
Example: Unboundedness
Final Tableau
x1 x2 s1 s2
Basis cB 3 4 0
x2 4 3 1 0 -1 8
s1 0 2 0 1 -1 3
zj 12 4 0 -4 32
cj - zj -9 0 0
2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
50
Example: Unboundedness
In the previous slide we see that c4 - z4 = 4
(is positive), but its column is all non-positive.
This indicates that the problem is unbounded.
2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
51
2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
52
Final Tableau
x1
Basis cB
x2 x3 s1 s2
s3
s4
s3
-2
x2
-1
x1
-1
s4
12
zj
cj zj
4
0
6
0
10
0 -10
0
0
2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
0
0
32
0
53
54
New Tableau
x1
Basis cB 2
s3
2
x3
x1
s4
3
7
9
x2
x3
s1
s2
s3
s4
00
0 0
-1
-1 1
6 0
.5
- .5
2 1
.5
1.5
0 0
- .5
2.5
zj 2
4
6
10
0 0
0
32
2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
2008
Thomson
South-Western.
All
cjwebsite,
- zinj whole0
0
0 Rights
-10Reserved
0 0
0 55
publicly accessible
or in part.
Degeneracy
2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
56
End of Chapter 17
2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a
2008
Thomson
South-Western.
All Rights Reserved
publicly accessible
website, in whole
or in part.
57