Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 Elements of Queuing Theory The queuing model –Core components; –Notation; –Parameters and performance measures –Characteristics; Markov Process –Discrete-time.

Similar presentations


Presentation on theme: "1 Elements of Queuing Theory The queuing model –Core components; –Notation; –Parameters and performance measures –Characteristics; Markov Process –Discrete-time."— Presentation transcript:

1 1 Elements of Queuing Theory The queuing model –Core components; –Notation; –Parameters and performance measures –Characteristics; Markov Process –Discrete-time Markov chain; –Continuous-time Markov chain; –Birth-death process; Some typical and often-used distributions –Exponential Distribution; –Poisson Distribution; M/M/1 Little’s Law Brief review of M/M/s, M/G/1, M/D/1 Some additional discussions.

2 2 Queuing Systems Core components of the modelCore components of the model –Arrival process –Buffer (the so-called queue) Infinite or finite; –Service process single or parallel servers –Service discipline (FIFO, random)

3 3 Kendall Notation for Queuing Systems (1951) a/b/s/e/p/d a, specifies the arrival process b, specifies the service process s, is the number of parallel servers in the system e, (usually  ) is buffer size (i.e. maximum number of customers allowed in system) p, (usually  ) is size of customer population d, is the service discipline (FIFO, LIFO, etc.)

4 4

5 5 Queuing model parameters = average rate of customer arrivals (no. of customers/unit time)  = average rate of customer service by a server (no. of customers/unit time) (1/  = average service time) s = number of servers (channels) in the system If > s , then... If < s , then... The queuing systems is in steady state when the rate of departures from the system equals the rate of arrivals.

6 6 Queuing Performance measures L q = average number of customers in queue W q = average waiting time in queue (until service starts) L = average number of customers in system = L q + (average number being served) W = average time a customer spends in system = W q + 1/   = utilization factor = /(s  ) = busy time per unit time for each server = fraction of time a server is busy (on average) P n = the probability (or fraction of time) that exactly n customers are in the system P zn = the probability (or fraction of time) that at least n customers are in the system PW = P zs = the probability that a customer must wait for service (or the fraction of customers who must wait at least some time in the queue)

7 7 Customer Arrival Characteristics Size of the Customer Population –infinite or finite assume infinite when rate of customer arrival unaffected by number of customers in system if potential number of customers are limited (e.g. Xerox machines), then if all machines are broken, no more new customer arrivals Composition of the Customer Population –homogeneous or heterogeneous (e.g., the d.s. of interarrivals) Customer behaviour –well-behaved (waits until serviced after joining queue) –balk (leaves queue without joining) –renege (joins queue, but leaves before service when wait too long)

8 8 Customer Arrival Process Interarrival times - the times between successive customer arrivals. A large majority of the arrival patterns in real queuing systems appear to be generated by what is called a Poisson Process, in which the time between successive arrivals is exponentially distributed.

9 9 Service Characteristics For each category of customer it is necessary to describe the service process. This is usually expressed as a probability distribution for service times. System configuration –number, type and configuration of servers –queue capacity Queue Discipline –FIFO (first in, first out) –LIFO (last in, first out) –priority –random

10 10 Markov Process The probabilistic future of the process depends only on the current state and not upon the history of the process. In other words, the entire history of the process is summarized in the current state. Markov chain: A Markov process with discrete state space  discrete-time Markov chain and continuous-time Markov chain: focus of our further discussions.

11 11 Discrete-Time Markov chain

12 12 Discrete-Time Markov chain (cont’d) A matrix that satisfies the above properties is called a stochastic matrix.

13 13 Discrete-Time Markov chain (cont’d) The Chapman-Kolomogorov Equation:

14 14 Discrete-Time Markov chain (cont’d) Apparently, The matrix form:

15 15 Discrete-Time Markov chain (cont’d) Therefore, by solving the system of linear equations defined by: Where: We get the system invariant measure or stable d.f. It is not discussed in this course the conditions under which the above results hold. For ones who are interested, pls. refer to corresponding papers or books where detailed discussions or analysis are made.

16 16 Discrete-Time Markov chain (cont’d) The example: one-step transition matrix: one-step transition matrix: 0 1 211/41/41 1/2 The transition diagram: The equilibrium equation in matrix notation: The invariant measure:

17 17 Continuous-time Markov chain The Chapman-Kolmgorov Equation for C-M.C.:

18 18 Continuous-time Markov chain(cont’d)Where:

19 19 Continuous-time Markov chain(cont’d) By solving the following system of equations, we can get the invariant measure:

20 20 Continuous-time Markov chain(cont’d) It is not discussed in this course the conditions under which the above results hold. For ones who are interested, pls. refer to corresponding papers or books where detailed discussions or analysis are made.

21 21 Continuous-time Markov chain (cont’d) The example: the Q matrix: the Q matrix: 0 1 21121 The transition diagram: The equilibrium equation in matrix notation: The invariant measure:

22 22 Birth-Death Process

23 23 Birth-Death Process (cont’d) Then we get the differential equation:

24 24 Birth-Death Process (cont’d) Then we get: Or equivalently: The equilibrium equations or the balance equations of a birth and death process

25 25 Birth-Death Process (cont’d) The computation of p 0 relies on the fact: C<infinite

26 26 Exponential Distribution (Continuous random variable) Density function: for t > 0 CDF: for t  0 = 0 for t < 0 Exp. Value of T Variance of T

27 27 Exponential Distribution (Continuous random variable) Memoryless Property

28 28 Exponential Distribution

29 29 Poisson distribution (Discrete random variable) X  {0, 1, 2, 3, ….} X = 0, 1, 2, ….. parameter,e = 2.718 Expected value of X =, Variance of X =

30 30 Poisson Process

31 31 Poisson Process (cont’d) The counting process Proof:

32 32 Poisson Process (cont’d) Proof (cont’d): For n>0, we have:

33 33 Poisson Process (cont’d) Proof (cont’d): By noting the initial condition P k (0) = 0, k>0, solving the differential equation recursively yields the desired results. This says, in particular, the mean number of events per time unit, or equivalently, the rate at which events occur, is given by E[N(t)]/ t = λ. This is why λ is called the rate of the Poisson process.

34 34 Poisson Process (cont’d) Proof:

35 35 Poisson Process (cont’d) Additional properties of Poisson Process: The inverse is also valid.

36 36 Catalogue of Queues Single server, Poisson arrivals –M/G/1 –M/M/1 –M/D/1 Multiple servers, Poisson arrivals –M/G/s –M/M/s –etc, etc,

37 37 M/M/1 In summary: 1)Arrival process is Poisson Process; 2)Departure process is Poisson Process; 3)Service discipline is FCFS;

38 38 M/M/1 (cont’d)

39 39 M/M/1 (cont’d) This parameter is often called the utilization level of the system because it tells the average load status of the system. The transition diagram:

40 40 M/M/1 (cont’d) L s = L q +  W s = W q + 1/ 

41 41 Little’s Law Relationship between the performance measures for any queue. 1. Consider one customer: wait in queue for how many people arrive during this time? = inter-arrival time 2.whereis the average service time

42 42 Little’s Law 3. 4. For each server, expected # customers in service For s servers, exp. # in services

43 43 MultiServer Systems with Exponential Service Times (M/M/s Systems)  = /(s  ) P n = L q = [( /  ) s  P 0 ]/[s!(1-  ) 2 ] L s = L q + /  W q = L q / W s = W q + 1/ 

44 44 Queuing Example Purchase two facsimile transmission (fax) machine for use of two departments. For each dept:

45 45 Example: Two separate queues Modelled as two separate M/M/1 queues, we get the following performance measures:

46 46 36/day from Design + 36/day from sales = 72items/day = M/M/2 system with = 72 items per day and  =48 items per day. Example: Common pool

47 47 Benefits of Pooling Servers The result for example 2 holds in general: If customers are homogeneous, then there will be less customer waiting on average if servers are pooled into one queuing system. Notice that in both systems the utilization rates are the same, so the servers do not work any harder or longer in one configuration versus the other. Instead, they work more effectively in a pooled system by coordinating their idle time so that a server is never idle while other servers have queues. As long as customers can choose which queue to enter and can switch among queues, system with s queues should behave no differently than a system with one queue.

48 48 M/G/1 Systems the variance of the service time =  2

49 49 M/D/1 Systems When the service times are a constant, so that  2 =0, we say that the service distribution is deterministic. Everything else being equal, the more variation in service times, the longer queues will be on average and the longer customers will wait on average.

50 50 Role of Variance in Queuing Systems Everything else being equal, the greater the randomness in arrival times and/or services times, the larger the average queue lengths and waiting times. Therefore, anything we can do to reduce variation will help to reduce customer waiting. Pacing of customer arrivals reduces waiting The psychology of queues –making the waiting time interesting (Disneyland?)

51 51

52 52 Capacity Utilization and the Exploding Queue Property The primary property of queuing systems is that average waiting and queue size increase slowly with utilization until utilization reaches approximately 0.70-0.80. At this point, average waiting time and queue length increase rapidly.

53 53 FIN


Download ppt "1 Elements of Queuing Theory The queuing model –Core components; –Notation; –Parameters and performance measures –Characteristics; Markov Process –Discrete-time."

Similar presentations


Ads by Google