QT Theory Merged OCR
QT Theory Merged OCR
QT Theory Merged OCR
Introduction to Queuing
Theory
1
What is Queuing Theory?
2
Why is Queuing Analysis Important?
• Capacity problems are very common in industry and one
of the main drivers of process redesign
– Need to balance the cost of increased capacity against the gains of
increased productivity and service
• Queuing and waiting time analysis is particularly important
in service systems
– Large costs of waiting and of lost sales due to waiting
Total
cost
Cost
Cost of
service
Cost of waiting
Process capacity
4
Examples of Real World Queuing Systems?
Served
Calling Jobs Service Jobs
Queue Mechanism
Population
leave the
system
Arrival Queue
Process Discipline
Service
Queue
Process
Configuration
6
Components of a Basic Queuing Process (II)
8
Example – Two Queue Configurations
9
Multiple v.s. Single Customer Queue
Configuration
Multiple Line Advantages Single Line Advantages
10
Components of a Basic Queuing Process (IV)
13
A Commonly Seen Queuing Model (I)
C S = Server
The Queue C S
Customers (C)
CCC…C •
•
•
Customer =C C S
14
NOTATIONS FOR QUEUING MODELS
15
NOTATIONS FOR QUEUING MODELS
16
Description of Queue Models
17
Notations for Various Models of Queues
18
The Exponential Distribution and Queuing
fT(t)
Probability density
t
Mean=
Time between arrivals
E[T]=1/
20
The Poisson Process
21
Terminology and Notation
23
Queuing Theory Focus on Steady State
30
Transient condition Steady State condition
25
Number of jobs in the system, N(t)
20
15 E[N(t)]
N(t)
10
0
0 5 10 15 20 25 30 35 40 45 50
time, t
25
Notation For Steady State Analysis
27
Problem from A. Sharma
28
29
Problem
Mom-and-Pop’s Grocery Store has a small adjacent parking lot with three parking
spaces reserved for the store’s customers. During store hours, cars enter the lot and
use one of the spaces at a mean rate of 2 per hour. For n = 0, 1, 2, 3, the
probability Pn that exactly n spaces currently are being used is P0 = 0.1, P1 = 0.2,
P2 = 0.4, P3 = 0.3.
(a) Describe how this parking lot can be interpreted as being a queuing system. In
particular, identify the customers and the servers. What is the service being
provided? What constitutes a service time? What is the queue capacity?
(b) Determine the basic measures of performance—L, Lq, W, and Wq—for this
queueing system.
(c) Use the results from part (b) to determine the average length of time that a car
remains in a parking space.
30
Solution
Note
31
Problem
32
Solution
The utilization factor ρ represents the fraction
of time that the server is busy. The server is
busy except when there is nobody in the
system. P0 is the probability of having zero
customers in the system, so ρ = 1 - P0
33
Problem
34
Solution
35
Simulation – What is it?
36
Simulation – Why use it?
37
Simulation v.s. Symbolic & Analytical Tools
Strengths
+ Provides a quantitative measure
+ Flexible – can handle any kind of complex system or statistical
interdependencies
+ Capable of finding inefficiencies otherwise not detected until the
system is in operation
Weaknesses
– Can take a long time to build
Usually requires a substantial amount of data gathering
– Easy to misrepresent reality and draw faulty conclusions
– Generally not suitable for optimizing system parameters
• Graphical interfaces
Achieves the descriptive benefits of
symbolic tools like flow charts
• Optimization Engines
Enables efficient automated search
for best parameter values
39
Building a Simulation Model
• General Principles
– The system is broken down into suitable components or entities
– The entities are modeled separately and are then connected to a
model describing the overall system
A bottom-up approach!
• The basic principles apply to all types of simulation models
– Static or Dynamic
– Deterministic or Stochastic
– Discrete or continuous
• In OM situations computer based Stochastic Discrete Event
Simulation (e.g. in Extend) is the natural choice
– Focuses on events affecting the state of the system and skips all
intervals in between
40
Steps in a BPD Simulation Project
1. Problem formulation Phase 1
Problem Definition
2. Set objectives and overall project plan
4. Data Collection
Phase 2
3. Model conceptualization
Model Building
5. Model Translation
No Phase 3
6. Verified
Yes Experimentation
No No
7. Validated
Yes
8. Experimental Design
Phase 4
Implementation
9. Model runs and analysis
• Verification (efficiency)
– Is the model correctly built/programmed?
– Is it doing what it is intended to do?
• Validation (effectiveness)
– Is the right model built?
– Does the model adequately describe the reality you want to model?
– Does the involved decision makers trust the model?
42
Model Verification Methods
Conceptual Model
Calibration and 1. Assumptions on system components
Validation 2. Structural assumptions which define the
interactions between system components
3. Input parameters and data assumptions
Model
verification
Operational Model
(Computerized representation)
44
Example – Simulation of a M/M/1 Queue
• Assume a small branch office of a local bank with only
one teller.
• Empirical data gathering indicates that inter-arrival and
service times are exponentially distributed.
– The average arrival rate = = 5 customers per hour
– The average service rate = = 6 customers per hour
• Using our knowledge of queuing theory we obtain
– = the server utilization = 5/6 0.83
– Lq = the average number of people waiting in line
– Wq = the average time spent waiting in line
1
Introduction
• Operations Research is an Art and Science
Research
The process of observation and testing
characterized by the scientific method. Situation,
problem statement, model construction, validation,
experimentation, solutions.
5
Terminology
• The British/Europeans refer to “Operational Research", the
Americans to “Operations Research" - but both are often
shortened to just "OR".
6
Operations Research Models
7
Deterministic vs. Stochastic Models
Deterministic models
assume all data are known with certainty
Stochastic models
explicitly represent uncertain data via
random variables or stochastic processes.
Stochastic models
characterize / estimate system performance.
8
Success Stories of OR
9
Application Areas
• Strategic planning
• Supply chain management
• Pricing and revenue management
• Logistics and site location
• Optimization
• Marketing research
10
Applications Areas (cont.)
• Scheduling
• Portfolio management
• Inventory analysis
• Forecasting
• Sales analysis
• Auctioning
• Risk analysis
11
A Short List of Successful Stories (1)
• Air New Zealand
– Air New Zealand Masters the Art of Crew Scheduling
• AT&T Network
– Delivering Rapid Restoration Capacity for the AT&T Network
• Bank Hapoalim
– Bank Hapoalim Offers Investment Decision Support for Individual Customers
• British Telecommunications
– Dynamic Workforce Scheduling for British Telecommunications
• Canadian Pacific Railway
– Perfecting the Scheduled Railroad at Canadian Pacific Railway
• Continental Airlines
– Faster Crew Recovery at Continental Airlines
• FAA
– Collaborative Decision Making Improves the FAA Ground-Delay Program
12
A Short List of Successful Stories (2)
• Ford Motor Company
– Optimizing Prototype Vehicle Testing at Ford Motor Company
• General Motors
– Creating a New Business Model for OnStar at General Motors
• IBM Microelectronics
– Matching Assets to Supply Chain Demand at IBM Microelectronics
• IBM Personal Systems Group
– Extending Enterprise Supply Chain Management at IBM Personal Systems
Group
• Jan de Wit Company
– Optimizing Production Planning and Trade at Jan de Wit Company
• Jeppesen Sanderson
– Improving Performance and Flexibility at Jeppesen Sanderson
13
A Short List of Successful Stories (3)
• Mars
– Online Procurement Auctions Benefit Mars and Its Suppliers
• Menlo Worldwide Forwarding
– Turning Network Routing into Advantage for Menlo Forwarding
• Merrill Lynch
– Seizing Marketplace Initiative with Merrill Lynch Integrated Choice
• NBC
– Increasing Advertising Revenues and Productivity at NBC
• PSA Peugeot Citroen
– Speeding Car Body Production at PSA Peugeot Citroen
• Rhenania
– Rhenania Optimizes Its Mail-Order Business with Dynamic Multilevel
Modeling
• Samsung
– Samsung Cuts Manufacturing Cycle Time and Inventory to Compete
14
A Short List of Successful Stories (4)
• Spicer
– Spicer Improves Its Lead-Time and Scheduling Performance
• Syngenta
– Managing the Seed-Corn Supply Chain at Syngenta
• Towers Perrin
– Towers Perrin Improves Investment Decision Making
• U.S. Army
– Reinventing U.S. Army Recruiting
• U.S. Department of Energy
– Handling Nuclear Weapons for the U.S. Department of Energy
• UPS
– More Efficient Planning and Delivery at UPS
• Visteon
– Decision Support Wins Visteon More Production for Less
15
The Duckworth–Lewis (D/L)
Method
• It is a mathematical formulation designed to calculate the
target score for the team batting second in a limited overs
cricket match interrupted by weather or other
circumstances.
• It is generally accepted to be the most accurate method of
setting a target score.
• The D/L method was devised by two English
statisticians, Frank Duckworth and Tony Lewis.
• After their retirements Professor Steven Stern became
the custodian of the method.
• In November 2014, it was renamed the Duckworth– 16
1
Linear Programming
Has powerful capabilities
Enables businesses to reduce costs, improve
profitability, use resources effectively, reduce
risks and provide benefits in many other key
dimensions
Optimization can automate decision processes
Improves speed of responses
Allow managers to focus their attention on
critical uncertainties rather than routine matters.
2
Background
The seeds of linear programming were sown during World
War II when the military supplies and personnel had to be
moved efficiently.
Problems with more than two variables (as is the case for most
real world problems) can be solved by using a technique called
the simplex method 3
LP Applications
Scheduling logistics to minimize total distance
traveled
Scheduling tellers at banks so that needs are met
during each hour of the day while minimizing
the total cost of labor
Developing a production schedule that will
satisfy future demands for a firm’s product and
at the same time minimize total production and
inventory costs
Allocating space for a tenant mix in a new
shopping mall so as to maximize revenues to the
leasing company
LP Applications (Contd..)
7
Linear Programming (LP)
Problem
The maximization or minimization of some quantity is
the objective in all linear programming problems.
All LP problems have constraints that limit the degree
to which the objective can be pursued.
A feasible solution satisfies all the problem's
constraints.
An optimal solution is a feasible solution that results in
the largest possible objective function value when
maximizing (or smallest when minimizing).
A graphical solution method can be used to solve a
linear program with two variables. 8
Linear Programming (LP)
Problem
If both the objective function and the constraints
are linear, the problem is referred to as a linear
programming problem.
Linear functions are functions in which each
variable appears in a separate term raised to the
first power and is multiplied by a constant (which
could be 0).
Linear constraints are linear functions that are
restricted to be "less than or equal to", "equal to",
or "greater than or equal to" a constant. 9
Problem Formulation
Problem formulation or modeling is the process
of translating a verbal statement of a problem
into a mathematical statement.
Formulating models is an art that can only be
mastered with practice and experience.
Every LP problem has some unique features,
but most problems also have common features.
General guidelines for LP model formulation are
illustrated on the slides that follow.
10
Guidelines for Model
Formulation
Understand the problem thoroughly.
Describe the objective.
Describe each constraint.
Define the decision variables.
Write the objective in terms of the decision
variables.
Write the constraints in terms of the decision
variables.
11
Example 1: A Simple
Maximization Problem
Objective
Max 5x1 + 7x2 Function
s.t. x1 < 6
“Regular”
2x1 + 3x2 < 19
Constraints
x1 + x2 < 8
Non-negativity
x1 > 0 and x2 > 0
Constraints
12
Example 1: Graphical Solution
First Constraint Graphed
x2
8
7 x1 = 6
6 Shaded region
5 contains all
feasible points
4
for this constraint
3
2
(6, 0)
1
x1
1 2 3 4 5 6 7 8 9 10
13
Example 1: Graphical Solution
Second Constraint Graphed
x2
8 (0, 6 1/3)
7
6
5
2x1 + 3x2 = 19
4
Shaded
3
region contains
2 all feasible points (9 1/2, 0)
1 for this constraint
x1
1 2 3 4 5 6 7 8 9 10
14
Example 1: Graphical Solution
Third Constraint Graphed
x2
(0, 8)
8
7
6 x1 + x2 = 8
5
4
Shaded
3
region contains
2 all feasible points
1 for this constraint (8, 0)
x1
1 2 3 4 5 6 7 8 9 10
15
Example 1: Graphical Solution
Combined-Constraint Graph Showing Feasible
Region x2
8
x1 + x2 = 8
7
6 x1 = 6
5
4
3
Feasible 2x1 + 3x2 = 19
2
Region
1
x1
1 2 3 4 5 6 7 8 9 10
16
Example 1: Graphical Solution
Objective Function Line
x2
8
7
(0, 5)
6 Objective Function
5 5x1 + 7x2 = 35
4
3
2
(7, 0)
1
x1
1 2 3 4 5 6 7 8 9 10
17
Example 1: Graphical
Solution
Selected Objective Function Lines
x2
8
7
5x1 + 7x2 = 35
6
5 5x1 + 7x2 = 39
4
3 5x1 + 7x2 = 42
2
1
x1
1 2 3 4 5 6 7 8 9 10 18
Example 1: Graphical Solution
Optimal Solution
x2
Maximum
Objective Function Line
8
5x1 + 7x2 = 46
7
6 Optimal Solution
(x1 = 5, x2 = 3)
5
4
3
2
1
x1
1 2 3 4 5 6 7 8 9 10
19
Summary of the Graphical
Solution Procedure for
Maximization Problems
Prepare a graph of the feasible solutions for each of
the constraints.
Determine the feasible region that satisfies all the
constraints simultaneously.
Draw an objective function line.
Move parallel objective function lines toward larger
objective function values without entirely leaving the
feasible region.
Any feasible solution on the objective function line
with the largest value is an optimal solution. 20
Extreme Points and the
Optimal Solution
The corners or vertices of the feasible region are
referred to as the extreme points.
An optimal solution to an LP problem can be
found at an extreme point of the feasible region.
When looking for the optimal solution, you do
not have to evaluate all feasible solution points.
You have to consider only the extreme points of
the feasible region.
21
Example 1: Extreme Points
x2
8
7
5 (0, 6 1/3)
6
5
4
4 (5, 3)
3
Feasible 3 (6, 2)
2 Region
1 1 (0, 0) 2 (6, 0)
x1
1 2 3 4 5 6 7 8 9 10
22
Example 2: Minimization Problem
x1, x2 > 0
23
Example 2: Graphical Solution
Graph the Constraints
Constraint 1: When x1 = 0, then x2 = 2; when x2 = 0,
then x1 = 5. Connect (5,0) and (0,2). The ">" side is
above this line.
Constraint 2: When x2 = 0, then x1 = 3. But setting x1 to 0
will yield x2 = -12, which is not on the graph. Thus, to get a
second point on this line, set x1 to any number larger than 3
and solve for x2: when x1 = 5, then x2 = 8. Connect (3,0) and
(5,8). The ">" side is to the right.
Constraint 3: When x1 = 0, then x2 = 4; when x2 = 0,
then x1 = 4. Connect (4,0) and (0,4). The ">" side is
above this line.
24
Example 2: Graphical Solution
Constraints Graphed
x2
6
Feasible Region
5
4x1 - x2 > 12
4
x1 + x2 > 4
3
x1
1 2 3 4 5 6
25
Example 2: Graphical Solution
Graph the Objective Function
Set the objective function equal to an arbitrary
constant (say 20) and graph it. For 5x1 + 2x2 = 20,
when x1 = 0, then x2 = 10; when x2= 0, then x1 = 4.
Connect (4,0) and (0,10).
5
4x1 - x2 > 12
4
x 1 + x2 > 4
3
x1
1 2 3 4 5 6 27
Example 2: Graphical Solution
Solve for the Extreme Point at the Intersection of the
Two Binding Constraints
4x1 - x2 = 12
x1+ x2 = 4
Adding these two equations gives:
5x1 = 16 or x1 = 16/5
Substituting this into x1 + x2 = 4 gives: x2 = 4/5
Solve for the Optimal Value of the Objective Function
x1
1 2 3 4 5 6 29
Summary of the Graphical
Solution Procedure
for Minimization Problems
Prepare a graph of the feasible solutions for each of
the constraints.
Determine the feasible region that satisfies all the
constraints simultaneously.
Draw an objective function line.
Move parallel objective function lines toward smaller
objective function values without entirely leaving the
feasible region.
Any feasible solution on the objective function line
with the smallest value is an optimal solution.
30
Special Cases
Infeasibility
• No solution to the LP problem satisfies all the
constraints, including the non-negativity
conditions.
• Graphically, this means a feasible region does not
exist.
• Causes include:
A formulation error has been made.
Management’s expectations are too high.
Too many restrictions have been placed on the
problem (i.e. the problem is over-constrained).
31
Example: Infeasible Problem
Consider the following LP problem.
x1, x2 > 0
32
Example: Infeasible Problem
There are no points that satisfy both constraints,
so there is no feasible region (and no feasible
solution). x2
10
2x1 + x2 > 8
8
6
4x1 + 3x2 < 12
4
x1
2 4 6 8 10
33
Special Cases
Unbounded
• The solution to a maximization LP problem is
unbounded if the value of the solution may be
made indefinitely large without violating any of
the constraints.
• For real problems, this is the result of improper
formulation. (Quite likely, a constraint has been
inadvertently omitted.)
34
Example: Unbounded Solution
Consider the following LP problem.
s.t. x1 + x2 > 5
3x1 + x2 > 8
x1, x2 > 0
35
Example: Unbounded Solution
The feasible region is unbounded and the objective
function line can be moved outward from the origin
without bound, infinitely increasing the objective
function. x2
10
3x1 + x2 > 8
8
4
x1 + x2 > 5
2
x1
2 4 6 8 10 36
Problem: Production of wooden
tables and chairs
A company uses wood and labor to produce tables
and chairs. The unit profit for tables is $6 and unit
profit for chairs is $8. There are 300 board feet (bf)
of wood available and 110 hours of labor available.
It takes 30 bf and 5 hours to make a table and 20 bf
and 10 hours to make a chair.
Formulate a LPP for the maximization of the
company’s profit and solve it graphically.
37
Information for the wooden
tables and chairs
38
LPP
39
40
41
42
43
The Transportation Problem
1
Copyright © 2003 Brooks/Cole, a division of Thomson Learning, Inc.
The Transportation Problem
2
Copyright © 2003 Brooks/Cole, a division of Thomson Learning, Inc.
Simple Network Representation
Sources Destinations
Supply s1 1 Demand d1
1
Supply s2 2
2 Demand d2
…
…
xij
n Demand dn
Supply sm m
Costs cij
3
Copyright © 2003 Brooks/Cole, a division of Thomson Learning, Inc.
Description
A transportation problem basically deals with the
problem, which aims to find the best way to fulfill
the demand of n demand points using the capacities
of m supply points. While trying to find the best way,
generally a variable cost of shipping the product
from one supply point to a demand point or a similar
constraint should be taken into consideration.
4
Copyright © 2003 Brooks/Cole, a division of Thomson Learning, Inc.
Description (Contd..)
• A transportation problem is a special kind of LPP in
which goods are transported from one set of
sources to one set of destinations subject to the
supplies and demands of the respective sources and
destinations such that the total cost of
transportation is minimized.
5
Copyright © 2003 Brooks/Cole, a division of Thomson Learning, Inc.
Formulating Transportation
Problems
Example 1: Powerco has three electric power
plants that supply the electric needs of four cities.
•The associated supply of each plant and demand
of each city is given in the table 1.
•The cost of sending 1 million kwh of electricity
from a plant to a city depends on the distance the
electricity must travel.
6
Copyright © 2003 Brooks/Cole, a division of Thomson Learning, Inc.
Transportation tableau
7
Copyright © 2003 Brooks/Cole, a division of Thomson Learning, Inc.
Table 1. Shipping costs, Supply, and Demand
for Powerco Example
From To
City 1 City 2 City 3 City 4 Supply
(Million kwh)
Plant 1 $8 $6 $10 $9 35
Plant 2 $9 $12 $13 $7 50
Plant 3 $14 $9 $16 $5 40
Demand 45 20 30 30
(Million kwh)
Transportation Tableau
8
Copyright © 2003 Brooks/Cole, a division of Thomson Learning, Inc.
Solution
1. Decision Variable:
Since we have to determine how much
electricity is sent from each plant to each city;
9
Copyright © 2003 Brooks/Cole, a division of Thomson Learning, Inc.
2. Objective function
Minimize Z = 8X11+6X12+10X13+9X14
+9X21+12X22+13X23+7X24
+14X31+9X32+16X33+5X34
10
Copyright © 2003 Brooks/Cole, a division of Thomson Learning, Inc.
3. Supply Constraints
Since each supply point has a limited production
capacity;
X11+X12+X13+X14 <= 35
X21+X22+X23+X24 <= 50
X31+X32+X33+X34 <= 40
11
Copyright © 2003 Brooks/Cole, a division of Thomson Learning, Inc.
4. Demand Constraints
Since each supply point has a limited production
capacity;
X11+X21+X31 >= 45
X12+X22+X32 >= 20
X13+X23+X33 >= 30
X14+X24+X34 >= 30
12
Copyright © 2003 Brooks/Cole, a division of Thomson Learning, Inc.
5. Sign Constraints
Since a negative amount of electricity can not be
shipped all Xij’s must be non negative;
13
Copyright © 2003 Brooks/Cole, a division of Thomson Learning, Inc.
LP Formulation of Powerco’s Problem
Min Z = 8X11+6X12+10X13+9X14+9X21+12X22+13X23+7X24
+14X31+9X32+16X33+5X34
15
Copyright © 2003 Brooks/Cole, a division of Thomson Learning, Inc.
Xij = number of units shipped from supply point i to
demand point j
i m j n
min cijXij
i 1 j 1
j n
s.t. Xij si (i 1,2,..., m)
j 1
i m
X
i 1
ij dj ( j 1,2,..., n)
16
Copyright © 2003 Brooks/Cole, a division of Thomson Learning, Inc.
Balanced Transportation Problem
If Total supply equals to total demand, the
problem is said to be a balanced
transportation problem:
i m j n
s d
i 1
i
j 1
j
17
Copyright © 2003 Brooks/Cole, a division of Thomson Learning, Inc.
Balancing a TP if total supply exceeds total
demand
18
Copyright © 2003 Brooks/Cole, a division of Thomson Learning, Inc.
Balancing a Transportation Problem if Total
Supply is Less than Total Demand
19
Copyright © 2003 Brooks/Cole, a division of Thomson Learning, Inc.
Solution of a Transportation Problem
It is always solved in two phases:
1. Finding the initial basic feasible solution
2. Optimization of the initial basic feasible solution which
is obtained in phase I
21
Copyright © 2003 Brooks/Cole, a division of Thomson Learning, Inc.
According to the explanations in the previous slide
we can set x11=3 (meaning demand of demand
point 1 is satisfied by supply point 1).
3 5 2 3
3 2
X 5 2 3
22
Copyright © 2003 Brooks/Cole, a division of Thomson Learning, Inc.
After we check the east and south cells, we saw that we
can go east (meaning supply point 1 still has capacity to
fulfill some demand).
3 2 X
X 3 2 3
3 2 X
3 3
X X 2 3
23
Copyright © 2003 Brooks/Cole, a division of Thomson Learning, Inc.
After applying the same procedure, we saw that we can
go south this time (meaning demand point 2 needs more
supply by supply point 2).
3 2 X
3 2 1
X X X 3
3 2 X
3 2 1 X
24 X X X 2
Copyright © 2003 Brooks/Cole, a division of Thomson Learning, Inc.
Finally, we will have the following bfs, which is:
x11=3, x12=2, x22=3, x23=2, x24=1, x34=2
3 2 X
3 2 1 X
2 X
X X X X
25
Copyright © 2003 Brooks/Cole, a division of Thomson Learning, Inc.
2. Minimum Cost Method
The Northwest Corner Method dos not utilize
shipping costs. It can yield an initial bfs easily but the
total shipping cost may be very high. The minimum
cost method uses shipping costs in order come up
with a bfs that has a lower cost. To begin the
minimum cost method, first we find the decision
variable with the smallest shipping cost (Xij). Then
assign Xij its largest possible value, which is the
minimum of si and dj
26
Copyright © 2003 Brooks/Cole, a division of Thomson Learning, Inc.
After that, as in the Northwest Corner Method we
should cross out row i and column j and reduce the
supply or demand of the noncrossed-out row or
column by the value of Xij. Then we will choose the
cell with the minimum cost of shipping from the cells
that do not lie in a crossed-out row or column and we
will repeat the procedure.
27
Copyright © 2003 Brooks/Cole, a division of Thomson Learning, Inc.
An example for Minimum Cost Method
Step 1: Select the cell with minimum cost.
2 3 5 6
5
2 1 3 5
10
3 8 4 6
15
12 8 4 6
28
Copyright © 2003 Brooks/Cole, a division of Thomson Learning, Inc.
Step 2: Cross-out column 2
2 3 5 6
5
2 1 3 5
2
8
3 8 4 6
15
12 X 4 6
29
Copyright © 2003 Brooks/Cole, a division of Thomson Learning, Inc.
Step 3: Find the new cell with minimum shipping cost
and cross-out row 2
2 3 5 6
5
2 1 3 5
X
2 8
3 8 4 6
15
10 X 4 6
30
Copyright © 2003 Brooks/Cole, a division of Thomson Learning, Inc.
Step 4: Find the new cell with minimum shipping cost
and cross-out row 1
2 3 5 6
X
5
2 1 3 5
X
2 8
3 8 4 6
15
5 X 4 6
31
Copyright © 2003 Brooks/Cole, a division of Thomson Learning, Inc.
Step 5: Find the new cell with minimum shipping cost
and cross-out column 1
2 3 5 6
X
5
2 1 3 5
X
2 8
3 8 4 6
10
5
X X 4 6
32
Copyright © 2003 Brooks/Cole, a division of Thomson Learning, Inc.
Step 6: Find the new cell with minimum shipping cost
and cross-out column 3
2 3 5 6
X
5
2 1 3 5
X
2 8
3 8 4 6
6
5 4
X X X 6
33
Copyright © 2003 Brooks/Cole, a division of Thomson Learning, Inc.
Step 7: Finally assign 6 to last cell. The bfs is found as:
X11=5, X21=2, X22=8, X31=5, X33=4 and X34=6
2 3 5 6
X
5
2 1 3 5
X
2 8
3 8 4 6
X
5 4 6
X X X X
34
Copyright © 2003 Brooks/Cole, a division of Thomson Learning, Inc.
3. Vogel’s Approximation Method
Begin with computing each row and column a
penalty. The penalty will be equal to the difference
between the two smallest shipping costs in the row or
column. Identify the row or column with the largest
penalty. Find the first basic variable which has the
smallest shipping cost in that row or column. Then
assign the highest possible value to that variable, and
cross-out the row or column as in the previous
methods. Compute new penalties and use the same
procedure.
35
Copyright © 2003 Brooks/Cole, a division of Thomson Learning, Inc.
An example for Vogel’s Method
Step 1: Compute the penalties.
6 7 8
10 7-6=1
15 80 78
15 78-15=63
Demand 15 5 5
36
Copyright © 2003 Brooks/Cole, a division of Thomson Learning, Inc.
Step 2: Identify the largest penalty and assign the
highest possible value to the variable.
6 7 8
5 8-6=2
5
15 80 78
15 78-15=63
Demand 15 X 5
37
Copyright © 2003 Brooks/Cole, a division of Thomson Learning, Inc.
Step 3: Identify the largest penalty and assign the
highest possible value to the variable.
6 7 8
0 _
5 5
15 80 78
15 _
Demand 15 X X
38
Copyright © 2003 Brooks/Cole, a division of Thomson Learning, Inc.
Step 4: Identify the largest penalty and assign the
highest possible value to the variable.
6 7 8
X _
0 5 5
15 80 78
15 _
Demand 15 X X
Column Penalty _ _ _
39
Copyright © 2003 Brooks/Cole, a division of Thomson Learning, Inc.
Step 5: Finally the bfs is found as X11=0, X12=5, X13=5,
and X21=15
6 7 8
X _
0 5 5
15 80 78
X _
15
Demand X X X
Column Penalty _ _ _
40
Copyright © 2003 Brooks/Cole, a division of Thomson Learning, Inc.
hil61217_ch03_case.qxd 5/12/04 17:11 Page 1
ADDITIONAL CASES
Edson Branner, the cafeteria cook who is surprisingly can be served for many days thereafter or can be used cre-
concerned about taste, informs Maria that an edible casse- atively in preparing other dishes.
role must contain at least a six to five ratio in the weight of
(a) Determine the amount of potatoes and green beans Maria
potatoes to green beans. should purchase each week for the casserole to minimize the
Given the number of students who eat in the cafeteria, ingredient costs while meeting nutritional, taste, and demand
Maria knows that she must purchase enough potatoes and requirements.
green beans to prepare a minimum of 10 kilograms (kg) of
casserole each week. (There are 1,000 g in 1 kg.) Again for Before she makes her final decision, Maria plans to explore
simplicity in planning, she assumes that only the potatoes the following questions independently except where other-
and green beans determine the amount of casserole that can wise indicated.
be prepared. Maria does not establish an upper limit on the (b) Maria is not very concerned about the taste of the casserole;
amount of casserole to prepare, since she knows all leftovers she is only concerned about meeting nutritional requirements
1
hil61217_ch03_case.qxd 5/12/04 17:11 Page 2
2 ADDITIONAL CASES
and cutting costs. She therefore forces Edson to change the can purchase lima beans for $0.60 per lb from the wholesaler.
recipe to allow for only at least a one to two ratio in the weight She also knows that lima beans contain 22.68 g of protein per
of potatoes to green beans. Given the new recipe, determine 10 ounces of lima beans, 6.804 mg of iron per 10 ounces of
the amount of potatoes and green beans Maria should purchase lima beans, and no vitamin C. Using the new cost and nutri-
each week. tional content of lima beans, determine the amount of potatoes
(c) Maria decides to lower the iron requirement to 65 mg since she and lima beans Maria should purchase each week to minimize
determines that the other ingredients, such as the onions and the ingredient costs while meeting nutritional, taste, and demand
cream of mushroom soup, also provide iron. Determine the requirements. The nutritional requirements include the reduced
amount of potatoes and green beans Maria should purchase each iron requirement from part (c).
week given this new iron requirement. (f) Will Edson be happy with the solution in part (e)? Why or why
(d) Maria learns that the wholesaler has a surplus of green beans not?
and is therefore selling the green beans for a lower price of (g) An All-State student task force meets during Body Awareness
$0.50 per lb. Using the same iron requirement from part (c) and Week and determines that All-State University’s nutritional re-
the new price of green beans, determine the amount of pota- quirements for iron are too lax and that those for vitamin C
toes and green beans Maria should purchase each week. are too stringent. The task force urges the university to adopt
(e) Maria decides that she wants to purchase lima beans instead of a policy that requires each serving of an entrée to contain at
green beans since lima beans are less expensive and provide a least 120 mg of iron and at least 500 mg of vitamin C. Using
greater amount of protein and iron than green beans. Maria again potatoes and lima beans as the ingredients for the dish and us-
wields her absolute power and forces Edson to change the recipe ing the new nutritional requirements, determine the amount of
to include lima beans instead of green beans. Maria knows she potatoes and lima beans Maria should purchase each week.
1
This case is based on an actual project completed by a team of master’s students in the Department of Engineering-Economic Systems and Operations
Research at Stanford University. (Following a later merger, this department now is the Department of Management Science and Engineering.)
hil61217_ch03_case.qxd 5/12/04 17:11 Page 3
After the consultants submitted these forecasts, Lenny be- For the following analysis consider only the labor cost
came interested in the percentage of calls from Spanish for the time employees spend answering phones. The cost
speakers since the hospital services many Spanish patients. for paperwork time is charged to other cost centers.
Lenny knows that he has to hire some operators who speak (a) How many Spanish-speaking operators and how many English-
Spanish to handle these calls. The consultants performed fur- speaking operators does the hospital need to staff the call cen-
ther data collection and determined that on average, 20 per- ter during each 2-hour shift of the day in order to answer all
cent of the calls were from Spanish speakers. calls? Please provide an integer number since half a human op-
Given these call forecasts, Lenny must now decide how erator makes no sense.
to staff the call center during each 2 hour shift of a weekday. (b) Lenny needs to determine how many full-time employees who
During the forecasting project, Creative Chaos Consultants speak Spanish, full-time employees who speak English, and part-
closely observed the operators working at the individual clin- time employees he should hire to begin on each shift. Creative
ics and departments and determined the number of calls op- Chaos Consultants advise him that linear programming can be
erators process per hour. The consultants informed Lenny that used to do this in such a way as to minimize operating costs
while answering all calls. Formulate a linear programming
an operator is able to process an average of six calls per hour.
model of this problem.
Lenny also knows that he has both full-time and part-time (c) Obtain an optimal solution for the linear programming model
workers available to staff the call center. A full-time employee formulated in part (b) to guide Lenny’s decision.
works 8 hours per day, but because of paperwork that must (d) Because many full-time workers do not want to work late into the
also be completed, the employee spends only 4 hours per day evening, Lenny can find only one qualified English-speaking op-
on the phone. To balance the schedule, the employee alter- erator willing to begin work at 1 P.M. Given this new constraint,
nates the 2-hour shifts between answering phones and com- how many full-time English-speaking operators, full-time Spanish-
pleting paperwork. Full-time employees can start their day ei- speaking operators, and part-time operators should Lenny hire for
ther by answering phones or by completing paperwork on the each shift to minimize operating costs while answering all calls?
first shift. The full-time employees speak either Spanish or (e) Lenny now has decided to investigate the option of hiring bilin-
English, but none of them are bilingual. Both Spanish-speak- gual operators instead of monolingual operators. If all the op-
erators are bilingual, how many operators should be working
ing and English-speaking employees are paid $10 per hour
during each 2-hour shift to answer all phone calls? As in part
for work before 5 P.M. and $12 per hour for work after 5 P.M. (a), please provide an integer answer.
The full-time employees can begin work at the beginning of (f) If all employees are bilingual, how many full-time and part-time
the 7 A.M. to 9 A.M. shift, 9 A.M. to 11 A.M. shift, 11 A.M. to employees should Lenny hire to begin on each shift to minimize
1 P.M. shift, or 1 P.M. to 3 P.M. shift. The part-time employees operating costs while answering all calls? As in part (b), for-
work for 4 hours, only answer calls, and only speak English. mulate a linear programming model to guide Lenny’s decision.
They can start work at the beginning of the 3 P.M. to 5 P.M. (g) What is the maximum percentage increase in the hourly wage
shift or the 5 P.M. to 7 P.M. shift, and like the full-time em- rate that Lenny can pay bilingual employees over monolingual
ployees, they are paid $10 per hour for work before 5 P.M. employees without increasing the total operating costs?
and $12 per hour for work after 5 P.M. (h) What other features of the call center should Lenny explore to
improve service or minimize operating costs?
4 ADDITIONAL CASES
Nutritious. Crunchy from start to finish. She can recite the Giacomi & Jackowitz has identified the three most ef-
litany in her sleep. It has the makings of a winning promo- fective advertising media for this product:
tional campaign.
Medium 1: Television commercials on Saturday morn-
However, Claire knows that she has to avoid the mis-
ing programs for children.
takes she made in her last campaign for a breakfast cereal
Medium 2: Advertisements in food and family-oriented
(her first big assignment since she won this promotion). She
magazines.
thought she had developed a really good campaign, but
Medium 3: Advertisements in Sunday supplements of
somehow it had failed to connect with the most crucial seg-
major newspapers.
ments of the market—young children and parents of young
children. She also has concluded that it was a mistake not The problem now is to determine which levels should be
to include cents-off coupons (coupons that provide rebates) chosen for these advertising activities to obtain the most ef-
in the magazine and newspaper advertising. fective advertising mix.
She had better get it right this time, especially after the To determine the best mix of activity levels for this par-
big stumble last time. The company’s president, David Sloan, ticular advertising problem, it is necessary (as always) to iden-
already has impressed on her how important the success of tify the overall measure of performance for the problem and
Crunchy Start is to the future of the company. She remem- then the contribution of each activity toward this measure. An
bers exactly how David concluded the conversation. “The ultimate goal for Super Grain is to maximize its profits, but
company’s shareholders are not happy. We need to get those it is difficult to make a direct connection between advertising
earnings headed in the right direction again.” exposure and profits. Therefore, as a surrogate for profit,
Claire already has employed a leading advertising firm, Claire decides to use expected number of exposures as the
Giacomi & Jackowitz, to help design a nationwide promo- overall measure of performance, where each viewing of an
tional campaign that will achieve the largest possible expo- advertisement by some individual counts as one exposure.
sure for Crunchy Start. Super Grain will pay this firm a fee Giacomi & Jackowitz has made preliminary plans for ad-
based on services performed (not to exceed $1 million), vertisements in the three media. The firm also has estimated
and has allocated an additional $4 million for advertising the expected number of exposures for each advertisement in
expenses. each medium, as given in the bottom row of Table 1.
Costs
The number of advertisements that can be run in the Consequently, the three limited resources for this prob-
different media are restricted by both the advertising bud- lem are
get (a limit of $4 million) and the planning budget (a limit
Resource 1: Advertising budget ($4 million),
of $1 million for the fee to Giacomi & Jackowitz). An-
Resource 2: Planning budget ($1 million),
other restriction is that there are only five commercial spots
Resource 3: Commercial spots available (5).
available for running different commercials on children’s
television programs on Saturday morning (medium 1). Table 1 shows how much of the advertising budget and the
The other two media have an ample number of spots planning budget would be used by each advertisement in the
available. respective media.
hil61217_ch03_case.qxd 5/12/04 17:11 Page 5
• The first row gives the cost per advertisement in each Requirement 2: The advertising of one type or another
medium. (The cost of using only a fraction of an adver- should be seen by at least 5 million
tising spot is assumed to be that fraction of the cost given parents of young children.
in the table.) In effect, these two requirements are minimum acceptable
• The second row shows Giacomi & Jackowitz’s estimates levels for two special benefits to be achieved by the adver-
of its total cost (including overhead and profit) for de- tising activities.
signing and developing each advertisement for the re-
spective media.1 (This cost represents the billable fee Benefit 1: Promoting the new breakfast cereal to young
from Super Grain.) children.
• The last row then gives the expected number of expo- Benefit 2: Promoting the new breakfast cereal to par-
sures per advertisement. ents of young children.
Since the promotional campaign is for a breakfast cereal that Because of the way the requirements have been articulated,
should have special appeal to young children, Claire feels the level of each of these benefits is measured by the num-
that two audiences should be especially targeted—young ber of people in the specified category that are reached by
children and parents of young children. (This is why one of the advertising.
the three advertising media recommended by Giacomi & To enable the construction of the corresponding bene-
Jackowitz is commercials on children’s television programs fit constraints, Claire asks Giacomi & Jackowitz to estimate
Saturday morning.) Consequently, Claire has established how much each advertisement in each of the media will con-
two requirements for the campaign. tribute to each benefit, as measured by the number of peo-
ple reached in the specified category. These estimates are
Requirement 1: The advertising of one type or another given in Table 2.
should be seen by at least 5 million
young children.
Minimum
Each TV Each Each Acceptable
Target Category Commercial Magazine Ad Sunday Ad Level
Claire has one more consideration she wants to incor- ment for coupon redemptions. Because of the importance of
porate into the model. She is a strong believer in the pro- Crunchy Start to the company, she has decided to use this
motional value of cents-off coupons (coupons that shoppers entire remaining allotment in the campaign promoting this
can clip from printed advertisements to obtain a refund of a cereal. Both medium 2 (advertisements in food and family-
designated amount when purchasing the advertised item). oriented magazines) and medium 3 (advertisements in Sun-
Consequently, she always earmarks a major portion of her day supplements of major newspapers) will feature cents-off
annual marketing budget for the redemption of these coupons. The estimates of the amount of coupon redemption
coupons. She still has $1,490,000 left from this year’s allot- per advertisement in each of these media is given in Table 3.
1
When presenting its estimates in this form, the firm is making two simplifying assumptions. One is that its cost for designing and developing each ad-
ditional advertisement in a medium is roughly the same as for the first advertisement in that medium. The second is that its cost when working with one
medium is unaffected by how much work it is doing (if any) with the other media.
hil61217_ch03_case.qxd 5/12/04 17:11 Page 6
6 ADDITIONAL CASES
(a) You now are in Claire’s shoes. Formulate and solve a linear pro- (c) In light of your conclusions in part (b), do you feel that the lin-
gramming model to determine the number of advertisements to ear programming model used in part (a) adequately captures the
run in each of the media in order to maximize the expected num- complexities of this problem for Claire’s purposes? Explain.
ber of exposures while satisfying all the constraints.
(b) For each of the four assumptions of linear programming pre- Note: This case will be continued in Case 13.3, so we sug-
sented in Sec. 3.3, discuss how well you feel it is satisfied for gest that you save your results.
this problem.
Linear Programming
Sensitivity Analysis
What if there is uncertainly about one or
more values in the LP model?
1. An OFC changes, or
2. A RHS changes
8
Max X7 T + 5 C (profit)
Clearly profit goes up, but would we want to
make more tables and less chairs?
(i.e. Does the optimal solution change?)
Characteristics of OFC Changes
• There is no effect on the feasible region
200
Feasible
100 Region
3T + 5C = $2850
Optimal Solution Feasible
(T=200, C=450) Region
0
0 100 500 800 T
• There is a range for each OFC where the
current optimal corner point remains
optimal.
RHS Example
• Electrical components decrease 500
500 / 950 = 0.5263
• Assembly hours increase 200
200 / 466.67 = 0.4285
0.9548
The sensitivity report can still be used
Pricing New Variables
Suppose they are considering selling a new
product, Home Theater Systems (HTS)