lp.ppt finance,, Rajshahi University -RU

mahedi11 5 views 47 slides Aug 21, 2024
Slide 1
Slide 1 of 47
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35
Slide 36
36
Slide 37
37
Slide 38
38
Slide 39
39
Slide 40
40
Slide 41
41
Slide 42
42
Slide 43
43
Slide 44
44
Slide 45
45
Slide 46
46
Slide 47
47

About This Presentation

Lp Finance Department, University Of Rajshahi


Slide Content

© 2008 Prentice Hall, Inc. B – 1
Operations
Management
Module B – Module B –
Linear ProgrammingLinear Programming
PowerPoint presentation to accompany PowerPoint presentation to accompany
Heizer/Render Heizer/Render
Principles of Operations Management, 7ePrinciples of Operations Management, 7e
Operations Management, 9e Operations Management, 9e

© 2008 Prentice Hall, Inc. B – 2
OutlineOutline
Requirements of a Linear Requirements of a Linear
Programming ProblemProgramming Problem
Formulating Linear Programming Formulating Linear Programming
ProblemsProblems
Shader Electronics ExampleShader Electronics Example

© 2008 Prentice Hall, Inc. B – 3
Outline – ContinuedOutline – Continued
Graphical Solution to a Linear Graphical Solution to a Linear
Programming ProblemProgramming Problem
Graphical Representation of Graphical Representation of
ConstraintsConstraints
Iso-Profit Line Solution MethodIso-Profit Line Solution Method
Corner-Point Solution MethodCorner-Point Solution Method

© 2008 Prentice Hall, Inc. B – 4
Outline – ContinuedOutline – Continued
Sensitivity AnalysisSensitivity Analysis
Sensitivity ReportSensitivity Report
Changes in the Resources of the Changes in the Resources of the
Right-Hand-Side ValuesRight-Hand-Side Values
Changes in the Objective Function Changes in the Objective Function
CoefficientCoefficient
Solving Minimization ProblemsSolving Minimization Problems

© 2008 Prentice Hall, Inc. B – 5
Outline – ContinuedOutline – Continued
Linear Programming ApplicationsLinear Programming Applications
Production-Mix ExampleProduction-Mix Example
Diet Problem ExampleDiet Problem Example
Labor Scheduling ExampleLabor Scheduling Example
The Simplex Method of LPThe Simplex Method of LP

© 2008 Prentice Hall, Inc. B – 6
Learning ObjectivesLearning Objectives
When you complete this module you When you complete this module you
should be able to:should be able to:
1.1.Formulate linear programming Formulate linear programming
models, including an objective models, including an objective
function and constraintsfunction and constraints
2.2.Graphically solve an LP problem with Graphically solve an LP problem with
the iso-profit line methodthe iso-profit line method
3.3.Graphically solve an LP problem with Graphically solve an LP problem with
the corner-point methodthe corner-point method

© 2008 Prentice Hall, Inc. B – 7
Learning ObjectivesLearning Objectives
When you complete this module you When you complete this module you
should be able to:should be able to:
4.4.Interpret sensitivity analysis and Interpret sensitivity analysis and
shadow pricesshadow prices
5.5.Construct and solve a minimization Construct and solve a minimization
problemproblem
6.6.Formulate production-mix, diet, and Formulate production-mix, diet, and
labor scheduling problemslabor scheduling problems

© 2008 Prentice Hall, Inc. B – 8
Linear ProgrammingLinear Programming
A mathematical technique to A mathematical technique to
help plan and make decisions help plan and make decisions
relative to the trade-offs relative to the trade-offs
necessary to allocate resourcesnecessary to allocate resources
Will find the minimum or Will find the minimum or
maximum value of the objectivemaximum value of the objective
Guarantees the optimal solution Guarantees the optimal solution
to the model formulatedto the model formulated

© 2008 Prentice Hall, Inc. B – 9
LP ApplicationsLP Applications
1.1.Scheduling school buses to minimize Scheduling school buses to minimize
total distance traveled total distance traveled
2.2.Allocating police patrol units to high Allocating police patrol units to high
crime areas in order to minimize crime areas in order to minimize
response time to 911 callsresponse time to 911 calls
3.3.Scheduling tellers at banks so that Scheduling tellers at banks so that
needs are met during each hour of the needs are met during each hour of the
day while minimizing the total cost of day while minimizing the total cost of
laborlabor

© 2008 Prentice Hall, Inc. B – 10
LP ApplicationsLP Applications
4.4.Selecting the product mix in a factory Selecting the product mix in a factory
to make best use of machine- and to make best use of machine- and
labor-hours available while maximizing labor-hours available while maximizing
the firm’s profit the firm’s profit
5.5.Picking blends of raw materials in feed Picking blends of raw materials in feed
mills to produce finished feed mills to produce finished feed
combinations at minimum costscombinations at minimum costs
6.6.Determining the distribution system Determining the distribution system
that will minimize total shipping costthat will minimize total shipping cost

© 2008 Prentice Hall, Inc. B – 11
LP ApplicationsLP Applications
7.7.Developing a production schedule that Developing a production schedule that
will satisfy future demands for a firm’s will satisfy future demands for a firm’s
product and at the same time minimize product and at the same time minimize
total production and inventory coststotal production and inventory costs
8.8.Allocating space for a tenant mix in a Allocating space for a tenant mix in a
new shopping mall new shopping mall
so as to maximize so as to maximize
revenues to the revenues to the
leasing companyleasing company

© 2008 Prentice Hall, Inc. B – 12
Requirements of an Requirements of an
LP ProblemLP Problem
1.1.LP problems seek to maximize or LP problems seek to maximize or
minimize some quantity (usually minimize some quantity (usually
profit or cost) expressed as an profit or cost) expressed as an
objective functionobjective function
2.2.The presence of restrictions, or The presence of restrictions, or
constraints, limits the degree to constraints, limits the degree to
which we can pursue our which we can pursue our
objectiveobjective

© 2008 Prentice Hall, Inc. B – 13
Requirements of an Requirements of an
LP ProblemLP Problem
3.3.There must be alternative courses There must be alternative courses
of action to choose fromof action to choose from
4.4.The objective and constraints in The objective and constraints in
linear programming problems linear programming problems
must be expressed in terms of must be expressed in terms of
linear equations or inequalitieslinear equations or inequalities

© 2008 Prentice Hall, Inc. B – 14
Formulating LP ProblemsFormulating LP Problems
The product-mix problem at Shader ElectronicsThe product-mix problem at Shader Electronics
Two productsTwo products
1.1.Shader X-pod, a portable music Shader X-pod, a portable music
playerplayer
2.2.Shader BlueBerry, an internet-Shader BlueBerry, an internet-
connected color telephoneconnected color telephone
Determine the mix of products that will Determine the mix of products that will
produce the maximum profitproduce the maximum profit

© 2008 Prentice Hall, Inc. B – 15
Formulating LP ProblemsFormulating LP Problems
X-podsX-podsBlueBerrysBlueBerrysAvailable HoursAvailable Hours
DepartmentDepartment ((XX
11)) ((XX
22)) This WeekThis Week
Hours Required Hours Required
to Produce 1 Unitto Produce 1 Unit
ElectronicElectronic 44 33 240240
AssemblyAssembly 22 11 100100
Profit per unitProfit per unit$7$7 $5$5
Decision Variables:Decision Variables:
XX
11= number of X-pods to be produced= number of X-pods to be produced
XX
22= number of BlueBerrys to be produced= number of BlueBerrys to be produced
Table B.1Table B.1

© 2008 Prentice Hall, Inc. B – 16
Formulating LP ProblemsFormulating LP Problems
Objective Function:Objective Function:
Maximize Profit = Maximize Profit = $7$7XX
11 + + $5$5XX
22
There are three types of constraints
Upper limits where the amount used is ≤
the amount of a resource
Lower limits where the amount used is ≥
the amount of the resource
Equalities where the amount used is =
the amount of the resource

© 2008 Prentice Hall, Inc. B – 17
Formulating LP ProblemsFormulating LP Problems
Second Constraint:Second Constraint:
22XX
11 + + 11XX
22 ≤ 100 ≤ 100 (hours of assembly time)(hours of assembly time)
AssemblyAssembly
time availabletime available
AssemblyAssembly
time usedtime used
is ≤is ≤
First Constraint:First Constraint:
44XX
11 + + 33XX
22 ≤ 240 ≤ 240 (hours of electronic time)(hours of electronic time)
ElectronicElectronic
time availabletime available
ElectronicElectronic
time usedtime used
is ≤is ≤

© 2008 Prentice Hall, Inc. B – 18
Graphical SolutionGraphical Solution
Can be used when there are two Can be used when there are two
decision variablesdecision variables
1.1.Plot the constraint equations at their Plot the constraint equations at their
limits by converting each equation to limits by converting each equation to
an equalityan equality
2.2.Identify the feasible solution space Identify the feasible solution space
3.3.Create an iso-profit line based on the Create an iso-profit line based on the
objective functionobjective function
4.4.Move this line outwards until the Move this line outwards until the
optimal point is identifiedoptimal point is identified

© 2008 Prentice Hall, Inc. B – 19
Graphical SolutionGraphical Solution
100–

80 80 –

60 60 –

40 40 –

20 20 –

–|||||||||||
00 2020 4040 6060 8080 100100
N
u
m
b
e
r

o
f

B
l
u
e
B
e
r
r
y
s
N
u
m
b
e
r

o
f

B
l
u
e
B
e
r
r
y
s
Number of X-podsNumber of X-pods
XX
11
XX
22
Assembly (constraint B)Assembly (constraint B)
Electronics (constraint A)Electronics (constraint A)
Feasible
region
Figure B.3Figure B.3

© 2008 Prentice Hall, Inc. B – 20
Graphical SolutionGraphical Solution
100–

80 80 –

60 60 –

40 40 –

20 20 –

–|||||||||||
00 2020 4040 6060 8080 100100
N
u
m
b
e
r

o
f

W
a
t
c
h

T
V
s
N
u
m
b
e
r

o
f

W
a
t
c
h

T
V
s
Number of X-podsNumber of X-pods
XX
11
XX
22
Assembly (constraint B)Assembly (constraint B)
Electronics (constraint A)Electronics (constraint A)
Feasible
region
Figure B.3Figure B.3
Iso-Profit Line Solution Method
Choose a possible value for the
objective function
$210 = 7X
1
+ 5X
2
Solve for the axis intercepts of the function
and plot the line
X
2
= 42 X
1
= 30

© 2008 Prentice Hall, Inc. B – 21
Graphical SolutionGraphical Solution
100–

80 80 –

60 60 –

40 40 –

20 20 –

–|||||||||||
00 2020 4040 6060 8080 100100
N
u
m
b
e
r

o
f

B
l
u
e
B
e
r
r
y
s
N
u
m
b
e
r

o
f

B
l
u
e
B
e
r
r
y
s
Number of X-podsNumber of X-pods
XX
11
XX
22
Figure B.4Figure B.4
(0, 42)
(30, 0)(30, 0)
$210 = $7$210 = $7XX
11 + $5 + $5XX
22

© 2008 Prentice Hall, Inc. B – 22
Graphical SolutionGraphical Solution
100–

80 80 –

60 60 –

40 40 –

20 20 –

–|||||||||||
00 2020 4040 6060 8080 100100
N
u
m
b
e
r

o
f

B
l
u
e
B
e
r
y
y
s
N
u
m
b
e
r

o
f

B
l
u
e
B
e
r
y
y
s
Number of X-podsNumber of X-pods
XX
11
XX
22
Figure B.5Figure B.5
$210 = $7$210 = $7XX
11 + $5 + $5XX
22
$350 = $7$350 = $7XX
11 + $5 + $5XX
22
$420 = $7$420 = $7XX
11 + $5 + $5XX
22
$280 = $7$280 = $7XX
11 + $5 + $5XX
22

© 2008 Prentice Hall, Inc. B – 23
Graphical SolutionGraphical Solution
100–

80 80 –

60 60 –

40 40 –

20 20 –

–|||||||||||
00 2020 4040 6060 8080 100100
N
u
m
b
e
r

o
f

B
l
u
e
B
e
r
r
y
s
N
u
m
b
e
r

o
f

B
l
u
e
B
e
r
r
y
s
Number of X-podsNumber of X-pods
XX
11
XX
22
Figure B.6Figure B.6
$410 = $7$410 = $7XX
11 + $5 + $5XX
22
Maximum profit lineMaximum profit line
Optimal solution pointOptimal solution point
((XX
11 = 30, = 30, XX
22 = 40) = 40)

© 2008 Prentice Hall, Inc. B – 24
Corner-Point MethodCorner-Point Method
Figure B.7Figure B.7
1
2
3
100–

80 80 –

60 60 –

40 40 –

20 20 –

–|||||||||||
00 2020 4040 6060 8080 100100
N
u
m
b
e
r

o
f

B
l
u
e
B
e
r
r
y
s
N
u
m
b
e
r

o
f

B
l
u
e
B
e
r
r
y
s
Number of X-podsNumber of X-pods
XX
11
XX
22
4

© 2008 Prentice Hall, Inc. B – 25
Corner-Point MethodCorner-Point Method
The optimal value will always be at a
corner point
Find the objective function value at each
corner point and choose the one with the
highest profit
Point 1 :(X
1 = 0, X
2 = 0) Profit $7(0) + $5(0) = $0
Point 2 :(X
1
= 0, X
2
= 80) Profit $7(0) + $5(80) = $400
Point 4 :(X
1 = 50, X
2 = 0) Profit $7(50) + $5(0) = $350

© 2008 Prentice Hall, Inc. B – 26
Corner-Point MethodCorner-Point Method
The optimal value will always be at a
corner point
Find the objective function value at each
corner point and choose the one with the
highest profit
Point 1 :(X
1 = 0, X
2 = 0) Profit $7(0) + $5(0) = $0
Point 2 :(X
1
= 0, X
2
= 80) Profit $7(0) + $5(80) = $400
Point 4 :(X
1 = 50, X
2 = 0) Profit $7(50) + $5(0) = $350
Solve for the intersection of two constraints
2X
1
+ 1X
2
≤ 100 (assembly time)
4X
1
+ 3X
2
≤ 240 (electronics time)
4X
1
+3X
2
=240
- 4X
1-2X
2=-200
+1X
2
=40
4X
1
+3(40)=240
4X
1+120=240
X
1
=30

© 2008 Prentice Hall, Inc. B – 27
Corner-Point MethodCorner-Point Method
The optimal value will always be at a
corner point
Find the objective function value at each
corner point and choose the one with the
highest profit
Point 1 :(X
1 = 0, X
2 = 0) Profit $7(0) + $5(0) = $0
Point 2 :(X
1
= 0, X
2
= 80) Profit $7(0) + $5(80) = $400
Point 4 :(X
1 = 50, X
2 = 0) Profit $7(50) + $5(0) = $350
Point 3 :(X
1 = 30, X
2 = 40) Profit $7(30) + $5(40) = $410

© 2008 Prentice Hall, Inc. B – 28
Sensitivity AnalysisSensitivity Analysis
How sensitive the results are to How sensitive the results are to
parameter changesparameter changes
Change in the value of coefficientsChange in the value of coefficients
Change in a right-hand-side value of a Change in a right-hand-side value of a
constraintconstraint
Trial-and-error approachTrial-and-error approach
Analytic postoptimality methodAnalytic postoptimality method

© 2008 Prentice Hall, Inc. B – 29
Sensitivity ReportSensitivity Report
Program B.1Program B.1

© 2008 Prentice Hall, Inc. B – 30
Changes in ResourcesChanges in Resources
The right-hand-side values of The right-hand-side values of
constraint equations may change constraint equations may change
as resource availability changesas resource availability changes
The shadow price of a constraint is The shadow price of a constraint is
the change in the value of the the change in the value of the
objective function resulting from a objective function resulting from a
one-unit change in the right-hand-one-unit change in the right-hand-
side value of the constraintside value of the constraint

© 2008 Prentice Hall, Inc. B – 31
Changes in ResourcesChanges in Resources
Shadow prices are often explained Shadow prices are often explained
as answering the question “How as answering the question “How
much would you pay for one much would you pay for one
additional unit of a resource?”additional unit of a resource?”
Shadow prices are only valid over a Shadow prices are only valid over a
particular range of changes in particular range of changes in
right-hand-side valuesright-hand-side values
Sensitivity reports provide the Sensitivity reports provide the
upper and lower limits of this rangeupper and lower limits of this range

© 2008 Prentice Hall, Inc. B – 32
Sensitivity AnalysisSensitivity Analysis

100 –

80 80 –

60 60 –

40 40 –

20 20 –


|||||||||||
00 2020 4040 6060 8080 100100 XX
11
XX
22
Figure B.8 (a)Figure B.8 (a)
Changed assembly constraint from Changed assembly constraint from
22XX
11 + 1 + 1XX
22 = 100 = 100
to to 22XX
11 + 1 + 1XX
22 = 110 = 110
Electronics constraint Electronics constraint
is unchangedis unchanged
Corner point 3 is still optimal, but Corner point 3 is still optimal, but
values at this point are now Xvalues at this point are now X
11 = 45= 45, ,
XX
22 = 20= 20, with a profit , with a profit = $415= $415
1
2
3
4

© 2008 Prentice Hall, Inc. B – 33
Sensitivity AnalysisSensitivity Analysis

100 –

80 80 –

60 60 –

40 40 –

20 20 –


|||||||||||
00 2020 4040 6060 8080 100100 XX
11
XX
22
Figure B.8 (b)Figure B.8 (b)
Changed assembly constraint from Changed assembly constraint from
22XX
11 + 1 + 1XX
22 = 100 = 100
to to 22XX
11 + 1 + 1XX
22 = 90 = 90
Electronics constraint Electronics constraint
is unchangedis unchanged
Corner point 3 is still optimal, but Corner point 3 is still optimal, but
values at this point are now Xvalues at this point are now X
11 = 15= 15, ,
XX
22 = 60= 60, with a profit , with a profit = $405= $405
1
2
3
4

© 2008 Prentice Hall, Inc. B – 34
Changes in the Changes in the
Objective FunctionObjective Function
A change in the coefficients in the A change in the coefficients in the
objective function may cause a objective function may cause a
different corner point to become the different corner point to become the
optimal solutionoptimal solution
The sensitivity report shows how The sensitivity report shows how
much objective function coefficients much objective function coefficients
may change without changing the may change without changing the
optimal solution pointoptimal solution point

© 2008 Prentice Hall, Inc. B – 35
Solving Minimization Solving Minimization
ProblemsProblems
Formulated and solved in much the Formulated and solved in much the
same way as maximization same way as maximization
problemsproblems
In the graphical approach an iso-In the graphical approach an iso-
cost line is usedcost line is used
The objective is to move the iso-The objective is to move the iso-
cost line inwards until it reaches the cost line inwards until it reaches the
lowest cost corner pointlowest cost corner point

© 2008 Prentice Hall, Inc. B – 36
Minimization ExampleMinimization Example
XX
11 = =number of tons of black-and-white picture number of tons of black-and-white picture
chemical producedchemical produced
XX
22 = =number of tons of color picture chemical number of tons of color picture chemical
producedproduced
Minimize total cost Minimize total cost ==2,5002,500XX
11++3,0003,000XX
22
Subject to:Subject to:
XX
11 ≥ 30≥ 30tons of black-and-white chemicaltons of black-and-white chemical
XX
22 ≥ 20≥ 20tons of color chemicaltons of color chemical
XX
11 + X + X
22≥ 60≥ 60tons totaltons total
XX
11,, X X
22≥ $0≥ $0nonnegativity requirementsnonnegativity requirements

© 2008 Prentice Hall, Inc. B – 37
Minimization ExampleMinimization Example
Table B.9Table B.9
60 60 –
50 –
40 40 –
30 –
20 20 –
10 –

| | | | | | |
00 1010 2020 3030 4040 5050 6060
XX
11
XX
22
Feasible
region
XX
11 = 30= 30
XX
22 = 20= 20
XX
11 + X + X
22 = 60= 60
bb
aa

© 2008 Prentice Hall, Inc. B – 38
Minimization ExampleMinimization Example
Total cost at aTotal cost at a==2,5002,500XX
11++3,0003,000XX
22
==2,500 (40)2,500 (40)++3,000(20)3,000(20)
==$160,000$160,000
Total cost at bTotal cost at b==2,5002,500XX
11++3,0003,000XX
22
==2,500 (30)2,500 (30)++3,000(30)3,000(30)
==$165,000$165,000
Lowest total cost is at point aLowest total cost is at point a

© 2008 Prentice Hall, Inc. B – 39
LP ApplicationsLP Applications
Production-Mix ExampleProduction-Mix Example
DepartmentDepartment
ProductProductWiringWiringDrillingDrillingAssemblyAssemblyInspectionInspectionUnit ProfitUnit Profit
XJ201XJ201 .5.5 33 22 .5.5 $ 9$ 9
XM897XM897 1.51.5 11 44 1.01.0 $12$12
TR29TR29 1.51.5 22 11 .5.5 $15$15
BR788BR788 1.01.0 33 22 .5.5 $11$11
CapacityCapacity MinimumMinimum
DepartmentDepartment (in hours)(in hours)ProductProductProduction LevelProduction Level
WiringWiring 1,5001,500 XJ201XJ201 150150
DrillingDrilling 2,3502,350 XM897XM897 100100
AssemblyAssembly 2,6002,600 TR29TR29 300300
InspectionInspection 1,2001,200 BR788BR788 400400

© 2008 Prentice Hall, Inc. B – 40
LP ApplicationsLP Applications
XX
11 = number of units of XJ201 produced = number of units of XJ201 produced
XX
22 = number of units of XM897 produced = number of units of XM897 produced
XX
33 = number of units of TR29 produced = number of units of TR29 produced
XX
44 = number of units of BR788 produced = number of units of BR788 produced
Maximize profit Maximize profit = 9= 9XX
11 + 12 + 12XX
22 + 15 + 15XX
33 + 11 + 11XX
44
subject tosubject to.5.5XX
11 + +1.51.5XX
22 + +1.51.5XX
33 + +11XX
44≤ 1,500≤ 1,500 hours of wiring hours of wiring
33XX
11 + +11XX
22 + +22XX
33 + +33XX
44≤ 2,350≤ 2,350 hours of drilling hours of drilling
22XX
11 + +44XX
22 + +11XX
33 + +22XX
44≤ 2,600≤ 2,600 hours of assembly hours of assembly
.5.5XX
11 + +11XX
22 + +.5.5XX
33 + +.5.5XX
44≤ 1,200≤ 1,200 hours of inspection hours of inspection
XX
11≥ 150≥ 150 units of XJ201 units of XJ201
XX
22≥ 100≥ 100 units of XM897 units of XM897
XX
33≥ 300≥ 300 units of TR29 units of TR29
XX
44≥ 400≥ 400 units of BR788 units of BR788

© 2008 Prentice Hall, Inc. B – 41
LP ApplicationsLP Applications
Diet Problem ExampleDiet Problem Example
AA 3 3 ozoz 2 2 ozoz 4 4 ozoz
BB 2 2 ozoz 3 3 ozoz 1 1 ozoz
CC 1 1 ozoz 0 0 ozoz 2 2 ozoz
DD 6 6 ozoz 8 8 ozoz 4 4 ozoz
FeedFeed
ProductProduct Stock XStock X Stock YStock Y Stock ZStock Z

© 2008 Prentice Hall, Inc. B – 42
LP ApplicationsLP Applications
XX
11 = number of pounds of stock X purchased per cow each month = number of pounds of stock X purchased per cow each month
XX
22 = number of pounds of stock Y purchased per cow each month = number of pounds of stock Y purchased per cow each month
XX
33 = number of pounds of stock Z purchased per cow each month = number of pounds of stock Z purchased per cow each month
Minimize cost Minimize cost = .02= .02XX
11 + .04 + .04XX
22 + .025 + .025XX
33
Ingredient A requirement:Ingredient A requirement:33XX
11 + +22XX
22 + +44XX
33≥ 64≥ 64
Ingredient B requirement:Ingredient B requirement:22XX
11 + +33XX
22 + +11XX
33≥ 80≥ 80
Ingredient C requirement:Ingredient C requirement:11XX
11 + +00XX
22 + +22XX
33≥ 16≥ 16
Ingredient D requirement:Ingredient D requirement:66XX
11 + +88XX
22 + +44XX
33≥ 128≥ 128
Stock Z limitation:Stock Z limitation: XX
33≤ 80≤ 80
XX
1,1,XX
2, 2, XX
33≥ 0≥ 0
Cheapest solution is to purchase 40 pounds of grain X Cheapest solution is to purchase 40 pounds of grain X
at a cost of $0.80 per cowat a cost of $0.80 per cow

© 2008 Prentice Hall, Inc. B – 43
LP ApplicationsLP Applications
Labor Scheduling ExampleLabor Scheduling Example
TimeTime Number ofNumber of TimeTime Number ofNumber of
PeriodPeriod Tellers RequiredTellers Required PeriodPeriod Tellers RequiredTellers Required
9 9 AMAM - 10 - 10 AMAM 1010 1 1 PMPM - 2 - 2 PMPM 1818
10 10 AMAM - 11 - 11 AMAM 1212 2 2 PMPM - 3 - 3 PMPM 1717
11 11 AMAM - Noon - Noon 1414 3 3 PMPM - 4 - 4 PMPM 1515
Noon - 1 Noon - 1 PMPM 1616 4 4 PMPM - 5 - 5 PMPM 1010
F F = Full-time tellers= Full-time tellers
PP
11 = Part-time tellers starting at 9 = Part-time tellers starting at 9 AMAM (leaving at 1 (leaving at 1 PMPM))
PP
22 = Part-time tellers starting at 10 = Part-time tellers starting at 10 AMAM (leaving at 2 (leaving at 2 PMPM))
PP
33 = Part-time tellers starting at 11 = Part-time tellers starting at 11 AMAM (leaving at 3 (leaving at 3 PMPM))
PP
44 = Part-time tellers starting at noon (leaving at 4 = Part-time tellers starting at noon (leaving at 4 PMPM))
PP
55 = Part-time tellers starting at 1 = Part-time tellers starting at 1 PMPM (leaving at 5 (leaving at 5 PMPM))

© 2008 Prentice Hall, Inc. B – 44
LP ApplicationsLP Applications
= $75= $75F F + $24(+ $24(PP
11 + P + P
22 + P + P
33 + P + P
44 + P + P
55))
Minimize total dailyMinimize total daily
manpower costmanpower cost
FF+ P+ P
11 ≥ 10 ≥ 10 ((9 9 AMAM - 10 - 10 AMAM needs needs))
FF+ P+ P
11+ P+ P
22 ≥ 12≥ 12 ((10 10 AMAM - 11 - 11 AMAM needs needs))
1/2 F1/2 F+ P+ P
11+ P+ P
22+ P+ P
33 ≥ 14≥ 14 ((11 11 AMAM - 11 - 11 AMAM needs needs))
1/2 F1/2 F+ P+ P
11+ P+ P
22+ P+ P
33+ P+ P
44 ≥ 16≥ 16 ((noon - 1 noon - 1 PMPM needs needs))
FF + P+ P
22+ P+ P
33+ P+ P
44+ P+ P
55≥ 18≥ 18 ((1 1 PMPM - 2 - 2 PMPM needs needs))
FF + P+ P
33+ P+ P
44+ P+ P
55≥ 1≥ 17 7 ((2 2 PMPM - 3 - 3 PMPM needs needs))
FF + P+ P
44+ P+ P
55≥ 15≥ 15 ((3 3 PMPM - 7 - 7 PMPM needs needs))
FF + P+ P
55≥ 10≥ 10 ((4 4 PMPM - 5 - 5 PMPM needs needs))
FF ≤ 12≤ 12
4(4(PP
11 + P + P
22 + P + P
33 + P + P
44 + P + P
55) ≤ .50(10 + 12 + 14 + 16 + 18 + 17 + 15 + 10)) ≤ .50(10 + 12 + 14 + 16 + 18 + 17 + 15 + 10)

© 2008 Prentice Hall, Inc. B – 45
LP ApplicationsLP Applications
= $75= $75F F + $24(+ $24(PP
11 + P + P
22 + P + P
33 + P + P
44 + P + P
55))
Minimize total dailyMinimize total daily
manpower costmanpower cost
FF+ P+ P
11 ≥ 10 ≥ 10 ((9 9 AMAM - 10 - 10 AMAM needs needs))
FF+ P+ P
11+ P+ P
22 ≥ 12≥ 12 ((10 10 AMAM - 11 - 11 AMAM needs needs))
1/2 F1/2 F+ P+ P
11+ P+ P
22+ P+ P
33 ≥ 14≥ 14 ((11 11 AMAM - 11 - 11 AMAM needs needs))
1/2 F1/2 F+ P+ P
11+ P+ P
22+ P+ P
33+ P+ P
44 ≥ 16≥ 16 ((noon - 1 noon - 1 PMPM needs needs))
FF + P+ P
22+ P+ P
33+ P+ P
44+ P+ P
55≥ 18≥ 18 ((1 1 PMPM - 2 - 2 PMPM needs needs))
FF + P+ P
33+ P+ P
44+ P+ P
55≥ 1≥ 17 7 ((2 2 PMPM - 3 - 3 PMPM needs needs))
FF + P+ P
44+ P+ P
55≥ 15≥ 15 ((3 3 PMPM - 7 - 7 PMPM needs needs))
FF + P+ P
55≥ 10≥ 10 ((4 4 PMPM - 5 - 5 PMPM needs needs))
FF ≤ 12≤ 12
4(4(PP
11+ P+ P
22+ P+ P
33+ P+ P
44+ P+ P
55))≤ .50(112)≤ .50(112)
FF, , PP
11,, P P
22,, P P
33,, P P
44,, P P
55 ≥ 0 ≥ 0

© 2008 Prentice Hall, Inc. B – 46
LP ApplicationsLP Applications
= $75= $75F F + $24(+ $24(PP
11 + P + P
22 + P + P
33 + P + P
44 + P + P
55))
Minimize total dailyMinimize total daily
manpower costmanpower cost
FF+ P+ P
11 ≥ 10 ≥ 10 ((9 9 AMAM - 10 - 10 AMAM needs needs))
FF+ P+ P
11+ P+ P
22 ≥ 12≥ 12 ((10 10 AMAM - 11 - 11 AMAM needs needs))
1/2 F1/2 F+ P+ P
11+ P+ P
22+ P+ P
33 ≥ 14≥ 14 ((11 11 AMAM - 11 - 11 AMAM needs needs))
1/2 F1/2 F+ P+ P
11+ P+ P
22+ P+ P
33+ P+ P
44 ≥ 16≥ 16 ((noon - 1 noon - 1 PMPM needs needs))
FF + P+ P
22+ P+ P
33+ P+ P
44+ P+ P
55≥ 18≥ 18 ((1 1 PMPM - 2 - 2 PMPM needs needs))
FF + P+ P
33+ P+ P
44+ P+ P
55≥ 1≥ 17 7 ((2 2 PMPM - 3 - 3 PMPM needs needs))
FF + P+ P
44+ P+ P
55≥ 15≥ 15 ((3 3 PMPM - 7 - 7 PMPM needs needs))
FF + P+ P
55≥ 10≥ 10 ((4 4 PMPM - 5 - 5 PMPM needs needs))
FF ≤ 12≤ 12
4(4(PP
11+ P+ P
22+ P+ P
33+ P+ P
44+ P+ P
55))≤ .50(112)≤ .50(112)
FF, , PP
11,, P P
22,, P P
33,, P P
44,, P P
55 ≥ 0 ≥ 0
There are two alternate optimal solutions to this
problem but both will cost $1,086 per day
F= 10 F= 10
P
1
= 0 P
1
= 6
P
2 = 7 P
2 = 1
P
3
= 2 P
3
= 2
P
4
= 2 P
4
= 2
P
5 = 3 P
5 = 3
First Second
Solution Solution

© 2008 Prentice Hall, Inc. B – 47
The Simplex MethodThe Simplex Method
Real world problems are too Real world problems are too
complex to be solved using the complex to be solved using the
graphical methodgraphical method
The simplex method is an algorithm The simplex method is an algorithm
for solving more complex problemsfor solving more complex problems
Developed by George Dantzig in the Developed by George Dantzig in the
late 1940slate 1940s
Most computer-based LP packages Most computer-based LP packages
use the simplex methoduse the simplex method
Tags