queuing theory (chapter 5) analytical modelsanalytical models

25
EMgt 356 Simulation Queuing Theory (Chapter 5) Analytical Models Analytical Models

Upload: others

Post on 18-Apr-2022

9 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Queuing Theory (Chapter 5) Analytical ModelsAnalytical Models

EMgt 356Simulation

Queuing Theory (Chapter 5)Analytical ModelsAnalytical Models

Page 2: Queuing Theory (Chapter 5) Analytical ModelsAnalytical Models

The Queueing SystemArrivalsArrivals

S ( )Server(s)

Departures

Page 3: Queuing Theory (Chapter 5) Analytical ModelsAnalytical Models

Queueing SystemServed Customers

Queueing System

CustomersQueue

Service f ilit

SSS

CCC

C C C C C C CfacilityS

SCC

Served Customers

Page 4: Queuing Theory (Chapter 5) Analytical ModelsAnalytical Models

Queueing Applications

• Fast Food • Supermarkets

• Airports

C i ti

• Post Office

T ffi• Communications

• Equipment Selection

• Traffic

• Amusement ParksEquipment Selection

• Emergency Response

Amusement Parks

• Parking Lotsg y p g

Page 5: Queuing Theory (Chapter 5) Analytical ModelsAnalytical Models

Queueing Notation and Relationships

• Characteristics– arrival pattern

• Performance Measures

– service pattern– queue discipline

– utilization– cycle time

WIP– capacity

– WIP

• Kendall’s Notation

Page 6: Queuing Theory (Chapter 5) Analytical ModelsAnalytical Models

Kendall’s Notation

Inter-arrival Service Time # of SystemA / B / c / K

TimeDistribution

Distribution Servers Capacity

•M = Exponential•G = General (typically implies only mean and variance may be known)

Dropped if infiniteG General (typically implies only mean and variance may be known)

•D = Deterministic (variance is zero)

Page 7: Queuing Theory (Chapter 5) Analytical ModelsAnalytical Models

Random variables

• Roughly speaking these are quantities that do not assume the same value all the time.

• Often characterized by their distributionOften characterized by their distribution and density or mass functions

• Important characteristics: Mean and• Important characteristics: Mean and VarianceDi t ib ti i di t f il d• Distribution indicates a family and can be defined by the distribution function

Page 8: Queuing Theory (Chapter 5) Analytical ModelsAnalytical Models

Continuous and DiscreteContinuous and Discrete Random Variables

• Continuous random variables can assume ALL POSSIBLE values in the range over which it is defined. Examples: service time in a queue, inter-arrival time, time between successive failuressuccessive failures.

• Discrete Random Variables can assume a countable number of DISTINCT valuescountable number of DISTINCT values. Examples: number of thunderstorms in a month, number of patients in a doctor’s clinic. o , u be o pa e s a doc o s c c

Page 9: Queuing Theory (Chapter 5) Analytical ModelsAnalytical Models

Continuous and DiscreteContinuous and Discrete (Contd.)

• Continuous Random Variables: Examples: Exponential, uniform, p p , ,Erlang, gamma, normal.

• Discrete Random variables:E l P i bi i l B lliExamples: Poisson, binomial, Bernoulli, multinomial, generic.

Page 10: Queuing Theory (Chapter 5) Analytical ModelsAnalytical Models

Distributions for continuousDistributions for continuous Random variables

• Exponential Distribution– Although it sometimes provides a good fit for inter-

arrival times, this is much less true for service titimes.

– Waterfall histogram (pdf)• Uniform distribution (rectangle histogram)Uniform distribution (rectangle histogram)• Erlang Distribution (mixture of two or more exponentials) • Normal Distribution (Bell curve histogram)

Page 11: Queuing Theory (Chapter 5) Analytical ModelsAnalytical Models

Exponential Distribution:Exponential Distribution:Waterfall Histogram

Page 12: Queuing Theory (Chapter 5) Analytical ModelsAnalytical Models

Exponential distribution

• Defined by a single parameter, e.g., λ• If the mean is 1/λIf the mean is 1/λ• The variance is 1/λ2.

Page 13: Queuing Theory (Chapter 5) Analytical ModelsAnalytical Models

Uniform distribution

• Unif (a,b)

• Mean = a+b2

• Variance = (b−a)212

Page 14: Queuing Theory (Chapter 5) Analytical ModelsAnalytical Models

Normal distribution

• Characterized by the famous Bell curve• SymmetricSymmetric• Defined by its two parameters μ and σ

Th i l t 2• The mean is equal to μ2

• The variance is equal to σ2

Page 15: Queuing Theory (Chapter 5) Analytical ModelsAnalytical Models

Some queuing randomSome queuing random variables

• Service time: time for one service• Inter-arrival time: time betweenInter arrival time: time between

successive arrivals

Page 16: Queuing Theory (Chapter 5) Analytical ModelsAnalytical Models

Performance Measures

• Average number in the queue: Lq

• Average wait in the queue: Wqg q q

• Average number in the system: L or Lsyst

• Average wait in the system: W or Wsystg y syst

• Proportion of time server is busy: ρ

Page 17: Queuing Theory (Chapter 5) Analytical ModelsAnalytical Models

Some notation andSome notation and relationships

• λ = Arrival Rate• μ = Service Rateμ Service Rate• λ = 1/E[Inter-arrival time]

1/E[ i ti ]• μ = 1/E[service time]

• Also note: ρ = λAlso note: ρ = μ

Page 18: Queuing Theory (Chapter 5) Analytical ModelsAnalytical Models

Little’s Law

Little’s Law • relates the average wait to the averagerelates the average wait to the average

length)• Works for both system and queue• Works for both system and queue• L=W and Lq=Wq

Page 19: Queuing Theory (Chapter 5) Analytical ModelsAnalytical Models

Important Relation

• We will need the following important relationship:p

• W = W + E[Service Time] (1)• W = Wq + E[Service Time] …..(1)i.e.,

1W =Wq +1μμ

Page 20: Queuing Theory (Chapter 5) Analytical ModelsAnalytical Models

M/M/1 queue

Lq = E[# in queue] or average number in the queueq

qL

L ρ2Lq =ρ1−ρ

Page 21: Queuing Theory (Chapter 5) Analytical ModelsAnalytical Models

All other performanceAll other performance measures

All other performance measures can be obtained by using Little’scan be obtained by using Little s rule and relationship (1).

Page 22: Queuing Theory (Chapter 5) Analytical ModelsAnalytical Models

Some more notation

• C2 = coefficient of variation = variance/(mean)2 variance/(mean)

c = coefficient of variation of service ti

C2stime

= coefficient of variation of inter-arrival C2atime

Page 23: Queuing Theory (Chapter 5) Analytical ModelsAnalytical Models

Exponential distribution forExponential distribution for inter-arrival and service times

• Inter-arrival time’s mean is 1/λ• Inter-arrival time’s variance is 1/λ2Inter arrival time s variance is 1/λ• Inter-arrival time’s coeff. of variation is 1

S i ti ’ i 1/• Service time’s mean is 1/μ• Service time’s variance is 1/μ2

• Service time’s coeff. of variation is 1

Page 24: Queuing Theory (Chapter 5) Analytical ModelsAnalytical Models

M/G/1 queue

Lλ2σ2s+ρ

2

Lq = s+ρ2(1−ρ)

Page 25: Queuing Theory (Chapter 5) Analytical ModelsAnalytical Models

G/G/1 queue

ρ2(1+C2)(C2+ρ2C2)Lq

ρ (1+Cs )(Ca+ρ Cs )2(1 )(1+ 2C2)q 2(1−ρ)(1+ρ2C2

s )