heizer mod b

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

Upload: harsha-jssgiw

Post on 05-Jul-2015

90 views

Category:

Documents


7 download

TRANSCRIPT

Page 1: Heizer mod b

© 2008 Prentice Hall, Inc. B – 1

Operations ManagementModule 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, 7eOperations Management, 9e Operations Management, 9e

Page 2: Heizer mod b

© 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

Page 3: Heizer mod b

© 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

Page 4: Heizer mod b

© 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

Page 5: Heizer mod b

© 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

Page 6: Heizer mod b

© 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

Page 7: Heizer mod b

© 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

Page 8: Heizer mod b

© 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

Page 9: Heizer mod b

© 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

Page 10: Heizer mod b

© 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

Page 11: Heizer mod b

© 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

Page 12: Heizer mod b

© 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

Page 13: Heizer mod b

© 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

Page 14: Heizer mod b

© 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

Page 15: Heizer mod b

© 2008 Prentice Hall, Inc. B – 15

Formulating LP ProblemsFormulating LP Problems

X-podsX-pods BlueBerrysBlueBerrys Available HoursAvailable HoursDepartmentDepartment ((XX11)) ((XX22)) 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:XX11 = number of X-pods to be produced= number of X-pods to be produced

XX22 = number of BlueBerrys to be produced= number of BlueBerrys to be produced

Table B.1Table B.1

Page 16: Heizer mod b

© 2008 Prentice Hall, Inc. B – 16

Formulating LP ProblemsFormulating LP Problems

Objective Function:Objective Function:

Maximize Profit = Maximize Profit = $7$7XX11 + + $5$5XX22

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

Page 17: Heizer mod b

© 2008 Prentice Hall, Inc. B – 17

Formulating LP ProblemsFormulating LP Problems

Second Constraint:Second Constraint:

22XX11 + + 11XX22 ≤ 100 ≤ 100 (hours of assembly time)(hours of assembly time)

AssemblyAssemblytime availabletime available

AssemblyAssemblytime usedtime used is ≤is ≤

First Constraint:First Constraint:

44XX11 + + 33XX22 ≤ 240 ≤ 240 (hours of electronic time)(hours of electronic time)

ElectronicElectronictime availabletime available

ElectronicElectronictime usedtime used is ≤is ≤

Page 18: Heizer mod b

© 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

Page 19: Heizer mod b

© 2008 Prentice Hall, Inc. B – 19

Graphical SolutionGraphical Solution

100 –

80 80 –

60 60 –

40 40 –

20 20 –

–| | | | | | | | | | |

00 2020 4040 6060 8080 100100

Nu

mb

er o

f B

lueB

erry

sN

um

ber

of

Blu

eBer

rys

Number of X-podsNumber of X-pods

XX11

XX22

Assembly (constraint B)Assembly (constraint B)

Electronics (constraint A)Electronics (constraint A)Feasible region

Figure B.3Figure B.3

Page 20: Heizer mod b

© 2008 Prentice Hall, Inc. B – 20

Graphical SolutionGraphical Solution

100 –

80 80 –

60 60 –

40 40 –

20 20 –

–| | | | | | | | | | |

00 2020 4040 6060 8080 100100

Nu

mb

er o

f W

atch

TV

sN

um

ber

of

Wat

ch T

Vs

Number of X-podsNumber of X-pods

XX11

XX22

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 = 7X1 + 5X2

Solve for the axis intercepts of the function and plot the line

X2 = 42 X1 = 30

Page 21: Heizer mod b

© 2008 Prentice Hall, Inc. B – 21

Graphical SolutionGraphical Solution

100 –

80 80 –

60 60 –

40 40 –

20 20 –

–| | | | | | | | | | |

00 2020 4040 6060 8080 100100

Nu

mb

er o

f B

lueB

erry

sN

um

ber

of

Blu

eBer

rys

Number of X-podsNumber of X-pods

XX11

XX22

Figure B.4Figure B.4

(0, 42)

(30, 0)(30, 0)

$210 = $7$210 = $7XX11 + $5 + $5XX22

Page 22: Heizer mod b

© 2008 Prentice Hall, Inc. B – 22

Graphical SolutionGraphical Solution

100 –

80 80 –

60 60 –

40 40 –

20 20 –

–| | | | | | | | | | |

00 2020 4040 6060 8080 100100

Nu

mb

er o

f B

lueB

eryy

sN

um

ber

of

Blu

eBer

yys

Number of X-podsNumber of X-pods

XX11

XX22

Figure B.5Figure B.5

$210 = $7$210 = $7XX11 + $5 + $5XX22

$350 = $7$350 = $7XX11 + $5 + $5XX22

$420 = $7$420 = $7XX11 + $5 + $5XX22

$280 = $7$280 = $7XX11 + $5 + $5XX22

Page 23: Heizer mod b

© 2008 Prentice Hall, Inc. B – 23

Graphical SolutionGraphical Solution

100 –

80 80 –

60 60 –

40 40 –

20 20 –

–| | | | | | | | | | |

00 2020 4040 6060 8080 100100

Nu

mb

er o

f B

lueB

erry

sN

um

ber

of

Blu

eBer

rys

Number of X-podsNumber of X-pods

XX11

XX22

Figure B.6Figure B.6

$410 = $7$410 = $7XX11 + $5 + $5XX22

Maximum profit lineMaximum profit line

Optimal solution pointOptimal solution point((XX11 = 30, = 30, XX22 = 40) = 40)

Page 24: Heizer mod b

© 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

Nu

mb

er o

f B

lueB

erry

sN

um

ber

of

Blu

eBer

rys

Number of X-podsNumber of X-pods

XX11

XX22

4

Page 25: Heizer mod b

© 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 : (X1 = 0, X2 = 0) Profit $7(0) + $5(0) = $0

Point 2 : (X1 = 0, X2 = 80) Profit $7(0) + $5(80) = $400

Point 4 : (X1 = 50, X2 = 0) Profit $7(50) + $5(0) = $350

Page 26: Heizer mod b

© 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 : (X1 = 0, X2 = 0) Profit $7(0) + $5(0) = $0

Point 2 : (X1 = 0, X2 = 80) Profit $7(0) + $5(80) = $400

Point 4 : (X1 = 50, X2 = 0) Profit $7(50) + $5(0) = $350

Solve for the intersection of two constraints

2X1 + 1X2 ≤ 100 (assembly time)

4X1 + 3X2 ≤ 240 (electronics time)

4X1 + 3X2 = 240

- 4X1 - 2X2 = -200

+ 1X2 = 40

4X1 + 3(40) = 240

4X1 + 120 = 240

X1 = 30

Page 27: Heizer mod b

© 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 : (X1 = 0, X2 = 0) Profit $7(0) + $5(0) = $0

Point 2 : (X1 = 0, X2 = 80) Profit $7(0) + $5(80) = $400

Point 4 : (X1 = 50, X2 = 0) Profit $7(50) + $5(0) = $350

Point 3 : (X1 = 30, X2 = 40) Profit $7(30) + $5(40) = $410

Page 28: Heizer mod b

© 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

Page 29: Heizer mod b

© 2008 Prentice Hall, Inc. B – 29

Sensitivity ReportSensitivity Report

Program B.1Program B.1

Page 30: Heizer mod b

© 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

Page 31: Heizer mod b

© 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

Page 32: Heizer mod b

© 2008 Prentice Hall, Inc. B – 32

Sensitivity AnalysisSensitivity Analysis

100 –

80 80 –

60 60 –

40 40 –

20 20 –

–| | | | | | | | | | |

00 2020 4040 6060 8080 100100 XX11

XX22

Figure B.8 (a)Figure B.8 (a)

Changed assembly constraint from Changed assembly constraint from 22XX11 + 1 + 1XX22 = 100 = 100

to to 22XX11 + 1 + 1XX22 = 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 X11 = 45= 45, ,

XX22 = 20= 20, with a profit , with a profit = $415= $415

1

2

3

4

Page 33: Heizer mod b

© 2008 Prentice Hall, Inc. B – 33

Sensitivity AnalysisSensitivity Analysis

100 –

80 80 –

60 60 –

40 40 –

20 20 –

–| | | | | | | | | | |

00 2020 4040 6060 8080 100100 XX11

XX22

Figure B.8 (b)Figure B.8 (b)

Changed assembly constraint from Changed assembly constraint from 22XX11 + 1 + 1XX22 = 100 = 100

to to 22XX11 + 1 + 1XX22 = 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 X11 = 15= 15, ,

XX22 = 60= 60, with a profit , with a profit = $405= $405

1

2

3

4

Page 34: Heizer mod b

© 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 much objective function coefficients may change without coefficients may change without changing the optimal solution pointchanging the optimal solution point

Page 35: Heizer mod b

© 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

Page 36: Heizer mod b

© 2008 Prentice Hall, Inc. B – 36

Minimization ExampleMinimization Example

XX11 = = number of tons of black-and-white picture number of tons of black-and-white picture chemical producedchemical produced

XX22 = = number of tons of color picture chemical number of tons of color picture chemical producedproduced

Minimize total cost Minimize total cost == 2,5002,500XX11 ++ 3,0003,000XX22

Subject to:Subject to:XX11 ≥ 30≥ 30 tons of black-and-white chemicaltons of black-and-white chemical

XX22 ≥ 20≥ 20 tons of color chemicaltons of color chemical

XX11 + X + X22 ≥ 60≥ 60 tons totaltons total

XX11,, X X22 ≥ $0≥ $0 nonnegativity requirementsnonnegativity requirements

Page 37: Heizer mod b

© 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 6060XX11

XX22

Feasible region

XX11 = 30= 30XX22 = 20= 20

XX11 + X + X22 = 60= 60

bb

aa

Page 38: Heizer mod b

© 2008 Prentice Hall, Inc. B – 38

Minimization ExampleMinimization Example

Total cost at aTotal cost at a == 2,5002,500XX11 ++ 3,0003,000XX22

== 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,500XX11 ++ 3,0003,000XX22

== 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

Page 39: Heizer mod b

© 2008 Prentice Hall, Inc. B – 39

LP ApplicationsLP Applications

Production-Mix ExampleProduction-Mix ExampleDepartmentDepartment

ProductProduct WiringWiring DrillingDrilling AssemblyAssembly InspectionInspection Unit ProfitUnit Profit

XJ201XJ201 .5.5 33 22 .5.5 $ 9$ 9XM897XM897 1.51.5 11 44 1.01.0 $12$12TR29TR29 1.51.5 22 11 .5.5 $15$15BR788BR788 1.01.0 33 22 .5.5 $11$11

CapacityCapacity MinimumMinimumDepartmentDepartment (in hours)(in hours) ProductProduct Production LevelProduction Level

WiringWiring 1,5001,500 XJ201XJ201 150150DrillingDrilling 2,3502,350 XM897XM897 100100AssemblyAssembly 2,6002,600 TR29TR29 300300InspectionInspection 1,2001,200 BR788BR788 400400

Page 40: Heizer mod b

© 2008 Prentice Hall, Inc. B – 40

LP ApplicationsLP Applications

XX11 = number of units of XJ201 produced = number of units of XJ201 produced

XX22 = number of units of XM897 produced = number of units of XM897 produced

XX33 = number of units of TR29 produced = number of units of TR29 produced

XX44 = number of units of BR788 produced = number of units of BR788 produced

Maximize profit Maximize profit = 9= 9XX11 + 12 + 12XX22 + 15 + 15XX33 + 11 + 11XX44

subject tosubject to .5.5XX11 + + 1.51.5XX22 + + 1.51.5XX33 + + 11XX44 ≤ 1,500≤ 1,500 hours of wiring hours of wiring

33XX11 + + 11XX22 + + 22XX33 + + 33XX44 ≤ 2,350≤ 2,350 hours of drilling hours of drilling

22XX11 + + 44XX22 + + 11XX33 + + 22XX44 ≤ 2,600≤ 2,600 hours of assembly hours of assembly

.5.5XX11 + + 11XX22 + + .5.5XX33 + + .5.5XX44 ≤ 1,200≤ 1,200 hours of inspection hours of inspection

XX11 ≥ 150≥ 150 units of XJ201 units of XJ201

XX22 ≥ 100≥ 100 units of XM897 units of XM897

XX33 ≥ 300≥ 300 units of TR29 units of TR29

XX44 ≥ 400≥ 400 units of BR788 units of BR788

Page 41: Heizer mod b

© 2008 Prentice Hall, Inc. B – 41

LP ApplicationsLP Applications

Diet Problem ExampleDiet Problem Example

AA 3 3 ozoz 2 2 ozoz 4 4 ozozBB 2 2 ozoz 3 3 ozoz 1 1 ozozCC 1 1 ozoz 0 0 ozoz 2 2 ozozDD 6 6 ozoz 8 8 ozoz 4 4 ozoz

FeedFeed

ProductProduct Stock XStock X Stock YStock Y Stock ZStock Z

Page 42: Heizer mod b

© 2008 Prentice Hall, Inc. B – 42

LP ApplicationsLP Applications

XX11 = number of pounds of stock X purchased per cow each month = number of pounds of stock X purchased per cow each month

XX22 = number of pounds of stock Y purchased per cow each month = number of pounds of stock Y purchased per cow each month

XX33 = 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= .02XX11 + .04 + .04XX22 + .025 + .025XX33

Ingredient A requirement:Ingredient A requirement: 33XX11 + + 22XX22 + + 44XX33 ≥ 64≥ 64

Ingredient B requirement:Ingredient B requirement: 22XX11 + + 33XX22 + + 11XX33 ≥ 80≥ 80

Ingredient C requirement:Ingredient C requirement: 11XX11 + + 00XX22 + + 22XX33 ≥ 16≥ 16

Ingredient D requirement:Ingredient D requirement: 66XX11 + + 88XX22 + + 44XX33 ≥ 128≥ 128

Stock Z limitation:Stock Z limitation: XX33 ≤ 80≤ 80

XX1,1, XX2, 2, XX33 ≥ 0≥ 0Cheapest 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

Page 43: Heizer mod b

© 2008 Prentice Hall, Inc. B – 43

LP ApplicationsLP Applications

Labor Scheduling ExampleLabor Scheduling Example

TimeTime Number ofNumber of TimeTime Number ofNumber ofPeriodPeriod Tellers RequiredTellers Required PeriodPeriod Tellers RequiredTellers Required

9 9 AMAM - 10 - 10 AMAM 1010 1 1 PMPM - 2 - 2 PMPM 181810 10 AMAM - 11 - 11 AMAM 1212 2 2 PMPM - 3 - 3 PMPM 171711 11 AMAM - Noon - Noon 1414 3 3 PMPM - 4 - 4 PMPM 1515Noon - 1 Noon - 1 PMPM 1616 4 4 PMPM - 5 - 5 PMPM 1010

F F = Full-time tellers= Full-time tellersPP11 = Part-time tellers starting at 9 = Part-time tellers starting at 9 AMAM (leaving at 1 (leaving at 1 PMPM))

PP22 = Part-time tellers starting at 10 = Part-time tellers starting at 10 AMAM (leaving at 2 (leaving at 2 PMPM))

PP33 = Part-time tellers starting at 11 = Part-time tellers starting at 11 AMAM (leaving at 3 (leaving at 3 PMPM))

PP44 = Part-time tellers starting at noon (leaving at 4 = Part-time tellers starting at noon (leaving at 4 PMPM))

PP55 = Part-time tellers starting at 1 = Part-time tellers starting at 1 PMPM (leaving at 5 (leaving at 5 PMPM))

Page 44: Heizer mod b

© 2008 Prentice Hall, Inc. B – 44

LP ApplicationsLP Applications

= $75= $75F F + $24(+ $24(PP11 + P + P22 + P + P33 + P + P44 + P + P55)) Minimize total dailyMinimize total daily

manpower costmanpower cost

FF + P+ P11 ≥ 10 ≥ 10 ((9 9 AMAM - 10 - 10 AMAM needs needs))

FF + P+ P11 + P+ P22 ≥ 12≥ 12 ((10 10 AMAM - 11 - 11 AMAM needs needs))

1/2 F1/2 F + P+ P11 + P+ P22 + P+ P33 ≥ 14≥ 14 ((11 11 AMAM - 11 - 11 AMAM needs needs))

1/2 F1/2 F + P+ P11 + P+ P22 + P+ P33 + P+ P44 ≥ 16≥ 16 ((noon - 1 noon - 1 PMPM needs needs))

FF + P+ P22 + P+ P33 + P+ P44 + P+ P55 ≥ 18≥ 18 ((1 1 PMPM - 2 - 2 PMPM needs needs))

FF + P+ P33 + P+ P44 + P+ P55 ≥ 1≥ 17 7 ((2 2 PMPM - 3 - 3 PMPM needs needs))

FF + P+ P44 + P+ P55 ≥ 15≥ 15 ((3 3 PMPM - 7 - 7 PMPM needs needs))

FF + P+ P55 ≥ 10≥ 10 ((4 4 PMPM - 5 - 5 PMPM needs needs))

FF ≤ 12≤ 12

4(4(PP11 + P + P22 + P + P33 + P + P44 + P + P55) ≤ .50(10 + 12 + 14 + 16 + 18 + 17 + 15 + 10)) ≤ .50(10 + 12 + 14 + 16 + 18 + 17 + 15 + 10)

Page 45: Heizer mod b

© 2008 Prentice Hall, Inc. B – 45

LP ApplicationsLP Applications

= $75= $75F F + $24(+ $24(PP11 + P + P22 + P + P33 + P + P44 + P + P55)) Minimize total dailyMinimize total daily

manpower costmanpower cost

FF + P+ P11 ≥ 10 ≥ 10 ((9 9 AMAM - 10 - 10 AMAM needs needs))

FF + P+ P11 + P+ P22 ≥ 12≥ 12 ((10 10 AMAM - 11 - 11 AMAM needs needs))

1/2 F1/2 F + P+ P11 + P+ P22 + P+ P33 ≥ 14≥ 14 ((11 11 AMAM - 11 - 11 AMAM needs needs))

1/2 F1/2 F + P+ P11 + P+ P22 + P+ P33 + P+ P44 ≥ 16≥ 16 ((noon - 1 noon - 1 PMPM needs needs))

FF + P+ P22 + P+ P33 + P+ P44 + P+ P55 ≥ 18≥ 18 ((1 1 PMPM - 2 - 2 PMPM needs needs))

FF + P+ P33 + P+ P44 + P+ P55 ≥ 1≥ 17 7 ((2 2 PMPM - 3 - 3 PMPM needs needs))

FF + P+ P44 + P+ P55 ≥ 15≥ 15 ((3 3 PMPM - 7 - 7 PMPM needs needs))

FF + P+ P55 ≥ 10≥ 10 ((4 4 PMPM - 5 - 5 PMPM needs needs))

FF ≤ 12≤ 12

4(4(PP11 + P+ P22 + P+ P33 + P+ P44 + P+ P55)) ≤ .50(112)≤ .50(112)

FF, , PP11,, P P22,, P P33,, P P44,, P P55 ≥ 0 ≥ 0

Page 46: Heizer mod b

© 2008 Prentice Hall, Inc. B – 46

LP ApplicationsLP Applications

= $75= $75F F + $24(+ $24(PP11 + P + P22 + P + P33 + P + P44 + P + P55)) Minimize total dailyMinimize total daily

manpower costmanpower cost

FF + P+ P11 ≥ 10 ≥ 10 ((9 9 AMAM - 10 - 10 AMAM needs needs))

FF + P+ P11 + P+ P22 ≥ 12≥ 12 ((10 10 AMAM - 11 - 11 AMAM needs needs))

1/2 F1/2 F + P+ P11 + P+ P22 + P+ P33 ≥ 14≥ 14 ((11 11 AMAM - 11 - 11 AMAM needs needs))

1/2 F1/2 F + P+ P11 + P+ P22 + P+ P33 + P+ P44 ≥ 16≥ 16 ((noon - 1 noon - 1 PMPM needs needs))

FF + P+ P22 + P+ P33 + P+ P44 + P+ P55 ≥ 18≥ 18 ((1 1 PMPM - 2 - 2 PMPM needs needs))

FF + P+ P33 + P+ P44 + P+ P55 ≥ 1≥ 17 7 ((2 2 PMPM - 3 - 3 PMPM needs needs))

FF + P+ P44 + P+ P55 ≥ 15≥ 15 ((3 3 PMPM - 7 - 7 PMPM needs needs))

FF + P+ P55 ≥ 10≥ 10 ((4 4 PMPM - 5 - 5 PMPM needs needs))

FF ≤ 12≤ 12

4(4(PP11 + P+ P22 + P+ P33 + P+ P44 + P+ P55)) ≤ .50(112)≤ .50(112)

FF, , PP11,, P P22,, P P33,, P P44,, P P55 ≥ 0 ≥ 0

There are two alternate optimal solutions to this problem but both will cost $1,086 per day

F = 10 F = 10P1 = 0 P1 = 6P2 = 7 P2 = 1 P3 = 2 P3 = 2P4 = 2 P4 = 2P5 = 3 P5 = 3

First SecondSolution Solution

Page 47: Heizer mod b

© 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