Hvac Chapter 6 Solution Manual
Hvac Chapter 6 Solution Manual
Hvac Chapter 6 Solution Manual
Structure
6.1 Introduction
Objectives
6.2 Basic Concepts of Queueing Theory
Poisson Process
Birth and Death Process
6.3 Fundamental Structure of a Queueing System
6.4 Operating Characteristics of a Queueing System
Operating Characteristics
Classification of Queueing Systems
6.5 M/M/1 Queueing Model
Arrival-Departure Equations for M/M/1 Queueing Model
Operating Characteristics for the M/M/1 Queueing Model
6.6 Summary
6.7 Solutions /Answers
6.1 INTRODUCTION
Queueing is a common phenomenon in everyday life. We wait in queues in
post offices, banks, restaurants, railways and airline reservation counters.
Vehicles wait at traffic lights and aeroplanes circle around airports while
waiting to land. You can think of many more examples. In all such cases, there
are customers who require some sort of services after waiting in a queue for
some time. The customer may be a person, machine, vehicle or anything else
which requires service. In fact, waiting for service is an integral part of our
daily life and that too at considerable cost most of the times.
We would like to find ways of reducing the time spent in waiting by the
customer and at the same time optimising the cost to the service provider. This
is where the queueing theory, also known as the waiting line theory helps us.
It was developed in 1909 when A. K. Erlang made an effort to analyse
telephone traffic congestion. The purpose of queueing analysis is to provide
information to determine an acceptable level of service and service capacity
since providing too much service capacity is costly (owing to idle employees
or equipment). However, providing too little service capacity is also costly
(owing to waiting members in the queue). For example, when a hospital
consistently has a long queue in its emergency room, a large number of
waiting patients may aggravate the injury or illness.
In this unit, we first discuss the basic concepts of queueing theory in
Sec. 6.2, which would help you understand the techniques of queueing models.
In Secs. 6.3 and 6.4, we explain the fundamental structure and operating
characteristics of a queueing system. We describe the M/M/1 queueing model
and its applications in Sec. 6.5.
In the next unit, we shall discuss the sequencing problems and explain the
n-jobs, 2-machine and 2-jobs, m-machines, sequencing problems.
Objectives
After studying this unit, you should be able to:
explain the Poisson process and the birth and death process in queueing
theory; 23
Optimisation Techniques-II explain the fundamental structure of a queueing system;
describe the operating characteristics of a queueing system;
explain a single server queueing model with Poisson input and exponential
service time; and
solve problems based on the M/M/1 queueing model.
We can thus say from equation (2) that Pn(t) is a probability mass function of
the random variable N(t) and the family of random variables {Nt, t > 0} is a
stochastic process. From our earlier discussion, you may understand that this
family is a continuous parameter (in this case, time) stochastic process with a
discrete state space. This is called a Poisson process. Under certain conditions,
N(t) follows a Poisson distribution with mean λt (λ being constant). This is
true for most practical situations.
Assumptions in Poisson Process
i) The process has independent increments. Future changes in N(t) are
independent of past changes in it, i.e., the number of customers which
arrive in disjoint time intervals are statistically independent.
ii) The probability of more than one occurrence of event E between time t and
t+∆t is o(∆(t)), i.e., the probability of two or more arrivals of customers
during the small interval of time ∆t is negligible. Thus,
P0(∆t) + P1(∆t) + o(∆t) = 1 … (3)
iii) The probability that event E occurs between time t and ∆t is equal to
λ∆t + o(∆(t)). Thus,
P1(∆t) = λ∆t + o(∆t),
i.e., P1(∆t) is approximately proportional to the length of the interval where
λ is the expected average number of arrivals of customers per unit time and
λ > 0. Here λ is constant and ∆t is an incremental element.
Under the assumptions stated above, N(t) follows a Poisson distribution
with mean λt, i.e., Pn(t) is given by
et t
n
Pn t , n = 0, 1, 2, 3, … . …(4)
n!
25
Optimisation Techniques-II To formulate a queueing model, we have to specify the assumed form of the
probability distributions of both inter-arrival times and service times. You
have learnt that inter-arrival times follow the Poisson distribution. Similarly,
most of the times, the service times in a queueing system follow the
exponential distribution. Hence, the exponential distribution is the most
important distribution in queueing theory, which we now discuss.
Suppose a random variable T represents either inter-arrival or service times. T
is said to have an exponential distribution with parameter α if its probability
density function is given by
e t for t 0
f (t) …(5)
0 for t 0
3. Queue Discipline
Queue discipline refers to the order in which the service station selects the
next customer from the waiting line to be served. It may be any one of the
following:
i) First In, First Out (FIFO) or in other words First Come First Served
(FCFS);
28
ii) Last In, First Out (LIFO); and Queueing Theory
… (11)
Dividing equation (16) by t and taking the limit as t tends to zero, we have
pn t Pn 1 t Pn 1 t Pn t
Pn t t Pn t
[lim pn t derivative of Pn t ] ...(18)
n t
When steady state, i.e., the equilibrium state, is reached, pn (t) becomes
independent of time, say pn , and the rate of its change with respect to time
becomes zero, i.e.,
pn (t) 0
Therefore, the steady-state solution is given by
Pn 1 Pn 1 Pn 0, n 1
P1 P0
...(20)
But, P1 P0 0 [ P1 P0 ]
Pn1 Pn2
P1 P0 =0
l
Pn = Pn - 1
m
( Pn 2 )
( Pn 3 )
...
λ.λ...λ(n times)
= P0
μ.μ...μ(n times)
n
n P0 ( / )n P0 n P0
Since Pn 1 , it follows that
n 0
P
n 0
0
n
1
P0 (1 2 ... n ) 1
1
P0 ( ) 1 P0 1
1
Pn 1 n , n 0 … (22)
(on simplification) ...(23)
1
or Ls … (24)
2. The average queue length is
r2 l2
or Lq = = … (25)
1 - r m( m- l )
3. The average time an arrival spends in the system is
Ls 1
Ws … (26)
4. The average waiting time of an arrival in the queue is
Lq
Wq … (27)
Wq can also be obtained using the following result:
1
Wq = Ws - … (28)
m
5. The probability that the number of units waiting in the queue and the
number of units being serviced is greater than k is
Pn k k 1 … (29)
10
= 8 1.67
2 10
8
Example 2: Customers arrive at a window in a bank, according to a Poisson
distribution with mean 10 per hour. Service time per customer is exponential
with mean 5 minutes. The space in front of the window including that for the
serviced customers can accommodate a maximum of three customers. Other
customers can wait outside this space.
a) What is the probability that an arriving customer can go directly to the
space in front of the window?
b) What is the probability that an arriving customer will have to wait outside
the indicated space?
c) How long is an arriving customer expected to wait before being served?
6 14 7
or P0 1 = = 0.7
20 20 10
The probability that a machinist arriving at the tool crib will have to wait
= Probability that there is at least one machinist at the tool crib
= 1– Probability that there is no machinist at the tool crib
= 1 – P0 1 0.7 0.3
b) The average number of machinists at the tool crib is given by
6 6
Ls = 0.428 0.43
20 6 14
c) The company is ready to install a second tool crib when convinced that a
machinist would have to spend 6 min. in waiting and being served. Let the
increased arrival rate be ’.
1
Waiting time in the system = 6 min. = hr. We have
10
1 1
' 10
1 1
or or 10 = 20
20 ' 10
= 20 10= 10/hr.
The increase is, therefore, (10 – 6)/hr = 4/hr.
Example 4: A repairman is to be hired to repair machines which break down
at an average rate of 3 per hour. The breakdown follows a Poisson distribution.
Nonproductive time of a machine is considered to cost `10 per hour. Two
repairmen have been interviewed of whom one is slow but charges less and the
other is fast but more expensive. The slow repairman charges `5 per hour and
services breakdown machines at the rate of 4 per hour. The fast repairman
demands `7 per hour, but services breakdown machines at an average rate of 6
per hour. Which repairman should be hired?
Solution: The data given is summarised below:
Slow/Less expensive Repairman Fast/ More expensive Repairman
= 3/hr, = 4/hr, Labour cost = `5/hr = 3/hr, = 6/hr, Labour cost = `7/hr
6.6 SUMMARY
1. The purpose of queueing theory is to provide information for determining
an acceptable level of service since providing too much service capacity is
costly (owing to idle employees or equipment) and providing too little
service capacity is also costly (owing to waiting members of the queue). A
queueing system is described by three elements: (1) Input or arrival
process of customers, (2) Service mechanism, and (3) Queue discipline.
2. Input process is concerned with the pattern in which the customers arrive
and join the system. An input process is characterised by its size, the
arrival time distribution, and the attitude of the customers.
3. Service time distributions are generally exponential distributions. Service
facility can be 'Single channel facility' or 'One queue-several station
facilities' or 'Several queues-one service station', 'Multi-channel facility' or
'Multi-Stage Channel facility'.
4. Queue discipline refers to the order in which the service station selects the
next customer from the waiting line to be served. It may be FCFS, LIFO or
SIRO. In this unit, the FCFS queue discipline has been considered.
5. The time dependent solutions are known as transient solutions. Steady
state solution is independent of time and represents the probability of the
system being in the equilibrium state.
6. A queueing system is usually described by five symbols such as a/b/c : d/e
or a/b/c/d/e. The first symbol „a‟ describes the arrival process. The second
symbol „b‟ describes the service time distribution. The third symbol „c‟
stands for the number of servers. The symbols „d‟ and „e‟ stand for system
39
Optimisation Techniques-II capacity and queue discipline, respectively. If arrivals are Poisson, symbol
M is used in place of „a‟ If departures are exponential, symbol M is used
in place of „b‟.
7. The M/M/1 queueing model deals with a queueing system having single
service channel, Poisson input, and exponential services. There is no limit
on the system capacity while the customers are served on a “First Come
First Served” basis. The probability of n customers (units) in the system
for this model is
Pn 1 n , n 0 ,
where = , is the average arrival rate and µ, the average service rate.
Some important characteristics of this model are:
Average number of customers in the system ( Ls )
2
Average queue length (Lq ) Ls
Ls 1
Average time an arrival spends in the system (Ws )
Average waiting time of an arrival in the queue
Lq 1
(Wq ) = Ws
6.7 SOLUTIONS/ANSWERS
E1) Arrival rate () = 30/hr
1 60 60
Service rate () = /seconds = /hr
90 90
Therefore, the average waiting time of a customer in a queue is
30 3
Wq = = hours
( ) 40(40 30) 40
3
= ´ 60 minutes = 4.5 minutes
4
E2) We are given that
1
Arrival rate () = per minute
10
1
Service rate () = person/minute
3
a) The probability that a person arriving at a booth will have to wait
= Probability that there is at least one customer
= P(n > 0) = 1 – P0 = /
1 3
= = 0.3
10 1
40
b) The installation of the second booth will be justified only if the Queueing Theory
arrival rate is more than the waiting time. Let be the increased
arrival rate.
Then the expected waiting time in queue is
' '
Wq 3
( ') 1 1
( ')
3 3
1
Thus = per minute
6
Hence, the increase in the arrival rate is
1 1 1
= – = per minute
6 10 15
E3) We are given that
60
Arrival rate () = 1/5 per minute = 12 per hour
5
1 60
Service rate () per minute = = 20 per hour
3 3
The expected waiting time of contractor‟s trucks per day
= Expected waiting time for a truck Number of contractor‟s
trucks per day
= (40 per cent of the total number of trucks per day)
( )
= [40 per cent of (Arrival rate per hr 24 hours)]
( )
40
= (12 24)
( ) 100
12 40
= (12 24) = 8.64 hours
20(20 12) 100
E4) We are given that
Arrival rate () = 36 trains/day
Service rate () =1 per 30 minutes
60 60
= per hour = 24 per day = 48 trains/day
30 30
Therefore, traffic intensity 0.75
a) Mean length of system
36 36
Ls = 3 trains
48 36 12
b) Probability that the queue size exceeds 10
= Probability that the system size exceeds 11
42