Upload
myra
View
223
Download
0
Embed Size (px)
Citation preview
7/28/2019 Linear Programming _Simplex (1)
1/27
To accompany Quantitative Analysis
for Management, 8e
by Render/Stair/Hanna9-1
2003 by Prentice Hall, Inc.
Upper Saddle River, NJ 07458
LinearLinearProgramming:Programming:
The SimplexThe SimplexMethodMethod
7/28/2019 Linear Programming _Simplex (1)
2/27
To accompany Quantitative Analysis
for Management, 8e
by Render/Stair/Hanna9-2
2003 by Prentice Hall, Inc.
Upper Saddle River, NJ 07458
Flair FurnitureFlair Furniture
CompanyCompany
Maximize:Objective: 2157 XX +
Hours Required to Produce One Unit
DepartmentX1
Tables
X2Chairs
Available
Hours This
Week
Carpentry
Painting/Varnishing
4
2
3
1
240
100
Profit/unit
Constraints:
$7 $5
)varnishing&(painting
10012 21 + XX
)(carpentry2403421+ XX
7/28/2019 Linear Programming _Simplex (1)
3/27
To accompany Quantitative Analysis
for Management, 8e
by Render/Stair/Hanna9-3
2003 by Prentice Hall, Inc.
Upper Saddle River, NJ 07458
Feasible Region & CornerFeasible Region & CornerPointsPoints
Num
berofCha
irs
100
80
60
40
20
0 20 40 60 80 100X
X2
Number of Tables
B = (0,80)
C = (30,40)
D = (50,0)
Feasible
Region
2403421+ XX
1001211+XX
7/28/2019 Linear Programming _Simplex (1)
4/27
To accompany Quantitative Analysis
for Management, 8e
by Render/Stair/Hanna9-4
2003 by Prentice Hall, Inc.
Upper Saddle River, NJ 07458
Flair Furniture -Flair Furniture -Adding SlackAdding Slack
VariablesVariables
)varnishing&(painting10012 21 + XX
)(carpentry24034 21 + XX
Constraints:
Constraints with Slack Variables
)varnishing&(painting
)(carpentry
10012
24034
221
121
=++
=++
SXX
SXX
2157 XX +
Objective Function
Objective Function with Slack
Variables2121
0057 SSXX +++
7/28/2019 Linear Programming _Simplex (1)
5/27
To accompany Quantitative Analysis
for Management, 8e
by Render/Stair/Hanna9-5
2003 by Prentice Hall, Inc.
Upper Saddle River, NJ 07458
Flair Furnitures InitialFlair Furnitures InitialSimplex TableauSimplex Tableau
Profit
per
Unit
olumnProd.
Mix
Column
RealVariables
Columns Slack
Variables
Columns
Constant
Column
Cj
Solution
Mix X1
X2
S1
S2
Quantity
$7 $5 $0 $0Profit
per
unit row
4 3 1 0
2 1 0 1
$0 $0 $0 $0
$7 $5 $0 $0
$0
$0
S1
S2
Zj
Cj -
Zj
240
100
$0
$0
Constrainequation
rows
GrossProfit
rowNet
Profitrow
7/28/2019 Linear Programming _Simplex (1)
6/27
To accompany Quantitative Analysis
for Management, 8e
by Render/Stair/Hanna9-6
2003 by Prentice Hall, Inc.
Upper Saddle River, NJ 07458
Pivotal row, column, pivotPivotal row, column, pivotno., identified in the Initialno., identified in the Initial
Simplex TableauSimplex Tableau
Cj
Solution
Mix X1 X2 S1 S2 Quantity
$7 $5 $0 $0
4 3 1 0
2 1 0 1
$0 $0 $0 $0
$7 $5 $0 $0
$0
$0
S1
S2
Zj
Cj -Zj
240
100
$0
Pivotal row
(smallest ratio)Pivotal number
Pivotal column (largest Cj-Zj)
ratio
60
50
7/28/2019 Linear Programming _Simplex (1)
7/27
To accompany Quantitative Analysis
for Management, 8e
by Render/Stair/Hanna9-7
2003 by Prentice Hall, Inc.
Upper Saddle River, NJ 07458
Second Simplex TableauSecond Simplex Tableau
Cj
Solution
Mix X1 X2 S1 S2 Quantity
$7 $5 $0 $0
0 1 1 -2
1 1/2 0 1/2
$7 $7/2 $0 $7/2
$0 $3/2 $0 -$7/2
$0
$7
S1
X1
Zj
Cj -Zj
40
50
$350
Pivotal row
(smallest ratio)
Pivotal number
Pivotal column (largest Cj-Zj)
ratio
40
100
7/28/2019 Linear Programming _Simplex (1)
8/27
To accompany Quantitative Analysis
for Management, 8e
by Render/Stair/Hanna9-8
2003 by Prentice Hall, Inc.
Upper Saddle River, NJ 07458
Third Simplex TableauThird Simplex Tableau
Cj
Solution
Mix X1 X2 S1 S2 Quantity
$7 $5 $0 $0
0 1 1 -2
1 0 -1/2 3/2
$7 $5 $3/2 $1/2
$0 $0 -$3/2 -$1/2
$5
$7
X2
X1
Zj
Cj -Zj
40
30
$410
Final Tableau since Cj-Zj has no positive values
7/28/2019 Linear Programming _Simplex (1)
9/27
To accompany Quantitative Analysis
for Management, 8e
by Render/Stair/Hanna9-9
2003 by Prentice Hall, Inc.
Upper Saddle River, NJ 07458
a cu at ng t e ewa cu a ng e ew 11Row for Flairs ThirdRow for Flairs Third
TableauTableau
= - x1
0
3/2
-1/2
30
1
1/2
1/2
0
50
(1/2)
(1/2)
(1/2)
(1/2)
(1/2)
(0)
(1)
(-2)
(1)
(40)
= - x= - x
= - x
= - x
=
rowX
newin
number
ingCorrespond
number
pivot
above
Number
rowX
oldin
Number
RowX
Newin
Number
ii
7/28/2019 Linear Programming _Simplex (1)
10/27
To accompany Quantitative Analysis
for Management, 8e
by Render/Stair/Hanna9-10
2003 by Prentice Hall, Inc.
Upper Saddle River, NJ 07458
Simplex Steps forSimplex Steps for
MaximizationMaximization
1. Choose the variable with the greatest
positive Cj - Zj to enter the
solution.
2. Determine the row to be replaced byselecting that one with the smallest
(non-negative) quantity-to-pivot-
column ratio.
3. Calculate the new values for thepivot row.
4. Calculate the new values for the
other row(s).
5. Calculate the Cj and Cj - Zj values for
this tableau. If there are any Cj - Zj
values greater than zero, return to
Step 1.
7/28/2019 Linear Programming _Simplex (1)
11/27
To accompany Quantitative Analysis
for Management, 8e
by Render/Stair/Hanna9-11
2003 by Prentice Hall, Inc.
Upper Saddle River, NJ 07458
Surplus & ArtificialSurplus & Artificial
VariablesVariablesConstraints
Constraints-Surplus & ArtificialVariables
9003025
2108105
21
321
=+
++
XX
XXX
9003025
2108105
221
11321
=++
=+++
AXX
ASXXX
Objective Function
321795 XXX ++:Min
2113210795 MAMASXXX +++++:Min
Objective Function-Surplus & Artificial
Variables
7/28/2019 Linear Programming _Simplex (1)
12/27
To accompany Quantitative Analysis
for Management, 8e
by Render/Stair/Hanna9-12
2003 by Prentice Hall, Inc.
Upper Saddle River, NJ 07458
Simplex Steps forSimplex Steps for
MinimizationMinimization
1. Choose the variable with the greatest
negative Cj - Zj to enter the solution.
2. Determine the row to be replaced byselecting that one with the smallest
(non-negative) quantity-to-pivot-
column ratio.
3. Calculate the new values for the pivot
row.
4. Calculate the new values for the other
row(s).5. Calculate the Cj and Cj - Zj values for
this tableau. If there are any Cj - Zj
values less than zero, return to Step 1.
7/28/2019 Linear Programming _Simplex (1)
13/27
7/28/2019 Linear Programming _Simplex (1)
14/27
To accompany Quantitative Analysis
for Management, 8e
by Render/Stair/Hanna9-14
2003 by Prentice Hall, Inc.
Upper Saddle River, NJ 07458
Special CasesSpecial Cases
UnboundednessUnboundedness
Pivot
Column
Cj 6 9 0 0
Sol
Mix
X1
X2
S1
S2
Qty
X1 -1 1 2 0 30
S1 -2 0 -1 1 10
Zj -9 9 18 0 270
Cj - Zj 15 0 -18 0
all ratios -ve
7/28/2019 Linear Programming _Simplex (1)
15/27
To accompany Quantitative Analysis
for Management, 8e
by Render/Stair/Hanna9-15
2003 by Prentice Hall, Inc.
Upper Saddle River, NJ 07458
Special CasesSpecial Cases
Degeneracy (redundancy)Degeneracy (redundancy)
Pivot Column
Cj 5 8 2 0 0 0Solution
MixX1 X2 X3 S1 S2 S3 Qty
8 X2 1/4 1 1 -2 0 0 10
0 S2 4 0 1/3 -1 1 0 20
0 S3 2 0 2 2/5 0 1 10
Zj 2 8 8 16 0 0 80
Cj-Zj 3 0 -6 -16 0 0
Tied ratios
7/28/2019 Linear Programming _Simplex (1)
16/27
To accompany Quantitative Analysis
for Management, 8e
by Render/Stair/Hanna9-16
2003 by Prentice Hall, Inc.
Upper Saddle River, NJ 07458
Special CasesSpecial Cases
Multiple OptimalMultiple Optimal
Cj 3 2 0 0
Sol
Mix
X1
X2
S1
S2
Qty
2 X1 3/2 1 1 0 6
0 S2 1 0 1/2 1 3
Zj 3 2 2 0 12
Cj - Zj 0 0 -2 0
Cj-Zj=0, real v not in sol mix, optimal
7/28/2019 Linear Programming _Simplex (1)
17/27
To accompany Quantitative Analysis
for Management, 8e
by Render/Stair/Hanna9-17
2003 by Prentice Hall, Inc.
Upper Saddle River, NJ 07458
Sensitivity AnalysisSensitivity Analysis
High Note Sound CompanyHigh Note Sound Company
6013
8042
12050
21
21
21
+
+
+
XX
XX
XX
:toSubject
:Max
Elect time (hrs)
Audio-tech time (hrs)
7/28/2019 Linear Programming _Simplex (1)
18/27
To accompany Quantitative Analysis
for Management, 8e
by Render/Stair/Hanna9-18
2003 by Prentice Hall, Inc.
Upper Saddle River, NJ 07458
Sensitivity AnalysisSensitivity Analysis
High Note Sound CompanyHigh Note Sound Company
7/28/2019 Linear Programming _Simplex (1)
19/27
To accompany Quantitative Analysis
for Management, 8e
by Render/Stair/Hanna9-19
2003 by Prentice Hall, Inc.
Upper Saddle River, NJ 07458
Simplex SolutionSimplex Solution
High Note Sound CompanyHigh Note Sound Company
Cj 50 120 0 0Sol
Mix
X1 X2 S1 S2 Qty
120 X2
1/2 1 1/4 0 20
0 S2 5/2 0 -1/4 1 40
Zj 60 120 30 0 2400
Cj
-
Zj
-10 0 -30 0
7/28/2019 Linear Programming _Simplex (1)
20/27
To accompany Quantitative Analysis
for Management, 8e
by Render/Stair/Hanna9-20
2003 by Prentice Hall, Inc.
Upper Saddle River, NJ 07458
Nonbasic ObjectiveNonbasic Objective
Function CoefficientsFunction Coefficients
Cj 50 120 0 0
Sol
Mix
X1 X2 S1 S2 Qty
120 X2 1/2 1 1/4 0 20
0 S2 5/2 0 -1/4 1 40
Zj 60 120 30 0 2400
Cj Zj -10 0 -30 0
7/28/2019 Linear Programming _Simplex (1)
21/27
To accompany Quantitative Analysis
for Management, 8e
by Render/Stair/Hanna9-21
2003 by Prentice Hall, Inc.
Upper Saddle River, NJ 07458
Basic Objective FunctionBasic Objective Function
CoefficientsCoefficients
Cj 50 120 0 0
Sol
Mix
X1 X2 S1 S2 Qty
120
+
X1 1/2 1 1/4 0 20
0 S2 5/2 0 -1/4 1 40
Zj 60+
/2
120
+
30+
/4
0 2400
+20
Cj - Zj -10-/2 0 -30-/4 0
7/28/2019 Linear Programming _Simplex (1)
22/27
To accompany Quantitative Analysis
for Management, 8e
by Render/Stair/Hanna9-22
2003 by Prentice Hall, Inc.
Upper Saddle River, NJ 07458
Simplex SolutionSimplex Solution
High Note Sound CompanyHigh Note Sound Company
Objective increases by 30 if 1
additional hour of electricians time
is available.
Cj 50 120 0 0
Sol
Mix
X1 X2 S1 S2 Qty
X1 1 1/4 0 20
S2 5/2 0 -1/4
1 40
Zj 60 120 30 0 40
Cj -
Zj
0 0 -30 0 2400
Optimal tableau, Cj-Zj
7/28/2019 Linear Programming _Simplex (1)
23/27
To accompany Quantitative Analysis
for Management, 8e
by Render/Stair/Hanna9-23
2003 by Prentice Hall, Inc.
Upper Saddle River, NJ 07458
Shadow PricesShadow Prices
Shadow Price: Value of One
Additional Unit of a Scarce
Resource
Found in Final Simplex Tableau
in C-Z Row
Negatives of Numbers in Slack
Variable Column
7/28/2019 Linear Programming _Simplex (1)
24/27
To accompany Quantitative Analysis
for Management, 8e
by Render/Stair/Hanna9-24
2003 by Prentice Hall, Inc.
Upper Saddle River, NJ 07458
Steps to Form the DualSteps to Form the Dual
To form the Dual:
If the primal is max., the dual is min.,
and vice versa.
The right-hand-side values of the primalconstraints become the objective
coefficients of the dual.
The primal objective function
coefficients become the right-hand-side
of the dual constraints.
The transpose of the primal constraint
coefficients become the dual constraintcoefficients.
Constraint inequality signs are reversed.
7/28/2019 Linear Programming _Simplex (1)
25/27
To accompany Quantitative Analysis
for Management, 8e
by Render/Stair/Hanna9-25
2003 by Prentice Hall, Inc.
Upper Saddle River, NJ 07458
Primal & DualPrimal & Dual
Primal: Dual
6013
8042
21
21
+
+
XX
XX
Subject to:
12014
5032
21
21
+
+
UU
UU
Subject to:
1205021
+XX:Max
608021
+
UU:Min
7/28/2019 Linear Programming _Simplex (1)
26/27
To accompany Quantitative Analysis
for Management, 8e
by Render/Stair/Hanna9-26
2003 by Prentice Hall, Inc.
Upper Saddle River, NJ 07458
Comparison of the PrimalComparison of the Primal
and Dual Optimal Tableausand Dual Optimal Tableaus
PrimalsOptimalSolution
DualsOptimalSolution
CjSolution
Mix
Quantity
$7
$5
X2
S2
Zj
Cj -Zj
20
40
$2,400
X1 X2 S1 S2
$50 $120 $0 $0
1/2 1 1/4 0
5/2 0 -1/4 1
60 120 30 0
-10 0 -30 0
CjSolution
Mix
Quantity
$7
$5
U1
S1
Zj
Cj -Zj
30
10
$2,400
X1 X2 S1 S2
80 60 $0 $0
1 1/4 0 -1/4
0 -5/2 1 -1/2
80 20 0 -20
$0 40 0 20
A1 A2
M M
0 1/2
-1 1/2
0 40
M M-40
7/28/2019 Linear Programming _Simplex (1)
27/27