Model Antrian M/M/s.

Slides:



Advertisements
Similar presentations
Part 3 Probabilistic Decision Models
Advertisements

Lecture 10 Queueing Theory. There are a few basic elements common to almost all queueing theory application. Customers arrive, they wait for service in.
IE 429, Parisay, January 2003 Review of Probability and Statistics: Experiment outcome: constant, random variable Random variable: discrete, continuous.
Chapter Queueing Notation
Queueing Models and Ergodicity. 2 Purpose Simulation is often used in the analysis of queueing models. A simple but typical queueing model: Queueing models.
Queuing Analysis Based on noted from Appendix A of Stallings Operating System text 6/10/20151.
Waiting Lines and Queuing Theory Models
Multiple server queues In particular, we look at M/M/k Need to find steady state probabilities.
Queuing. Elements of Waiting Lines  Population –Source of customers Infinite or finite.
Queueing Theory lSpecification of a Queue mSource Finite Infinite mArrival Process mService Time Distribution mMaximum Queueing System Capacity mNumber.
To Accompany Russell and Taylor, Operations Management, 4th Edition,  2003 Prentice-Hall, Inc. All rights reserved. Chapter 16 Waiting Line Models and.
To accompany Quantitative Analysis for Management, 9e by Render/Stair/Hanna 14-1 © 2003 by Prentice Hall, Inc. Upper Saddle River, NJ Chapter 14.
Introduction to Queuing Theory. 2 Queuing theory definitions  (Kleinrock) “We study the phenomena of standing, waiting, and serving, and we call this.
Internet Queuing Delay Introduction How many packets in the queue? How long a packet takes to go through?
Waiting Line Analysis for Service Improvement
Lecture 14 – Queuing Systems

Queuing Theory (Waiting Line Models)
Queueing Theory Specification of a Queue Source Arrival Process
Copyright 2006 John Wiley & Sons, Inc. Beni Asllani University of Tennessee at Chattanooga Waiting Line Analysis for Service Improvement Operations Management.
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
CS433 Modeling and Simulation Lecture 13 Queueing Theory Dr. Anis Koubâa 03 May 2009 Al-Imam Mohammad Ibn Saud University.
1 Queuing Analysis Overview What is queuing analysis? - to study how people behave in waiting in line so that we could provide a solution with minimizing.
Queuing Theory Basic properties, Markovian models, Networks of queues, General service time distributions, Finite source models, Multiserver queues Chapter.
Copyright 2006 John Wiley & Sons, Inc. Beni Asllani University of Tennessee at Chattanooga Waiting Line Analysis for Service Improvement Operations Management.
IE 429, Parisay, January 2010 What you need to know from Probability and Statistics: Experiment outcome: constant, random variable Random variable: discrete,
Queueing Theory What is a queue? Examples of queues: Grocery store checkout Fast food (McDonalds – vs- Wendy’s) Hospital Emergency rooms Machines waiting.
1 Queuing Models Dr. Mahmoud Alrefaei 2 Introduction Each one of us has spent a great deal of time waiting in lines. One example in the Cafeteria. Other.
1 Queuing Systems (2). Queueing Models (Henry C. Co)2 Queuing Analysis Cost of service capacity Cost of customers waiting Cost Service capacity Total.
1 Chapters 8 Overview of Queuing Analysis. Chapter 8 Overview of Queuing Analysis 2 Projected vs. Actual Response Time.
Copyright 2006 John Wiley & Sons, Inc. Beni Asllani University of Tennessee at Chattanooga Waiting Line Analysis for Service Improvement Operations Management.
Waiting Lines and Queuing Theory Models
Stevenson and Ozgur First Edition Introduction to Management Science with Spreadsheets McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
Chapter 6 Queueing Models
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
Random Variables r Random variables define a real valued function over a sample space. r The value of a random variable is determined by the outcome of.
Managerial Decision Making Chapter 13 Queuing Models.
Module D Waiting Line Models.
Queuing Theory. Model Customers arrive randomly in accordance with some arrival time distribution. One server services customers in order of arrival.
Model Antrian Tunggal Pertemuan 20
Lecture 14 – Queuing Networks
Queueing Theory What is a queue? Examples of queues:
Chapter 9: Queuing Models
Internet Queuing Delay Introduction
B.Ramamurthy Appendix A
Queueing Theory.
ECE 358 Examples #1 Xuemin (Sherman) Shen Office: EIT 4155
Internet Queuing Delay Introduction
Birth-Death Process Birth – arrival of a customer to the system
Queuing Systems Don Sutton.
Chapter 6 Queuing Models.
Introduction Notation Little’s Law aka Little’s Result
Solutions Queueing Theory 1
System Performance: Queuing
MATS Quantitative Methods Dr Huw Owens
Variability 8/24/04 Paul A. Jensen
Solutions Queueing Theory 1
Queuing Theory By: Brian Murphy.
Mitchell Jareo MAT4340 – Operations Research Dr. Bauldry
Model Antrian M/G/1.
Lecture 13 – Queuing Systems
Solutions Queueing Theory 1
Lecture 14 – Queuing Networks
Solutions Hwk Que3 1 The port of Miami has 3 docking berths for loading and unloading ships but is considering adding a 4th berth.
24 February 2019 Model Antrian M/D/1.
Queuing Theory III.
Queuing Theory III.
Queuing Theory III.
Waiting Line Models Waiting takes place in virtually every productive process or service. Since the time spent by people and things waiting in line is.
LECTURE 09 QUEUEING THEORY PART3
Presentation transcript:

Model Antrian M/M/s

M/M/s

M/M/s (s > 1) 15 April 2019 R. Rumani M / rrm@ittelkom.ac.id Telkom Institute of Technology 58 24

M/M/s (cont.) State Rate In = Rate Out 0 mP1 = lP0 1 2mP2 + lP0 = (l + m) P1 2 3mP3 + lP1 = (l + 2m) P2 .... ................... s-1 smPs + lPs-2 = {l + (s-1)m} Ps-1 s (s+1)mPs+1 + lPs-1 = (l + sm) Ps s+1 (s+2)mPs+2 + lPs = (l + (s+1)m) Ps+1 15 April 2019 R. Rumani M / rrm@ittelkom.ac.id Telkom Institute of Technology 30 25

M/M/s (cont.) Now, solve for P1 , P2, P3... in terms of P0 P1 = (l / m) P0 P2 = (l / 2m) P1 = (1/2!) × (l / m)2 P0 P3 = (l / 3m) P2 = (1/3!) × (l / m)3 P0 ......... Ps = (1/s!) × (l / m)s P0 Ps+1 = (1/s) × (l / m) Ps = 15 April 2019 R. Rumani M / rrm@ittelkom.ac.id Telkom Institute of Technology 30 26

M/M/s (cont.) 15 April 2019 R. Rumani M / rrm@ittelkom.ac.id Telkom Institute of Technology 30 27

M/M/s (cont.) Therefore, if we denote Pn = Cn× P0 , then (l / m)n 15 April 2019 Therefore, if we denote Pn = Cn× P0 , then (l / m)n Cn = ---------- , for n = 1, 2, ...., s. n! and , for n = s+1, s+2,... R. Rumani M / rrm@ittelkom.ac.id Telkom Institute of Technology 30 28

M/M/s (cont.) if 0 £ n £ s if s £ n So, if l < sm => 15 April 2019 R. Rumani M / rrm@ittelkom.ac.id Telkom Institute of Technology if 0 £ n £ s if s £ n 30 29

M/M/s (cont.) Now solve for Lq: Note, r = l / sm Lq = S¥n=s (n - s) Pn = S¥j=0 j Ps+j ; Note, n = s + j ¥ (l / m)s = S j ---------- rj P0 j=0 s! (l / m)s ¥ d = P0 ------------ r S ------ rj s! j=0 dr 15 April 2019 R. Rumani M / rrm@ittelkom.ac.id Telkom Institute of Technology 30 30

M/M/s (cont.) (l / m)s d ¥ Lq = P0 ------------ r ------ S rj s! dr j=0 (l / m)s d 1 = P0 ------------ r ------ --------- s! dr (1 - r) (l / m)s r = P0 ------------ --------- s! (1 - r)2 15 April 2019 R. Rumani M / rrm@ittelkom.ac.id Telkom Institute of Technology 30 31

M/M/s (cont.) (l / m)s r Lq = P0 ----------- --------- , r = l / sm s! (1 - r)2 (Lq : avg # in queue) Wq = Lq / l (Wq: avg waiting time in Q) W = Wq + 1 / m (W: avg waiting time in sys.) L = l (Wq + 1/m) (L: avg # in the system) = Lq + l / m 15 April 2019 R. Rumani M / rrm@ittelkom.ac.id Telkom Institute of Technology 30 32

Steady-State Parameters of M/M/s Queue r = l / sm P(L(¥) ³ s) = {(l/m)s P0} / {s!(1- l/sm)} = {(sr)s P0} / {s! (1 - r)} 15 April 2019 R. Rumani M / rrm@ittelkom.ac.id Telkom Institute of Technology 30 16

Steady-State Parameters of M/M/s Queue (cont.) L = sr + {(sr)s+1 P0} / {s (s!) (1 - r)2} = sr + {r P (L(¥) ³ s) } / {1 - r} W = L / l Wq = W - 1/m Lq = l Wq = {(sr)s+1 P0} / {s (s!) (1 - r)2} = {r P (L(¥) ³ s) } / {1 - r} L - Lq = l / m = sr 15 April 2019 R. Rumani M / rrm@ittelkom.ac.id Telkom Institute of Technology 30 16

The M/M/s Model Assumptions Interarrival times have an exponential distribution with a mean of 1/l. Service times have an exponential distribution with a mean of 1/m. Any number of servers (denoted by s). With multiple servers, the formula for the utilization factor becomes r = l / sm but still represents that average fraction of time that individual servers are busy. © The McGraw-Hill Companies, Inc., 2003

Comparison of Multi-Server Systems Measure M/M/11 M/M/12 M/M/13 Lq 6.821 2.247 0.951 Wq 0.682 0.225 0.0.95 E 0.909 0.833 0.767 Pr{ Tq = 0 } 0.318 0.551 0.715 Pr{ Tq > 1 } 0.251 0.061 0.014

Values of L for the M/M/s Model for Various Values of s © The McGraw-Hill Companies, Inc., 2003 Figure 14.8 Values of L for the M/M/s model for various values of s, the number of servers.

M/M/s Example I 15 April 2019 R. Rumani M / rrm@ittelkom.ac.id Telkom Institute of Technology 30 33

M/M/s Example I (cont.) = 0.429 (@ 43% of time, system is empty) 15 April 2019 = 0.429 (@ 43% of time, system is empty) as compared to s = 1: P0 = 0.20 (l / m)s r Lq = P0 ----------- --------- s! (1 - r)2 = 0.429 × {0.82 ´ 0.4} / { 2! ´ (1 - 0.4)2 } = 0.152 R. Rumani M / rrm@ittelkom.ac.id Telkom Institute of Technology Dalam M/M/1: P0=1-ρ=1-0.8=0.2 34 30

M/M/s Example I (cont.) Wq = Lq / l = 0.152 / (1/10) = 1.52 (min) W = Wq + 1 / m = 1.52 + 1 / (1/8) = 9.52 (min) What proportion of time is both repairman busy? (long run) P(N ³ 2) = 1 - P0 - P1 = 1 - 0.429 - 0.343 = 0.228 15 April 2019 R. Rumani M / rrm@ittelkom.ac.id Telkom Institute of Technology 30 35

M/M/s Example 2 Many early examples of queuing theory applied to practical problems concerning tools for service. Attendants manage the tools, while mechanics, assumed to be from an infinite calling population, arrive for service. Assume Poisson arrivals at rate 2 mechanics per minute and exponentially distributed service times for attendance with mean 40 seconds. How many attendants are required for statistical equilibrum (Steady state)? 15 April 2019 R. Rumani M / rrm@ittelkom.ac.id Telkom Institute of Technology 30 45

M/M/s Example 2 (cont.) l = 2 per minute, and m = 60/40 = 3/2 per minute. Since, the offered load is greater than 1, that is, since, l / m = 2 / (3/2) = 4/3 > 1, more than one server is needed if the system is to have a statistical equilibrium. The requirement for steady state is that s > l / m = 4/3. Thus, at least s = 2 attendants are needed. The quantity 4/3 is the expected number of busy server, and for s ³ 2, r = 4 / (3s) is the long-run proportion of time each server is busy. (What would happen if there were only s = 1 server?) s = 2 15 April 2019 R. Rumani M / rrm@ittelkom.ac.id Telkom Institute of Technology 30 45

M/M/s Example 2 (cont.) Let there be s = 2 attendants. First, P0 is calculated as = {1 + 4/3 + (16/9)(1/2)(3)} -1 = {15 / 3}-1 = 1/5 = 0.2 The probability that all servers are busy is given by P(L(¥) ³ 2) = {(4/3)2 (1/5)} / {2!(1- 2/3)} = (8/3) (1/5) = 0.533 15 April 2019 R. Rumani M / rrm@ittelkom.ac.id Telkom Institute of Technology 30 16

M/M/s Example 2 (cont.) Thus, the time-average length of the waiting line of mechanics is Lq = {(2/3)(8/15)} / (1 - 2/3) = 1.07 mechanics and the time-average number in system is given by L = Lq+ l/m = 16/15 + 4/3 = 12/5 = 2.4 mechanics Using Little’s relationships, the average time a mechanic spends at the tool crib is W = L / l = 2.4 / 2 = 1.2 minutes while the avg time spent waiting for an attendant is Wq = W - 1/m = 1.2 - 2/3 = 0.533 minute 15 April 2019 R. Rumani M / rrm@ittelkom.ac.id Telkom Institute of Technology 30 16

Example 3  QUIZ until 10:00 A grocery store has three registers open. Customers arrive to check out at an average of 1 per minute (Poisson). The service time averages 2 minutes (exponential). Please calculate these parameters : (Po, L, Lq, W, Wq) © The McGraw-Hill Companies, Inc., 2003 l = 1 customer per minute m = (1/2) customers per minute s = 3