queuing theory - phl ched connect

106
QUEUING THEORY Learning Objectives University of the Philippines By the end of this module, the students are expected to: 1. Identify the appropriate queuing model for a particular situation. 2. Evaluate the performance of a queuing system using different metrics. 3. Use a spreadsheet template to easily compute queuing-related performance measures.

Upload: others

Post on 18-Apr-2022

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: QUEUING THEORY - PHL CHED Connect

QUEUING THEORYLearning Objectives

University of the Philippines

By the end of this module, the students are expected to:

1. Identify the appropriate queuing model for a particular situation.

2. Evaluate the performance of a queuing system using different metrics.

3. Use a spreadsheet template to easily compute queuing-related performance measures.

Page 2: QUEUING THEORY - PHL CHED Connect

service facility

QUEUING THEORYThe Queuing System

University of the Philippines

customer server

queue

arriving

customer

customers

in service

system boundary

Page 3: QUEUING THEORY - PHL CHED Connect

QUEUING THEORYKendall-Lee Notation

University of the Philippines

A six-element classification system for queuing systems using the notation:

_____ / _____ / _____ / _____ / _____ / _____A S s D K N

Examples:

1. M / M / 2 / FCFS / 20 / 20

2. D / M / 1 / FCFS / โˆž / โˆž

3. G / G / 2 / LCFS / 100 / โˆž

Page 4: QUEUING THEORY - PHL CHED Connect

QUEUING THEORYKendall-Lee Notation

University of the Philippines

_____ / _____ / _____ / _____ / _____ / _____A S s D K N

A: Arrival (Input) Process. The arrival pattern of arriving customers. Let ฮป be

the arrival rate of customers.

M โ€“ Markovian (exponential)

Ek โ€“ Erlang

D โ€“ constant (degenerate)

G โ€“ general

S: Service (Output ) Process. The service time distribution. Let ยต be the

service rate of each server.

M โ€“ Markovian

Ek โ€“ Erlang

D โ€“ constant (degenerate)

G โ€“ general

s: Servers. The number of servers in a service facility.

Page 5: QUEUING THEORY - PHL CHED Connect

QUEUING THEORYKendall-Lee Notation

University of the Philippines

_____ / _____ / _____ / _____ / _____ / _____A S s D K N

D: Queuing Discipline. Determines which customer will be served next.

FSFC โ€“ first come, first served

LCFS โ€“ last come, first served

SIRO โ€“ service in random order

GD โ€“ general discipline

K: System Capacity. The maximum number of customers that are allowed to

enter the system.

N: Input Source / Calling Population. The number of customers that may

enter the system.

The last three may be omitted in the notation if FCFS/โˆž/โˆž.

Page 6: QUEUING THEORY - PHL CHED Connect

QUEUING THEORYReview of Relevant Probability Distributions

University of the Philippines

Degenerate Normal Erlang Exponential

Increasing Randomness (Variability)

Mathematicallytractable

Limited Mathematical Analysis(may require simulation)

Mathematicallytractable

Page 7: QUEUING THEORY - PHL CHED Connect

QUEUING THEORYReview of Relevant Probability Distributions

University of the Philippines

Degenerate Normal Erlang Exponential

10.0

10.0

10.0

10.0

10.0

10.0

10.0

10.0

9.7

9.7

9.6

9.6

9.3

11.3

9.3

10.1

17.6

17.9

15.0

7.0

6.4

7.2

39.3

4.0

7.6

8.6

40.0

36.1

8.3

34.2

3.4

9.0

Page 8: QUEUING THEORY - PHL CHED Connect

QUEUING THEORYReview of Relevant Probability Distributions

University of the Philippines

Exponential

Degenerate

Normal

Erlang

Page 9: QUEUING THEORY - PHL CHED Connect

QUEUING THEORYKendall-Lee Notation

University of the Philippines

Identify the Kendall-Lee notation of these queuing systems.

1. A canteen operates an espresso stand. Customers arrive to the standwith an exponential inter-arrival time. The espresso vending machinerequires exactly 45 seconds for each customer to operate.

2. A company has provided specialized machines to 12 different clients.Part of the agreement between the company and the clients is that thecompany will send a technician whenever the machine breaks. Thetechnician visits the site and will spend an average of 3 days per site tofix the machine. Assume normally distributed fix time. The company has2 technicians. Mean time to failure (MTTF) of each machine isexponential with mean of 60 days.

M/D/1/FCFS/โˆž/โˆž or M/D/1

M/G/2/FCFS/12/12

Page 10: QUEUING THEORY - PHL CHED Connect

QUEUING THEORYKendall-Lee Notation

University of the Philippines

Identify the Kendall-Lee notation of these queueing systems.

3. An eat-all-you-can dining place is usually full (can seat only 45 groups ofpeople). That is why it usually has a number of groups waiting in theholding area. A group of customers will balk (go to other dining place) ifthey see that there are 10 groups already in the holding area. Eatingtime per group is roughly 1.5 hrs. Assume Poisson arrival and randomeating time.

4. Students return books to the library at a rate of 6 books per hour. Theborrowerโ€™s section librarian returns the books, one at a time, to theirrespective bookshelves. This takes an erlang distributed time per book.Since a newly-returned book is placed on top of the pile, it is the firstone to be given attention by the librarian.

M/M/45/FCFS/55/โˆž

M/Ek/1/LCFS/โˆž/โˆž

Page 11: QUEUING THEORY - PHL CHED Connect

QUEUING THEORYPerformance Measure of Queuing Systems

University of the Philippines

โ–ช Ls. Average number of customers being served.

โ–ช Lq. Average length of customers in the line (queue).

โ–ช L = Ls + Lq. Average number of customers in the system

โ–ช Ws. Average service time of a customer.

โ–ช Wq. Average waiting time of customer in the line (queue).

โ–ช W = Ws + Wq. Average waiting time of customer in the system.

โ–ช Probability of Balking. Balking happens when a customer cannot (orrefuses to) enter the line because it is either full or too long.

โ–ช Server Utilization. The proportion of time that a given server is busy as itattends to customers.

Page 12: QUEUING THEORY - PHL CHED Connect

QUEUING THEORYPerformance Measure of Queuing Systems

University of the Philippines

Steady State(reported values)

Transient Period(not reported)

Page 13: QUEUING THEORY - PHL CHED Connect

QUEUING THEORYPerformance Measure of Queuing Systems

University of the Philippines

Let Pn be the steady-state probability that the queuing system has n

customers.

๐ฟ =

๐‘›

๐‘›๐‘ƒ๐‘›

๐ฟ๐‘ž =

๐‘›>๐‘ 

เตซ๐‘› โˆ’ ๐‘ )๐‘ƒ๐‘›

Page 14: QUEUING THEORY - PHL CHED Connect

QUEUING THEORYLittleโ€™s Queuing Formulas

University of the Philippines

Littleโ€™s Law states that the average number of customers in a queuingsystem is the product of the average entry rate of customers and theaverage time a customer spends in the system.

The following relationships are likewise true.

๐ฟ = ๐œ†๐‘Ž๐‘ฃ๐‘’๐‘Š

๐ฟ๐‘ž = ๐œ†๐‘Ž๐‘ฃ๐‘’๐‘Š๐‘ž

๐ฟ๐‘  = ๐œ†๐‘Ž๐‘ฃ๐‘’๐‘Š๐‘ 

Page 15: QUEUING THEORY - PHL CHED Connect

QUEUING THEORYLittleโ€™s Queuing Formulas

University of the Philippines

L WL = ฮปaveW

Wq

W = Wq + 1/ยต

Lq

Lq = ฮปaveWq

L = Lq + ฮป/ยต

Page 16: QUEUING THEORY - PHL CHED Connect

QUEUING THEORYLittleโ€™s Queuing Formulas

University of the Philippines

In the Bills Payment section of a utility company, customers arrive to settletheir bills at a rate of 60 per hour. These customers join a single queueleading to three cashiers. Each cashier, if working continuously, can servecan serve a customer 24 customers in an hour. It is estimated that acustomer waits in line for an average of 1.5 mins before service begins.Determine the average number of customers in queuing system.

๐œ† = 60 ๐‘๐‘ข๐‘ ๐‘ก๐‘œ๐‘š๐‘’๐‘Ÿ๐‘ /โ„Ž๐‘Ÿ

๐‘Š๐‘ž = 1.5 ๐‘š๐‘–๐‘›๐‘ 

ฮผ = 24 ๐‘๐‘ข๐‘ ๐‘ก๐‘œ๐‘š๐‘’๐‘Ÿ๐‘ /โ„Ž๐‘Ÿ

๐‘Š๐‘  =1

๐œ‡=

1

24= 0.042 โ„Ž๐‘Ÿ = 2.5 ๐‘š๐‘–๐‘›๐‘ 

๐‘Š = ๐‘Š๐‘ž + ๐‘Š๐‘  =1.5

60+ 0.042 = 0.067 โ„Ž๐‘Ÿ = 4 ๐‘š๐‘–๐‘›๐‘ 

๐ฟ = ๐œ†๐‘Ž๐‘ฃ๐‘’๐‘Š = 60 0.067 = ๐Ÿ’ ๐’„๐’–๐’”๐’•๐’๐’Ž๐’†๐’“๐’”

Page 17: QUEUING THEORY - PHL CHED Connect

QUEUING THEORYBirth-and-Death Model of Markovian Queues

University of the Philippines

0 1 2 3 4 5 . . .

ฮป0 ฮป1 ฮป2 ฮป3 ฮป4 ฮป5

ยต1 ยต2 ยต3 ยต4ยต5 ยต6

Let the state N(t) of the queuing system be the number of customers in the

system at time t.

Birth is the transition from state n to state n+1. If the system is in state n,

the remaining time until the next birth is exponential with rate ฮปn, n โ‰ฅ 0.

Death is the transition from state n to state n-1. If the system is in state n,

the remaining time until the next death is exponential with rate ยตn, n โ‰ฅ 1.

Page 18: QUEUING THEORY - PHL CHED Connect

QUEUING THEORYBirth-and-Death Model of Markovian Queues

University of the Philippines

0 1 2 3 4 5 . . .

ฮป0 ฮป1 ฮป2 ฮป3 ฮป4 ฮป5

ยต1 ยต2 ยต3 ยต4ยต5 ยต6

๐‘ƒ1 =๐œ†0๐œ‡1๐‘ƒ0

๐‘ƒ2 =๐œ†0๐œ†1๐œ‡1๐œ‡2

๐‘ƒ0 =๐œ†1๐œ‡2๐‘ƒ1

๐‘ƒ3 =๐œ†0๐œ†1๐œ†2๐œ‡1๐œ‡2๐œ‡3

๐‘ƒ0 =๐œ†2๐œ‡3๐‘ƒ2

๐‘ƒ4 =๐œ†0๐œ†1๐œ†2๐œ†3๐œ‡1๐œ‡2๐œ‡3๐œ‡4

๐‘ƒ0 =๐œ†3๐œ‡4๐‘ƒ3

๐‘ƒ5 =๐œ†0๐œ†1๐œ†2๐œ†3๐œ†4๐œ‡1๐œ‡2๐œ‡3๐œ‡4๐œ‡5

๐‘ƒ0 =๐œ†4๐œ‡5๐‘ƒ4

๐‘ƒ0 = 1 +๐œ†0๐œ‡1

+๐œ†0๐œ†1๐œ‡1๐œ‡2

+๐œ†0๐œ†1๐œ†2๐œ‡1๐œ‡2๐œ‡3

+๐œ†0๐œ†1๐œ†2๐œ†3๐œ‡1๐œ‡2๐œ‡3๐œ‡4

+๐œ†0๐œ†1๐œ†2๐œ†3๐œ†4๐œ‡1๐œ‡2๐œ‡3๐œ‡4๐œ‡5

+ โ€ฆ

โˆ’1

1 +๐œ†0๐œ‡1

+๐œ†0๐œ†1๐œ‡1๐œ‡2

+๐œ†0๐œ†1๐œ†2๐œ‡1๐œ‡2๐œ‡3

+๐œ†0๐œ†1๐œ†2๐œ†3๐œ‡1๐œ‡2๐œ‡3๐œ‡4

+๐œ†0๐œ†1๐œ†2๐œ†3๐œ†4๐œ‡1๐œ‡2๐œ‡3๐œ‡4๐œ‡5

+ โ€ฆ

Page 19: QUEUING THEORY - PHL CHED Connect

QUEUING THEORYBirth-and-Death Model of Markovian Queues

University of the Philippines

0 1 2 3 4 5

5/hr 5/hr 5/hr 5/hr 5/hr

4/hr 8/hr 8/hr 8/hr 8/hr

๐‘ƒ1 =๐œ†0๐œ‡1๐‘ƒ0 =

5

40.249 = 0.311

๐‘ƒ2 =๐œ†1๐œ‡2๐‘ƒ1 =

5

80.311 = 0.195

๐‘ƒ3 =๐œ†2๐œ‡3๐‘ƒ2 =

5

80.195 = 0.122

๐‘ƒ4 =๐œ†3๐œ‡4๐‘ƒ3 =

5

80.122 = 0.076

๐‘ƒ5 =๐œ†4๐œ‡5๐‘ƒ4 =

5

80.076 = 0.048

๐‘ƒ0 = 1 +๐œ†0๐œ‡1

+๐œ†0๐œ†1๐œ‡1๐œ‡2

+๐œ†0๐œ†1๐œ†2๐œ‡1๐œ‡2๐œ‡3

+๐œ†0๐œ†1๐œ†2๐œ†3๐œ‡1๐œ‡2๐œ‡3๐œ‡4

+๐œ†0๐œ†1๐œ†2๐œ†3๐œ†4๐œ‡1๐œ‡2๐œ‡3๐œ‡4๐œ‡5

+

โˆ’1

1 +5

4+5(5)

4(8)+5(5)(5)

4(8)(8)+5(5)(5)(5)

4(8)(8)(8)+5(5)(5)(5)

4(8)(8)(8)

Consider the rate diagram of a Markovian queuing system. Find the steady-

state probabilities Pnโ€™s.

= 0.249

Page 20: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/1

University of the Philippines

๐œŒ =๐œ†

๐œ‡< 1 ๐‘ƒ0 = 1 โˆ’ ๐œŒ

๐ฟ =๐œŒ

1 โˆ’ ๐œŒ=

๐œ†

๐œ‡ โˆ’ ๐œ†๐ฟ๐‘ž =

๐œŒ2

1 โˆ’ ๐œŒ=

๐œ†2

)๐œ‡(๐œ‡ โˆ’ ๐œ†

๐‘ƒ๐‘› = ๐œŒ๐‘›(1 โˆ’ ๐œŒ)

๐‘Š =๐œŒ

)๐œ†(1 โˆ’ ๐œŒ=

1

๐œ‡ โˆ’ ๐œ†๐‘Š๐‘ž =

๐œŒ2

)๐œ†(1 โˆ’ ๐œŒ=

๐œ†

)๐œ‡(๐œ‡ โˆ’ ๐œ†

0 1 2 3 . . .

ฮป ฮป ฮป ฮป

ฮผ ฮผ ฮผ ฮผ

๐‘ƒ > ๐‘ก = ๐œŒ๐‘’โˆ’๐œ‡ 1โˆ’๐œŒ ๐‘กWq

Note: is the waiting time of customer in queue. Wq is the average waiting time of

customer in queue or E( ).

WqWq

Page 21: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/1

University of the Philippines

A regional airport has a single runway. Airplanes requiring the use of therunway arrive at a Poisson rate of 12 per hour. Each plane uses the runwayfor an exponential time with mean of 4 mins.

a. Find the average waiting time of airplanes before they can use therunway.

b. What is the utilization of the runway?

c. Compute the average number of airplanes currently using or waiting touse the runway.

d. Find the probability that an airplane does not need to queue to use therunway.

e. What is the probability that an airplane needs to wait for more than 6mins before it can use the runway?

Page 22: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/1

University of the Philippines

0 1 2 3 4 5 . . .

12/hr 12/hr 12/hr 12/hr 12/hr 12/hr

15/hr 15/hr 15/hr 15/hr 15/hr 15/hr

M/M/1 with ฮป = 12/hr and ยต = 15/hr

Page 23: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/1

University of the Philippines

a. Find the average waiting time of airplanes before they can use therunway.

b. What is the utilization of the runway?

c. Compute the average number of airplanes currently using or waiting touse the runway.

๐‘Š๐‘ž =๐œ†

)๐œ‡(๐œ‡ โˆ’ ๐œ†=

12

)15(15 โˆ’ 12= ๐ŸŽ. ๐Ÿ๐Ÿ”๐Ÿ”๐Ÿ• ๐’‰๐’“ = ๐Ÿ๐Ÿ”๐’Ž๐’Š๐’๐’”

๐œŒ =๐œ†

๐œ‡=12

15= ๐ŸŽ. ๐Ÿ–๐ŸŽ

๐ฟ =๐œ†

๐œ‡ โˆ’ ๐œ†=

12

15 โˆ’ 12= ๐Ÿ’ ๐’‘๐’๐’‚๐’๐’†๐’”

Page 24: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/1

University of the Philippines

d. Find the probability that an airplane does not need to queue to use therunway.

e. What is the probability that an airplane needs to wait for more than 6mins before it can use the runway?

๐‘ƒ0 = 1 โˆ’ ๐œŒ = 1 โˆ’ 0.80 = ๐ŸŽ. ๐Ÿ๐ŸŽ

๐‘ƒ > ๐‘ก = ๐œŒ๐‘’โˆ’๐œ‡ 1โˆ’๐œŒ ๐‘ก = 0.80๐‘’โˆ’15 1โˆ’0.80 (660) = ๐ŸŽ. ๐Ÿ“๐Ÿ—๐Ÿ‘Wq

Page 25: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/1

University of the Philippines

Page 26: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/1

University of the Philippines

A small grocery store has a single cashier lane where grocers line up to payfor their purchases. Inter-arrival time of customers is exponentiallydistributed with mean of 3 mins. Due to the variety in type and number ofitems purchased, transaction time is approximately exponentially distributedwith mean 2.5 mins.

a. Compute the average number of customers in the cashier lane.

b. Find the probability that there are at most 4 customers in the lane.

c. What is the proportion of time that the cashier is idle?

d. Find the average time a customer spends in the cashier, includingqueuing time and transaction time.

e. Buying a POS machine will help reduce average transaction time to only2 mins (20% reduction) with the aid of a barcode reader โ€“ eliminatingthe need to type item codes manually. If implemented, find the percentreduction in the average time a customer spends in the cashier.

Page 27: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/1

University of the Philippines

0 1 2 3 4 5 . . .

20/hr 20/hr 20/hr 20/hr 20/hr 20/hr

24/hr 24/hr 24/hr 24/hr 24/hr 24/hr

M/M/1 with ฮป = 20/hr and ยต = 24/hr

Page 28: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/1

University of the Philippines

a. Compute the average number of customers in the cashier lane.

b. Find the probability that there are at most 4 customers in the lane.

c. What is the proportion of time that the cashier is idle?

๐ฟ =๐œ†

๐œ‡ โˆ’ ๐œ†=

20

20 โˆ’ 24= ๐Ÿ“ ๐’„๐’–๐’”๐’•๐’๐’Ž๐’†๐’“๐’”

๐‘›=0

4

๐‘ƒ๐‘› =

๐‘›=0

4

)๐œŒ๐‘›(1 โˆ’ ๐œŒ =

๐‘›=0

420

24

๐‘›

1 โˆ’20

24= ๐ŸŽ. ๐Ÿ“๐Ÿ—๐Ÿ–

๐‘ƒ0 = 1 โˆ’ ๐œŒ = 1 โˆ’20

24= ๐ŸŽ. ๐Ÿ๐Ÿ”๐Ÿ•

Page 29: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/1

University of the Philippines

d. Find the average time a customer spends in the cashier, includingqueuing time and transaction time.

e. Buying a POS machine will help reduce average transaction time to only2 mins (20% reduction) with the aid of a barcode reader โ€“ eliminatingthe need to type item codes manually. If implemented, find the percentreduction in the average time a customer spends in the cashier.

๐‘Š =1

๐œ‡ โˆ’ ๐œ†=

1

24 โˆ’ 20= 0.25 โ„Ž๐‘Ÿ = ๐Ÿ๐Ÿ“๐’Ž๐’Š๐’๐’”

๐‘Š๐‘›๐‘’๐‘ค =1

๐œ‡๐‘›๐‘’๐‘ค โˆ’ ๐œ†=

1

30 โˆ’ 20= 0.10 โ„Ž๐‘Ÿ = ๐Ÿ”๐’Ž๐’Š๐’๐’”

% ๐‘…๐‘’๐‘‘๐‘ข๐‘๐‘ก๐‘–๐‘œ๐‘› =15 ๐‘š๐‘–๐‘›๐‘  โˆ’ 6 ๐‘š๐‘–๐‘›๐‘ 

15 ๐‘š๐‘–๐‘›๐‘ = ๐Ÿ”๐ŸŽ%

Page 30: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/1

University of the Philippines

Page 31: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s

University of the Philippines

0 1 2 s-1. . .

ฮป ฮป ฮป ฮป

ฮผ 2ฮผ 3ฮผ sฮผ

. . .s

ฮป

s+1

sฮผ(s-1)ฮผ

ฮป

sฮผ

ฮป

๐œŒ =๐œ†

๐‘ ๐œ‡< 1 ๐‘ƒ ๐‘› โ‰ฅ ๐‘  =

ฮค๐œ† ๐œ‡ ๐‘ ๐‘ƒ0)๐‘ ! (1 โˆ’ ๐œŒ

๐‘ƒ0 = ๐‘›=0

๐‘ โˆ’1 ฮค๐œ† ๐œ‡ ๐‘›

๐‘›!+

ฮค๐œ† ๐œ‡ ๐‘ 

)๐‘ ! (1 โˆ’ ๐œŒ

โˆ’1

๐‘ƒ๐‘› =

ฮค๐œ† ๐œ‡ ๐‘›๐‘ƒ0๐‘›!

, ๐‘› โ‰ค ๐‘ .ฮค๐œ† ๐œ‡ ๐‘›๐‘ƒ0๐‘ ! ๐‘ ๐‘›โˆ’๐‘ 

, ๐‘› โ‰ฅ ๐‘ 

๐ฟ๐‘ž =๐‘ƒ ๐‘› โ‰ฅ ๐‘  ๐œŒ

1 โˆ’ ๐œŒ

๐‘Š๐‘ž =๐‘ƒ ๐‘› โ‰ฅ ๐‘ 

๐‘ ๐œ‡ โˆ’ ๐œ†

๐‘ƒ > ๐‘ก = ๐‘ƒ ๐‘› โ‰ฅ ๐‘  ๐‘’โˆ’๐‘ ๐œ‡ 1โˆ’๐œŒ ๐‘กWq

Page 32: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s

University of the Philippines

A customer support contact center employs 15 employees (or agents). Callsfrom customers who wish to made an inquiry enter the companyโ€™s IT systemat a Poisson rate of 94 calls per hour. The system places the call (or ticket)in a single queue and directs it to an agent once available. Customer callslast for an exponential time with mean of 8 mins

a. Find the probability that all agents are busy in a given time.

b. Find the average time a call is put on hold before it is attended by anagent.

c. On the average, how may calls are in the IT system (both being attendedto and put on hold).

d. Since waiting time is not acceptable, find the number of additionalagents required to ensure that average time a call is put on hold isreduced to at most 30 seconds.

Page 33: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s

University of the Philippines

0 1 2 โ€ฆ 14 15 16 โ€ฆ

94/hr 94/hr 94/hr 94/hr 94/hr 94/hr 94/hr

7.5/hr 2(7.5)/hr 3(7.5)/hr 14(7.5)/hr 15(7.5)/hr 15(7.5)/hr 15(7.5)/hr

M/M/15 with ฮป = 94/hr and ยต = 7.5/hr

Page 34: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s

University of the Philippines

a. Find the probability that all agents are busy in a given time.

๐œŒ =๐œ†

๐‘ ๐œ‡=

94

15(7.5)= 0.836

๐‘ƒ0 = ๐‘›=0

๐‘ โˆ’1 ฮค๐œ† ๐œ‡ ๐‘›

๐‘›!+

ฮค๐œ† ๐œ‡ ๐‘ 

)๐‘ ! (1 โˆ’ ๐œŒ

โˆ’1

= ๐‘›=0

14 ฮค94 7.5 ๐‘›

๐‘›!+

ฮค94 7.5 15

)15! (1 โˆ’ 0.836

โˆ’1

= 2.96 ๐‘ฅ 10โˆ’6

๐‘ƒ ๐‘› โ‰ฅ ๐‘  =ฮค๐œ† ๐œ‡ ๐‘ ๐‘ƒ0

)๐‘ ! (1 โˆ’ ๐œŒ=

94/7.5 15 2.96 ๐‘ฅ 10โˆ’6

)15! (1 โˆ’ 0.836= ๐ŸŽ. ๐Ÿ’๐ŸŽ๐Ÿ•

Page 35: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s

University of the Philippines

b. Find the average time a call is put on hold before it is attended by anagent.

c. On the average, how may calls are in the IT system (both being attendedto and put on hold).

๐‘Š๐‘ž =๐‘ƒ ๐‘› โ‰ฅ ๐‘ 

๐‘ ๐œ‡ โˆ’ ๐œ†=

0.407

15(7.5) โˆ’ 94= ๐ŸŽ. ๐ŸŽ๐Ÿ๐Ÿ ๐’‰๐’“ = ๐Ÿ. ๐Ÿ‘๐Ÿ๐Ÿ๐’Ž๐’Š๐’๐’”

๐ฟ๐‘ž =๐‘ƒ ๐‘› โ‰ฅ ๐‘  ๐œŒ

1 โˆ’ ๐œŒ=0.407 โˆ— 0.836

1 โˆ’ 0.836= 2.069 ๐‘๐‘Ž๐‘™๐‘™๐‘ 

๐ฟ = ๐ฟ๐‘ž +๐œ†

๐œ‡= 2.069 +

94

7.5= ๐Ÿ๐Ÿ’. ๐Ÿ”๐ŸŽ๐Ÿ ๐’„๐’‚๐’๐’๐’”

Page 36: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s

University of the Philippines

d. Since waiting time is not acceptable, find the number of additionalagents required to ensure that average time a call is put on hold isreduced to at most 30 seconds (0.5 min).

s Wq

15 1.321 mins

16 0.619 min

17 0.306 min

18 0.155 min

Page 37: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s

University of the Philippines

Page 38: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s

University of the Philippines

A dental clinic has three dentists. Patients arrive at a Poisson rate of 2.7patients / hr. Due to the varying nature of services required by patients, thetime a dentist needs to serve a patient is found to be exponentiallydistributed with mean of 40 mins per patient. Compute the fourperformance measures (L, Lq, W, Wq) of the queuing system for the twoassumptions below:

a. Assume that patients are indifferent

among the three dentists and are

willing to be attended by whoever is

immediately available. There is a

single queue of patients.

b. Assume each patient has a preferred

dentist. Thus, there are three

separate queues, each with identical

arrival rate of 0.9 patient per hour.

Page 39: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s

University of the Philippines

a. Assume that patients are indifferent among the three dentists and arewilling to be attended by whoever is immediately available. There is asingle queue of patients.

0 1 2 3 4 5 . . .

2.7/hr 2.7/hr 2.7/hr 2.7/hr 2.7/hr 2.7/hr

1.5/hr 3.0/hr 4.5/hr 4.5/hr 4.5/hr 4.5/hr

M/M/3 with ฮป = 2.7/hr and ยต = 1.5/hr

Page 40: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s

University of the Philippines

a. Assume that patients are indifferent among the three dentists and arewilling to be attended by whoever is immediately available. There is asingle queue of patients.

๐œŒ =๐œ†

๐‘ ๐œ‡=

2.7

3(1.5)= 0.60

๐‘ƒ0 = ๐‘›=0

๐‘ โˆ’1 ฮค๐œ† ๐œ‡ ๐‘›

๐‘›!+

ฮค๐œ† ๐œ‡ ๐‘ 

)๐‘ ! (1 โˆ’ ๐œŒ

โˆ’1

= ๐‘›=0

2 ฮค2.7 1.5 ๐‘›

๐‘›!+

ฮค2.7 1.5 ๐‘ 

)3! (1 โˆ’ 0.60

โˆ’1

= 0.146

๐‘ƒ ๐‘› โ‰ฅ ๐‘  =ฮค๐œ† ๐œ‡ ๐‘ ๐‘ƒ0

)๐‘ ! (1 โˆ’ ๐œŒ=

2.7/1.5 30.146

)3! (1 โˆ’ 0.60= 0.355

Page 41: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s

University of the Philippines

a. Assume that patients are indifferent among the three dentists and arewilling to be attended by whoever is immediately available. There is asingle queue of patients.

๐ฟ๐‘ž =๐‘ƒ ๐‘› โ‰ฅ ๐‘  ๐œŒ

1 โˆ’ ๐œŒ=0.355 โˆ— 0.60

1 โˆ’ 0.60= ๐ŸŽ. ๐Ÿ“๐Ÿ‘๐Ÿ ๐’‘๐’‚๐’•๐’Š๐’†๐’๐’•๐’”

๐ฟ = ๐ฟ๐‘ž +๐œ†

๐œ‡= 0.532 +

2.7

1.5= ๐Ÿ. ๐Ÿ‘๐Ÿ‘๐Ÿ ๐’‘๐’‚๐’•๐’Š๐’†๐’๐’•๐’”

๐‘Š๐‘ž =๐‘ƒ ๐‘› โ‰ฅ ๐‘ 

๐‘ ๐œ‡ โˆ’ ๐œ†=

0.355

3(1.5) โˆ’ 2.7= ๐ŸŽ. ๐Ÿ๐Ÿ—๐Ÿ• ๐’‰๐’“ = ๐Ÿ๐Ÿ. ๐Ÿ–๐Ÿ๐Ÿ“๐’Ž๐’Š๐’๐’”

๐‘Š = ๐‘Š๐‘ž +1

๐œ‡= 0.197 +

1

1.5= ๐ŸŽ. ๐Ÿ–๐Ÿ”๐Ÿ’ ๐’‰๐’“ = ๐Ÿ“๐Ÿ. ๐Ÿ–๐Ÿ๐Ÿ“๐’Ž๐’Š๐’๐’”

Page 42: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s

University of the Philippines

b. Assume each patient has a preferred dentist. Thus, there are threeseparate queues, each with identical arrival rate of 0.9 patient per hour.

M/M/1 with ฮป = 0.9/hr, ยต = 1.5/hr

๐ฟ๐‘ž =๐œ†2

๐œ‡(๐œ‡ โˆ’ ๐œ†)=

0.92

1.5(1.5 โˆ’ 0.9)= ๐ŸŽ. ๐Ÿ—๐ŸŽ ๐’‘๐’‚๐’•๐’Š๐’†๐’๐’•

๐ฟ =๐œ†

๐œ‡ โˆ’ ๐œ†=

0.9

1.5 โˆ’ 0.9= ๐Ÿ. ๐Ÿ“ ๐’‘๐’‚๐’•๐’Š๐’†๐’๐’•๐’”

๐‘Š =1

๐œ‡ โˆ’ ๐œ†=

1

1.5 โˆ’ 0.9= ๐Ÿ. ๐Ÿ”๐Ÿ• ๐’‰๐’“๐’” = ๐Ÿ๐ŸŽ๐ŸŽ๐’Ž๐’Š๐’๐’”

๐‘Š๐‘ž =๐œ†

๐œ‡(๐œ‡ โˆ’ ๐œ†)=

0.9

1.5(1.5 โˆ’ 0.9)= ๐Ÿ ๐’‰๐’“ = ๐Ÿ”๐ŸŽ๐’Ž๐’Š๐’๐’”

Page 43: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s

University of the Philippines

(a) 1 M/M/3 (b) 3 M/M/1

Whole Individual Whole

Lq (patients) 0.532 0.90 2.70

L (patients) 2.332 1.50 4.50

Wq (hours) 0.197 1.00 1.00

W (hours) 0.864 1.67 1.67

Page 44: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s

University of the Philippines

Page 45: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s

University of the Philippines

Page 46: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSG/G/โˆž (Self-Service Model)

University of the Philippines

๐‘Š๐‘ž = ๐ฟ๐‘ž = 0 ๐‘Š =1

๐œ‡๐ฟ =

๐œ†

๐œ‡

For G/G/โˆž/GD/โˆž/โˆž

Only for M/G/โˆž/GD/โˆž/โˆž

๐‘ƒ๐‘› =๐‘’ )โˆ’( ฮค๐œ† ๐œ‡ ( )ฮค๐œ† ๐œ‡ ๐‘›

๐‘›!

Page 47: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSG/G/โˆž (Self-Service Model)

University of the Philippines

A gym is available to its members 24/7. Members arrive at a Poisson rate of4 per hour. On the average, each member stays in the gym for a normallydistributed time with mean of 2.5 hrs and standard deviation of 0.5 hr.

a. How many members are expected to be found in the gym at any givenpoint in time?

b. What is the probability that there are at most 14 members in the gym?

Page 48: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSG/G/โˆž (Self-Service Model)

University of the Philippines

a. How many members are expected to be found in the gym at any givenpoint in time?

b. What is the probability that there are at most 14 members in the gym?

๐ฟ =๐œ†

๐œ‡=

4

0.4= ๐Ÿ๐ŸŽ๐’Ž๐’†๐’Ž๐’ƒ๐’†๐’“๐’”

๐‘›=0

14

๐‘ƒ๐‘› =

๐‘›=0

14๐‘’โˆ’(๐œ†/๐œ‡) ๐œ†/๐œ‡ ๐‘›

๐‘›!=

๐‘›=0

14๐‘’โˆ’(4/0.4) 4/0.4 ๐‘›

๐‘›!= ๐ŸŽ. ๐Ÿ—๐Ÿ๐Ÿ•

M/G/โˆž with ฮป = 4/hr and ยต = 0.4/hr

Page 49: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSG/G/โˆž (Self-Service Model)

University of the Philippines

Page 50: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/1/GD/K/โˆž

University of the Philippines

0 1 2 . . .

ฮป ฮป ฮป

ฮผ ฮผ ฮผ

K-1

ฮป

ฮผ

K

ฮผ

ฮป

๐œŒ =๐œ†

๐œ‡

๐‘ƒ๐‘› =

1 โˆ’ ๐œŒ ๐œŒ๐‘›

1 โˆ’ ๐œŒ๐พ+1, ๐œŒ โ‰  1

1

๐พ + 1, ๐œŒ = 1

For n > K, Pn = 0.

For n โ‰ค K:

๐ฟ๐‘ž = ๐ฟ โˆ’ (1 โˆ’ ๐‘ƒ0)

๐œ†๐‘Ž๐‘ฃ๐‘’ = าง๐œ† = ๐œ†(1 โˆ’ ๐‘ƒ๐พ

๐ฟ =

๐œŒ

1 โˆ’ ๐‘โˆ’

๐พ + 1 ๐œŒ๐พ+1

1 โˆ’ ๐œŒ๐พ+1, ๐œŒ โ‰  1

.๐พ

2, ๐œŒ = 1

Page 51: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s/GD/K/โˆž

University of the Philippines

0 1 s. . .

ฮป ฮป ฮป

ฮผ 2ฮผ sฮผ

K-1

ฮป

K

sฮผsฮผ

ฮป

. . .

sฮผ

ฮป

๐œŒ =๐œ†

๐‘ ๐œ‡, ๐‘  โ‰ค ๐พ ๐‘ƒ0 =

๐‘›=0

๐‘  ฮค๐œ† ๐œ‡ ๐‘›

๐‘›!+

ฮค๐œ† ๐œ‡ ๐‘ 

๐‘ !

๐‘›=๐‘ +1

๐พ

๐œŒ๐‘›โˆ’๐‘ โˆ’1

๐‘ƒ๐‘› =

ฮค๐œ† ๐œ‡ ๐‘›๐‘ƒ0๐‘›!

, ๐‘› โ‰ค ๐‘ .ฮค๐œ† ๐œ‡ ๐‘›๐‘ƒ0๐‘ ! ๐‘ ๐‘›โˆ’๐‘ 

, ๐‘› โ‰ฅ ๐‘ 

For n > K, Pn = 0.

For n โ‰ค K:

๐ฟ๐‘ž =๐œŒ ฮค๐œ† ๐œ‡ ๐‘ ๐‘ƒ0 )1 โˆ’ ๐œŒ๐พโˆ’๐‘  โˆ’ ๐พ โˆ’ ๐‘  ๐œŒ๐พโˆ’๐‘ (1 โˆ’ ๐œŒ

๐‘ ! 1 โˆ’ ๐œŒ 2

๐ฟ = ๐ฟ๐‘ž + ๐‘›=0

๐‘ โˆ’1

๐‘›๐‘ƒ๐‘› + ๐‘  1 โˆ’ ๐‘›=0

๐‘ โˆ’1

๐‘ƒ๐‘›

เตฏ๐œ†๐‘Ž๐‘ฃ๐‘’ = าง๐œ† = ๐œ†(1 โˆ’ ๐‘ƒ๐พ

Page 52: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s/GD/K/โˆž

University of the Philippines

A drive-thru of a fast food chain has a single window that services itscustomers. Attending a customer takes an exponential time with mean of 4mins. Including the space for the car/customer being served, the drive-thruhas a total of 6 available spaces. If an arriving car finds that all spaces aretaken, it will opt to get meals elsewhere. Cars arrive at the drive-thru at aPoisson rate of 15 customers per hour (but not all can enter as pointed out).

a. Find the average number of customers in the queuing system.

b. On the average, how long does a car stay in the drive-thru?

c. What is the probability that all the available spaces are occupied?

d. If each served customer generates a revenue of PhP 200, find theexpected total revenue in 4 hours of operations?

Page 53: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s/GD/K/โˆž

University of the Philippines

0 1 2 3 4 5 6

15/hr 15/hr 15/hr 15/hr 15/hr 15/hr

15/hr 15/hr 15/hr 15/hr 15/hr 15/hr

M/M/1/FCFS/6/โˆž with ฮป = 15/hr and ยต = 15/hr

Page 54: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s/GD/K/โˆž

University of the Philippines

a. Find the average number of customers in the queueing system.

b. On the average, how long does a car stay in the drive-thru?

๐œŒ =๐œ†

๐œ‡=15

15= ๐Ÿ

๐ฟ =๐พ

2=6

2= ๐Ÿ‘ ๐’„๐’‚๐’“๐’”

๐‘ƒ๐พ =1

๐พ + 1=

1

6 + 1= ๐ŸŽ. ๐Ÿ๐Ÿ’๐Ÿ‘

)๐œ†๐‘Ž๐‘ฃ๐‘’ = ๐œ†(1 โˆ’ ๐‘ƒ๐พ = 15 1 โˆ’ 0.143 = ๐Ÿ๐Ÿ. ๐Ÿ–๐Ÿ“๐Ÿ• ๐’„๐’‚๐’“๐’”

๐‘Š =๐ฟ

๐œ†๐‘Ž๐‘ฃ๐‘’=

3

12.857= ๐ŸŽ. ๐Ÿ๐Ÿ‘๐Ÿ‘ ๐’‰๐’“ = ๐Ÿ๐Ÿ’๐’Ž๐’Š๐’๐’”

Page 55: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s/GD/K/โˆž

University of the Philippines

c. What is the probability that all the available spaces are occupied?

d. If each served customer generates a revenue of PhP 200, find theexpected total revenue in 4 hours of operations?

๐‘ƒ๐พ =1

๐พ + 1=

1

6 + 1= ๐ŸŽ. ๐Ÿ๐Ÿ’๐Ÿ‘

)๐œ†๐‘Ž๐‘ฃ๐‘’ = ๐œ†(1 โˆ’ ๐‘ƒ๐พ = 15 1 โˆ’ 0.143 = ๐Ÿ๐Ÿ. ๐Ÿ–๐Ÿ“๐Ÿ• ๐’„๐’‚๐’“๐’”

๐‘‡๐‘œ๐‘ก๐‘Ž๐‘™ ๐‘…๐‘’๐‘ฃ๐‘’๐‘›๐‘ข๐‘’ = 200(4)๐œ†๐‘Ž๐‘ฃ๐‘’ = 200(4) 12.857 = ๐๐ก๐ ๐Ÿ๐ŸŽ, ๐Ÿ๐Ÿ–๐Ÿ“. ๐Ÿ•๐Ÿ

Page 56: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s/GD/K/โˆž

University of the Philippines

Page 57: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s/GD/K/โˆž

University of the Philippines

An amusement arcade has 5 videoke booths where customers can belttheir hearts out. Customers arrive at a Poisson rate of 4 groups per hour.Each group occupies one booth for an exponential time with mean of 1 hour.If a group finds no vacant videoke booth, the group will then leave.

a. Find the average number of occupied videoke booths.

b. What is the average time a group spends in queue before it can use thebooth?

c. Find the proportion of time that a given booth is occupied.

d. On the average, how many groups balk in an hour?

e. Recompute average time a group spent in queue assuming this timethat arriving groups will only balk if there are two groups already waiting,in addition to the five groups in the booths.

Page 58: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s/GD/K/โˆž

University of the Philippines

0 1 2 3 4 5

4/hr 4/hr 4/hr 4/hr 4/hr

1/hr 2/hr 3/hr 4/hr 5/hr

M/M/5/FCFS/5/โˆž with ฮป = 4/hr and ยต = 1/hr

Page 59: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s/GD/K/โˆž

University of the Philippines

a. Find the average number of occupied videoke booths.

๐œŒ =๐œ†

๐‘ ๐œ‡=

4

5(1)= 0.80

๐‘ƒ0 = ๐‘›=0

๐‘  ฮค๐œ† ๐œ‡ ๐‘›

๐‘›!+

ฮค๐œ† ๐œ‡ ๐‘ 

๐‘ !

๐‘›=๐‘ +1

๐พ

๐œŒ๐‘›โˆ’๐‘ โˆ’1

๐‘ƒ0 = ๐‘›=0

5 ฮค4 1 ๐‘›

๐‘›!+

ฮค4 1 5

5!

๐‘›=6

5

0.80๐‘›โˆ’5โˆ’1

= 0.0233

๐ฟ๐‘ž =๐œŒ ฮค๐œ† ๐œ‡ ๐‘ ๐‘ƒ0 )1 โˆ’ ๐œŒ๐พโˆ’๐‘  โˆ’ ๐พ โˆ’ ๐‘  ๐œŒ๐พโˆ’๐‘ (1 โˆ’ ๐œŒ

๐‘ ! 1 โˆ’ ๐œŒ 2

๐ฟ๐‘ž =0.80 ฮค4 1 5(0.0233) )1 โˆ’ 0.85โˆ’5 โˆ’ 5 โˆ’ 5 0.85โˆ’5(1 โˆ’ 0.80

5! 1 โˆ’ 0.80 2 = 0

Page 60: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s/GD/K/โˆž

University of the Philippines

a. Find the average number of occupied videoke booths.

๐‘ƒ1 =(๐œ†/๐œ‡)๐‘›๐‘ƒ0

๐‘›!=(4/1)10.0233

1!= 0.0933

๐‘ƒ2 =(๐œ†/๐œ‡)๐‘›๐‘ƒ0

๐‘›!=(4/1)20.0233

2!= 0.1866

๐‘ƒ3 =(๐œ†/๐œ‡)๐‘›๐‘ƒ0

๐‘›!=(4/1)30.0233

3!= 0.2488

๐‘ƒ4 =(๐œ†/๐œ‡)๐‘›๐‘ƒ0

๐‘›!=(4/1)40.0233

4!= 0.2488

๐‘ƒ5 =(๐œ†/๐œ‡)๐‘›๐‘ƒ0

๐‘›!=(4/1)50.0233

5!= 0.1991

๐ฟ = ๐ฟ๐‘ž + ๐‘›=0

๐‘ โˆ’1

๐‘›๐‘ƒ๐‘› + ๐‘  1 โˆ’ ๐‘›=0

๐‘ โˆ’1

๐‘ƒ๐‘› = 0 +๐‘›=0

4

๐‘›๐‘ƒ๐‘› + 5 1 โˆ’ ๐‘›=0

4

๐‘ƒ๐‘›

๐ฟ = ๐Ÿ‘. ๐Ÿ๐ŸŽ๐Ÿ‘๐Ÿ• ๐’ƒ๐’๐’๐’•๐’‰๐’”

Page 61: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s/GD/K/โˆž

University of the Philippines

b. What is the average time a group spends in queue before it can use thebooth?

c. Find the proportion of time that a given booth is occupied.

d. On the average, how many groups balk in an hour?

)๐œ†๐‘Ž๐‘ฃ๐‘’ = ๐œ†(1 โˆ’ ๐‘ƒ๐พ = 4 1 โˆ’ 0.1991 = 3.204 ๐‘”๐‘Ÿ๐‘œ๐‘ข๐‘๐‘ /โ„Ž๐‘Ÿ

๐‘Š๐‘ž =๐ฟ๐‘ž๐œ†๐‘Ž๐‘ฃ๐‘’

=0

3.204= ๐ŸŽ ๐’‰๐’“ = ๐ŸŽ๐’Ž๐’Š๐’

% ๐‘ˆ๐‘ก๐‘–๐‘™ =๐œ†๐‘Ž๐‘ฃ๐‘’๐‘ ยต

=3.204

5(1)= ๐Ÿ”๐Ÿ’. ๐ŸŽ๐Ÿ•%

๐œ†๐‘๐‘Ž๐‘™๐‘˜ = ๐œ†๐‘ƒ๐พ = 4 0.1991 = ๐ŸŽ. ๐Ÿ•๐Ÿ—๐Ÿ” ๐’ˆ๐’“๐’๐’–๐’‘/๐’‰๐’“

Page 62: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s/GD/K/โˆž

University of the Philippines

๐‘ƒ1 =4

1๐‘ƒ0 =

4

1(0.0233) = 0.0933

๐‘ƒ2 =4

2๐‘ƒ1 =

4

2(0.0933) = 0.1866

๐‘ƒ3 =4

3๐‘ƒ2 =

4

3(0.1866) = 0.2488

๐‘ƒ4 =4

4๐‘ƒ3 =

4

4(0.2488) = 0.2488

๐‘ƒ5 =4

5๐‘ƒ4 =

4

5(0.2488) = 0.1991

๐‘ƒ0 = 1 +4

1+4(4)

1(2)+4(4)(4)

1(2)(3)+4(4)(4)(4)

1(2)(3)(4)+4(4)(4)(4)(4)

1(2)(3)(4)(5)

โˆ’1

= 0.0233

Page 63: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s/GD/K/โˆž

University of the Philippines

a. Find the average number of occupied videoke booths.

b. What is the average time a group spends in queue before it can use thebooth?

๐ฟ = ๐‘›=0

K

๐‘›๐‘ƒ๐‘› = 0 0.0233 + 1 0.0933 + โ€ฆ+ 5 0.1991 = ๐Ÿ‘. ๐Ÿ๐ŸŽ๐Ÿ‘๐Ÿ• ๐’ƒ๐’๐’๐’•๐’‰๐’”

๐‘Š๐‘ž =๐ฟ๐‘ž๐œ†๐‘Ž๐‘ฃ๐‘’

=0

3.204= ๐ŸŽ ๐’‰๐’“ = ๐ŸŽ๐’Ž๐’Š๐’

๐ฟ๐‘ž = ๐‘›>s

(๐‘› โˆ’ ๐‘ )๐‘ƒ๐‘› = 0 ๐‘”๐‘Ÿ๐‘œ๐‘ข๐‘

๐œ†๐‘Ž๐‘ฃ๐‘’ =๐‘›=0

K

๐œ†๐‘›๐‘ƒ๐‘› = 4 0.0233 + 4 0.0933 + โ€ฆ+ 0 0.1991 = 3.204 ๐‘”๐‘Ÿ๐‘œ๐‘ข๐‘๐‘ /โ„Ž๐‘Ÿ

Page 64: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s/GD/K/โˆž

University of the Philippines

c. Find the proportion of time that a given booth is occupied.

d. On the average, how many groups balk in an hour?

%๐‘ˆ๐‘ก๐‘–๐‘™ =0

50.0233 +

1

50.0933 +

2

50.1866 + โ‹ฏ+

5

50.1991 = ๐Ÿ”๐Ÿ’. ๐ŸŽ๐Ÿ•%

๐œ†๐‘๐‘Ž๐‘™๐‘˜ = 0 0.0233 + 0 0.0933 + โ€ฆ+ 4 0.1991 = ๐ŸŽ. ๐Ÿ•๐Ÿ—๐Ÿ” ๐’ˆ๐’“๐’๐’–๐’‘/๐’‰๐’“

Page 65: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s/GD/K/โˆž

University of the Philippines

0 1 2 3 4 5 6 7

4/hr 4/hr 4/hr 4/hr 4/hr 4/hr 4/hr

1/hr 2/hr 3/hr 4/hr 5/hr 5/hr 5/hr

M/M/5/FCFS/7/โˆž with ฮป = 4/hr and ยต = 1/hr

Page 66: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s/GD/K/โˆž

University of the Philippines

e. Recompute average time spent in queue assuming this time thatarriving groups will only balk if there are two groups already waiting, inaddition to the five groups in the booths.

๐‘ƒ0 = 1 +4

1+4(4)

1(2)+4(4)(4)

1(2)(3)+ โ‹ฏ+

4(4)(4)(4)(4)(4)

1(2)(3)(4)(5)(5)+4(4)(4)(4)(4)(4)(4)

1(2)(3)(4)(5)(5)(5)

โˆ’1

๐‘ƒ0 = 0.0181

Page 67: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s/GD/K/โˆž

University of the Philippines

e. Recompute average time spent in queue assuming this time thatarriving groups will only balk if there are two groups already waiting, inaddition to the five groups in the booths.

๐‘ƒ1 =4

1๐‘ƒ0 =

4

1(0.181) = 0.0725

๐‘ƒ2 =4

2๐‘ƒ1 =

4

2(0.0725) = 0.1450

๐‘ƒ3 =4

3๐‘ƒ2 =

4

3(0.1450) = 0.1934

๐‘ƒ4 =4

4๐‘ƒ3 =

4

4(0.1934) = 0.1934

๐‘ƒ5 =4

5๐‘ƒ4 =

4

5(0.1934) = 0.1547

๐‘ƒ6 =4

5๐‘ƒ5 =

4

5(0.1547) = 0.1238

๐‘ƒ7 =4

5๐‘ƒ6 =

4

5(0.1238) = 0.0990

Page 68: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s/GD/K/โˆž

University of the Philippines

e. Recompute average time spent in queue assuming this time thatarriving groups will only balk if there are two groups already waiting, inaddition to the five groups in the booths.

๐ฟ๐‘ž = ๐‘›>s

(๐‘› โˆ’ ๐‘ )๐‘ƒ๐‘› = 1๐‘ƒ6 + 2๐‘ƒ7 = 1 0.1238 + 2 0.0990 = 0.3218 ๐‘”๐‘Ÿ๐‘œ๐‘ข๐‘

๐œ†๐‘Ž๐‘ฃ๐‘’ =๐‘›=0

K

๐œ†๐‘›๐‘ƒ๐‘› = 4 ๐‘ƒ0 + ๐‘ƒ1 + ๐‘ƒ2 + ๐‘ƒ3 + ๐‘ƒ4 + ๐‘ƒ5 + ๐‘ƒ6 + 0๐‘ƒ7 = 4 1 โˆ’ ๐‘ƒ7

๐œ†๐‘Ž๐‘ฃ๐‘’ = 4 1 โˆ’ 0.990 = 3.604 ๐‘”๐‘Ÿ๐‘œ๐‘ข๐‘๐‘ /โ„Ž๐‘Ÿ

๐‘Š๐‘ž =๐ฟ๐‘ž๐œ†๐‘Ž๐‘ฃ๐‘’

=0.3218

3.604= ๐ŸŽ. ๐ŸŽ๐Ÿ–๐Ÿ—๐Ÿ‘ ๐’‰๐’“ = ๐Ÿ“. ๐Ÿ‘๐Ÿ“๐Ÿ–๐’Ž๐’Š๐’๐’”

Page 69: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s/GD/K/โˆž

University of the Philippines

Page 70: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/1/GD/N/N

University of the Philippines

For n > N, Pn = 0.

For n โ‰ค N:

0 1 2 . . .

Nฮป (N-1)ฮป

ฮผ ฮผ ฮผ

N-1

ฮป

ฮผ

N

ฮผ

2ฮป(N-2)ฮป

๐‘ƒ0 = ๐‘›=0

๐‘ ๐‘!

๐‘ โˆ’ ๐‘› !

๐œ†

๐œ‡

๐‘› โˆ’1

๐‘ƒ๐‘› =๐‘!

๐‘ โˆ’ ๐‘› !

๐œ†

๐œ‡

๐‘›

๐‘ƒ0

๐ฟ = ๐‘ โˆ’๐œ‡

๐œ†1 โˆ’ ๐‘ƒ0

๐ฟ๐‘ž = ๐‘ โˆ’๐œ‡ + ๐œ†

๐œ†1 โˆ’ ๐‘ƒ0

เตฏ๐œ†๐‘Ž๐‘ฃ๐‘’ = าง๐œ† = ๐œ†(๐‘ โˆ’ ๐ฟ

Page 71: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s/GD/N/N

University of the Philippines

For n > N, Pn = 0.

For n โ‰ค N:

0 1 s. . .

Nฮป (N-1)ฮป 2ฮป

ฮผ 2ฮผ sฮผ

N-1

ฮป

N

sฮผsฮผ

(N-s+1)ฮป

. . .

sฮผ

(N-s)ฮป

๐‘ƒ0 = ๐‘›=0

๐‘ โˆ’1

๐ถ๐‘›๐‘

๐œ†

๐œ‡

๐‘›

+ ๐‘›=๐‘ 

๐‘ ๐ถ๐‘›๐‘๐‘›!

๐‘ ! ๐‘ ๐‘›โˆ’๐‘ ๐œ†

๐œ‡

๐‘› โˆ’1

๐‘ƒ๐‘› =

๐ถ๐‘›๐‘

๐œ†

๐œ‡

๐‘›

๐‘ƒ0, ๐‘› โ‰ค ๐‘ 

.

๐ถ๐‘›๐‘๐‘›!

๐‘ ! ๐‘ ๐‘›โˆ’๐‘ ๐œ†

๐œ‡

๐‘›

๐‘ƒ0, ๐‘› โ‰ฅ ๐‘ 

๐ฟ๐‘ž = ๐‘›=๐‘ 

๐‘

เตซ๐‘› โˆ’ ๐‘ )๐‘ƒ๐‘›

๐ฟ = ๐ฟ๐‘ž + ๐‘›=0

๐‘ โˆ’1

๐‘›๐‘ƒ๐‘› + ๐‘  1 โˆ’ ๐‘›=0

๐‘ โˆ’1

๐‘ƒ๐‘›

เตฏ๐œ†๐‘Ž๐‘ฃ๐‘’ = าง๐œ† = ๐œ†(๐‘ โˆ’ ๐ฟ

Page 72: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s/GD/N/N

University of the Philippines

A printing business has five printing machines used for high-volume orders.All throughout the day, these machines are running, except for a few timeswhen they are required to be attended by a printing employee to setmachine parameters. In some instances, the machines may wait for anemployee to be available since the employees may be attending othermachines for setup. The business employs two printing employees. Eachemployee can setup a machine at an exponential time with mean of 20mins. After setup, each machine runs for an exponential time with mean 2hrs before requiring another setup.

a. What is the proportion of time that the both employees are idle as allmachines are working?

b. On the average, how long does a machine queue before being attendedby an employee for setup?

c. A cost of PhP 1,000 per hour is incurred if a machine is not running dueto lost machine productivity, find the total expected cost of waiting in anhour considering all the machines.

Page 73: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s/GD/N/N

University of the Philippines

0 1 2 3 4 5

2.5/hr 2.0/hr 1.5/hr 1.0/hr 0.5/hr

3/hr 6/hr 6/hr 6/hr 6/hr

M/M/2/FCFS/5/5 with ฮป = 0.5/hr and ยต = 3/hr

Page 74: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s/GD/N/N

University of the Philippines

a. What is the proportion of time that the both employees are idle as allmachines are working?

b. On the average, how long does a machine queue before being attendedby an employee for setup?

๐‘ƒ0 = ๐‘›=0

๐‘ โˆ’1

๐ถ๐‘›๐‘

๐œ†

๐œ‡

๐‘›

+ ๐‘›=๐‘ 

๐‘ ๐ถ๐‘›๐‘๐‘›!

๐‘ ! ๐‘ ๐‘›โˆ’๐‘ ๐œ†

๐œ‡

๐‘› โˆ’1

๐‘ƒ0 = ๐‘›=0

1

๐ถ๐‘›5

0.5

3

๐‘›

+ ๐‘›=2

5 ๐ถ๐‘›5๐‘›!

2! 2๐‘›โˆ’20.5

3

๐‘› โˆ’1

= ๐ŸŽ. ๐Ÿ’๐Ÿ“๐Ÿ”

๐‘ƒ1 = ๐ถ๐‘›๐‘

๐œ†

๐œ‡

๐‘›

๐‘ƒ0 = ๐ถ15

0.5

3

1

0.456 = 0.3800

๐‘ƒ2 = ๐ถ๐‘›๐‘

๐œ†

๐œ‡

๐‘›

๐‘ƒ0 = ๐ถ25

0.5

3

2

0.456 = 0.1267

Page 75: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s/GD/N/N

University of the Philippines

b. On the average, how long does a machine queue before being attendedby an employee for setup?

๐‘ƒ3 =๐ถ๐‘›๐‘๐‘›!

๐‘ ! ๐‘ ๐‘›โˆ’๐‘ ๐œ†

๐œ‡

๐‘›

๐‘ƒ0 =๐ถ353!

2! 23โˆ’20.5

3

๐‘›

0.456 = 0.0317

๐‘ƒ4 =๐ถ๐‘›๐‘๐‘›!

๐‘ ! ๐‘ ๐‘›โˆ’๐‘ ๐œ†

๐œ‡

๐‘›

๐‘ƒ0 =๐ถ454!

2! 24โˆ’20.5

3

๐‘›

0.456 = 0.0053

๐‘ƒ5 =๐ถ๐‘›๐‘๐‘›!

๐‘ ! ๐‘ ๐‘›โˆ’๐‘ ๐œ†

๐œ‡

๐‘›

๐‘ƒ0 =๐ถ555!

2! 25โˆ’20.5

3

๐‘›

0.456 = 0.0004

๐ฟ๐‘ž = ๐‘›=๐‘ 

๐‘

เตซ๐‘› โˆ’ ๐‘ )๐‘ƒ๐‘› = 0๐‘ƒ2 + 1๐‘ƒ3 + 2๐‘ƒ4 + 3๐‘ƒ5 = 0.0435 ๐‘š๐‘Ž๐‘โ„Ž๐‘–๐‘›๐‘’๐‘ 

Page 76: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s/GD/N/N

University of the Philippines

b. On the average, how long does a machine queue before being attendedby an employee for setup?

๐ฟ = ๐ฟ๐‘ž + ๐‘›=0

๐‘ โˆ’1

๐‘›๐‘ƒ๐‘› + ๐‘  1 โˆ’ ๐‘›=0

๐‘ โˆ’1

๐‘ƒ๐‘› = 0.0435 + ๐‘›=0

1

๐‘›๐‘ƒ๐‘› + 2 1 โˆ’ ๐‘›=0

1

๐‘ƒ๐‘›

๐ฟ = 0.0435 + 0 0.3800 + 1 0.1267 + 2 1 โˆ’ 0.3800 โˆ’ 0.1267 = 0.7516 ๐‘š๐‘Ž๐‘โ„Ž๐‘–๐‘›๐‘’๐‘ 

)๐œ†๐‘Ž๐‘ฃ๐‘’ = ๐œ†(N โˆ’ ๐ฟ = 0.5 5 โˆ’ 0.7516 = 2.1242 ๐‘š๐‘Ž๐‘โ„Ž๐‘–๐‘›๐‘’๐‘ /โ„Ž๐‘Ÿ

๐‘Š๐‘ž =๐ฟ๐‘ž๐œ†๐‘Ž๐‘ฃ๐‘’

=0.0435

2.1242= ๐ŸŽ. ๐ŸŽ๐Ÿ๐ŸŽ๐Ÿ“ ๐’‰๐’“ = ๐Ÿ. ๐Ÿ๐Ÿ๐Ÿ—๐Ÿ–๐’Ž๐’Š๐’๐’”

Page 77: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s/GD/N/N

University of the Philippines

c. A cost of PhP 1,000 per hour is incurred if a machine is not running dueto lost machine productivity, find the total expected cost of waiting in anhour considering all the machines.

๐ป๐‘œ๐‘ข๐‘Ÿ๐‘™๐‘ฆ ๐‘Š๐‘Ž๐‘–๐‘ก๐‘–๐‘›๐‘” ๐ถ๐‘œ๐‘ ๐‘ก = 1000๐‘Š๐œ†๐‘Ž๐‘ฃ๐‘’ = 1000๐ฟ = 1000 0.7516 = ๐‘ท๐’‰๐‘ท ๐Ÿ•๐Ÿ“๐Ÿ. ๐Ÿ”๐Ÿ

Page 78: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s/GD/N/N

University of the Philippines

Page 79: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s/GD/N/N

University of the Philippines

A hospital wing has a supply station where nurses retrieve items importantto their patients. The station is manned by a single supply officer. The winghas 6 nurses. On the average, each nurse will use be back to the station1.25 hours after his or her last visit. Assume exponential time. The supplyofficer takes an exponential time with mean of 6 minutes to service therequirement of a nurse.

a. Find the probability that there are exactly 2 nurses, including the onebeing served, in the supply station.

b. Find the proportion of time the supply officer is busy.

c. How long, on the average, does a nurse stay in the supply station beforeher transaction is completed.

Page 80: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s/GD/N/N

University of the Philippines

0 1 2 3 4 5 6

4.8/hr 4.0/hr 3.2/hr 2.4/hr 1.6/hr 0.8/hr

10/hr 10/hr 10/hr 10/hr 10/hr 10/hr

M/M/1/FCFS/6/6 with ฮป = 0.8/hr and ยต = 10/hr

Page 81: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s/GD/N/N

University of the Philippines

๐‘ƒ1 =4.8

10๐‘ƒ0 =

4.8

10(0.5712) = 0.2742

๐‘ƒ2 =4.0

10๐‘ƒ1 =

4.0

10(0.2742) = 0.1097

๐‘ƒ3 =3.2

10๐‘ƒ2 =

3.2

10(0.1097) = 0.0351

๐‘ƒ4 =2.4

10๐‘ƒ3 =

2.4

10(0.0351) = 0.0084

๐‘ƒ5 =1.6

10๐‘ƒ4 =

1.6

10(0.0084) = 0.0013

๐‘ƒ0 = 1 +4.8

10+4.8(4.0)

10(10)+ โ‹ฏ+

4.8(4.0)(3.2)(2.4)(1.6)(0.8)

10(10)(10)(10)(10)(10)

โˆ’1

= 0.5712

๐‘ƒ6 =0.8

10๐‘ƒ5 =

0.8

10(0.0013) = 0.0001

Page 82: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s/GD/N/N

University of the Philippines

a. Find the probability that there are exactly 2 nurses, including the onebeing served, in the supply station.

b. Find the proportion of time the supply officer is busy.

๐‘ƒ2 = ๐ŸŽ. ๐Ÿ๐ŸŽ๐Ÿ—๐Ÿ•

% ๐‘ˆ๐‘ก๐‘–๐‘™ =0

1๐‘ƒ0 +

1

1๐‘ƒ1 + ๐‘ƒ2 + ๐‘ƒ3 + ๐‘ƒ4 + ๐‘ƒ5 + ๐‘ƒ6 = 1 โˆ’ ๐‘ƒ0

%๐‘ˆ๐‘ก๐‘–๐‘™ = 1 โˆ’ 0.5712 = ๐Ÿ’๐Ÿ. ๐Ÿ–๐Ÿ–%

Page 83: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s/GD/N/N

University of the Philippines

c. How long, on the average, does a nurse stay in the supply station beforeher transaction is completed?

๐ฟ = ๐‘›=0

N

๐‘›๐‘ƒ๐‘› = 0 0.5712 + 1 0.2742 + โ€ฆ+ 6 0.0001 = 0.6399 ๐‘›๐‘ข๐‘Ÿ๐‘ ๐‘’

๐œ†๐‘Ž๐‘ฃ๐‘’ =๐‘›=0

K

๐œ†๐‘›๐‘ƒ๐‘› = 4.8๐‘ƒ0 + 4.0๐‘ƒ1 + 3.2๐‘ƒ2 + 2.4๐‘ƒ3 + 1.6๐‘ƒ4 + 0.8๐‘ƒ5 + 0๐‘ƒ6

๐œ†๐‘Ž๐‘ฃ๐‘’ = 4.8 0.05712 + 4.0 0.2742 +โ‹ฏ+ 0 0.0001 = 4.2881 ๐‘›๐‘ข๐‘Ÿ๐‘ ๐‘’๐‘ /โ„Ž๐‘Ÿ

๐‘Š =๐ฟ

๐œ†๐‘Ž๐‘ฃ๐‘’=0.6399

4.2881= ๐ŸŽ. ๐Ÿ๐Ÿ’๐Ÿ—๐Ÿ ๐’‰๐’“ = ๐Ÿ–. ๐Ÿ—๐Ÿ“๐Ÿ‘๐Ÿ๐’Ž๐’Š๐’๐’”

Page 84: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/M/s/GD/N/N

University of the Philippines

Page 85: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/G/1

University of the Philippines

Pollaczek-Khinchin Equation, where variance of service time is given as ฯƒ2.

๐ฟ๐‘ž =(๐œ†๐œŽ)2+ ๐œ†/๐œ‡ 2

2 1โˆ’๐œ†

๐œ‡

Page 86: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/G/1

University of the Philippines

Customers arrive randomly to a bank at a rate of 1 customer every 3minutes. To service customers, the bank is considering two alternatives: (a)a human teller with random service time of mean 2 minutes, and (b) ATMwith a normal service time with mean 2 minutes and standard deviation of0.3 mins. Random times are modelled using the exponential distribution.Which one should be preferred in order to minimize customer queuing time?

Page 87: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/G/1

University of the Philippines

a. human teller with random service time of mean 2 minutes

M/M/1 with ฮป = 20/hr and ยต = 30/hr

b. ATM with a normal service time with mean 2 minutes and standarddeviation of 0.3 mins.

M/G/1 with ฮป = 20/hr, ยต = 30/hr, and ฯƒ = 0.3/60 hr = 0.005 hr

๐‘Š๐‘ž =๐œ†

)๐œ‡(๐œ‡ โˆ’ ๐œ†=

20

)30(30 โˆ’ 20= ๐ŸŽ. ๐ŸŽ๐Ÿ”๐Ÿ• ๐’‰๐’“ = ๐Ÿ’๐’Ž๐’Š๐’๐’”

๐ฟ๐‘ž =(๐œ†๐œŽ)2+ ๐œ†/๐œ‡ 2

2(1 โˆ’ ๐œ†/๐œ‡ )=(20 โˆ— 0.005)2+ 20/30 2

2(1 โˆ’ 20/30 )= 0.682 ๐‘๐‘ข๐‘ ๐‘ก๐‘œ๐‘š๐‘’๐‘Ÿ

๐‘Š๐‘ž =๐ฟ๐‘ž๐œ†๐‘Ž๐‘ฃ๐‘’

=0.682

20= ๐ŸŽ. ๐ŸŽ๐Ÿ‘๐Ÿ’ ๐’‰๐’“ = ๐Ÿ. ๐ŸŽ๐Ÿ’๐Ÿ“๐’Ž๐’Š๐’๐’”

Page 88: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/G/1

University of the Philippines

Page 89: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/G/1

University of the Philippines

Compare the performance measures โ€“ L, Lq, W, Wq โ€“ of the followingqueueing systems: (A) M/M/1, (B) M/D/1, and (C) M/G/1 (where theservice time is uniformly distributed from 2 to 4 minutes). Assume similaraverage service rate of 20/hr, and similar arrival rate of 10/hr. Include a 4thcase (D) where the server performs two tasks on a single customer. Theservice time for each task is exponentially distributed with mean of 1.5minutes for this last case.

Page 90: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/G/1

University of the Philippines

Computations of standard deviation ฯƒ:

a. exponential with rate ฮปexpo = 20/hr

b. Constant (deterministic)

c. continuous uniform with minimum a = 2/60 hr and maximum b =4/60 hr.

๐œŽ =1

๐œ†๐‘’๐‘ฅ๐‘๐‘œ2 =

1

202= ๐ŸŽ. ๐ŸŽ๐Ÿ“๐ŸŽ๐ŸŽ ๐’‰๐’“

๐œŽ = ๐ŸŽ ๐’‰๐’“

๐œŽ =๐‘ โˆ’ ๐‘Ž 2

12=

(4/60) โˆ’ (2/60) 2

12= ๐ŸŽ. ๐ŸŽ๐Ÿ๐Ÿ”๐Ÿ• ๐’‰๐’“

Page 91: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/G/1

University of the Philippines

Computations of standard deviation ฯƒ:

d. exponential with ฮปexpo = 40/hr + exponential with ฮปexpo = 40/hr =erlang with shape parameter k = 2 and ฮปexpo = 40/hr

๐œŽ =๐‘˜

๐œ†๐‘’๐‘ฅ๐‘๐‘œ2 =

2

402= ๐ŸŽ. ๐ŸŽ๐Ÿ‘๐Ÿ“๐Ÿ’ ๐’‰๐’“

Page 92: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/G/1

University of the Philippines

Sample computations for case (D)

๐ฟ๐‘ž =(๐œ†๐œŽ)2+ ๐œ†/๐œ‡ 2

2(1 โˆ’ ๐œ†/๐œ‡ )=(10 โˆ— 0.0354)2+ 10/20 2

2(1 โˆ’ 10/20 )= ๐ŸŽ. ๐Ÿ‘๐Ÿ•๐Ÿ“ ๐’„๐’–๐’”๐’•๐’๐’Ž๐’†๐’“

๐‘Š๐‘ž =๐ฟ๐‘ž๐œ†๐‘Ž๐‘ฃ๐‘’

=0.375

10= ๐ŸŽ. ๐ŸŽ๐Ÿ‘๐Ÿ•๐Ÿ“ ๐’‰๐’“

๐‘Š = ๐‘Š๐‘ž +1

๐œ‡= 0.0375 +

1

20= ๐ŸŽ. ๐ŸŽ๐Ÿ–๐Ÿ•๐Ÿ“ ๐’‰๐’“

๐ฟ = ๐œ†๐‘Ž๐‘ฃ๐‘’๐‘Š = 10 0.0875 = ๐ŸŽ. ๐Ÿ–๐Ÿ•๐Ÿ“ ๐’‰๐’“

Page 93: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/G/1

University of the Philippines

Case A B C D

Kendall-Lee Notation M/M/1 M/D/1 M/G/1 M/E2/1

Service Time Distribution exponential constant uniform erlang

Arrival Rate, ฮป 10/hr 10/hr 10/hr 10/hr

Service Rate, ยต 20/hr 20/hr 20/hr 20/hr

Service Time Std Dev, ฯƒ 0.0500 hr 0.0000 hr 0.0167 hr 0.0354 hr

Lq (customers) 0.500 0.250 0.278 0.375

L (customers) 1.000 0.750 0.778 0.875

Wq (hrs) 0.050 0.025 0.028 0.038

W (hrs) 0.100 0.075 0.078 0.088

Page 94: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSM/G/1

University of the Philippines

Page 95: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSOther Models: Cooperating Servers

University of the Philippines

A car wash shop has 3 employees. Each employee can wash a car in anexponential time with mean of 45 mins. However, when there are only twocars in the shop, one of the employees will help one of the other two,reducing the average time from 45 mins to 30 mins. Meanwhile, thecustomer being served by one employee will still have a service timeaverage of 45 mins. Note than when a new vehicle arrives, one of thecooperating employee will leave its partner and will now assist the newlyarrived customer. In that case, service time average goes back to 45 minsper customer.

If there is a single customer in the shop, only two employees will wash thevehicle, with service time average of 30 mins. The third employee will beidle during this time.

Cars arrive to this system at a Poisson rate of 5 customers per hour.However, customers balk when two cars are already waiting in the shop(excluding those being washed).

Page 96: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSOther Models: Cooperating Servers

University of the Philippines

a. Find the expected revenue per hour of the shop if each vehicle washedgenerates PhP 200.

b. Find the average number of vehicles present in the shop.

c. On the average, how long does a vehicle stay in the car wash?

Page 97: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSOther Models: Cooperating Servers

University of the Philippines

0 1 2 3 4 5

5/hr 5/hr 5/hr 5/hr 5/hr

2/hr (1.33+2)/hr 3(1.33)/hr 3(1.33)/hr 3(1.33)/hr

Page 98: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSOther Models: Cooperating Servers

University of the Philippines

๐‘ƒ1 =5

2๐‘ƒ0 =

5

2(0.0398) = 0.0994

๐‘ƒ2 =5

3.33๐‘ƒ1 =

5

3.33(0.0994) = 0.1493

๐‘ƒ3 =5

4๐‘ƒ2 =

5

4(0.1493) = 0.1866

๐‘ƒ4 =5

4๐‘ƒ3 =

5

4(0.1866) = 0.2333

๐‘ƒ5 =5

4๐‘ƒ4 =

5

4(0.2333) = 0.2916

๐‘ƒ0 = 1 +5

2+

5(5)

2(3.33)+

5(5)(5)

2(3.33)(4)+ โ‹ฏ+

5(5)(5)(5)(5)

2(3.33)(4)(4)(4)

โˆ’1

= 0.0398

Page 99: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSOther Models: Cooperating Servers

University of the Philippines

a. Find the expected revenue per hour of the shop if each vehicle washedgenerates PhP 200.

b. Find the average number of vehicles present in the shop.

๐œ†๐‘Ž๐‘ฃ๐‘’ =๐‘›=0

5

๐œ†๐‘›๐‘ƒ๐‘› = 5 ๐‘ƒ0 + ๐‘ƒ1 + ๐‘ƒ2 + ๐‘ƒ3 + ๐‘ƒ4 + 0๐‘ƒ5 = 5 1 โˆ’ ๐‘ƒ5

๐œ†๐‘Ž๐‘ฃ๐‘’ = 5 1 โˆ’ 0.2916 = 3.542 ๐‘ฃ๐‘’โ„Ž๐‘–๐‘๐‘™๐‘’๐‘ /โ„Ž๐‘Ÿ

๐ป๐‘œ๐‘ข๐‘Ÿ๐‘™๐‘ฆ ๐‘…๐‘’๐‘ฃ๐‘’๐‘›๐‘ข๐‘’ = 200๐œ†๐‘Ž๐‘ฃ๐‘’ = 200 3.542 = ๐‘ท๐’‰๐‘ท ๐Ÿ•๐ŸŽ๐Ÿ–. ๐Ÿ’๐ŸŽ

๐ฟ = ๐‘›=0

5

๐‘›๐‘ƒ๐‘› = 0 0.0398 + 1 0.0994 + โ€ฆ+ 5 0.2916 = ๐Ÿ‘. ๐Ÿ‘๐Ÿ’๐Ÿ— ๐’—๐’†๐’‰๐’Š๐’„๐’๐’†๐’”

Page 100: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSOther Models: Cooperating Servers

University of the Philippines

c. On the average, how long does a vehicle stay in the car wash?

๐‘Š =๐ฟ

๐œ†๐‘Ž๐‘ฃ๐‘’=3.349

3.542= ๐ŸŽ. ๐Ÿ—๐Ÿ’๐Ÿ” ๐’‰๐’“ = ๐Ÿ“๐Ÿ”. ๐Ÿ•๐Ÿ‘๐Ÿ๐’Ž๐’Š๐’๐’”

Page 101: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSOther Models: Balking Customers

University of the Philippines

A newly-opened tea shop is very popular to mall-goers. The Poisson arrivalsof customers to the said shop has rate of ฮป = 26 per hour. The shop has asingle employee. The mean service time is 2.5 mins. Assume that theservice time is exponentially distributed.

Though popular, some clients may not go inside when there is a relativelylong queue. They will instead go to other tea shops in the mall. Specifically,an arriving customer will balk with probability 0.30 if there are 3 or 4customers inside (including the one being served). This probability ofbalking goes up to 0.75 if there are 5 or 6 customers inside. No customerenters the queue when there are 7 customers.

a. What is the probability that the employee is idle?

b. Find the average waiting time before a customer is entertained by theemployee.

c. How many customers are lost per hour due to balking?

Page 102: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSOther Models: Balking Customers

University of the Philippines

0 1 2 3 4 5 6 7

26/hr 26/hr 26/hr 18.2/hr 18.2/hr 6.5/hr 6.5/hr

24/hr 24/hr 24/hr 24/hr 24/hr 24/hr 24/hr

Page 103: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSOther Models: Balking Customers

University of the Philippines

๐‘ƒ0 = 0.1544

๐‘ƒ1 = 0.1673

๐‘ƒ2 = 0.1812

๐‘ƒ3 = 0.1963

๐‘ƒ4 = 0.1489

๐‘ƒ5 = 0.1129

๐‘ƒ6 = 0.0306

๐‘ƒ7 = 0.0083

Page 104: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSOther Models: Balking Customers

University of the Philippines

a. What is the probability that the employee is idle?

b. Find the average waiting time before a customer is entertained by theemployee.

๐‘ƒ0 = ๐ŸŽ. ๐Ÿ๐Ÿ“๐Ÿ’๐Ÿ’

๐ฟ๐‘ž = ๐‘›=๐‘ 

7

เตซ๐‘› โˆ’ ๐‘ )๐‘ƒ๐‘› = 0๐‘ƒ1 + 1๐‘ƒ2 + 2๐‘ƒ3 +โ‹ฏ+ 6๐‘ƒ7

๐ฟ๐‘ž = 0 0.1673 + 1 0.1812 + 2 0.1963 + โ‹ฏ+ 6 0.0083 = 1.675 ๐‘๐‘ข๐‘ ๐‘ก๐‘œ๐‘š๐‘’๐‘Ÿ๐‘ 

๐œ†๐‘Ž๐‘ฃ๐‘’ =๐‘›=0

7

๐œ†๐‘›๐‘ƒ๐‘› = 26๐‘ƒ0 + 26๐‘ƒ1 + 26๐‘ƒ2 + 18.2๐‘ƒ3 + 18.2๐‘ƒ4 + 6.5๐‘ƒ5 + 6.5๐‘ƒ6 + 0๐‘ƒ7

๐œ†๐‘Ž๐‘ฃ๐‘’ = 26 0.1544 + 26 0.1673 + โ‹ฏ+ 0 0.0083 = 20.294 ๐‘๐‘ข๐‘ ๐‘ก๐‘œ๐‘š๐‘’๐‘Ÿ๐‘ /โ„Ž๐‘Ÿ

๐‘Š๐‘ž =๐ฟ๐‘ž๐œ†๐‘Ž๐‘ฃ๐‘’

=1.675

20.294= ๐ŸŽ. ๐ŸŽ๐Ÿ–๐Ÿ‘ ๐’‰๐’“ = ๐Ÿ’. ๐Ÿ—๐Ÿ“๐Ÿ๐’Ž๐’Š๐’๐’”

Page 105: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSOther Models: Balking Customers

University of the Philippines

c. How many customers are lost per hour due to balking?

๐œ†๐‘๐‘Ž๐‘™๐‘˜ = ๐œ† โˆ’ ๐œ†๐‘Ž๐‘ฃ๐‘’ = 26 โˆ’ 20.294 = ๐Ÿ“. ๐Ÿ•๐ŸŽ๐Ÿ” ๐’„๐’–๐’”๐’•๐’๐’Ž๐’†๐’“๐’” ๐’‘๐’†๐’“ ๐’‰๐’๐’–๐’“

Page 106: QUEUING THEORY - PHL CHED Connect

QUEUING MODELSReferences

University of the Philippines

โ–ช Hillier F. and G. Lieberman. Introduction to Operations Research, 9th ed.New York: McGraw-Hill Higher Education, 2010.

โ–ช Taha, Hamdy. Operations Research: An Introduction, 8th ed. New Jersey:Pearson Education Ltd, 2007.

โ–ช Wayne, Winston. Operations Research: Applications and Algorithms, 4th

ed. Belmont, CA: Thomson Brooks / Cole, 2004.