Queuing Theory - Part I
Queuing Theory - Part I
Part I
MGTE 31243-Optimization Methods in Management Science II
By
Ms. Erandika Gamage
University of Kelaniya
LEARNING OUTCOMES
o Describe the key elements and underlying mathematical concepts of analytical queuing models
o Explain and compute the operating characteristics associated with the single server queuing
model
o Apply the operating characteristic formulas for multiple server queuing model
o Understand the behavior of serial and cyclic queueing network models
o Explain economic trade offs associated with designing and managing queuing systems
o Explain the use of Excel to compute the operating characteristics associated with queuing
models
o Explain the psychology of waiting for designing and managing queues
o Queues/Waiting Lines are formed when people or items come faster than they can be
served (due to limited resources for providing a service and resources and demand
mismatched)
Ex: At a bank - the customers are people seeking to deposit or withdraw money, and the
servers are the bank tellers.
When looking at the queuing situation of a printer, the customers are the requests that
have been sent to the printer, and the server is the printer.
Ex: Supermarket
- Should decide how many cash register checkout position should be opened
Petrol station
- How many pumps should be opened and how many attendants should be on duty
Bank
- Should decide how many teller windows to keep open to serve customers during various
hours of the day
Server
Unit currently
Population Arrival Units in Queue/Waiting Line Departure
being served
Unit currently
Population Arrival Units in Queue/Waiting Line Departure
being served
Pattern of
Service Provision
“ The unit of measurement for pattern of arrival and pattern of service completion should be equal ”
Ex: A TV repairman finds that the average time spent on his jobs is 30 min per TV set and is negative
exponential. TV sets arrive in a Poisson fashion at the rate of 10 per eight hour day.
Average rate of arrival = 10 per eight hour day
Average rate of service completion = 30 min per TV set
= ½ hours per TV set * 2 *8
By Ms. Erandika Gamage
= 16 per eight hour day
3) NUMBER OF SERVERS
o Single Server Queue o Multi Server Queue
Server 1
Server Server 2
Server 3
Server 1
Server Server 2
Server 3
By Ms. Erandika Gamage
3) NUMBER OF SERVERS
o Single Server Queue o Multi Server Queue
II. Single Server Multiple Queues II. Multi Server Multiple Queues
Ex: Ex: • Different cash counters in an electricity office
• Different boarding pass encounters at an airport
• Single Server Single Queue (1) • Multi Server Single Queue (S)
Server 1
Server Server 2
Server 3
II. Last Come First Served (LCFS)/ Last in First Out (LIFO)
Ex: Elevator
(M / M / 1) : ( FIFO / ∞ / ∞ )
The system starts with empty and idle condition in the beginning (a supermarket just open early
in morning and no customers yet)
Then it gradually go in to one or more peak time where the number of customers in the system
reach the highest level and gradually reduces.
At the end of the service hour (in night before closing the supermarket) either the arrival of the
customers are cutoff or there is really no more customers.
The assumption of steady state in the queuing theory doesn’t represent the reality
But in queuing theory we assume that a queue will acquire steady state condition(system doesn’t
change anymore) after few time, which means queue has reached equilibrium.
Queue has reached equilibrium means the probability that the system is in a given state is not
time dependent
Variables :
λ = Rate of arrival of units
μ = Rate of service provision
θ=λ/μ
o Long-term average number of units (L) in a queuing system is equal to the long-term average
rate of arrival (λ) multiplied by the average time that a unit spends in the system (W)
L = λW
Note:
• Little’s law assumes that the system is in “equilibrium”
c) The difference between LS and LQ need not be equal to 1 because both LS and LQ are
estimates or averages.
n <= L n>L
P(n) = P(n - 1) P(n) = 0
P(n) = P(0)
P (n) =
Variables :
λ = Rate of arrival of units
μ = Rate of service provision
θ=λ/μ
L = Size of waiting room
H = Number of working hours per day
Probability that there will be at least two trucks in the system = 1 – (0.3657 + 0.2743)
= 0.36
b) Working hours per day (H) = 8 hours
Probability that the server is idle P(0),
P (0) = 0.3657
Number of hours server idle per day = H*P(0) = 8*0.3657 = 2.9256 hours
Number of hours server doesn’t provide service per day = 2.9256 hours
Number of hours the loader has to provide service within the day = 8 - 2.9256
= 5.0744 hours
d) Idle time of a truck driver means average waiting time of a truck driver within system W S,
Ws = 0.3829 hours
Number of trucks arrive per day = 24
Total idle hours of all the trucks per day = 0.3829 *24 = 9.1896 hours
Truck driver idle time cost = 9.1896 * 10 = $ 91.896
Number of hours brick loader idle per day = 2.9256 hours
Brick loader idle time cost = 6 * 2.9256 = $ 17.5536
Total cost to the firm per day = $ 17.5536 + $ 91.896 = $ 109.45
Next week :
3. Model 3 - (M / M / S) : ( FIFO / ∞ / ∞ ) -
Multi server infinite waiting room
END OF
4. Model 4 - (M / M / S) : ( FIFO / L / ∞ ) -
PART I
Multi server limited size waiting room
ANY
QUESTIONS ?