Professional Documents
Culture Documents
OR Queueing Theory 2024 To Send
OR Queueing Theory 2024 To Send
• Queuing theory
Operations Research - • Generalized Poisson queuing model
ME3111D • Steady state solution of single server models for infinite queue size
and finite queue size.
3 Credits
1
Elements of a queuing model Cost-based queueing decision model
• Customer and server – represented by interarrival time and
service time
• Input Source: It generates the customers over time - finite or
infinite
• Queue size –finite or infinite
• Queue Discipline: A member of the queue is selected for service
by some rule known as the queue discipline.
Poisson Distribution
For the exponential distribution • Let x be the number of events (e.g., arrivals) that take place during a
specified time unit (e.g., a minute or an hour).
• Given that λ is a known constant, the Poisson pdf is defined as:
• Mean = λ
2
Special cases in queue Example A
• Cars arrive at a gas station randomly every 2 minutes, on the average.
• Balking - customers refuse to join a queue seeing its length Determine the probability that the interarrival time of cars does not
• Jockeying - customers jumps from one queue to another exceed 1 minute.
• Reneging - Customers leave after spending some time in a queue
before getting the service • Ans: .3934
• Arrivals are only allowed - Pure birth model
• Departures only can take place - Pure death model
3
GENERALIZED QUEUING MODEL GENERALIZED QUEUING MODEL
Let • The generalized model derives pn as a function of λn and µn.
• n = Number of customers in the system (in-queue plus in-service) • These probabilities are then used to determine the system's
• λn = Arrival rate given n customers in the system measures of performance, such as the average queue length, the
average waiting time, and the average utilization of the facility.
• µn = Departure rate given n customers in the system
• The probabilities Pn are determined by using the transition-rate
• pn = Steady-state probability of n customers in the system diagram.
Example 1 Example 1
• B&K Groceries operates with three checkout counters. The manager • Customers arrive in the counters area according to a Poisson
uses the following schedule to determine the number of counters in distribution with a mean rate of 10 customers per hour. The average
operation, depending on the number of customers in line: checkout time per customer is exponential with mean 12 minutes.
a) Determine the steady-state probability pn of n customers in the
Number of customers in store No. of counters in operation checkout area (for n = 0, 1, 2, ….7).
1 to 3 1 b) Determine the probability that only one counter will be open
4 to 6 2 (Assume that if there are no customers in the system, no counter
More than 6 3 will be opened).
c) Determine the expected number of idle counters.
4
Example 1 Solution: Specialized Poisson Queues
a) p0 = 1/55
b) .255
c) 1 counter
5
Specialized Poisson Queues Specialized Poisson Queues
• The queue discipline notation (symbol d) includes • For example, (M/D/5): (GD/10/∞) means….?
FIFO = First in, first-out
LIFO = Last in, first-out
SIRO = Service in random order
GD = General discipline (i.e., any type of discipline)
By definition, • L q = σ∞
𝒏=𝒄+𝟏(𝒏 − 𝒄) ∗ pn
• (Expected waiting time in the system) = (Expected waiting time in queue) +
(Expected service time). λeff
𝟏 • 𝒄ത = Ls - Lq = 𝝁
• Ws = Wq + 𝝁 𝑐ҧ
• Facility utilization = 𝑐
λeff
• Ls = Lq + • λeff = λ – λlost
𝜇
6
Example 2 Example 2:
• Visitors' parking at a shopping mall is limited to five spaces only. Cars making use
of this space arrive according to a Poisson distribution at the rate of six cars per
hour. Parking time is exponentially distributed with a mean of 30 minutes. Visitors • Ans:
who cannot find an empty space on arrival may temporarily wait inside the lot a) p0 = .0481, p1 = .1444, p2 = .2165, p3 = .2165, p4 = .1624, p5 = .0974,
until a parked car leaves. That temporary space can hold only three cars. Other
cars that cannot park or find a temporary waiting space must go elsewhere. p6= .0585, p7 = .0351, p8 = .0211
Determine the following: b) λeff = 5.8737 cars/hr (λlost= .1263)
(a) The probability, Pn of n cars in the system, (n=0,1,….).
c) Ls = 3.1286 cars
(b) The effective arrival rate for cars that actually use the lot.
(c) The average number of cars in the lot. d) Wq = 0.0326 hr
(d) The average time a car waits for a parking space inside the lot. e) 𝒄ത = 2.94
(e) The average number of occupied parking spaces. f) Average facility utilization = 0.5874
(f) The average utilization of the parking lot.
7
Example 3 Example 4
Ans: • In a large maintenance department, fitters draw parts from the parts-
stores which is at present staffed by one stores-man. The maintenance
a) .4213 foreman is concerned about the time spent by fitters getting parts and
wants to know if the employment of a stores-labourer would be
b) .5787 worthwhile. On investigation, it is found that:
c) .417 hrs a) A simple queue situation exists
b) Fitters cost Rs. 250 per hour
d) .8333
c) The store-man costs Rs. 200 per hour and can deal, on average, with 10
fitters per hour.
d) A labourer could be employed at Rs. 175 per hour and would increase
the capacity of the stores to 12 per hour.
e) On average, 8 fitters visit the stores each hour.
8
Example 5 Example 6
Ans: • Patients arrive at a clinic at the rate of 8/hr and the doctor can serve
a) P0 = 0.0237 at the rate of 9/hr. There is a restriction of 10 people in the system.
Find:
b) Ls = 3.26
a) The probability that the server is free
c) λeff = 1.78
b) The probability of an entering person forced to leave the queue
d) Service utilization = 0.98 without joining it.
c) The expected number in the system
d) The expected waiting time in the queue.
Example 6 References
Answer: • H. A. Taha, Operations Research: An Introduction, 9th ed. Pearson
a) p0 = 0.153 Education, 2013.
b) p10 = 0.047 • F. S. Hillier and G. J. Lieberman, Introduction to Operations Research,
9th ed. Tata McGraw-Hill, 2011.
c) Ls = 3.856
• G. Srinivasan, Operations Research: Principles and Applications, 2nd
d) Wq = 0.3959 hr (Ws = 0.5057, λeff = 7.624) ed. PHI Learning, 2011.
• Ravindran, D. Philips, and J. J. Solberg, Operations Research: Principles
and Practice, 2nd ed. John Wiley & Sons, 1989.