1 1 Slide © 2001 South-Western College Publishing/Thomson Learning Anderson Sweeney Williams Anderson Sweeney Williams Slides Prepared by JOHN LOUCKS QUANTITATIVE.

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.
Structure of a Waiting Line System
Queueing Models and Ergodicity. 2 Purpose Simulation is often used in the analysis of queueing models. A simple but typical queueing model: Queueing models.
Review of Probability Distributions
Readings Readings Chapter 11, Sections 1, 2, 3, 5 Waiting Line Models.
D Waiting-Line Models PowerPoint presentation to accompany
Queuing Models Basic Concepts
Model Antrian By : Render, ect. Outline  Characteristics of a Waiting-Line System.  Arrival characteristics.  Waiting-Line characteristics.  Service.
Queueing Theory (2). Home Work 12-9 and Due Day: October 31 (Monday) 2005.
© The McGraw-Hill Companies, Inc., Technical Note 6 Waiting Line Management.
Queuing Systems Chapter 17.
Waiting Line Models And Service Improvement
Chapter 13 Queuing Theory
Queueing Theory: Part I
To accompany Quantitative Analysis for Management, 8e by Render/Stair/Hanna 14-1 © 2003 by Prentice Hall, Inc. Upper Saddle River, NJ Chapter 14.
Lecture 11 Queueing Models. 2 Queueing System  Queueing System:  A system in which items (or customers) arrive at a station, wait in a line (or queue),
Management of Waiting Lines
Queuing. Elements of Waiting Lines  Population –Source of customers Infinite or finite.
To accompany Quantitative Analysis for Management, 9e by Render/Stair/Hanna 14-1 © 2003 by Prentice Hall, Inc. Upper Saddle River, NJ Chapter 14.
QUEUING MODELS Queuing theory is the analysis of waiting lines It can be used to: –Determine the # checkout stands to have open at a store –Determine the.
Chapter 9: Queuing Models
WAITING LINES The study of waiting lines, called queuing theory, is one of the most widely used and oldest management science techniques. The three basic.
1 1 Slide © 2009 South-Western, a part of Cengage Learning Slides by John Loucks St. Edward’s University.
Group members  Hamid Ullah Mian  Mirajuddin  Safi Ullah.

___________________________________________________________________________ Operations Research  Jan Fábry Waiting Line Models.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
Spreadsheet Modeling & Decision Analysis
Introduction to Management Science
Waiting Line Models ___________________________________________________________________________ Quantitative Methods of Management  Jan Fábry.
1 1 Slide © 2005 Thomson/South-Western Chapter 12, Part A Waiting Line Models n Structure of a Waiting Line System n Queuing Systems n Queuing System Input.
D-1 © 2004 by Prentice Hall, Inc., Upper Saddle River, N.J Operations Management Waiting-Line Models Module D.
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
Management of Waiting Lines McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
Waiting Line Models (1) Pertemuan 11 Matakuliah: K0442-Metode Kuantitatif Tahun: 2009.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
Queuing Models. © 2002 Prentice-Hall, IncCh 9-2 Stay in Queue: Short Video &feature=related
Ch 6 Tech Notes OBJECTIVES
Structure of a Waiting Line System Queuing theory is the study of waiting lines Four characteristics of a queuing system: –The manner in which customers.
Waiting Line and Queuing Theory Kusdhianto Setiawan Gadjah Mada University.
Queuing Theory Basic properties, Markovian models, Networks of queues, General service time distributions, Finite source models, Multiserver queues Chapter.
1 Systems Analysis Methods Dr. Jerrell T. Stracener, SAE Fellow SMU EMIS 5300/7300 NTU SY-521-N NTU SY-521-N SMU EMIS 5300/7300 Queuing Modeling and Analysis.
Waiting Lines and Queuing Models. Queuing Theory  The study of the behavior of waiting lines Importance to business There is a tradeoff between faster.
Queuing Theory. Introduction Queuing is the study of waiting lines, or queues. The objective of queuing analysis is to design systems that enable organizations.
Chapter 16 Capacity Planning and Queuing Models
1 Queuing Systems (2). Queueing Models (Henry C. Co)2 Queuing Analysis Cost of service capacity Cost of customers waiting Cost Service capacity Total.
Chapter 20 Queuing Theory to accompany Operations Research: Applications and Algorithms 4th edition by Wayne L. Winston Copyright (c) 2004 Brooks/Cole,
M/M/1 Queues Customers arrive according to a Poisson process with rate. There is only one server. Service time is exponential with rate  j-1 jj+1...
Waiting Lines and Queuing Theory Models
1 1 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
Stevenson and Ozgur First Edition Introduction to Management Science with Spreadsheets McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
1 1 Slide © 2009 South-Western, a part of Cengage Learning Slides by John Loucks St. Edward’s University.
Structure of a Waiting Line System Queuing theory is the study of waiting lines Four characteristics of a queuing system: –The manner in which customers.
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
Waiting Line Theory Akhid Yulianto, SE, MSc (log).
1 1 Slide Chapter 12 Waiting Line Models n The Structure of a Waiting Line System n Queuing Systems n Queuing System Input Characteristics n Queuing System.
Queuing Models.
OPERATIONS MANAGEMENT INTEGRATING MANUFACTURING AND SERVICES FIFTH EDITION Mark M. Davis Janelle Heineke Copyright ©2005, The McGraw-Hill Companies, Inc.
Abu Bashar Queuing Theory. What is queuing ?? Queues or waiting lines arise when the demand for a service facility exceeds the capacity of that facility,
Managerial Decision Making Chapter 13 Queuing Models.
Module D Waiting Line Models.
McGraw-Hill/Irwin Copyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 18 Management of Waiting Lines.
Chapter 11 Waiting Line Models
WAITING LINES AND SIMULATION
Models of Traffic Flow 1.
Management of Waiting Lines
Chapter 9: Queuing Models
Chapter 5 Designing Services.
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.
Presentation transcript:

1 1 Slide © 2001 South-Western College Publishing/Thomson Learning Anderson Sweeney Williams Anderson Sweeney Williams Slides Prepared by JOHN LOUCKS QUANTITATIVE METHODS FOR BUSINESS 8e QUANTITATIVE METHODS FOR BUSINESS 8e

2 2 Slide Chapter 15 Waiting Line Models n The Structure of a Waiting Line System n Queuing Systems n Queuing System Input Characteristics n Queuing System Operating Characteristics n Analytical Formulas n The Single-Channel Waiting Line Model with Poisson Arrivals and Exponential Service Times n The Multiple-Channel Waiting Line Model with Poisson Arrivals and Exponential Service Times n Economic Analysis of Waiting Lines

3 3 Slide Structure of a Waiting Line System n Queuing theory is the study of waiting lines. n Four characteristics of a queuing system are: the manner in which customers arrivethe manner in which customers arrive the time required for servicethe time required for service the priority determining the order of servicethe priority determining the order of service the number and configuration of servers in the system.the number and configuration of servers in the system.

4 4 Slide Structure of a Waiting Line System n In general, the arrival of customers into the system is a random event. n Frequently the arrival pattern is modeled as a Poisson process. n Service time is also usually a random variable. n A distribution commonly used to describe service time is the exponential distribution. n The most common queue discipline is first come, first served (FCFS). n An elevator is an example of last come, first served (LCFS) queue discipline.

5 5 Slide Queuing Systems n A three part code of the form A / B / s is used to describe various queuing systems. n A identifies the arrival distribution, B the service (departure) distribution and s the number of servers for the system. n Frequently used symbols for the arrival and service processes are: M - Markov distributions (Poisson/exponential), D - Deterministic (constant) and G - General distribution (with a known mean and variance). n For example, M / M / k refers to a system in which arrivals occur according to a Poisson distribution, service times follow an exponential distribution and there are k servers working at identical service rates.

6 6 Slide Queuing System Input Characteristics  = the average arrival rate 1/ = the average time between arrivals 1/ = the average time between arrivals µ = the average service rate for each server µ = the average service rate for each server 1/ µ = the average service time 1/ µ = the average service time  = the standard deviation of the service time  = the standard deviation of the service time

7 7 Slide Queuing System Operating Characteristics P 0 = probability the service facility is idle P 0 = probability the service facility is idle P n = probability of n units in the system P w = probability an arriving unit must wait for service L q = average number of units in the queue awaiting service L q = average number of units in the queue awaiting service L = average number of units in the system L = average number of units in the system W q = average time a unit spends in the queue awaiting service W = average time a unit spends in the system W = average time a unit spends in the system

8 8 Slide Analytical Formulas n For nearly all queuing systems, there is a relationship between the average time a unit spends in the system or queue and the average number of units in the system or queue. These relationships, known as Little's flow equations are: L = W and L q = W q L = W and L q = W q n When the queue discipline is FCFS, analytical formulas have been derived for several different queuing models including the following: M / M /1, M / M / k, M / G /1, M / G / k with blocked customers cleared, and M / M /1 with a finite calling population. n Analytical formulas are not available for all possible queuing systems. In this event, insights may be gained through a simulation of the system.

9 9 Slide Example: SJJT, Inc. (A) n M / M /1 Queuing System Joe Ferris is a stock trader on the floor of the New York Stock Exchange for the firm of Smith, Jones, Johnson, and Thomas, Inc. Stock transactions arrive at a mean rate of 20 per hour. Each order received by Joe requires an average of two minutes to process. Orders arrive at a mean rate of 20 per hour or one order every 3 minutes. Therefore, in a 15 minute interval the average number of orders arriving will be = 15/3 = 5.

10 Slide Example: SJJT, Inc. (A) n Arrival Rate Distribution Question What is the probability that no orders are received within a 15-minute period? Answer P ( x = 0) = (5 0 e -5 )/0! = e -5 =.0067 P ( x = 0) = (5 0 e -5 )/0! = e -5 =.0067

11 Slide Example: SJJT, Inc. (A) n Arrival Rate Distribution Question What is the probability that exactly 3 orders are received within a 15-minute period? Answer P ( x = 3) = (5 3 e -5 )/3! = 125(.0067)/6 =.1396

12 Slide Example: SJJT, Inc. (A) n Arrival Rate Distribution Question What is the probability that more than 6 orders arrive within a 15-minute period? Answer P ( x > 6) = 1 - P ( x = 0) - P ( x = 1) - P ( x = 2) P ( x > 6) = 1 - P ( x = 0) - P ( x = 1) - P ( x = 2) - P ( x = 3) - P ( x = 4) - P ( x = 5) - P ( x = 3) - P ( x = 4) - P ( x = 5) - P ( x = 6) - P ( x = 6) = = =.238 =.238

13 Slide Example: SJJT, Inc. (A) n Service Rate Distribution Question What is the mean service rate per hour? Answer Since Joe Ferris can process an order in an average time of 2 minutes (= 2/60 hr.), then the mean service rate, µ, is µ = 1/(mean service time), or 60/2 = 30/hr.

14 Slide Example: SJJT, Inc. (A) n Service Time Distribution Question What percentage of the orders will take less than one minute to process? Answer Since the units are expressed in hours, P ( T < 1 minute) = P ( T < 1/60 hour). P ( T < 1 minute) = P ( T < 1/60 hour). Using the exponential distribution, P ( T < t ) = 1 - e -µt. Hence, P ( T < 1/60) = 1 - e -30(1/60) = = =.3935 =.3935

15 Slide Example: SJJT, Inc. (A) n Service Time Distribution Question What percentage of the orders will be processed in exactly 3 minutes? Answer Since the exponential distribution is a continuous distribution, the probability a service time exactly equals any specific value is 0.

16 Slide Example: SJJT, Inc. (A) n Service Time Distribution Question What percentage of the orders will require more than 3 minutes to process? Answer The percentage of orders requiring more than 3 minutes to process is: P ( T > 3/60) = e -30(3/60) = e -1.5 =.2231 P ( T > 3/60) = e -30(3/60) = e -1.5 =.2231

17 Slide Example: SJJT, Inc. (A) n Average Time in the System Question What is the average time an order must wait from the time Joe receives the order until it is finished being processed (i.e. its turnaround time)? Answer This is an M / M /1 queue with = 20 per hour and  = 30 per hour. The average time an order waits in the system is: W = 1/(µ - ) = 1/( ) = 1/( ) = 1/10 hour or 6 minutes = 1/10 hour or 6 minutes

18 Slide Example: SJJT, Inc. (A) n Average Length of Queue Question What is the average number of orders Joe has waiting to be processed? Answer The average number of orders waiting in the queue is: L q = 2 /[µ(µ - )] L q = 2 /[µ(µ - )] = (20) 2 /[(30)(30-20)] = (20) 2 /[(30)(30-20)] = 400/300 = 400/300 = 4/3 = 4/3

19 Slide Example: SJJT, Inc. (A) n Utilization Factor Question What percentage of the time is Joe processing orders? Answer The percentage of time Joe is processing orders is equivalent to the utilization factor, / . Thus, the percentage of time he is processing orders is: /  = 20/30 /  = 20/30 = 2/3 or 66.67% = 2/3 or 66.67%

20 Slide Example: SJJT, Inc. (A) n Formula Spreadsheet

21 Slide Example: SJJT, Inc. (A) n Spreadsheet Solution

22 Slide Example: SJJT, Inc. (B) n M / M /2 Queuing System Smith, Jones, Johnson, and Thomas, Inc. has begun a major advertising campaign which it believes will increase its business 50%. To handle the increased volume, the company has hired an additional floor trader, Fred Hanson, who works at the same speed as Joe Ferris. Note that the new arrival rate of orders,, is 50% higher than that of problem (A). Thus, = 1.5(20) = 30 per hour.

23 Slide Example: SJJT, Inc. (B) n Sufficient Service Rate Question Why will Joe Ferris alone not be able to handle the increase in orders? Answer Since Joe Ferris processes orders at a mean rate of µ = 30 per hour, then = µ = 30 and the utilization factor is 1. This implies the queue of orders will grow infinitely large. Hence, Joe alone cannot handle this increase in demand. This implies the queue of orders will grow infinitely large. Hence, Joe alone cannot handle this increase in demand.

24 Slide Example: SJJT, Inc. (B) n Probability of n Units in System Question What is the probability that neither Joe nor Fred will be working on an order at any point in time? Answer Given that = 30, µ = 30, k = 2 and ( /µ) = 1, the probability that neither Joe nor Fred will be working is: = 1/[(1 + (1/1!)(30/30)1] + [(1/2!)(1)2][2(30)/(2(30)-30)] = 1/[(1 + (1/1!)(30/30)1] + [(1/2!)(1)2][2(30)/(2(30)-30)] = 1/( ) = 1/3 = 1/( ) = 1/3

25 Slide Example: SJJT, Inc. (B) n Average Time in System Question What is the average turnaround time for an order with both Joe and Fred working? Answer The average turnaround time is the average waiting time in the system, W. µ ( / µ ) k (30)(30)(30/30) 2 µ ( / µ ) k (30)(30)(30/30) 2 L q = P 0 = (1/3) = 1/3 L q = P 0 = (1/3) = 1/3 ( k -1)!( kµ - ) 2 (1!)((2)(30)-30)) 2 ( k -1)!( kµ - ) 2 (1!)((2)(30)-30)) 2 L = L q + ( / µ ) = 1/3 + (30/30) = 4/3 L = L q + ( / µ ) = 1/3 + (30/30) = 4/3 W = L /  (4/3)/30 = 4/90 hr. = 2.67 min. W = L /  (4/3)/30 = 4/90 hr. = 2.67 min.

26 Slide Example: SJJT, Inc. (B) n Average Length of Queue Question What is the average number of orders waiting to be filled with both Joe and Fred working? Answer The average number of orders waiting to be filled is L q. This was calculated earlier as 1/3.

27 Slide Example: SJJT, Inc. (B) n Formula Spreadsheet

28 Slide Example: SJJT, Inc. (B) n Spreadsheet Solution

29 Slide Example: SJJT, Inc. (B) n Creating Special Excel Function to Compute P 0 Select the Tools pull-down menuSelect the Tools pull-down menu Select the Macro optionSelect the Macro option Choose the Visual Basic EditorChoose the Visual Basic Editor When the Visual Basic Editor appearsWhen the Visual Basic Editor appears  Select the Insert pull-down menu  Choose the Module option When the Module sheet appearsWhen the Module sheet appears  Enter Function Po (k,lamda,mu)  Enter Visual Basic program (on next slide) Select the File pull-down menuSelect the File pull-down menu Choose the Close and Return to MS Excel optionChoose the Close and Return to MS Excel option

30 Slide Example: SJJT, Inc. (B) n Visual Basic Module for P 0 Function Function Po(k, lamda, mu) Sum = 0 For n = 0 to k - 1 Sum = Sum + (lamda / mu) ^ n / Application.Fact(n) Sum = Sum + (lamda / mu) ^ n / Application.Fact(n)Next Po = 1/(Sum+(lamda/mu)^k/Application.Fact(k))* (k*mu/(k*mu-lamda))) (k*mu/(k*mu-lamda))) End Function

31 Slide Example: SJJT, Inc. (C) n Economic Analysis of Queuing Systems The advertising campaign of Smith, Jones, Johnson and Thomas, Inc. (see problems (A) and (B)) was so successful that business actually doubled. The mean rate of stock orders arriving at the exchange is now 40 per hour and the company must decide how many floor traders to employ. Each floor trader hired can process an order in an average time of 2 minutes. Based on a number of factors the brokerage firm has determined the average waiting cost per minute for an order to be $.50. Floor traders hired will earn $20 per hour in wages and benefits. Using this information compare the total hourly cost of hiring 2 traders with that of hiring 3 traders.

32 Slide Example: SJJT, Inc. (C) n Economic Analysis of Waiting Lines Total Hourly Cost = (Total salary cost per hour) = (Total salary cost per hour) + (Total hourly cost for orders in the system) + (Total hourly cost for orders in the system) = ($20 per trader per hour) x (Number of traders) = ($20 per trader per hour) x (Number of traders) + ($30 waiting cost per hour) x (Average number of orders in the system) + ($30 waiting cost per hour) x (Average number of orders in the system) = 20 k + 30 L. = 20 k + 30 L. Thus, L must be determined for k = 2 traders and for k = 3 traders with = 40/hr. and  = 30/hr. (since the average service time is 2 minutes (1/30 hr.). Thus, L must be determined for k = 2 traders and for k = 3 traders with = 40/hr. and  = 30/hr. (since the average service time is 2 minutes (1/30 hr.).

33 Slide Example: SJJT, Inc. (C) n Cost of Two Servers = 1 / [1+(1/1!)(40/30)]+[(1/2!)(40/30)2(60/(60-40))] = 1 / [1+(1/1!)(40/30)]+[(1/2!)(40/30)2(60/(60-40))] = 1 / [1 + (4/3) + (8/3)] = 1/5 = 1 / [1 + (4/3) + (8/3)] = 1/5 Thus, Thus, µ ( / µ ) k (40)(30)(40/30)2 µ ( / µ ) k (40)(30)(40/30)2 L q = P 0 = (1/5) = 16/15 L q = P 0 = (1/5) = 16/15 ( k -1)!( kµ - ) 2 1!(60-40)2 ( k -1)!( kµ - ) 2 1!(60-40)2 L = L q + ( / µ ) = 16/15 + 4/3 = 12/5 L = L q + ( / µ ) = 16/15 + 4/3 = 12/5 Total Cost = (20)(2) + 30(12/5) = $ per hour Total Cost = (20)(2) + 30(12/5) = $ per hour

34 Slide Example: SJJT, Inc. (C) n Cost of Three Servers P 0 = 1/[[1+(1/1!)(40/30)+(1/2!)(40/30)2]+ [(1/3!)(40/30)3(90/(90-40))] ] [(1/3!)(40/30)3(90/(90-40))] ] = 1 / [1 + 4/3 + 8/9 + 32/45] = 15/59 = 1 / [1 + 4/3 + 8/9 + 32/45] = 15/59 (30)(40)(40/30)3 (30)(40)(40/30)3 Hence, L q = (15/59) = 128/885 =.1446 Hence, L q = (15/59) = 128/885 =.1446 (2!)(3(30)-40)2 (2!)(3(30)-40)2 Thus, L = 128/ /30 = 1308/885 (= ) Thus, L = 128/ /30 = 1308/885 (= ) Total Cost = (20)(3) + 30(1308/885) = $ per hour Total Cost = (20)(3) + 30(1308/885) = $ per hour

35 Slide Example: SJJT, Inc. (C) n System Cost Comparison WageWaiting Total WageWaiting Total Cost/HrCost/HrCost/Hr 2 Traders $40.00 $82.00 $ Traders Thus, the cost of having 3 traders is less than that of 2 traders. 2 traders.

36 Slide The End of Chapter 15