McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14...

90
© The McGraw-Hill Companies, Inc., 2003 14.1 McGraw-Hill/Irwin Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1) 14.2–14.13 Some Examples of Queueing Systems (Section 14.2) 14.14–14.16 Measures of Performance for Queueing Systems (Section 14.3)14.17– 14.20 A Case Study: The Dupit Corp. Problem (Section 14.4)14.21–14.23 Some Single-Server Queueing Models (Section 14.5) 14.24–14.33 Some Multiple-Server Queueing Models (Section 14.6) 14.34–14.42 Priority Queueing Models (Section 14.7) 14.43–14.50 Some Insights about Designing Queueing Systems (Section 14.8)14.51– 14.53 Economic Analysis of the Number of Servers to Provide (Section 14.9) 14.54–14.57 Queueing Models (UW Lecture) 14.58–14.76 These slides are based upon a lecture from the MBA elective course “Modeling with Spreadsheets” at the University of Washington (as taught by one of the authors). Queueing Applications (UW Lecture) 14.77–14.90 These slides are based upon a lecture from the MBA elective course “Modeling with Spreadsheets” at the University of Washington (as taught by one of the authors).

Transcript of McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14...

Page 1: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.1McGraw-Hill/Irwin

Table of ContentsChapter 14 (Queueing Models)

Elements of a Queueing Model (Section 14.1) 14.2–14.13Some Examples of Queueing Systems (Section 14.2) 14.14–14.16Measures of Performance for Queueing Systems (Section 14.3) 14.17–14.20A Case Study: The Dupit Corp. Problem (Section 14.4) 14.21–14.23Some Single-Server Queueing Models (Section 14.5) 14.24–14.33Some Multiple-Server Queueing Models (Section 14.6) 14.34–14.42Priority Queueing Models (Section 14.7) 14.43–14.50Some Insights about Designing Queueing Systems (Section 14.8) 14.51–14.53Economic Analysis of the Number of Servers to Provide (Section 14.9) 14.54–14.57

Queueing Models (UW Lecture) 14.58–14.76These slides are based upon a lecture from the MBA elective course “Modeling with Spreadsheets” at the University of Washington (as taught by one of the authors).

Queueing Applications (UW Lecture) 14.77–14.90These slides are based upon a lecture from the MBA elective course “Modeling with Spreadsheets” at the University of Washington (as taught by one of the authors).

Page 2: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.2McGraw-Hill/Irwin

A Basic Queueing System

CustomersQueue

Served Customers

Queueing System

Service facility

SSSS

CCCC

C C C C C C C

Served Customers

Page 3: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.3McGraw-Hill/Irwin

Herr Cutter’s Barber Shop

• Herr Cutter is a German barber who runs a one-man barber shop.

• Herr Cutter opens his shop at 8:00 A.M.

• The table shows his queueing system in action over a typical morning.

CustomerTime ofArrival

HaicutBegins

Durationof Haircut

HaircutEnds

1 8:03 8:03 17 minutes 8:20

2 8:15 8:20 21 minutes 8:41

3 8:25 8:41 19 minutes 9:00

4 8:30 9:00 15 minutes 9:15

5 9:05 9:15 20 minutes 9:35

6 9:43 — — —

Page 4: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.4McGraw-Hill/Irwin

Arrivals

• The time between consecutive arrivals to a queueing system are called the interarrival times.

• The expected number of arrivals per unit time is referred to as the mean arrival rate.

• The symbol used for the mean arrival rate is

= Mean arrival rate for customers coming to the queueing system

where is the Greek letter lambda.

• The mean of the probability distribution of interarrival times is

1 / = Expected interarrival time

• Most queueing models assume that the form of the probability distribution of interarrival times is an exponential distribution.

Page 5: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.5McGraw-Hill/Irwin

Evolution of the Number of Customers

20 40 60 80

1

2

3

4

Number of Customers in the System

0

Time (in minutes)100

Page 6: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.6McGraw-Hill/Irwin

The Exponential Distribution for Interarrival Times

Mean Time0

Page 7: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.7McGraw-Hill/Irwin

Properties of the Exponential Distribution

• There is a high likelihood of small interarrival times, but a small chance of a very large interarrival time. This is characteristic of interarrival times in practice.

• For most queueing systems, the servers have no control over when customers will arrive. Customers generally arrive randomly.

• Having random arrivals means that interarrival times are completely unpredictable, in the sense that the chance of an arrival in the next minute is always just the same.

• The only probability distribution with this property of random arrivals is the exponential distribution.

• The fact that the probability of an arrival in the next minute is completely uninfluenced by when the last arrival occurred is called the lack-of-memory property.

Page 8: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.8McGraw-Hill/Irwin

The Queue

• The number of customers in the queue (or queue size) is the number of customers waiting for service to begin.

• The number of customers in the system is the number in the queue plus the number currently being served.

• The queue capacity is the maximum number of customers that can be held in the queue.

• An infinite queue is one in which, for all practical purposes, an unlimited number of customers can be held there.

• When the capacity is small enough that it needs to be taken into account, then the queue is called a finite queue.

• The queue discipline refers to the order in which members of the queue are selected to begin service.

– The most common is first-come, first-served (FCFS).– Other possibilities include random selection, some priority procedure, or even last-

come, first-served.

Page 9: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.9McGraw-Hill/Irwin

Service

• When a customer enters service, the elapsed time from the beginning to the end of the service is referred to as the service time.

• Basic queueing models assume that the service time has a particular probability distribution.

• The symbol used for the mean of the service time distribution is

1 / = Expected service time

where is the Greek letter mu.

• The interpretation of itself is the mean service rate.

= Expected service completions per unit time for a single busy server

Page 10: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.10McGraw-Hill/Irwin

Some Service-Time Distributions

• Exponential Distribution– The most popular choice.

– Much easier to analyze than any other.

– Although it provides a good fit for interarrival times, this is much less true for service times.

– Provides a better fit when the service provided is random than if it involves a fixed set of tasks.

– Standard deviation: = Mean

• Constant Service Times– A better fit for systems that involve a fixed set of tasks.

– Standard deviation: = 0.

• Erlang Distribution– Fills the middle ground between the exponential distribution and constant.

– Has a shape parameter, k that determines the standard deviation.

– In particular, = mean / (k)

Page 11: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.11McGraw-Hill/Irwin

Standard Deviation and Mean for Distributions

Distribution Standard Deviation

Exponential mean

Degenerate (constant) 0

Erlang, any k (1 / k) (Mean)

Erlang, k = 2 (1 / 2) (Mean)

Erlang, k = 4 (1 / 2) (Mean)

Erlang, k = 8 (1 / 22) (Mean)

Erlang, k = 16 (1 / 4) (Mean)

Page 12: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.12McGraw-Hill/Irwin

Labels for Queueing Models

To identify which probability distribution is being assumed for service times (and for interarrival times), a queueing model conventionally is labeled as follows:

Distribution of service times

— / — / — Number of Servers

Distribution of interarrival times

The symbols used for the possible distributions areM = Exponential distribution (Markovian)D = Degenerate distribution (constant times)Ek = Erlang distribution (shape parameter = k)GI = General independent interarrival-time distribution (any distribution)G = General service-time distribution (any arbitrary distribution)

Page 13: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.13McGraw-Hill/Irwin

Summary of Usual Model Assumptions

1. Interarrival times are independent and identically distributed according to a specified probability distribution.

2. All arriving customers enter the queueing system and remain there until service has been completed.

3. The queueing system has a single infinite queue, so that the queue will hold an unlimited number of customers (for all practical purposes).

4. The queue discipline is first-come, first-served.

5. The queueing system has a specified number of servers, where each server is capable of serving any of the customers.

6. Each customer is served individually by any one of the servers.

7. Service times are independent and identically distributed according to a specified probability distribution.

Page 14: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.14McGraw-Hill/Irwin

Examples of Commercial Service SystemsThat Are Queueing Systems

Type of System Customers Server(s)

Barber shop People Barber

Bank teller services People Teller

ATM machine service People ATM machine

Checkout at a store People Checkout clerk

Plumbing services Clogged pipes Plumber

Ticket window at a movie theater People Cashier

Check-in counter at an airport People Airline agent

Brokerage service People Stock broker

Gas station Cars Pump

Call center for ordering goods People Telephone agent

Call center for technical assistance People Technical representative

Travel agency People Travel agent

Automobile repair shop Car owners Mechanic

Vending services People Vending machine

Dental services People Dentist

Roofing Services Roofs Roofer

Page 15: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.15McGraw-Hill/Irwin

Examples of Internal Service SystemsThat Are Queueing Systems

Type of System Customers Server(s)

Secretarial services Employees Secretary

Copying services Employees Copy machine

Computer programming services Employees Programmer

Mainframe computer Employees Computer

First-aid center Employees Nurse

Faxing services Employees Fax machine

Materials-handling system Loads Materials-handling unit

Maintenance system Machines Repair crew

Inspection station Items Inspector

Production system Jobs Machine

Semiautomatic machines Machines Operator

Tool crib Machine operators Clerk

Page 16: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.16McGraw-Hill/Irwin

Examples of Transportation Service SystemsThat Are Queueing Systems

Type of System Customers Server(s)

Highway tollbooth Cars Cashier

Truck loading dock Trucks Loading crew

Port unloading area Ships Unloading crew

Airplanes waiting to take off Airplanes Runway

Airplanes waiting to land Airplanes Runway

Airline service People Airplane

Taxicab service People Taxicab

Elevator service People Elevator

Fire department Fires Fire truck

Parking lot Cars Parking space

Ambulance service People Ambulance

Page 17: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.17McGraw-Hill/Irwin

Choosing a Measure of Performance

• Managers who oversee queueing systems are mainly concerned with two measures of performance:

– How many customers typically are waiting in the queueing system?

– How long do these customers typically have to wait?

• When customers are internal to the organization, the first measure tends to be more important.

– Having such customers wait causes lost productivity.

• Commercial service systems tend to place greater importance on the second measure.

– Outside customers are typically more concerned with how long they have to wait than with how many customers are there.

Page 18: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.18McGraw-Hill/Irwin

Defining the Measures of Performance

L = Expected number of customers in the system, including those being served (the symbol L comes from Line Length).

Lq = Expected number of customers in the queue, which excludes customers being served.

W = Expected waiting time in the system (including service time) for an individual customer (the symbol W comes from Waiting time).

Wq = Expected waiting time in the queue (excludes service time) for an individual customer.

These definitions assume that the queueing system is in a steady-state condition.

Page 19: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.19McGraw-Hill/Irwin

Relationship between L, W, Lq, and Wq

• Since 1/ is the expected service time

W = Wq + 1/

• Little’s formula states that

L = W

and

Lq = Wq

• Combining the above relationships leads to

L = Lq +

Page 20: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.20McGraw-Hill/Irwin

Using Probabilities as Measures of Performance

• In addition to knowing what happens on the average, we may also be interested in worst-case scenarios.

– What will be the maximum number of customers in the system? (Exceeded no more than, say, 5% of the time.)

– What will be the maximum waiting time of customers in the system? (Exceeded no more than, say, 5% of the time.)

• Statistics that are helpful to answer these types of questions are available for some queueing systems:

– Pn = Steady-state probability of having exactly n customers in the system.

– P(W ≤ t) = Probability the time spent in the system will be no more than t.

– P(Wq ≤ t) = Probability the wait time will be no more than t.

• Examples of common goals:– No more than three customers 95% of the time: P0 + P1 + P2 + P3 ≥ 0.95

– No more than 5% of customers wait more than 2 hours: P(W ≤ 2 hours) ≥ 0.95

Page 21: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.21McGraw-Hill/Irwin

The Dupit Corp. Problem

• The Dupit Corporation is a longtime leader in the office photocopier marketplace.

• Dupit’s service division is responsible for providing support to the customers by promptly repairing the machines when needed. This is done by the company’s service technical representatives, or tech reps.

• Current policy: Each tech rep’s territory is assigned enough machines so that the tech rep will be active repairing machines (or traveling to the site) 75% of the time.

– A repair call averages 2 hours, so this corresponds to 3 repair calls per day.

– Machines average 50 workdays between repairs, so assign 150 machines per rep.

• Proposed New Service Standard: The average waiting time before a tech rep begins the trip to the customer site should not exceed two hours.

Page 22: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.22McGraw-Hill/Irwin

Alternative Approaches to the Problem

• Approach Suggested by John Phixitt: Modify the current policy by decreasing the percentage of time that tech reps are expected to be repairing machines.

• Approach Suggested by the Vice President for Engineering: Provide new equipment to tech reps that would reduce the time required for repairs.

• Approach Suggested by the Chief Financial Officer: Replace the current one-person tech rep territories by larger territories served by multiple tech reps.

• Approach Suggested by the Vice President for Marketing: Give owners of the new printer-copier priority for receiving repairs over the company’s other customers.

Page 23: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.23McGraw-Hill/Irwin

The Queueing System for Each Tech Rep

• The customers: The machines needing repair.

• Customer arrivals: The calls to the tech rep requesting repairs.

• The queue: The machines waiting for repair to begin at their sites.

• The server: The tech rep.

• Service time: The total time the tech rep is tied up with a machine, either traveling to the machine site or repairing the machine. (Thus, a machine is viewed as leaving the queue and entering service when the tech rep begins the trip to the machine site.)

Page 24: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.24McGraw-Hill/Irwin

Notation for Single-Server Queueing Models

• = Mean arrival rate for customers= Expected number of arrivals per unit time

1/ = expected interarrival time

• = Mean service rate (for a continuously busy server)= Expected number of service completions per unit time

= expected service time

• = the utilization factor= the average fraction of time that a server is busy serving customers=

Page 25: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.25McGraw-Hill/Irwin

The M/M/1 Model

• Assumptions1. Interarrival times have an exponential distribution with a mean of 1/.

2. Service times have an exponential distribution with a mean of 1/.

3. The queueing system has one server.

• The expected number of customers in the system is

L = 1 – = –

• The expected waiting time in the system is

W = (1 / )L = 1 / ( – )

• The expected waiting time in the queue is

Wq = W – 1/ = / [( – )]

• The expected number of customers in the queue is

Lq = Wq = 2 / [( – )] = 2 / (1 – )

Page 26: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.26McGraw-Hill/Irwin

The M/M/1 Model

• The probability of having exactly n customers in the system is

Pn = (1 – )n

Thus,P0 = 1 – P1 = (1 – )P2 = (1 – )2

::

• The probability that the waiting time in the system exceeds t is

P(W > t) = e–(1–)t for t ≥ 0

• The probability that the waiting time in the queue exceeds t is

P(Wq > t) = e–(1–)t for t ≥ 0

Page 27: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.27McGraw-Hill/Irwin

M/M/1 Queueing Model for the Dupit’s Current Policy

3456789

1011121314151617181920212223

B C D E G HData Results

3 (mean arrival rate) L = 3 4 (mean service rate) Lq = 2.25s = 1 (# servers)

W = 1Pr(W > t) = 0.368 Wq = 0.75

when t = 1 0.75

Prob(Wq > t) = 0.276when t = 1 n Pn

0 0.251 0.18752 0.14063 0.10554 0.07915 0.05936 0.04457 0.03348 0.02509 0.0188

10 0.0141

Page 28: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.28McGraw-Hill/Irwin

John Phixitt’s Approach (Reduce Machines/Rep)

• The proposed new service standard is that the average waiting time before service begins be two hours (i.e., Wq ≤ 1/4 day).

• John Phixitt’s suggested approach is to lower the tech rep’s utilization factor sufficiently to meet the new service requirement.

Lower = / , until Wq ≤ 1/4 day,where

= (Number of machines assigned to tech rep) / 50.

Page 29: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.29McGraw-Hill/Irwin

M/M/1 Model for John Phixitt’s Suggested Approach(Reduce Machines/Rep)

3456789

1011121314151617181920212223

B C D E G HData Results

2 (mean arrival rate) L = 1 4 (mean service rate) Lq = 0.5s = 1 (# servers)

W = 0.5Pr(W > t) = 0.135 Wq = 0.25

when t = 1 0.5

Prob(Wq > t) = 0.068when t = 1 n Pn

0 0.51 0.252 0.12503 0.06254 0.03135 0.01566 0.00787 0.00398 0.00209 0.0010

10 0.0005

Page 30: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.30McGraw-Hill/Irwin

The M/G/1 Model

• Assumptions1. Interarrival times have an exponential distribution with a mean of 1/.

2. Service times can have any probability distribution. You only need the mean (1/) and standard deviation ().

3. The queueing system has one server.

• The probability of zero customers in the system isP0 = 1 –

• The expected number of customers in the queue isLq = 22 + 2] / [2(1 – )]

• The expected number of customers in the system isL = Lq +

• The expected waiting time in the queue isWq = Lq /

• The expected waiting time in the system isW = Wq + 1/

Page 31: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.31McGraw-Hill/Irwin

The Values of and Lq for the M/G/1 Modelwith Various Service-Time Distributions

Distribution Mean Model Lq

Exponential 1/ 1/ M/M/1 2 / (1 – )

Degenerate (constant) 1/ 0 M/D/1 (1/2) [2 / (1 – )]

Erlang, with shape parameter k 1/ (1/k) (1/) M/Ek/1 (k+1)/(2k) [2 / (1 – )]

Page 32: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.32McGraw-Hill/Irwin

VP for Engineering Approach (New Equipment)

• The proposed new service standard is that the average waiting time before service begins be two hours (i.e., Wq ≤ 1/4 day).

• The Vice President for Engineering has suggested providing tech reps with new state-of-the-art equipment that would reduce the time required for the longer repairs.

• After gathering more information, they estimate the new equipment would have the following effect on the service-time distribution:

– Decrease the mean from 1/4 day to 1/5 day.

– Decrease the standard deviation from 1/4 day to 1/10 day.

Page 33: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.33McGraw-Hill/Irwin

M/G/1 Model for the VP of Engineering Approach(New Equipment)

3456789

10

1112

B C D E F GData Results

3 (mean arrival rate) L = 1.163 0.2 (expected service time) Lq = 0.563

0.1 (standard deviation)s = 1 (# servers) W = 0.388

Wq = 0.188

0.6

P0 = 0.4

Page 34: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.34McGraw-Hill/Irwin

The M/M/s Model

• Assumptions1. Interarrival times have an exponential distribution with a mean of 1/.

2. Service times have an exponential distribution with a mean of 1/3. Any number of servers (denoted by s).

• With multiple servers, the formula for the utilization factor becomes

= / s

but still represents that average fraction of time that individual servers are busy.

Page 35: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.35McGraw-Hill/Irwin

Values of L for the M/M/s Model for Various Values of s

s = 1

s = 2

s = 3s = 4s = 5s = 7s = 10

s = 15s = 20s = 25

100

10

0.5

0.1

0.2

0 0.1 0.3 0.5 0.7 0.9 1.0Utilization factor

s

Steady-state expected number of customers in the queueing system

Page 36: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.36McGraw-Hill/Irwin

CFO Suggested Approach (Combine Into Teams)

• The proposed new service standard is that the average waiting time before service begins be two hours (i.e., Wq ≤ 1/4 day).

• The Chief Financial Officer has suggested combining the current one-person tech rep territories into larger territories that would be served jointly by multiple tech reps.

• A territory with two tech reps:– Number of machines = 300 (versus 150 before)

– Mean arrival rate = = 6 (versus = 3 before)

– Mean service rate = = 4 (as before)

– Number of servers = s = 2 (versus s = 1 before)

– Utilization factor = = /s = 0.75 (as before)

Page 37: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.37McGraw-Hill/Irwin

M/M/s Model for the CFO’s Suggested Approach(Combine Into Teams of Two)

3456789

1011121314151617181920212223

B C D E G HData Results

6 (mean arrival rate) L = 3.4286 4 (mean service rate) Lq = 1.9286s = 2 (# servers)

W = 0.5714Pr(W > t) = 0.169 Wq = 0.3214

when t = 1 0.75

Prob(Wq > t) = 0.087when t = 1 n Pn

0 0.14291 0.21432 0.16073 0.12054 0.09045 0.06786 0.05097 0.03818 0.02869 0.0215

10 0.0161

Page 38: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.38McGraw-Hill/Irwin

CFO Suggested Approach (Teams of Three)

• The Chief Financial Officer has suggested combining the current one-person tech rep territories into larger territories that would be served jointly by multiple tech reps.

• A territory with three tech reps:– Number of machines = 450 (versus 150 before)

– Mean arrival rate = = 9 (versus = 3 before)

– Mean service rate = = 4 (as before)

– Number of servers = s = 3 (versus s = 1 before)

– Utilization factor = = /s = 0.75 (as before)

Page 39: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.39McGraw-Hill/Irwin

M/M/s Model for the CFO’s Suggested Approach(Combine Into Teams of Three)

3456789

1011121314151617181920212223

B C D E G HData Results

9 (mean arrival rate) L = 3.9533 4 (mean service rate) Lq = 1.7033s = 3 (# servers)

W = 0.4393Pr(W > t) = 0.090 Wq = 0.1893

when t = 1 0.75

Prob(Wq > t) = 0.028when t = 1 n Pn

0 0.07481 0.16822 0.18933 0.14194 0.10655 0.07986 0.05997 0.04498 0.03379 0.0253

10 0.0189

Page 40: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.40McGraw-Hill/Irwin

Comparison of Wq with Territories of Different Sizes

Number ofTech Reps

Number ofMachines s Wq

1 150 3 4 1 0.75 0.75 workday (6 hours)

2 300 6 4 2 0.75 0.321 workday (2.57 hours)

3 450 9 4 3 0.75 0.189 workday (1.51 hours)

Page 41: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.41McGraw-Hill/Irwin

Values of L for the M/D/s Model for Various Values of s

100

0.1

1.0

10

0 0.1 0.3 0.5 0.9 1.0

s = 2

s = 3s = 4

s = 5s = 7

s = 10s = 15

s = 20

s = 25

s = 1

0.7Utilization factor

Steady-state expected number of customers in the queueing system

s

Page 42: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.42McGraw-Hill/Irwin

Values of L for the M/Ek/2 Model for Various Values of k

100

10

1.0

0.10 0.2 0.4 0.6 0.8 1.0

k = 1

k = 2

k = 8

Utilization factor s

Steady-state expected number of customers in the queueing system

Page 43: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.43McGraw-Hill/Irwin

Priority Queueing Models

• General Assumptions:– There are two or more categories of customers. Each category is assigned to a

priority class. Customers in priority class 1 are given priority over customers in priority class 2. Priority class 2 has priority over priority class 3, etc.

– After deferring to higher priority customers, the customers within each priority class are served on a first-come-fist-served basis.

• Two types of priorities– Nonpreemptive priorities: Once a server has begun serving a customer, the

service must be completed (even if a higher priority customer arrives). However, once service is completed, priorities are applied to select the next one to begin service.

– Preemptive priorities: The lowest priority customer being served is preempted (ejected back into the queue) whenever a higher priority customer enters the queueing system.

Page 44: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.44McGraw-Hill/Irwin

Preemptive Priorities Queueing Model

• Additional Assumptions1. Preemptive priorities are used as previously described.

2. For priority class i (i = 1, 2, … , n), the interarrival times of the customers in that class have an exponential distribution with a mean of 1/i.

3. All service times have an exponential distribution with a mean of 1/, regardless of the priority class involved.

4. The queueing system has a single server.

• The utilization factor for the server is

= (1 + 2 + … + n) /

Page 45: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.45McGraw-Hill/Irwin

Nonpreemptive Priorities Queueing Model

• Additional Assumptions1. Nonpreemptive priorities are used as previously described.

2. For priority class i (i = 1, 2, … , n), the interarrival times of the customers in that class have an exponential distribution with a mean of 1/i.

3. All service times have an exponential distribution with a mean of 1/, regardless of the priority class involved.

4. The queueing system can have any number of servers.

• The utilization factor for the servers is

= (1 + 2 + … + n) / s

Page 46: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.46McGraw-Hill/Irwin

VP of Marketing Approach (Priority for New Copiers)

• The proposed new service standard is that the average waiting time before service begins be two hours (i.e., Wq ≤ 1/4 day).

• The Vice President of Marketing has proposed giving the printer-copiers priority over other machines for receiving service. The rationale for this proposal is that the printer-copier performs so many vital functions that its owners cannot tolerate being without it as long as other machines.

• The mean arrival rates for the two classes of copiers are– 1 = 1 customer (printer-copier) per workday (now)

– 2 = 2 customers (other machines) per workday (now)

• The proportion of printer-copiers is expected to increase, so in a couple years– 1 = 1.5 customers (printer-copiers) per workday (later)

– 2 = 1.5 customers (other machines) per workday (later)

Page 47: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.47McGraw-Hill/Irwin

Nonpreemptive Priorities Model forVP of Marketing’s Approach (Current Arrival Rates)

345678

9

1011121314151617

B C D E F GData

n = 2 (# of priority classes) 4 (mean service rate)s = 1 (# servers)

i L Lq W Wq

Priority Class 1 1 0.5 0.25 0.5 0.25Priority Class 2 2 2.5 2 1.25 1Priority Class 3 1 #DIV/0! #DIV/0! #DIV/0! #DIV/0!Priority Class 4 1 #DIV/0! #DIV/0! #DIV/0! #DIV/0!Priority Class 5 1 1.75 1.5 1.75 1.5

3 0.75

Results

Page 48: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.48McGraw-Hill/Irwin

Nonpreemptive Priorities Model forVP of Marketing’s Approach (Future Arrival Rates)

345678

9

1011121314151617

B C D E F GData

n = 2 (# of priority classes) 4 (mean service rate)s = 1 (# servers)

i L Lq W Wq

Priority Class 1 1.5 0.825 0.45 0.55 0.3Priority Class 2 1.5 2.175 1.8 1.45 1.2Priority Class 3 1 #DIV/0! #DIV/0! #DIV/0! #DIV/0!Priority Class 4 1 #DIV/0! #DIV/0! #DIV/0! #DIV/0!Priority Class 5 1 1.75 1.5 1.75 1.5

3 0.75

Results

Page 49: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.49McGraw-Hill/Irwin

Expected Waiting Times with Nonpreemptive Priorities

s When 1 2 Wq for Printer Copiers Wq for Other Machines

1 Now 1 2 4 0.75 0.25 workday (2 hrs.) 1 workday (8 hrs.)

1 Later 1.5 1.5 4 0.75 0.3 workday (2.4 hrs.) 1.2 workday (9.6 hrs.)

2 Now 2 4 4 0.75 0.107 workday (0.86 hr.) 0.439 workday (3.43 hrs.)

2 Later 3 3 4 0.75 0.129 workday (1.03 hrs.) 0.514 workday (4.11 hrs.)

3 Now 3 6 4 0.75 0.063 workday (0.50 hr.) 0.252 workday (2.02 hrs.)

3 Later 4.5 4.5 4 0.75 0.076 workday (0.61 hr.) 0.303 workday (2.42 hrs.)

Page 50: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.50McGraw-Hill/Irwin

The Four Approaches Under Considerations

Proposer Proposal Additional Cost

John Phixitt Maintain one-person territories, but reduce number of machines assigned to each from 150 to 100

$300 million per year

VP for Engineering Keep current one-person territories, but provide new state-of-the-art equipment to the tech-reps

One-time cost of $500 million

Chief Financial Officer Change to three-person territories None, except disadvantages of larger territories

VP for Marketing Change to two-person territories with priority given to the printer-copiers for repairs

None, except disadvantages of larger territories

Decision: Adopt fourth proposal (except for sparsely populated areas where second proposal should be adopted).

Page 51: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.51McGraw-Hill/Irwin

Some Insights About Designing Queueing Systems

1. When designing a single-server queueing system, beware that giving a relatively high utilization factor (workload) to the server provides surprisingly poor performance for the system.

2. Decreasing the variability of service times (without any change in the mean) improves the performance of a queueing system substantially.

3. Multiple-server queueing systems can perform satisfactorily with somewhat higher utilization factors than can single-server queueing systems. For example, pooling servers by combining separate single-server queueing systems into one multiple-server queueing system greatly improves the measures of performance.

4. Applying priorities when selecting customers to begin service can greatly improve the measures of performance for high-priority customers.

Page 52: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.52McGraw-Hill/Irwin

Effect of High-Utilization Factors (Insight 1)

345

B C D E G HData Results

0.5 (mean arrival rate) L = 1 1 (mean service rate) Lq = 0.5

9

10

1112

13

141516171819202122232425

A B C D EData Table Demonstrating the Effect ofIncreasing on Lq and L for M/M/1

Lq L

1 0.5 1

0 0.01 0.0001 0.01010 0.25 0.0833 0.33330 0.5 0.5 10 0.6 0.9 1.50 0.7 1.6333 2.33330 0.75 2.25 30 0.8 3.2 40 0.85 4.8167 5.66670 0.9 8.1 90 0.95 18.05 190 0.99 98.01 990 0.999 998.001 999

0

20

40

60

80

100

0 0.2 0.4 0.6 0.8 1

System Utilization (r)A

vera

ge

Lin

e L

en

gth

(L

)

Page 53: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.53McGraw-Hill/Irwin

Effect of Decreasing (Insight 2)

123456789

10

111213

14

151617181920212223

A B C D E F G H

Template for the M/G/1 Queueing Model

Data Results 0.5 (mean arrival rate) L = 0.8125

1 (expected service time) Lq = 0.3125 0.5 (standard deviation)s = 1 (# servers) W = 1.625

Wq = 0.625

0.5

P0 = 0.5

Data Table Demonstrating the Effect of Decreasing s on Lq for M/G/1

Body of Table Shows L q Values

0.3125 1 0.5 0

0.5 0.500 0.313 0.250 0.75 2.250 1.406 1.125

0.9 8.100 5.063 4.0500.99 98.010 61.256 49.005

Page 54: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.54McGraw-Hill/Irwin

Economic Analysis of the Number of Servers to Provide

• In many cases, the consequences of making customers wait can be expressed as a waiting cost.

• The manager is interested in minimizing the total cost.TC = Expected total cost per unit timeSC = Expected service cost per unit timeWC = Expected waiting cost per unit time

The objective is then to choose the number of servers so as toMinimize TC = SC + WC

• When each server costs the same (Cs = cost of server per unit time),SC = Cs s

• When the waiting cost is proportional to the amount of waiting (Cw = waiting cost per unit time for each customer),

WC = Cw L

Page 55: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.55McGraw-Hill/Irwin

Acme Machine Shop

• The Acme Machine Shop has a tool crib for storing tool required by shop mechanics.

• Two clerks run the tool crib.

• The estimates of the mean arrival rate and the mean service rate (per server) are

= 120 customers per hour = 80 customers per hour

• The total cost to the company of each tool crib clerk is $20/hour, so Cs = $20.

• While mechanics are busy, their value to Acme is $48/hour, so Cw = $48.

• Choose s so as to Minimize TC = $20s + $48L.

Page 56: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.56McGraw-Hill/Irwin

Excel Template for Choosing the Number of Servers

3456789

1011121314151617181920

B C D E F GData Results

120 (mean arrival rate) L = 1.736842105 80 (mean service rate) Lq = 0.236842105s = 3 (# servers)

W = 0.014473684Pr(W > t) = 0.02581732 Wq = 0.001973684

when t = 0.05 0.5

Prob(Wq > t) = 0.00058707when t = 0.05 n Pn

0 0.2105263161 0.315789474

Cs = $20.00 (cost / server / unit time) 2 0.236842105Cw = $48.00 (waiting cost / unit time) 3 0.118421053

4 0.059210526Cost of Service $60.00 5 0.029605263Cost of Waiting $83.37 6 0.014802632

Total Cost $143.37 7 0.007401316

Economic Analysis:

Page 57: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.57McGraw-Hill/Irwin

Comparing Expected Cost vs. Number of Clerks

123456789

10

H I J K L M N

Data Table for Expected Total Cost of Alternatives

Cost of Cost of Totals r L Service Waiting Cost

0.50 1.74 $60.00 $83.37 $143.371 1.50 #N/A $20.00 #N/A #N/A2 0.75 3.43 $40.00 $164.57 $204.573 0.50 1.74 $60.00 $83.37 $143.374 0.38 1.54 $80.00 $74.15 $154.15

5 0.30 1.51 $100.00 $72.41 $172.41

$0

$50

$100

$150

$200

$250

0 1 2 3 4 5

Number of Servers (s)

Cos

t ($/

hour

)

Cost ofService

Cost ofWaiting

Total Cost

Page 58: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.58McGraw-Hill/Irwin

Where is There Waiting?

• Service Facility– Fast-food restaurants

– Post office

– Grocery store

– Bank

• Disneyland

• Highway traffic

• Manufacturing

• Equipment awaiting repair

• Phone or computer network

• Product orders

Page 59: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.59McGraw-Hill/Irwin

Why is There Waiting?

• Example #1: McDonalds– 50 customers arrive per hour

– Service rate is 60 customers per hour

• Example #2: Doctor’s Office– Arrivals are scheduled to arrive every 20 minutes.

– The doctor spends an average of 18 minutes with each patient.

Page 60: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.60McGraw-Hill/Irwin

System Characteristics

• Number of servers

• Arrival and service pattern– rate of arrivals and service

– distribution of arrivals and service

• Maximum size of the queue

• Queue disciplince– FCFS?

– Priority system?

• Population size– Infinite or finite?

Page 61: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.61McGraw-Hill/Irwin

Measures of System Performance

• Average number of customers waiting– in the system

– in the queue

• Average time customers wait– in the system

– in the queue

• Which measure is the most important?

Page 62: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.62McGraw-Hill/Irwin

Number of Servers

• Single Server

• Multiple Servers

. . .

Customers ServiceCenter

. . .

Customers

ServiceCenters

. . .

. . .

. . .

Customers ServiceCenters

Page 63: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.63McGraw-Hill/Irwin

Arrival Pattern

• A Poisson distribution is usually assumed.

• A good approximation of random arrivals.

• Lack-of-memory property: Probability of an arrival in the next instant is constant, regardless of the past.

0 1 2 3 4 5 6 7 8 9 10 11 12 13

Customers per time unit

RelativeFrequency

.02

.04

.06

.08

.10

.12

.14

.16

.18

Page 64: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.64McGraw-Hill/Irwin

Service Pattern

• Either an exponential distribution is assumed,– Implies that the service is usually short, but occasionally long

– If service time is exponential then service rate is Poisson

– Lack-of-memory property: The probability that a service ends in the next instant is constant (regardless of how long its already gone).

– Decent approximation if the jobs to be done are random.

– Not a good approximation if the jobs to be done are always the same.

Service Time

RelativeFrequency (%)

• Or any distribution– Only single-server model is easily solved.

Page 65: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.65McGraw-Hill/Irwin

Maximum Size of Queue

• Most queueing models assume an infinite queue length is possible.

• If the queue length is limited, a finite queue model can be used.

. . .

Page 66: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.66McGraw-Hill/Irwin

Queue Discipline

• Most queueing systems assume customers are served first-come first-served.

• If certain customers are given priority, a priority queueing model can be used.

– Nonpreemptive: Finish customer in service before taking a new one.

– Preemptive: If priority customer arrives, any regular customer in service is preempted (put back in the queue).

. .

. CustomersServiceCenter

. . .

RegularCustomers

ServiceCenter

PriorityCustomers

Page 67: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.67McGraw-Hill/Irwin

Population Source

• Most queueing models assume an infinite population source.

• If the number of potential customers is small, a finite source model can be used.

– Number in system affects arrival rate (fewer potential arrivals when more in system)

– Okay to assume infinite if N > 20.

. . .

Customer Source System

. . .

Customer Source System

Page 68: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.68McGraw-Hill/Irwin

Models

1. Single server, exponential service time (M/M/1)2. Single server, general service time (M/G/1)3. Multiple servers, exponential service time (M/M/s)4. Finite queue (M/M/s/K)5. Priority queue (nonpreemptive and preemptive)6. Finite calling population

A Taxonomy

— / — / — (and an optional fourth element / —)

Arrival Service Number of MaximumDistribution Distribution Servers in Queue

whereM = Exponential (Markovian)D = deterministic (constant)G = general distribution

Page 69: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.69McGraw-Hill/Irwin

Notation

• Parameters:

= customer arrival rate = service rate (1/ = average service time)s = number of servers

• Performance Measures

Lq = average number of customers in the queueL = average number of customers in the systemWq = average waiting time in the queueW = average waiting time (including service)Pn = probability of having n customers in the system = system utilization

Page 70: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.70McGraw-Hill/Irwin

Model 1 (M/M/1)

Customers arrive to a small-town post office at an average rate of 10 per hour (Poisson distribution). There is only one postal employee on duty and he can serve customers in an average of 5 minutes (exponential distribution).

123456789

1011121314151617181920212223

A B C D E G H I

Template for the M/M/s Queueing Model

Data Results 10 (mean arrival rate) L = 5 12 (mean service rate) Lq = 4.166666667s = 1 (# servers) minutes

W = 0.5 30Pr(W > t) = 0.13533528 Wq = 0.416666667 25

when t = 1 0.833333333

Prob(Wq > t) = 0.1127794when t = 1 n Pn

0 0.1666666671 0.1388888892 0.1157407413 0.0964506174 0.0803755145 0.0669795956 0.0558163297 0.0465136088 0.038761349 0.032301117

10 0.026917597

Page 71: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.71McGraw-Hill/Irwin

Model 2 (M/G/1)

ABC Car Wash is an automated car wash. Each customer deposits four quarters in a coin slot, drives the car into the auto-washer, and waits while the car is automatically washed. Cars arrive at an average rate of 20 cars per hour (Poisson). The service time is exactly 2 minutes.

123456789

10

1112

A B C D E F G H

Template for the M/G/1 Queueing Model

Data Results 20 (mean arrival rate) L = 1.333

0.03333333 (expected service time) Lq = 0.667 0 (standard deviation) minutess = 1 (# servers) W = 0.067 4

Wq = 0.033 2

0.666666667

P0 = 0.333333333

Page 72: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.72McGraw-Hill/Irwin

Model 3 (M/M/s)

A grocery store has three registers open. Customers arrive to check out at an average of 1 per minute (Poisson). The service time averages 2 minutes (exponential).

123456789

1011121314151617181920212223

A B C D E G H

Template for the M/M/s Queueing Model

Data Results 1 (mean arrival rate) L = 2.888888889 0.5 (mean service rate) Lq = 0.888888889s = 3 (# servers)

W = 2.888888889Pr(W > t) = 0.74131525 Wq = 0.888888889

when t = 1 0.666666667

Prob(Wq > t) = 0.26956918when t = 1 n Pn

0 0.1111111111 0.2222222222 0.2222222223 0.1481481484 0.0987654325 0.0658436216 0.0438957487 0.0292638328 0.0195092219 0.013006147

10 0.008670765

Page 73: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.73McGraw-Hill/Irwin

Model 4 (M/M/s/K)

A call center that handles the tech support for a software manufacturer currently has 10 telephone lines, with three people fielding the calls. Customers call at an average rate of 40 per hour (Poisson). A customer can be served in an average of four minutes (exponential).

123456789

1011121314151617181920212223

A B C D E F G

Template for M/M/s Finite Queue Model

Data Results 40 (mean arrival rate) L = 4.5577194 15 (mean service rate) Lq = 2.0413889s = 3 (# servers)K = 10 (max customers) W = 0.1208

Wq = 0.0540838

0.8888889

n Pn

0 0.04068251 0.10848662 0.14464883 0.12857674 0.11429045 0.10159156 0.09030357 0.08026988 0.0713519 0.0634231

10 0.0563761

Page 74: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.74McGraw-Hill/Irwin

Model 5a (Nonpreemptive Priority Queue)

Consider a small-town hospital emergency room (ER) that has just one doctor on duty. When patients arrive, they are classified as either critical or non-critical. When the doctor is finished treating a patient, she takes the next critical patient. If there are no critical patients, then she takes the next non-critical patient. The ER doctor spends an average of 10 minutes (exponential) treating each patient before they are either released or admitted to the hospital. An average of 1 critical patient and 3 non-critical patients arrive each hour (Poisson).

12345678

9

1011121314151617

A B C D E F G H

Template for M/M/s Nonpreemptive Priorities Queueing Model

Data1 n = 2 (# of priority classes)0 6 (mean service rate)0 s = 1 (# servers)00

0 i L Lq W Wq Wq (minutes)

0 Priority Class 1 1 0.3 0.133333333 0.3 0.133333333 80 Priority Class 2 3 1.7 1.2 0.566666667 0.4 240 Priority Class 3 1 2.166666667 2 2.166666667 20 Priority Class 4 1 #DIV/0! #DIV/0! #DIV/0! #DIV/0!0 Priority Class 5 1 #DIV/0! #DIV/0! #DIV/0! #DIV/0!00 40 0.666666667

Results

Page 75: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.75McGraw-Hill/Irwin

Model 5b (Preemptive Priority Queue)

Reconsider the same small-town hospital emergency room (ER). Now suppose they change their policy so that if a critical patient arrives while a non-critical patient is being treated, the doctor stops treating the non-critical patient, and immediately starts treating the critical patient. Only when there are no critical patients to be treated does the doctor start treating non-critical patients.

12345678

9

10111213141516

A B C D E F G H

Template for M/M/1 Preemptive Priorities Queueing Model

Datan = 2 (# of priority classes) 6 (mean service rate)s = 1 (# servers)

i L Lq W Wq Wq (minutes)

Priority Class 1 1 0.2 0.033333333 0.2 0.033333333 2Priority Class 2 3 1.8 1.3 0.6 0.433333333 26Priority Class 3 1 3 2.833333333 3 2.833333333Priority Class 4 1 #DIV/0! #DIV/0! #DIV/0! #DIV/0!Priority Class 5 1 #DIV/0! #DIV/0! #DIV/0! #DIV/0!

40.666666667

Results

Page 76: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.76McGraw-Hill/Irwin

Model 6 (Finite Calling Population)

Consider a PC-Board assembly facility. There are six automated component insertion machines. Unfortunately, they are very prone to break down. Each operating machine breaks down every eight hours or so (exponential distribution). Because these machines are so prone to break down, a full-time repairperson is kept on staff just to repair these machines. Each repair takes an average of one hour (exponential distribution). On average, how many machines are operating at a time?

123456789

1011121314151617181920212223

A B C D E F G

Template for M/M/s Finite Calling Population Model

Data Results 0.75 (max arrival rate) L = 1.118015082 1 (mean service rate) Lq = 0.507766967s = 1 (# servers)N = 6 (size of population) W = 1.832066425

Wq = 0.832066425

0.75-bar = 0.610248115

0 n Pn

1 0 0.3897518852 1 0.2923139143 2 0.1826961964 3 0.0913480985 4 0.0342555376 5 0.0085638847 6 0.0010704868 7 09 8 0

10 9 0

Page 77: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.77McGraw-Hill/Irwin

Application of Queueing Models

• We can use the results from queueing models to make the following types of decisions:

– How many servers to employ.

– How large should the waiting space be.

– Whether to use a single fast server or a number of slower servers.

– Whether to have a general purpose server or faster specific servers.

Page 78: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.78McGraw-Hill/Irwin

Total Cost

• The goal is to minimize total cost = cost of servers + cost of waiting

Cost of ServiceCapacity

Cost of customerswaiting

Total Cost

Optimum

Service Capacity

Cost

Page 79: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.79McGraw-Hill/Irwin

Example #1: How Many Servers?

• The MIS department of a high tech company handles employee requests for assistance when computer questions arise. Employees requiring assistance phone the MIS department with their questions (but may have to wait on hold if all of the tech support staff are busy).

• The MIS department receives an average of 40 requests for assistance per hour (Poisson).

• The average question can be answered in 3 minutes (exponential).

• The MIS staff is paid an average of $15 per hour.

• The average employee earns $25 per hour.

Question: What is the optimal size of the MIS tech support staff?

Page 80: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.80McGraw-Hill/Irwin

Example #1: How Many Servers

123456789

1011121314151617181920212223242526272829303132

A B C D E F G

Template for Economic Analysis of M/M/s Queueing Model

Data Results 40 (mean arrival rate) L = 2.173913043 20 (mean service rate) Lq = 0.173913043s = 4 (# servers)

W = 0.054347826Pr(W > t) = 0.4083219 Wq = 0.004347826

when t = 0.05 0.5

Prob(Wq > t) = 0.02353657when t = 0.05 n Pn

1 0 0.1304347832 Economic Analysis: 1 0.2608695652 Cs = $15.00 (cost / server / unit time) 2 0.2608695651 Cw = $25.00 (waiting cost / unit time) 3 0.1739130430 4 0.0869565220 Cost of Service $60.00 5 0.0434782610 Cost of Waiting $54.35 6 0.021739130 Total Cost $114.35 7 0.0108695650 8 0.0054347830 9 0.0027173910 10 0.0013586960 11 0.0006793480 12 0.0003396740 13 0.0001698370 14 8.49185E-050 15 4.24592E-050 16 2.12296E-050 17 1.06148E-050 18 5.3074E-060 19 2.6537E-06

Page 81: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.81McGraw-Hill/Irwin

A Data Table for Example #1: How Many Servers?

12345678

I J K L M N

Data Table for Example #1

s Lq Wq (min) Cost of Service Cost of Waiting Total Cost0.174 0.261 $60.00 $54.35 $114.35

3 0.889 1.333 $45.00 $72.22 $117.224 0.174 0.261 $60.00 $54.35 $114.355 0.040 0.060 $75.00 $51.00 $126.006 0.009 0.014 $90.00 $50.23 $140.23

Page 82: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.82McGraw-Hill/Irwin

Example #2: How Many Servers?

• A McDonalds franchise is trying to decide how many registers to have open during their busiest time, the lunch hour.

• Customers arrive during the lunch hour at a rate of 98 customers per hour (Poisson distribution).

• Each service takes an average of 3 minutes (exponential distribution).

Question #1: If management would not like the average customer to wait longer than five minutes in line, how many registers should they open?

Question #2: If management would like no more than 5% of customers to wait more than 5 minutes, how many registers should they open?

Page 83: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.83McGraw-Hill/Irwin

Example #2: How Many Servers?

123456789

101112

A B C D E G H I

Template for the M/M/s Queueing Model

Data Results 98 (mean arrival rate) L = 7.359291808 20 (mean service rate) Lq = 2.459291808s = 6 (# servers) minutes

W = 0.075094814 4.51Pr(W > t) = 0.34895764 minutes Wq = 0.025094814 1.51

when t = 0.08333333 5 0.816666667

Prob(Wq > t) = 0.08826736 minuteswhen t = 0.08333333 5 n Pn

123456789

K L M

Data Table for Example #2

s Wq (min) Pr(Wq > 5 min)1.5057 0.08827

5 28.510 0.804436 1.506 0.088277 0.430 0.009088 0.148 0.000879 0.053 0.00008

Page 84: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.84McGraw-Hill/Irwin

Example #3: How Much Waiting Space?

• A photo development shop operates a drive-through lane where customers can drop off film to be developed and pick up developed photos.

• Customers arrive at an average rate of 40 per hour (Poisson).

• Each service takes an average of 1 minute (exponential).

• They are remodeling the parking area and drive-through lane. They would like the drive-through lane to hold all of the customers at least 95% of the time.

Question: How many cars must the drive-through lane be able to hold?

Page 85: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.85McGraw-Hill/Irwin

Example #3: How Much Waiting Space?

123456789

1011121314151617181920212223

A B C D E G H I

Template for the M/M/s Queueing Model

Data Results 40 (mean arrival rate) L = 2 60 (mean service rate) Lq = 1.333333333s = 1 (# servers)

W = 0.05Pr(W > t) = 2.0612E-09 Wq = 0.033333333

when t = 1 0.666666667

Prob(Wq > t) = 1.3741E-09when t = 1 n Pn cumulative

0 0.333333333 0.33331 0.222222222 0.55562 0.148148148 0.70373 0.098765432 0.80254 0.065843621 0.86835 0.043895748 0.91226 0.029263832 0.94157 0.019509221 0.96108 0.013006147 0.97409 0.008670765 0.9827

10 0.00578051 0.9884

Page 86: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.86McGraw-Hill/Irwin

Example #4: One Fast Server or Many Slow Servers

• A McDonalds is considering changing the way that they serve customers.

• Customers arrive at an average rate of 50 per hour.

• Current System: For most of the day (all but their lunch hour), they have three registers open. Each cashier takes the customer’s order, collects the money, and then gets the burgers and pours the drinks. This takes an average of 3 minutes per customer (exponential distribution).

• Proposed System: They are considering having just one cash register. While one person takes the order and collects the money, another will pour the drinks, and another will get the burgers (like Wendys). The three together think they can serve a customer in an average of 1 minute.

Question: Should they switch to the proposed system?

Page 87: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.87McGraw-Hill/Irwin

3 Slow Servers (McDonalds)

1 Fast Server (Wendys)

3456789

10

B C D E G H IData Results

50 (mean arrival rate) L = 6.011235955 20 (mean service rate) Lq = 3.511235955s = 3 (# servers) minutes

W = 0.120224719 7.21Pr(W > t) = 0.46194225 Wq = 0.070224719 4.21

when t = 0.1 0.833333333

3456789

10

B C D E G H IData Results

50 (mean arrival rate) L = 5 60 (mean service rate) Lq = 4.166666667s = 1 (# servers) minutes

W = 0.1 6Pr(W > t) = 4.54E-05 Wq = 0.083333333 5

when t = 1 0.833333333

Page 88: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.88McGraw-Hill/Irwin

Example #5: General or Specific Servers

• A small bank in a mall has two tellers.

• The bank handles two kinds of customers: merchant customers and regular customers. Each arrive at an average rate of 20 customers per hour (for a total arrival rate of 40 customers per hour).

• Current System (Specific Servers): Currently one teller handles only merchant customers and one teller handles only regular customers. The service time for both tellers averages 2 minutes (exponential).

• Proposed System (General Servers): The bank manager is considering changing the setup to allow each teller to handle both merchant customers and regular customers. Since the tellers would have to handle both types of jobs, their efficiency would decrease to a mean service time of 2.2 minutes.

Question: Should they switch to the proposed system?

Page 89: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.89McGraw-Hill/Irwin

Current (Specific Servers)

Proposed (General Servers)

3456789

10

B C D E G H IData Results total in bank

20 (mean arrival rate) L = 2 4 30 (mean service rate) Lq = 1.333333333 2.667s = 1 (# servers) minutes

W = 0.1 6Pr(W > t) = 4.54E-05 Wq = 0.066666667 4

when t = 1 0.666666667

3456789

10

B C D E G H IData Results total in bank

40 (mean arrival rate) L = 3.173076923 3.173 27.27 (mean service rate) Lq = 1.706410256 1.706s = 2 (# servers) minutes

W = 0.079326923 4.760Pr(W > t) = 6.4082E-07 Wq = 0.042660256 2.560

when t = 1 0.733333333

Page 90: McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 14.1 Table of Contents Chapter 14 (Queueing Models) Elements of a Queueing Model (Section 14.1)14.2–14.13.

© The McGraw-Hill Companies, Inc., 200314.90McGraw-Hill/Irwin

LL Bean

• LL Bean’s mail order business– Mail order phone lines open 24 hours per day, 365 days per year

– 78,000 calls per week (average)

– Seasonal variations as well as variability during each day

• How LL Bean estimates the number of servers needed– Each of the week’s 168 hours in a week is modeled separately as a period to be

staffed

– Each hour modeled as an M/M/s queue

– Arrival rates and service rates estimated from historical data

– Service standard: no more than 15% of calls wait more than 20 seconds

– Full-time, part-time, and temporary workers scheduled to meet service standard