Professional Documents
Culture Documents
Session 19 Nov15th
Session 19 Nov15th
Science
Session 19
Monday, 15th November 2021
Recap
• Classification Models
– kNN
• Confusion matrix
– Logistic regression
Types of Mathematical Models
Queuing Theory
• Deals with the analysis and management of waiting
lines
• Waiting lines at
– Stores, banks, airports, hotels, theme parks, post
offices, restaurants, traffic lights, etc.
• Queuing models are used to
– Describe the behavior of queuing systems
– Determine the level of service to provide
– Evaluate alternative configurations for providing service
Common Queuing System Configurations
Customer Customer
... Leaves
Arrives Waiting Line Server
Customer
Server 1 Leaves
Customer Customer
...
Arrives Waiting Line Server 2 Leaves
Customer
Server 3 Leaves
Customer
... Leaves
Waiting Line Server 1
Customer Customer
...
Arrives Waiting Line Server 2 Leaves
... Customer
Waiting Line Server 3 Leaves
Basics of Queuing Costs
Cost of providing Service
Total Cost
0 1 2 N-1 N
µ µ µ µ
In steady state, the average entrance and exit rate of the system in any state would be the same.
And the sum of probabilities of the system being in any state will equal to 1
Birth Death Rate Process
In state 0: λ0P0=µ1P1 which means P1 = λ0P0/µ1
State 1:
λ0P0 + µ2P2 = λ1P1 + µ1P1
P2 = (λ1P1 + µ1P1 - λ0P0)/µ2
P2 = (λ1P1 + λ0P0 - λ0P0)/µ2
P2 = (λ1P1)/µ2= λ0λ1P0/ µ1 µ2
Pn = (λn-1Pn-1)/µn
Sum of all Pn = P0 {1 + λ0/µ1+ λ0λ1/ µ1 µ2+…}=1
M/M/1 Model
• Utilization factor: percentage of time that the
server is busy r = l / m
P0 = 1 - l / m = 1 - r and Pi = (1 – r ) r i
L = r / (1 – r) = l / (m – l)
W = (1 / l)L = 1 / (m – l)
Wq = W – 1/m = l / [m(m – l)]
Lq = lWq = l2 / [m(m – l)] = r2 / (1 – r)
Key Operating Characteristics
of the M/M/1 Model
1
W
L W
1
Wq W
Lq Wq
M/M/s Example