+ All Categories
Home > Documents > Queuing Models

Queuing Models

Date post: 26-Jan-2016
Category:
Upload: yamin
View: 20 times
Download: 2 times
Share this document with a friend
Description:
Queuing Models. Dr. Mahmoud Alrefaei. Introduction. Each one of us has spent a great deal of time waiting in lines. One example in the Cafeteria. Other examples of queues are Printer queue Customers in front of a cashier Calls waiting for answer by a technical support. - PowerPoint PPT Presentation
31
1 Queuing Models Dr. Mahmoud Alrefaei
Transcript
Page 1: Queuing Models

1

Queuing Models

Dr. Mahmoud Alrefaei

Page 2: Queuing Models

2

Introduction

• Each one of us has spent a great deal of time waiting in lines.

• One example in the Cafeteria.

• Other examples of queues are– Printer queue– Customers in front of a cashier – Calls waiting for answer by a technical support

Page 3: Queuing Models

3

What makes up a queue?• The System: A collection of objects under study.

– It is important to define the system boundaries.

• The Entities: The people, organisms, or objects that enter the system requiring some kind of service.

• The Servers: The people, organisms, or machines that perform the service required.

• The Queue: An accumulation of entities that have entered the system but have not been served.

Page 4: Queuing Models

4

Types of Queues

Single Stage

Page 5: Queuing Models

5

Multiple Stage - Manufacturing Plant

Page 6: Queuing Models

6

Multi-channel Single Stage - Bank

Page 7: Queuing Models

7

Parallel Single Stage - Supermarket

Page 8: Queuing Models

8

Customer Discrimination – Bus station

Page 9: Queuing Models

9

Converging Arrivals - Walk-in and Drive-thru

Page 10: Queuing Models

10

Queue Discipline

• First Come First Served - FCFS– Most customer queues.

• Last Come First Served - LCFS– Packages, Elevator.

• Served in Random Order - SIRO– Entering Buses

• Priority Service– Multi-processing on a computer.– Emergency room.

Page 11: Queuing Models

11

What factors affect system performance

• The Arrivals Process.– The time between any two successive arrivals – Does this depend on the number of people in the

system?– Finite populations.

• The Service Process.– The time taken to perform the service.– Does this depend on the number of people in the

system?• The number of servers operating in system.

Page 12: Queuing Models

12

Measuring System Performance

• The total time an “entity” spends in the system (Denoted by W)

• The time an “entity spends in the queue.

(Denoted by Wq)

• The number of “entities” in the system.(Denoted by L)

• The number of “entities” in the queue.

(Denoted by Lq)

Page 13: Queuing Models

13

Measuring System Performance

• The percentage of time the servers are busy (Utilization time)

• These quantities are variable over time.

Page 14: Queuing Models

14

Poisson Process• Let {N(t), t>0} be the number of customers

arrive until the time t

• {N(t), is said to be a Poisson Process having rate , for >0, if– N(0) = 0– N(t+s) – N(t) Does not depend on the

previous history– N(t+s) – N(t) is independent of t.

Page 15: Queuing Models

15

Poisson Process

The number of events in any interval of length t is Poisson distributed with mean t. That is for all s, t > 0 and n=0,1,2,...

.!

)()()( t

n

en

tnsNstNP

Page 16: Queuing Models

16

Inter-Arrival Times

• What are inter-arrival times?

• Ti is the time between the (i-1)-st and the i-th events.

• Poisson Process can be used for modeling arrival process

0

1

2

3

0 2 4 6 8 10 12

Time (t)

A(t)

T1

T2

T3

S1 S2 S3

Page 17: Queuing Models

17

Birth-Death Processes• A birth-death process is used to model

populations of entities in a system• The state of the system at time t is the number

of entities in the system at that time, often denoted by N(t).

• Births and deaths occur at a constant rate (like the Poisson process model)

Page 18: Queuing Models

18

Birth-Death Processes

Pi,j(t) is defined to be the probability that there are j entities in the system at time t, given that there were i entities in the system at time 0.

0 1 2 j-1 j j+1

0 1 1j j

1 2j 1j

... ...

Page 19: Queuing Models

19

Birth-Death Processes• The state of the system must be a non-

negative integer• Law 1

– A birth increases the state from j to j+1– The variable j is called the birth rate for

state j– A birth occurs between times t and t + t with

probability jt + o(t)

Page 20: Queuing Models

20

Birth-Death Processes• Law 2

– A death decreases the state from j to j-1

– The variable j is called the death rate for state j (note that 0=0)

– A death occurs between times t and t + t with probability jt + o(t )

• Law 3– Births and Deaths are independent

Page 21: Queuing Models

21

Birth-Death Processes• Can more than one event happen between

t and t + t?

• Why must 0=0?

• Knowledge of j and j completely specifies a Birth-Death process.

Page 22: Queuing Models

22

Birth-Death Processes• Birth-Death Processes can be used to

model most M/M/... queuing systems.– An arrival is considered a “birth”.– A service completion is considered a “death”.

• Let Pi,j(t) be the probability N(t+s)–N(s)=j given that N(s)=i (or N(t)=j given N(0)=i

• It turns out that for many queuing systems, Pi,j(t) will approach a limit j as t gets larger.

Page 23: Queuing Models

23

Birth-Death Processes• This limit will be independent of the

initial state i.j is called the steady state or

equilibrium probability of state j. j can be thought of as the probability that

at some instant in the future there are j entities in the system.

j can also be thought of as the fraction of time that there are j entities in the system.

Page 24: Queuing Models

24

Exponential Distribution• The exponential distribution is

characterized by

1)(][

1)(F(t)

0

t

0

dtttfTE

edsetTP ts

222

0

22

1][][)(

)(][

TETETVar

dttftTE

te f(t)

Page 25: Queuing Models

25

Exponential Distribution

• What is P(T>t) for an exponential distribution with parameter ? e- t

• P(T>t+s|T>s) is the probability of waiting a further time t after having already waited to time s.

• What is P(T>t+s|T>s) for an exponential distribution with parameter ? e- (t+s) / e- s = e- t

• Answer: P(T>t+s|T>s) = P(T>t) This is called the memoryless property

Page 26: Queuing Models

26

An Example of Memoryless

• Suppose that the amount of time one spends in a bank is exponentially distributed with mean ten minutes.– What is ?– What is the probability that a customer will spend

more a quarter of an hour in the bank?• You have been waiting for ten minutes already. Now

what is the probability that you will spend more than a quarter of an hour in the bank?– What has a lack of memory, you or the

distribution?

Page 27: Queuing Models

27

Birth-Death Processes

• Consider a M/M/1 queuing system.– Inter-arrival times are exponential with rate .

– Service times are exponential with rate .

• Suppose there are j entities in the system at time t.

What is the probability of an arrival in the interval (t,t + t]? Hint: use Taylor series expansion on F(t + t)-F(t) = 1 - e- t

= t + o(t)

Page 28: Queuing Models

28

Birth-Death Processes• So the arrivals and service completions of

a M/M/1 queue are a birth-death process with the following rate diagram

0 1 2 j-1 j j+1

... ...

Page 29: Queuing Models

29

Birth-Death Processes (Balance equations)

• It can be shown by induction that

• These are called balance equations• Therefore:

jjjjjjjj 1111

021

110

j

jj

Page 30: Queuing Models

30

Birth-Death Processes• If we define the constants

• then

• and we know that

j

jjc

21

110

0 jj c

11

000

jj

jj c

Page 31: Queuing Models

31

Birth-Death Processes

• So

• This means that the infinite sum of the cj’s must converge.

• If this sum is infinite then no steady-state distribution can exist.

1jj

0

c1


Recommended