UNIT 2 QUEUING THEORY



Similar documents
Queuing Theory II 2006 Samuel L. Baker

Chapter 13 Waiting Lines and Queuing Theory Models - Dr. Samir Safi

Simple Queuing Theory Tools You Can Use in Healthcare

4 The M/M/1 queue. 4.1 Time-dependent behaviour

QUEUING THEORY. 1. Introduction

Performance Analysis of a Telephone System with both Patient and Impatient Customers

Basic Queuing Relationships

Waiting Lines and Queuing Theory Models

M/M/1 and M/M/m Queueing Systems

6.263/16.37: Lectures 5 & 6 Introduction to Queueing Theory

A MODEL OF OPERATIONS CAPACITY PLANNING AND MANAGEMENT FOR ADMINISTRATIVE SERVICE CENTERS

Queuing Theory. Long Term Averages. Assumptions. Interesting Values. Queuing Model

Load Balancing and Switch Scheduling

Hydrodynamic Limits of Randomized Load Balancing Networks

A QUEUEING-INVENTORY SYSTEM WITH DEFECTIVE ITEMS AND POISSON DEMAND.

IEOR 6711: Stochastic Models, I Fall 2012, Professor Whitt, Final Exam SOLUTIONS

12.5: CHI-SQUARE GOODNESS OF FIT TESTS

CHAPTER 6: Continuous Uniform Distribution: 6.1. Definition: The density function of the continuous random variable X on the interval [A, B] is.

Effective Utilization of Mobile Call Center Using Queuing Models

Binomial random variables

1. Repetition probability theory and transforms

OPTIMIZED PERFORMANCE EVALUATIONS OF CLOUD COMPUTING SERVERS

An Introduction to Queueing Theory

CHAPTER 3 CALL CENTER QUEUING MODEL WITH LOGNORMAL SERVICE TIME DISTRIBUTION

LECTURE 16. Readings: Section 5.1. Lecture outline. Random processes Definition of the Bernoulli process Basic properties of the Bernoulli process

Process simulation. Enn Õunapuu

Simple Markovian Queueing Systems

Structure Preserving Model Reduction for Logistic Networks

ANALYSIS OF THE QUALITY OF SERVICES FOR CHECKOUT OPERATION IN ICA SUPERMARKET USING QUEUING THEORY. Azmat Nafees Liwen Liang. M. Sc.

Quantitative Analysis of Cloud-based Streaming Services

UNIT 6 WAITING LINES/ QUEUING THEORY. Characteristics of waiting line systems Measuring the Queue s performance Suggestions for Managing Queues

e.g. arrival of a customer to a service station or breakdown of a component in some system.

Optimal Hiring of Cloud Servers A. Stephen McGough, Isi Mitrani. EPEW 2014, Florence

STAT 315: HOW TO CHOOSE A DISTRIBUTION FOR A RANDOM VARIABLE

Waiting-Line Models. Quantitative Module. Module Outline LEARNING OBJECTIVES. When you complete this module you should be able to

CONTAINER TERMINAL SIMULATION. A CASE STUDY: PORT OF VALENCIA.

Simulation of Call Center With.

Periodic Capacity Management under a Lead Time Performance Constraint

Network Design Performance Evaluation, and Simulation #6

Q UEUING ANALYSIS. William Stallings

Queueing Systems. Ivo Adan and Jacques Resing

NOVEL PRIORITISED EGPRS MEDIUM ACCESS REGIME FOR REDUCED FILE TRANSFER DELAY DURING CONGESTED PERIODS

CALL CENTER PERFORMANCE EVALUATION USING QUEUEING NETWORK AND SIMULATION

PRIORITY DISPATCH SCHEDULING IN AN AUTOMOBILE REPAIR AND MAINTENANCE WORKSHOP

Factors to Describe Job Shop Scheduling Problem

SMS-Based Alert Notification for Credit Applications Queuing Systems

Telephone Traffic Queues in a Customer Call Center. A Thesis. Presented for the. Master of Science Degree. The University of Tennessee at Chattanooga

Active Queue Management

Voice Service Support over Cognitive Radio Networks

A Markovian Sensibility Analysis for Parallel Processing Scheduling on GNU/Linux

Resource Pooling in the Presence of Failures: Efficiency versus Risk

TEST 2 STUDY GUIDE. 1. Consider the data shown below.

How To Find The Optimal Base Stock Level In A Supply Chain

ISyE 2030 Test 2 Solutions

MTAT Business Process Management (BPM) Lecture 6 Quantitative Process Analysis (Queuing & Simulation)

Binomial random variables (Review)

Optimal Dynamic Resource Allocation in Multi-Class Queueing Networks

Rule-based Traffic Management for Inbound Call Centers

The Joint Distribution of Server State and Queue Length of M/M/1/1 Retrial Queue with Abandonment and Feedback

Stochastic Models for Inventory Management at Service Facilities

), 35% use extra unleaded gas ( A

Discrete-Event Simulation

ECE302 Spring 2006 HW4 Solutions February 6,

Basic Multiplexing models. Computer Networks - Vassilis Tsaoussidis

Some special discrete probability distributions

Pull versus Push Mechanism in Large Distributed Networks: Closed Form Results

Analysis of a Production/Inventory System with Multiple Retailers

MAINTAINED SYSTEMS. Harry G. Kwatny. Department of Mechanical Engineering & Mechanics Drexel University ENGINEERING RELIABILITY INTRODUCTION

MAS108 Probability I

Stat 515 Midterm Examination II April 6, 2010 (9:30 a.m. - 10:45 a.m.)

How To Balance In A Distributed System

Response Times in an Accident and Emergency Service Unit. Apurva Udeshi

Exponential Approximation of Multi-Skill Call Centers Architecture

Waiting Times Chapter 7

Before studying this supplement you should know or, if necessary, review

technical note technical note six WAITING LINE MANAGEMENT T ECHNICAL N OTE S IX Queues defined

Single Server Queueing Models

LECTURE - 1 INTRODUCTION TO QUEUING SYSTEM

6.6 Scheduling and Policing Mechanisms

An Efficient Green Control Algorithm in Cloud Computing for Cost Optimization

arxiv:physics/ v1 6 Jan 2006

A Uniform Asymptotic Estimate for Discounted Aggregate Claims with Subexponential Tails

Optimal shift scheduling with a global service level constraint

Optimal order placement in a limit order book. Adrien de Larrard and Xin Guo. Laboratoire de Probabilités, Univ Paris VI & UC Berkeley

Performance Evaluation at the Software Architecture Level

Random access protocols for channel access. Markov chains and their stability. Laurent Massoulié.

CPU Scheduling 101. The CPU scheduler makes a sequence of moves that determines the interleaving of threads.

BRAESS-LIKE PARADOXES FOR NON-COOPERATIVE DYNAMIC LOAD BALANCING IN DISTRIBUTED COMPUTER SYSTEMS

Important Probability Distributions OPRE 6301

Modelling and Simulation of Voice over Internet Protocol (VOIP)

Fluid Approximation of a Priority Call Center With Time-Varying Arrivals

Tenth Problem Assignment

Queuing Analysis. Chapter Outline. Learning Objectives SUPPLEMENTARY CHAPTER B

Transcription:

UNIT 2 QUEUING THEORY LESSON 24 Learning Objective: Apply formulae to find solution that will predict the behaviour of the single server model II. Apply formulae to find solution that will predict the behaviour of the single server model III. Apply formulae to find solution that will predict the behaviour of the single server model IV Hello students, In this lesson you are going to study about three more types of single server models that differ from single server model I in terms of their queue discipline. Single server model II {(M/M/1) : ( / SIRO)} model This model is identical to the Model I with a difference only in queue discipline. In this model the selection of the customers is made in random order. Since the derivation of Pn is independent of any specific queue discipline, therefore in this model also we have Pn = (1- ρ) ρ n N = 1, 2, 3, Consequently, other performance measures will also remain unchanged in any queuing system as long as Pn remains unchanged.

Single server model III {(M/ M/1) : (N / FCFS)}-- Exponential service; Limited queue Suppose that no more than N customers can be accommodated at any time in the system due to certain reasons. For example, a finite queue may arise due to physical constraint such as emergency room in a hospital; a clinic with certain number of chairs for waiting patients, etc. Assumptions of this model are same as that of Model I except that the length of the queue be limited. In this case the service rate does not have to exceed arrival rate in order to obtain steady state equations. Therefore, The probability of a customer in the system for n = 0, 1, 2,., N are obtained as follows: P n = ( λ / µ) n P o ; n < N The steady_state solution in this case exists even for ρ > 1. This is due to the limited capacity of the system which controls the arrivals by the queue length ( = N - 1) not by the relative rates of arrival, departure, λ and µ. If λ < µ and N -->, then Pn = ( 1 - λ / µ) ( λ / µ) n, which is same as in Model I. Performance Measures for Model III Expected number of customers in the system N N Ls = np n = n ( 1 λ/µ ) ( λ/µ ) n n=1 n=1 1 (λ/µ) N+1 N = n ( 1 ρ ) ρ n n=1 (1- ρ N+1 )

N = ( 1 ρ ) nρ n (1- ρ N+1 ) n=0 = ( 1 ρ ) (ρ + 2 ρ 2 +3 ρ 3 +. + N ρ n ) (1- ρ N+1 ) Expected queue length or expected number of customers waiting in the system Lq = Ls - λ/µ = Ls λ(1 Pn) / µ Expected waiting time of a customer in the system (waiting + service) Ws = Ls λ (1-Pn) Expected waiting time of a customer in the queue Wq = Ws 1/µ or Lq λ (1-P N ) Fraction of potential customers lost ( = fraction of time system is full) P N = P o ρ N

Example Consider a single server queuing system with Poisson input, exponential service times. Suppose the mean arrival rate is 3 calling units per hour, the expected service time is 0.25 hour and the maximum permissible calling units in the system is two. Derive the steady-state probability distribution of the number of calling units in the system, and then calculate the expected number in the system. Solution From the data of the problem, we have λ = 3 units per hour; µ = 4 units per hour, and N = 2 Then traffic intensity, p = λ / µ = 3/4 = 0.75 The steady-state probability distribution of the number of n customers (calling units) in the system is Pn = ( 1 ρ ) ρ n ; ρ 1 1 - ρ N+1 = ( 1-0.75) (0.75) n = (0.43) (0.75) n 1 (0.75) 2+1 and the expected number of calling units in the system is given by N 2 Ls = np n = n ( 0.43 ) ( 0.75 ) n n=1 n=1 2 = 0.43 n (0.75) n n=1 = 0.43 {(0.75) + 2 (0.75) 2 3 (0.75) 3 +. + N (0.75) n )} = 0.81

Try some problems yourself Problem 1. Consider a single server queuing system with Poisson input, exponential'" service times. Suppose the mean arrival rate is 3 calling units per hour, the expected service time is 0.25 hours and the maximum permissible number calling units in the system is two. Derive the steady-state probability distribution of the number of calling units in the system, and then calculate the expected number in the system. Problem 2. If for a period of 2 hours in the day (8 to 10 a.m.) trains arrive at the yard every 20 minutes but the service time continues to remain 36 minutes, then calculate for this period: (a) the probability that the yard is empty, (b) average number of trains in the system; on the assumption that the line capacity of the yard is limited to 4 trains only. Problem 3. Patients arrive at a clinic according to a Poisson distribution at a rate of 30 patients per hour. The waiting room does not accommodate more than 14 patients. Examination time per patient is exponential with mean rate 20 per hour. (i) Find the effective arrival rate at the clinic. (ii) What is the probability that an arriving patient will not wait? (iii) What is the expected waiting time until a patient is discharged from the clinic? Problem 4. In a car-wash service facility, cars arrive for service according to a Poisson distribution with mean 5 per hour. The time for washing and cleaning each car varies but is found to follow an exponential distribution with mean 10 minutes per car. The facility cannot handle more than one car at a time and has a total of 5 parking spaces. (i) Find the effective arrival rate. (ii) What is the probability that an arriving car will get service immediately upon arrival? (iii) Find the expected number of parking spaces occupied. Problem 5. A petrol station has a single pump and space for not more than 3 cars (2 waiting, 1 being served). A car arriving when the space is filled to capacity goes elsewhere for petrol. Cars arrive according to a Poisson distribution at a mean rate of one every 8 minutes. Their service time has an exponential distribution with a mean of 4 minutes. The proprietor has the opportunity of renting an adjacent piece of land, which would provide space for an additional car to wait (He cannot build another pump.) The rent would be Rs 10 per week. The expected net profit from each customer is Re. 0.50 and the station is open 10 hours every day. Would it be profitable to rent the additional space?

Problem 6. If for a period of 2 hours in the day (8 to 10 a.m.) trains arrive at the yard every 20 minutes but the service time continues to remain 36 minutes, then calculate for this period (a) the probability that the yard is empty, and (b) the average number of trains in the system, on the assumption that the line capacity of the yard is limited to 4 trains only. Problem 7. 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 rate of 6 per hour and the railway station can handle them on an average of 12 per hour. Assuming Poisson arrivals and exponential service distribution, find the steady-state probabilities for the various number of trains in the system. Also find the average waiting time of a new train coming into the yard. Problem 8. Patients arrive at a clinic according to a Poisson distribution at the rate of 30 patients per hour. The waiting room does not accommodate more than 14 patients. Examination time per patient is exponential with mean rate per hour. i Find the effective arrival rate at the clinic. ii What is the probability that an arriving patient will not wait? Will he find a vacant seat in the room? iii What is the expected waiting time until a patient is discharged from the clinic? Problem 9. Assume that goods trains are coming in a yard at the rate of 30 trains per day and suppose that the inter-arrival times follow an exponential distribution. The service time for each train is assumed to be exponential with an average of 36 minutes. If the yard can admit 9 trains at a time (there being 10 lines one of which is reserved for shunting purpose). Calculate the probability that the yard is empty and find the average queue length. Problem 10. A petrol station has a single pump and space for not more than 3 cars (2 waiting, 1 being served). A car arriving when the space is filled to capacity goes elsewhere for petrol. Cars arrive according to a Poisson distribution at a mean rate of one every 8 minutes. Their service time has an exponential distribution with a mean of 4 minutes. The owner has the opportunity of renting an adjacent piece of land, which would provide space for an additional car to wait. (He cannot build another pump.) The rent would be Rs 2000 per month. The expected net profit from each customer is Rs 2 and the station is open 10 hours everyday. Would it be profitable to rent the additional space?

SINGLE SERVER MODEL IV { (M/M/1) : (M/GD) } Single Server Finite Population (source) of arrivals This model is different from Model I in the sense that calling population is limited, say M. Thus arrival of additional customers is not allowed to join the system when the system becomes busy in serving the existing customers in the queue. Few applications of this model are: (i) A fleet of office cars available for 5 senior executives. Here these 5 executives are the customers, and the cars in the fleet are the servers. (ii) A maintenance staff provides repair to M machines in a workshop. Here the M machines are customers and the repair staff members are the servers. When there are n customers in the system, then system is left with the capacity to accommodate M-n more customers. Thus, further arrival rate of customers to the system will be λ (M-n). That is, for s=1, the arrival rate and service rate is stated as follows: λ (M-n) ; n=1,2.., M λ n = 0 ; n> N µ n = µ ; n=1,2,,m Performance Measures of Model IV 1. Probability that the system is idle M M! λ Po = ---------- --- N=0 (M-n)! µ n -1

2. Probability that there are n customers in the system n M! λ Pn = ----------- --- Po ; n=1,2,, M (M-n)! µ 3 Expected number of customers in the queue (or queue length ) M λ +µ L q = (n-1) P n = M - --------- (1-Po) n=1 λ 4 Expected number of customers in the system M L s = np n = n=0 L q + ( 1-Po) µ = M --- ( 1-Po) λ 5 Expected waiting time of a customer in the system L q W q = ------------------ λ (M-Ls)

6. Expected waiting time of a customer in the system 1 Ls Ws = Wq + ----- or --------------------- µ λ (M-Ls) Example A mechanic repairs four machines. The mean time between service requirements is 5 hours for each machine and forms an exponential distribution. The mean repair time is one hour and also follows the same distribution pattern. Determine the following: (a) (b) (c) Probability that the service facility will be idle, Probability of various number of machines ( 0 through 4 ) to be out of order and being repaired, Expected number of machines waiting to be repaired, and being repaired, Would it be economical to engage two mechanics, each repairing only two machines? Solution: λ = 1/5 =0.2 machine/hour µ = 1 machine /hour M = 4 machines ρ =λ/µ 0.2 (a) probability that the system shall be idle is M M! λ Po = ----------- --- n=0 (M-n)! µ n -1

M 4! n = ---------- (0.2) n=0 (4-n)! - 1 4! 4! 4! 4! = 1+ -------- ( 0.2) + -------(0.2) 2 + -------- (0.2) 3 + ------ (0.2) 4 3! 2! 1! 0! -1 = [ 1+4(0.2) + 4 x3 (0.04) + (4x3x2 ) (0.008) + (4x3x2x1) (0.00016 ] -1 = [ 1+0.8 + 0.48 + 0.192 + 0.000384] 1 = ( 2.481) -1 = 0.4030. (b) Probability that there shall be various number of machines ( 0 through 4) in the system M! λ Pn = ---------- ---- Po ( M-n)! µ ; n M (c) The expected number of machines to be out of order and being repaired µ 1 Ls = M ---- ( 1 Po ) = 4 - --- ( 1-0.403 ) λ 0.2 = 4 2.985 = 1.015 machines

Calculation of P n N M! λ n Probability ---------- -- (M-n)! µ (1) (2) (3) = (2) x Po 0 1 2 3 4 1.00 0.80 0.48 0.19 0.00 0.4030 0.3224 0.1934 0.0765 0.0000 ( The sum total of these probabilities is 0.9953 instead of 1. It is because of the approximation error. ) (d) Expected time a machine will wait in queue to be repaired 1 M λ+µ 4 0.2 + 1 W q = ---- ------ ---------- = ----------------- -------------- µ 1-Po λ 1-0.403 0.2 4 = ---------- 6 = 0.70 hours or 42 minutes 0.597 (e) If there are two mechanics each serving two machines, then M = 2, and therefore, 2 M! λ Po = ----------- --- n=0 ( M-n )! µ n -1 = [1+2(0.2) + 2 x 1(0.2) 2 ] = 0.68

So, now let us summarise today s discussion: Summary We have discussed in details about Single server model II. Single server model III. Single server model IV Performance Measures of Single server model III, IV