Operations Research
Operations Research
Operations Research
1
MISRIMAL NAVAJEE MUNOTH JAIN ENGINEERING COLLEGE
DEPARTMENT OF MATHEMATICS
PROBABILITY AND QUEUING THEORY (MA 2262)
SEMESTER-IV
QUESTION BANK IV
UNIT IV QUEUEING THEORY
PART- A
Problem 1 For ( ) ( ) / /1 : / M M FIFO model, write down the Littles Formula.
Solution:
i)
S S
L W =
ii)
q q
L W =
iii)
1
S q
W W
= +
iv)
S q
L L
= +
Problem 2 For ( ) ( ) / / : / M M C N FIFO model, write down the Formula for
a) Average number of customers in the queue.
b) Average waiting time in the system.
Solution:
a)
( )
( ) ( )
0
1 1
! 1
n c n c
q
L n c
C
o
| |
( =
|
\ .
when
c
=
b)
1
1
S S
W L
=
( )
1
1
0
i
n
n
C c n
=
(
=
(
1
S q
L L
= +
Problem 3 What is the probability that a customer has to wait more than 15 minutes to
get his service completed in a ( ) / /1 M M queuing system, if 6 = per hour 10 = per
hour?
Solution:
Probability that the waiting time in the system exceeds t is
( )
( ) ( ) W t
t
e dW e
=
}
Queuing Theory
2
( )
1
10 6 .
1
4
15
0.3679
60
S
P W e e
(
> = = =
(
Problem 4 What is the probability that an arrival to an infinite capacity 3 server Poisson
queueing system with 2
= and
0
1
9
P = entries the service without waiting.
Solution:
P[Without waiting] | |
0 1 2
3 P N P P P = < = + +
0
1
!
n
n
P P
n
| |
=
|
\ .
when 3 n c s = .
| |
2
1 2 1 1 5
3 2
9 9 2 9 9
P N < = + + = .
Problem 5 In a given ( ) ( ) / /1 : / M M FCFS queue, 0.6 = , What is the probability
that the queue contain 5 or more students?
Solution:
| | ( )
5
5
5 0, 6 0.0467 P X > = = =
Problem 6 What is the effective arrival rate for ( ) ( ) / /1 : 4/ M M FCFS queuing model
when 2 = and 5 =
Solution:
| |
1
1 =
| |
( )
( )
( )
( )
0 1 5
1 / 1 2/ 5
5 1
1 / 1 2/ 5
K
+
= = =
( )
5
3/ 5 0.6
5 1 5 1
1 0.01024
1 2/ 5
(
(
= = (
(
(
| |
0.6
5 1 5 1 0.607
0.989
(
= =
(
5 0.393 1.965 2 = = =
Problem 7 a) In ( ) ( ) / /1 : / M M K FIFO write down the expression for P
0
.
b) In ( ) ( ) / /1 : / , 3/ , 4/ , 7 M M K FIFO hr hr K = = = Calculate P
0
Solution:
a)
0 1
1
1
K
P of
= =
| |
|
\ .
1
1
of
K
= =
+
Queuing Theory
3
b)
0 1
1
1
K
P of
+
= =
| |
|
\ .
8
3
4
1 0.2778
3
1
4
= =
| |
|
\ .
Problem 8 In ( ) ( ) / / : / , 10/ , 15/ , 2 M M S FIFO hr hr S = = = Calculate P
0
Solution:
1
1
0
0
1 1
! !
n s
S
n
s
P
n S s
=
(
| | | | | |
= + (
| | |
\ . \ . \ . (
1
2
1 10 1 10 30
1
1! 15 2! 15 30 10
(
| | | | | |
= + +
(
| | |
\ . \ . \ .
(
1
2
=
Problem 9 In a two server system with infinite capacity and 20/ hr = and 11/ hr = ,
find P
0.
Solution:
1
1
0
0
1 1
! !
n s
S
n
s
P
n S s
=
(
| | | | | |
= + (
| | |
\ . \ . \ . (
1
2
20 1 20 11 2
1
11 2 11 22 20
(
| | | |
= + +
(
| |
\ . \ .
(
1
21
=
Problem 10 Write the steady states equations in ( ) ( ) / /1 : / M M K FIFO where
0,1, 2... 1
n
for n K = =
0 for n k = >
1, 2, 3
n
and n = =
Solution:
( )
1 1
1 1
n n n
P P P n K
+
= + s s
1 0
0 P P n = =
Queuing Theory
4
Problem 11 In ( ) ( ) / /1 : / , 3/ , 5/ , 7 M M K FIFO hr hr K = = = , what is the
probability that the server will be idle.
Solution:
The probabilities that the server will be idle
0 1 8
3 2
1
1
0.4
5 5
0.407
1 0.0168 0.983
3
1
1
5
K
P
= = = = = =
| | | |
|
|
\ .
\ .
Problem 12 In ( ) ( ) / / : / , M M S K FIFO write the expression for P
0
.
Solution:
( ) ( )
1
1
0
0
1 1
/ /
! !
n s
s k
n s
n n s
P
n s s
= =
(
| |
= + (
|
\ . (
Problem 13 What is effective arrival rate in ( ) ( ) / / : / M M S K FIFO
Solution:
Effective arrival rate
( )
1
1
0
s
n
n
s s n
=
(
=
(
=
5
5 2
1 3.76
0.3617
2!2 4
| |
=
|
\ .
0.0166 =
PART-B
Problem15 A repairman is to be hired to repair machines which break down at an
average rate of 3 per hour. The breakdown follows Poisson distribution. Non- productive
time of machine is considered to cost Rs.16/hr. Two repairmen have been invited. One is
slow but cheap while the other is fast and expensive. The slow repairman charges Rs.8
per hour and he services machines at rate of 4 per hour. The fast repairman demands
Rs.10 per hour and service at the average rate of 6 per hour. Which repair man should be
hired?
Queuing Theory
5
Solution:
For the slow man: Model ( ) ( ) / /1 : / 3/ , 4/ M M FIFO Hr hr = =
Expected waiting time of a machine
1 1
1
4 3
hr
= = =
Non productive cost =16 / hr
Non productive cost =3 16 =Rs.48.
Charges paid to the repairman 8 3 24 = =
Total cost =48+24=72
For fast man: M
3/ , 6/ . hr hr = =
Expected waiting time
1 1
3
= =
hour
Non productive cost
1
3 16 16
3
=
Charge paid to repairman 10 1 10 = =
Total cost =16+10=26
Fast repairman can be hired.
Problem 16 A two person barber shop has 5 chairs to accommodate waiting customers.
Customers who arrive when all 5 chairs are full leave without entering barber shop.
Customers arrive at the average rate of 4 per hour and spend an average of 12 minutes in
the barbers chair. Compute
0 1
, P P and average number of customers in the queue
Solution: This is model ( ) ( ) / / : / 0 4/ , 5/ , 2, 2 5 7 M M C K FIF hr hr C N = = = = + =
( ) ( )
1 7
0 2
0 2
1
2 5
1 1 1
/ /
! ! 2
4 8 2 2 2
1 1 ...
5 25 5 5 5
0.4287
i
n n
n
n n
P
n C
= =
(
= +
(
(
| | | |
= + + + + + +
( `
| |
\ . \ .
(
)
=
( )
0
1
/ , 0
!
n n c
P P n
C C
= =
( )
7
7 7 2
1
4/ 5 0.4287
2 2!
P
=
0.0014. =
( )
( )
( ) ( )
0 2
1 1
! 1
C
N C N C
q
PC
L P N C
C
( =
Where /
C
=
( )
( )
( ) ( )
2 5 5
2
0.4
0.4287. 0.8 1 0.4 5 0.6 0.4
2! 1 0.4
(
=
0.15 = Customers
Queuing Theory
6
Problem 17 Derive the formula for
i) Average number
q
L of customers in the queue.
ii) Average waiting time of a customer in the queue for
( ) ( ) / /1 : / M M FIFO MODEL.
Solution:
( )
1 1 1
1
q n n n
n n n
L n P nP P
= = =
= = =
( )
0 0
1 0 0
1
n n n
n n n
nP P P nP P
= = =
| |
=
|
\ .
( )
0
1
s
L P =
( )
2
1 1
( | |
= =
( |
\ .
ii) Average waiting time of a customer is the queue
q
W
( )
( )
0
w
q
W W e dw
=
}
where ( )
( )
/ e w
is the probability density
function of the waiting time distribution of the queue.
( )
( )
0
.
w
we dw
=
}
( )
( ) ( )
0
0
w w
e e dw
W
(
= +
` (
)
}
( ) ( )
1
(
= =
(
Problem 18 On average 96 patients over 24 hour day require the service of an
emergency classic. Also on average a patient requires 10 minutes of active attention.
Assume that the facility can handle any one emergency at a time. Suppose that it costs the
clinic Rs.100 per patient treated to obtain an average servicing time of 10 minutes and
that each minute of decrease in this average time would cost Rs.10 per patient treated.
How much would have to be budgeted by the clinic to decrease the average size of the
queue from
1
1
3
patient to
1
2
patient?
Solution: This is ( ) ( ) / /1 : / M M FIFO model
96
4/
24
hr = = .
6/ hr =
4 1
. 1
3 3
q
L
= = =
Now
1
1
3
customers to be reduced to
1
2
, then we have to find
1
such that
Queuing Theory
7
2 1
1
4 32 0
2
ie
= =
( )( )
1 1 1
8 4 0 8 + = Patient /hr
Average time required to each patient
'
1 15
8 2
hr = =
Decrease in the time required to attend a patient
15 5
10
2 2
= = min.
Decrease in each minute cost Rs.10 per patient.
Cost
5
10 25
2
= = .
Budget required for each patient= 100+25=125 to decrease the size of the queue.
Problem 19 Obtain the expressions for steady state probability of a M/M/C queuing
system
Solution:
( ) 1
n
n n C = s <
( ) C n c
= >
It can be treated as a birth death process with
n
t = for all n and
n
is given by (1)
In a birth death process
1
0
1
n
i
n
i
P P
i
t
=
=
and
1
1
0
1
1
1
a
i
n
i
n
P
i
=
=
(
(
= +
(
=
for M/M/C.
0 1 1
0
1 2 1
....
n
n
n
P P
=
( )( )
( ) ( )
0
... 1
1 2
n
P
n if n C
= s s
0
1
n
n
of n c
ni P
= s <
( ) ( )
( )
( ) ( ) 1 ......
.... 1
1 2 1
n
n
c c
P c if n c
n c
| |
= >
|
+
\ .
( )( )
( ) ( )
1
.... 1 1
1 2
n
n c
c c
+
=
( ) 1
!
n
n
n
C of n c
C
= >
Queuing Theory
8
1
0
0
! !
n n C
n c n
n n c n
P
n c c
= =
(
= +
(
Problem 20 Arrivals at a telephone booth are considered to be Poisson with an average
time of 12 mins. The length of a phone call is assumed to be distributed exponentially
with mean 4 min. Find the average number of persons waiting in the system. What is the
probability that a person arriving at the booth will have to wait in the queue? Also
estimate the traction of the day. Where phone will be in use
Solution: This is model ( ) ( ) / /1 : / M M FIFO
1
12, 12
= = per min
1 1
4,
4
= = per min
1
12
0.5.
1 1
4 12
S
L
= = =
| | | | 0 1 0 1
S s
P L P t P > = = = [No customer in the system]
( )
0
1
1 1 1 / / .
3
P = = = =
| P Phone will be idle
|
=
0
2
1
3
P
= = =
| P Phone will be in use | =
1
3
Problem 21 There are three typists in an office. Each typist can type an average of 6
letters per hour. If letters arrive for being typed at the rate of 15 letters per hour, what
fraction of time all the typists per hour will be busy? What is the average number of
letters waiting to be types?
Solution: This is ( ) ( ) / / : / M M C FIFO
3, 15/ , 6/ C hr hr = = =
P [all the three typists buy] | | 3 P N = >
3
0
3! 1
3
P
| |
|
\ .
=
(
(
Queuing Theory
9
3
0
1
0
1
1 1
!
! 1
r
n
P
n
n
c
c
=
| |
=
|
\ .
=
| |
+
|
\ .
| |
|
\ .
( )
( )
3
2
2.5
1
2.5 1
1 2.5
15 2!
3! 1
6 3
=
(
( (
( + + (
(
( (
(
(
0.0449. =
| | 3 0.7016 P N > =
1
0 2
. ! 1
c
q
L P
c c
+
| |
|
\ .
=
| |
|
\ .
( )
4
2.5
0.0449 3.5078
25
3 6 1 2
3
= =
(
(
Problem 22 A bank has two tellers working are savings account. The first teller handles
with drawals only the second teller handles deposits only. It has been found that the
service time distributions for both deposits and withdrawals are exponential with mean
service time of 3 minutes per customer. Depositors are found to arrive in a poisson
fashion through out the day with mean arrival rate of 16 per hour withdrawals also arrive
in a poisson fashion with mean arrival rate of 14 per hour. What would be the effect on
the average waiting time for the customers if each teller could handle both withdrawals
and deposits?
Solution:
1. When the tellers handle separately withdrawals and deposits. This is Model
( ) ( ) / /1 : / M M FIFO .
For depositors 16 / , 20/ hr hr = =
( )
1
12min
5
q
W hr
= = =
=
=
(
| | | |
= + (
| |
\ . \ . (
1
2
30 1 30 40 1
1
20 2 20 40 30 7 i
(
| | | |
= + + =
(
| |
\ . \ .
(
2
0 2 2
30
1 1 1 1 1 20
. ! 20 2.21 7
30
1
1
40
c
q
W P
c c
c
| |
| |
| |
\ . \ .
= =
| | | |
|
|
\ .
\ .
0.0642 3.857 hr or =
Problem 23 In a heavy machine shop, the overhead crane is 75% utilized. Time study
observations gave the average slinging time as 10.5 minutes with a SD of 8.8 minutes.
What is the average calling rate for the service of the crane and what is the average delay
in getting service? If the average service time is cut to 8.0 minutes, with a standard
deviation of 6.0 minutes, how much reduction will occur on average in the delay of
getting service?
Solution: This is model ( ) ( ) / /1 : / M G FIFO
Average delay is getting service
( )
( )
2 2
1
/
2 1
p
o
o
+
= =
\ .
(
Average calling rate 0.75 5.71 4.28 = = = = per hr. If the service time is cut to
8 minutes, then
60 4.29
7.5/ , 0.571
8 7.5
hr = = = =
utilization of the crane reduced to 57.1 percent and average delay in getting service
( )
( )
2
2 0.571 600 60
1 7.5
2 1 0571 60 7.5
q
W
(
| |
= +
(
|
\ .
(
8.3 = minutes.
a reduction of 18.5 minutes approximately 70%
Problem 24 A Super market has two girls ringing up sales at the customers. If the service
time for each customer is exponential with mean 4 minutes and if the people arrive in a
Poisson fashion at the rate of 10 per hour
a) What is the probability of having to wait for service?
b) What is the expected percentage if idle time for each girl?
Queuing Theory
11
Solution:
This is model ( ) ( ) / / : / M M C FIFO
1 1 1
, ; 2 .
6 4 3
C
C
= = = => = =
1
2
1
0
0
1 4 1 4 2.1/ 4 1
! 6 2! 6 2.1/ 4 1/ 6 2
n
c
n
P
n
=
=
(
| | | |
= + =
(
| |
\ . \ .
(
1 0
2 1 1
.
3 2 3
P P
= = =
a)
| |
2
1 1 1
2 1
2 3 6
c
P C Pc
=
| |
> = = + =
|
\ .
= =
0 6 1
5
1
1 0.1666
6
0.2505.
1 0.6651
5
1
6
N
P
= = = =
| |
|
\ .
S
S
L
W where
=
1
6
6
5
1
6
5 6
6 5
5
1 1
1
6
n
S
n
L
n
+
| |
| |
| |
+ |
| |
\ . \ . |
= =
|
| |
| |
+ |
| |
|
\ . \ .
\ .
Queuing Theory
12
6.0335 2.01
5 5 198
1 0.335 0.665
= = =
( )
'
0
1 P =
( ) 6 1 0.2505 4.497 = =
'
1 1.98
0.441
4.497
s S
W L hrs
= = =
Problem 26 At a railway station, only one train is handled at a time. The railway yard is
sufficient only for two trains to wait while the other is given signal to leave the station.
Trains arrive at the station at an average of 12 per hour. Assuming poisson arrivals and
exponential service distribution, find the steady state probabilities for the number of
trains in the system also find the average waiting time of a new train coming into the
yard. If the handling rate is reduced to half, what is the effect of the above results?
Solution:
This is Model ( ) ( ) / /1 : / M M K FIFO
Hence 6/ , 12 / , 3 hr hr k = = =
Steady state probability for the number of trains in the system
1 2 3
, P P and P = .
0 0 1
1
1
n
n K
P P when P
| |
= = =
|
\ . | |
|
\ .
( )
4 4
6
1
0.5 0.5
12
0.5333
0.9375
1 0.5 6
1
12
= = = =
| |
|
\ .
1
1 0
0.2667 P P
| |
= =
|
\ .
2
2 0
P P
| |
=
|
\ .
= 0.1334
3
3 0
0.0667 P P
| |
= =
|
\ .
Average waiting time of a new train coming in the yard is
1
s S
W L
t
= where
( )
1
1
1
1
K
s K
K
L
+
+
| |
+
|
\ .
=
| |
|
\ .
Queuing Theory
13
( )
( )
4
4
4 0.5 6
0.7333.
12 6
1 0.5
= =
( ) ( )
1
1 12 1.05333 5.6004 c = = =
0.7333
0.1309
5.6004
s
W hrs = =
Case II
If the handling rate is reduced to half, then 6/ , 6/ 3 hr hr and k = = =
Hence
1 1
1 4
n
P
k
= = =
+
1 2 3
1
4
P P P = = =
Average waiting time of a new train coring into the yard in
1
s
s
L
W
=
( )
3
1.5
2 2
s
K
L Since train = = = =
( )
1
0
1
1 6 1 4.5
4
P
| |
= = =
|
\ .
1
1
1.5
0.333 ( 20 )
4.5
s
s
L
W hrs or
= = =
Problem 27 At a port there are 6 unloading berths and 4 unloading crews. When all the
berths are full, arriving ships are diverted to an overflow facility 20 kms down the river.
Tankers arrive according to a poisson process with a mean of 1 for every 2 hrs. If it takes
for an unloading crew on the average, 10 hrs to unload a tanker, the unloading time
follows an exponential distribution Determine.
a) How many tankers one of the port on the average?
b) How long does a tanker spend at the port as the average?
Solution:
1
1 0
0.0361 P P
| |
= =
|
\ .
2
2 0
1
0.0901
2!
P P
| |
= =
|
\ .
3
3 0
1
0.1502
3!
P P
| |
= =
|
\ .
( ) ( ) ( ) { }
4.8214 4 0.00721 3 0.0361 2 0.0901 0.1502 4.3539
s
L = + + + = tankers.
b) Time spend by a tanker at the port
Queuing Theory
14
( )
1
1
1
0
1
c
S S n
n
W L Where C c n
=
(
= =
(
( )
1 0 1 2 3
4 3 2 S P P P P = + + + (
( ) ( ) ( )
1
4 4 0.00721 3 0.0361 2 0.0901 0.1502
10
= (
0.3532 =
4.3539
12.3250
0.3532
S
W = =
Problem 28 A petrol pump has 2 pumps. The service time follows the exponential
distribution with a mean of 4 minutes and ears arrive for service in a poisson process at
the rate of 10 cars per hour. Find the probability that a customer has to want for service.
What proportion of time the pumps remain idle?
Solution:
This is model ( ) ( ) / / : / M M C FIFO
1 4
10/ 15/ 2
60
hr is hr C
= = = =
P[ a customer has to wait ] | | P n c = >
0
! 1
c
c
P
C
| |
|
\ .
=
| |
|
\ .
| |
2
0
10
15
2
10
2! 1
30
P n P where
| |
|
\ .
> =
| |
|
\ .
1
1
0
0
1 1
! !
n c
c
n
c
P
n c c p
=
(
| | | |
= + (
| |
\ . \ . (
1
2
1 10 1 10 30
1
1! 15 2! 15 30 10
(
| | | | | |
= + +
(
| | |
\ . \ . \ .
(
1
2 1 1
1
3 3 2
(
= + + =
(
Probability that a customer has to want in | |
2
2
1 1 3
2 . 0.1667
2
2 6
2.
3
P n
| |
|
\ .
> = = =
Queuing Theory
15
The traction of time when the pumps are busy =traffic intensity
10 1
30 3 c
= = =
Hence the pumps remain idle 1 =
1 2
1 67%
3 3
= = =
Problem 29 A supermarket has two girls serving at the customers. The customers arrive
in a Poisson fashion at the rate of 12 per hour. The service time for each customer is
exponential with mean 6 minutes. Find
i) The probability that an arriving customer has to want for service.
ii) The average number of customers in the system, and
iii)The average time spent by a customer in the supermarket.
Solution: This is ( ) ( ) / / : / M M C FIFO . Here
1 6
12/ , 10/ , 2
60
X hr hr c
= = => = =
i) Probability that an arrival customer has to wait is
( )
0
1
C
P
P n c
Ci
c
| |
|
\ .
> =
| |
|
\ .
2 1
0
12 1 12 20 1
10 2! 10 20 12 4
P
(
| | | |
= + =
(
| |
\ . \ .
(
( )
2
12 1
10 4
2 0.45
12
2! 1
20
P n
| |
|
\ .
> = =
| |
|
\ .
The probability that an arrival customer has to want=0.45
ii) Average number of customer is the system
1
0 2
1
. !
1
c
s
L P
c c
c
+
| |
|
\ .
= +
| |
|
\ .
3
2
12
1 1 12
10
1.875 2
2.2! 4 10
12
1
20
| |
|
\ .
= + = =
| |
|
\ .
customer
iii) Average time spent by a customer in the supermarket =Average waiting time
of a customer in the system
Queuing Theory
16
1 1.875
0.1563 9.375
12
s s
W L hours
= = = = minutes.
Problem 30 Four counters are being run on the frontier of a country to check the
passports of the tourists. The tourists choose a counter at random. If the arrival at the
frontier is poisson at the rate and the service time is exponential with parameter
2
,
find the steady average queue at each counter.
Solution:
This is ( ) ( ) / / : / M M C FIFO
Average queue length
0 2
1
. !
1
q
L P
c c
c
| |
|
\ .
=
| |
|
\ .
1
3
0
0
1 1
!
n c
n
c
P
n Ci c
=
(
| | | | | |
= + (
| | |
\ . \ . \ . (
1
2 3
4
2 2 1 2
1 2 2
2 6 4! 2
(
= + + + +
(
3
23
=
2
1 25 3 4
0.1739
4.4! 23 23
1
2
q
L
= = =
| |
|
\ .
Problem 31 In a given M/M/1 queuing system the average arrivals is 4 customers per
minutes 0.7 = what are
1) Mean number of customers
s
L in the system
2) Mean number of customers
q
L in the queue.
3) Probability that the service is idle.
4) Mean waiting time
s
W in the system.
Solution:
0.7 0.7
2.33.
1 1 0.7 0.3
s
L
= = = =
2.333 0.7 1.633.
q s
L L = = =
0
1 1.07 0.3 P = = =
Queuing Theory
17
2.333
0.583
4
s
s
L
W
= = =
Problem 32 A TV repairman finds the time spend on his job has an exponential
distribution with mean 30.If he repairs sets in the model in which they come in and of
the arrival of sets is approximately poisson with an average rate of 10 sets per 8 hours
day, what is the repairmans expected idle time each day ? How many jobs ahead of the
average set just brought in?
Solution:
We are given
10 5
8 4
= = sets per hour
1
60 2
30
= = sets per hour
Then
5
8
= =
The probability of no unit in the queue is
0
5 3
1 1
8 8
P
= = =
Hence the idle time for repair man in an 8-hours day
3
8 3
8
= hrs
5
2
4
1
5
3
2
4
s
L
= = =
jobs = 2 TV Sets (approx)
Problem 33 If for a period of 2 hours in the day trains arrive at the yard every 20
minutes but the service time continuous to remain 36 minutes. Calculate the following for
the above period.
i) The Probability that the yard is empty
ii) The average number of trains on the assumption that the line capacity of the yard
is limited to 4 trains only.
Solution:
This model is ( ) ( ) / /1 : / M M K FIFO Hence
1
20
= per min;
1
36
= per min ,
4 K = .
i) Probability that the yard is empty
0 1
1
,
1
K
P
= = =
| |
|
\ .
5
36
1
20
0.0447
36
1
20
= =
| |
|
\ .
Queuing Theory
18
ii) Average number of trains
( )
1
1
1
1
K
S K
K
L of
+
+
| |
+
|
\ .
=
| |
|
\ .
5
5
1 36
5
20 20
3027
1 1
36
1
36 20
20
| | | |
| |
\ . \ .
=
| |
|
\ .
=3 trains.
Problem 34 Suppose there are 3 typists is a typing pool. Each typist can type an average
of 6 letters / hr. If letters arrive to be typed at the rate of 15 letters/hr
a) What is the probabilities that there is only one letter in the system
b) What is the average number of letters waiting to be typed?
c) What is the average time a letter spends in the system?
Solution:
This is ( ) ( ) / / : / M M S FIFO
1
1
0
0
1 1
! !
n s
s
n
s
P
n s s
=
(
| | | |
= + (
| |
\ . \ . (
1
3
2
0
1 15 1 15 18
! 6 3! 6 18 5
n
n
n
=
(
| | | |
= +
(
| |
+
\ . \ .
(
1
1 18
1 2.5 3.125 15.625
6 3
(
= + + +
(
0.04494. =
a)
1 0
1
!
n
P P Since n s
n
| |
= <
|
\ .
1
1 15
0.04494 0.11235
1! 6
| |
= =
|
\ .
b) Average numbers of letters waiting to be typed
1
0 2
1
!
1
S
q
L P
ss
s
+
| |
|
\ .
=
| |
|
\ .
Queuing Theory
19
( )
4
2
15
1 6
0.04494
3.3!
15
1
18
| |
|
\ .
=
| |
|
\ .
3.51094 . Letters =
C)
1
s s
W L
=
1
q
L
(
= +
(
1 15
3.51094 0.40073
15 6
hr
(
= + =
(
24.0438 = .
Problem 35 An automobile inspection station has 3 inspection stalls. Assume that cans
wait in such a way that when a stall becomes vacancy the car at the head of the time pulls
up to it. The Station can accommodate at most 4 cars waiting at one time. The arrival
pattern is poisson with a mean of I car every minute during the peak hours. The service
time is exponential with mean 6 min. Find the average number of customers is the queue
during peak hours and the average waiting time in the queue.
Solution:
This is ( ) ( ) / / : / M M C K FIFO Model.
3, 7. c k = =
60/ 10/ . hr hr = =
1
1
0
0
1 1
! !
m C m c
i k
m m v
P
m C c
= =
(
| | | | | |
= + (
| | |
\ . \ . \ . (
( ) ( )
1
3
2 7
3
0 3
1 1 6
6 6
! 3! 3
m
m
m m
m
= =
(
| |
= +
(
|
\ .
(
1
2 3 2 3 4
1 1
1 6 6 6 1 2 2 2 2
2! 3!
(
( = + + + + + + +
(
| | ( )
7 1
7 18 36 31 1141 0.000.8764
= + + = =
i) Average no of customer is the queue.
( )
( )( )
0 2
1
1 1
!
1
c
K C K C
q
L P K C
c
| |
( =
|
\ .
6
2
3
Where
c
= = =
Queuing Theory
20
( )
( )
3 4 4
2
2 1
6 .0.0008764 1 2 4 1 2 2
3!
1 2
( =
3.09 =
ii) Average waiting time in the queue.
( )
1
'
'
0
1
c
q q m
m
W L where c c m P
=
(
= =
(
( )
2
1
0
10 3 3
m
m
m P
=
=
`
)
{ }
0 1 2
10 3 3 2 P P P =
{ } 10 3 3 0.00087 2 0.005256 0.015768 =
29.76 30 = ~
3.09
0.103 .
30
q
L hrs = =
0
1
; 3
!
n
n
Hence P P n c
n
| |
= s =
|
\ .
( )
1
1
1
6 0.0008764
1!
P = 0.005256 =
( )
2
2
1
6 0.00087
2!
P = 0.015768 =
Problem 36 Patients arrive at a clinic according to Poisson distribution at a rate of 60
patients per hour. The waiting room does not accommodate more than 14 patients
Investigation time per patient in exponential with mean rate of 40 per hour.
a) Determine the effective arrival rate at the clinic.
b) What is the probability that an arriving patient will not wait?
c) What is the expected time (waiting) until the patient is discharged from the
clinic?
Solution: This is ( ) ( ) / / : / M M I K FIFO model hence 60 = patients / hr,
40/ . 14 1 15 hr K = = + =
a) Effective arrival rate
( )
1
0
1 P =
Where
0 1
1
1
K
P of
= =
| |
|
\ .
6
60
1
40
0.0007624
60
1
40
= =
| |
|
\ .
Queuing Theory
21
( )
1
40 1 0.0007624 39.9695/ hr = =
b) An arrived will rut want =there is no patient is the clinic.
P[ a patient will not wait ]
0
0.0007624 P = =
c) Effective waiting time
1
S
S
L
W
=
( )
1
1
1
1
K
S K
K
When L
+
+
| |
+
|
\ .
=
| |
|
\ .
16
16
60
16
60 40
40 60
60
1
40
| |
|
\ .
=
| |
|
\ .
2 16.00 14 Patient = + =
( )
14
0.3503 21.018
39.9695
s
W hr or = =
Problem 37 A group of users in a computer browsing centre has 2 terminals. The
average computing job requires 20 min of terminal time and each user requires some
computation about once every half an hour .Assume that the arrival rate is poisson and
service rate is exponential and the group contains 6 users. Calculate
a) The average number of users waiting to use one of the terminals and in the
computing job.
b) The total time lost by all users per day when the centre is opened 12 hrs/day.
Solution:
This is ( ) ( ) / / : / M M S K FIFO Hence
1 30 1 1 20 1
;
60 2 60 3
= = = =
2/ , 3/ 2, 6 hr hr s k = = = =
a) The average number of users waiting to use terminals and in the
Computing job is nothing but me average number of uses in the system.
( )
1
0
S
S q n
n
L L S S n P
=
= +
1
1
0
0
1 1
! !
n s n s
S k
n n s
P
n S s
= =
(
| | | | | |
= + (
| | |
\ . \ . \ . (
1
2 2 3 4
2 1 2 1 1 1 1
1 1
3 2! 3 3 3 3 3
(
| | | | | | | |
= + + + + + +
( `
| | | |
\ . \ . \ . \ .
(
)
0.5004 =
Queuing Theory
22
( )
( )( )
0 2
1 1
! 1
s
K S k s
q
L P y K S Where y
s
S
| |
( = =
|
\ .
( )
2 4 4
2
1
2 1 2 1
3
0.5004 . 1 4
3 3 3 3
2
2!
3
(
| | | | | || |
=
(
| | | |
\ . \ . \ .\ .
| | (
|
\ .
0.0796 =
( )
1
0
s
S q n
n
L L S S n P becomes
=
= +
0 1
2
q
L S P P = +
0 0
2
q
L S P P
| |
= +
|
\ .
( )
2
0.0796 2 2 0.5004 0.5004
3
= +
0.7452 = .
b) Average waiting time of a user in the queue
( )
q
W
( )
| |
1
1
1
0
0 1
1
1
2
2 3 2 2 0.5004 0.5004
3
1.9968
1 0.0796
0.0399
1.9968
q q
S
n
n
q q
W L where
S S n P
S P P
W L hr
=
=
(
=
(
(
= =
(
=
= = =
Problem 38 The railway marshalling yard is sufficient only for trains (there are 11
lines one of which is earmarked for the shutting engine to reverse itself from the crest of
the hump to the rate of the train). Train arrive at the rate of 25 trains per day, inter-arrival
time and service time follow exponential distribution with an average of 30 minutes
Determine.
a) The probability that the yard is empty.
b) The average queue length.
Solution:
This is model ( ) ( ) / / : / M M K FIFO
Hence 25 = trains /day,
1
30 0.0333
= = train /min
0.0174 =
Queuing Theory
23
( ) 10 11 1 K =
a) Probability that the yard is empty.
0 1
1
1
K
P if
= =
| |
|
\ .
( )
11 11
0.0174
1
1 0.5225
0.0333
0.4779
1 0.5225 0.0174
1
0.0333
= = =
| |
|
\ .
c) Average queue length.
( )
1
1
1
1
K
S K
K
L of
+
+
| |
+
|
\ .
= =
| |
|
\ .
11
11
0.0174
11
0.0174 0.0333
0.0333 0.0174
0.0174
1
0.0333
| |
|
\ .
=
| |
|
\ .
0.008721
1.09434 .
0.9992
=
1.0856 =