Systems Simulation Chapter 6: Queuing Models

Size: px
Start display at page:

Download "Systems Simulation Chapter 6: Queuing Models"

Transcription

1 Systems Simulation Chapter 6: Queuing Models Fatih Cavdur April 2, 2014 Introduction Introduction Simulation is often used in the analysis of queuing models. A simple but typical model is the single-server queue system. In this model, the term customer refers to any type of entity that can be viewed as requesting service from a system. Some examples are production systems, repair and maintenance facilities, communications and computer systems, transport and material-handling systems etc.

2 Introduction Introduction-cont. Queuing models, whether solved analytically or through simulation, provide the analyst with a powerful tool for designing and evaluating the performance of queuing systems. Typical measures of system performance are server utilization, length of waiting lines and delays of customers. Quite often, the analyst or the decision maker is involved in tradeoffs between server utilization and customer satisfaction in terms of line lengths and delays. Introduction Introduction-cont. For relatively simple systems, these performance measures can be computed mathematically - at great savings in time and expense as compared with the use of a simulation model - but, for for realistic models of complex systems, simulation is usually required. Nevertheless, analytically tractable models, although usually requiring many simplifying assumptions, are valuable for rough-cut estimates of system performance. This chapter will discuss some of the well-known models.

3 Characteristics of Queuing Systems Characteristics of Queuing Systems The key elements of queuing systems are the customers and servers. The term customer can refer to people, parts, trucks, s etc. and the term server clerks, mechanics, repairmen, CPUs etc. Although the terminology employed will be that of a customer arriving to a server, sometimes the server moves to the customer; for example a repairman moving to a broken machine. Characteristics of Queuing Systems Characteristics of Queuing Systems-cont. Table : Examples of Queuing Systems System Customers Servers Reception Desk People Receptionist Repair Facility Machines Repairman Garage Trucks Mechanic Hospital Patients Nurses Grocery Shoppers Checkout Station Laundry Dirty Linen Washing Machines / Dryers Job Shop Jobs Machines, Workers Computer Jobs CPU, Disk, CDs Telephone Calls Exchange

4 Characteristics of Queuing Systems The Calling Population The population of potential customers, referred to as the calling population, may be assumed to be finite or infinite. In systems with large population of potential customers, the calling population is usually assumed to be infinite. The main difference between finite and infinite population models is how the arrival rate is defined. In an infinite population model, the arrival rate is not affected by the number of customers who left the calling population and joined the queuing system. Characteristics of Queuing Systems System Capacity In many queuing systems, there is a limit to the number of customers that may be in the waiting line or system, such as an automatic car wash. In such systems, an arriving customer who finds the system full does not enter and returns to the calling population. Some systems may be considered as having unlimited capacity, such as concert ticket sales for students. In limited-capacity systems, there is a distinction between the arrival rate and the effective arrival rate.

5 Characteristics of Queuing Systems The Arrival Process The arrival process for infinite-population models is usually characterized in terms of inter-arrival times of successive customers. Arrivals may occur at scheduled times of at random times. The most important model for random arrivals is the Poisson arrival process. If A n represents the inter-arrival time between customer n 1 and customer n, then, for a Poisson arrival process, A n is exponentially distributed with mean 1/λ where the arrival rate of the process is λ customers per time unit, and the number of arrivals in a time interval of length t, say N(t), has the Poisson distribution with mean λt customers. Characteristics of Queuing Systems The Arrival Process Memoryless Property of Exponential Distribution If X is an exponentially distributed random variable, we can write P{X > t + h x > t} = P{X > h} P{X > t + h x > t} = = P{X > t + h, X > t} P{X > t} t+h λe λx dx h λe λx dx = e λ(t+h) e λt = e λh = P{X > h}

6 Characteristics of Queuing Systems The Arrival Process-cont. Exponential Distribution & Poisson Process Exponential Distribution: f (x) = λe λx ; x 0 E(x) = 1 λ and V (x) = 1 λ 2 Poisson Process: p(x) = e λ λ x ; x 0 x! E(x) = λ and V (x) = λ Characteristics of Queuing Systems The Arrival Process-cont. Exponential Distribution & Poisson Process Example: The number of orders per hour follows a Poisson distribution with an average of 30. Find the probability that there are exactly 60 orders between 10 PM and 12 AM. P{X = 60} = e λt (λt) x = e = x! 60! Find the mean and standard deviation of the number of orders between 9 PM and 1 AM. E(X ) = λt = 4 30 = 120 and V (X ) = 120 = 10.95

7 Characteristics of Queuing Systems The Arrival Process-cont. Exponential Distribution & Poisson Process Find the probability that the time between two consecutive orders is between 1 and 3 minutes. Let X be the time in minutes between successive orders. The mean number of orders per minute is exponential with rate 0.5. P{1 X 3} = 3 1 λe λxdx = e 0.5x dx = 0.38 Characteristics of Queuing Systems The Arrival Process-cont. A second important class of arrivals is scheduled arrivals, such as scheduled airline flight arrivals to an airport. In this case, [A n, n = 1, 2,...] could be either constant or constant plus or minus a small random amount to represent early or late arrivals. A third situation occurs when at least one customer is assumed to always be present in the queue, so that the server is never idle because of a lack of customers.

8 Characteristics of Queuing Systems The Arrival Process-cont. For finite-population models, the arrival process is characterized in a completely different fashion. Define a customer pending when that customer is outside the queuing system and a member of the potential calling population. Define a runtime of a given customer as the length of time from departure from the queuing system until that customer s next arrival to the queue. One important application of finite-population models is the machine-repair problem. Times to failure for a given class of machine have been characterized by the exponential, the Weibull and the gamma distributions. Characteristics of Queuing Systems The Arrival Process-cont. Patient 3 Status: A (3) 1 W (3) 1 = W (3) Q1 + S(3) 1 A (3) 2 W (3) 2 = W (3) Q2 + S(3) 2 pending needs attention pending needs attention t First arrival of patient 3 Second arrival of patient 3 Figure : Arrival Process for a Finite-Population Model

9 Characteristics of Queuing Systems Queue Behavior and Queue Discipline Queue behavior refers to the actions of customers while in a queue waiting for service to begin. In some situations, customers may balk (leaving when queue is too long), renege (leaving after waiting for a while when queue is moving too slowly) or jockey (moving from one queue to another). Queue discipline refers to the logical ordering of customers in a queue and determines which customer will be chosen for service when a server becomes free. Some examples are FIFO, LIFO, SIRO, SPT etc. Characteristics of Queuing Systems Service Times and Service Mechanism The service times of successive arrivals are denoted by S 1, S 2,... They may be constant or of random duration. In the latter case, {S 1, S 2,...} is usually characterized as a sequence of independent and identically distributed (IID) random variables. The exponential, Weibull, gamma, lognormal and truncated normal distributions have all been used successfully as models of service times. A queuing system consists of a number of service centers and interconnecting queues. Each service center consists of some number of servers, c, working in parallel, such as single-server (c = 1), multiple-server (1 < c < ) or unlimited servers (c = ).

10 Characteristics of Queuing Systems Example 6.1 Queue 1 Service center 1 c (self-service) Arrivals Queue 3 Service center 3 c 1 (cashier) Departures Service center 2 Queue 2 c 3 (3 clerks) Figure : Example 6.1: Discount Warehouse with Three Service Centers Characteristics of Queuing Systems Example 6.1 Service center 2 Server 1 Arrivals Server 2 Departures Server 3 Figure : Service Center 2, with c = 3 parallel servers

11 Characteristics of Queuing Systems Example 6.2 Machine 1 Machine 2 Machine 3 Queue 1 Queue 2 Capacity 1000 Queue 3 Capacity 1000 Candy maker/ wrapper Packer Sealer/ wrapper Figure : Candy-Production Line Queuing Notation Queuing Notation Based on Kendall s proposition, queuing systems can be characterized as A/B/c/N/K, (Kendall-Lee Notation) where A represents the inter-arrival-time distribution B represents the service-time distribution c represents the number of parallel servers N represents the system capacity K represents the size of the calling population

12 Queuing Notation Queuing Notation Common symbols for A and B include M (exponential or Markovian), D (constant or deterministic), E k (Erlang of order k), PH (phase-type), H (hyper-exponential), G (arbitrary or general), and GI (general independent). For example, M/M/1/ / indicates a single-server system that has unlimited capacity and an infinite population of potential arrivals, and inter-arrival and service times are exponential. When N and K are infinite, they may be dropped from the notation (i.e., M/M/1) The tire cutting example in the text can be represented by G/G/1/5/5. Queuing Notation Queuing Notation-cont. Table : Queuing Notation for Parallel Server Systems P n steady-state probability of having n customers in system P n(t) probability of having n customers in system at time t λ arrival rate λ e effective arrival rate µ service rate of one server ρ server utilization A n inter-arrival time between customers n 1 and n S n service time of the nth arriving customer W n total time spent in system by the nth arriving customer Wn Q total time spent in queue by the nth arriving customers L(t) the number of customers in system at time t L Q (t) the number of customers in queue at time t L long-run time-average number of customers in system L Q long-run time-average number of customers in queue w long-run average time spent in system per customer w Q long-run average time spent in queue per customer

13 Primary long-run time-average number of customers in system (L) long-run time-average number of customers in queue (L Q ) long-run average time spent in system per customer (w) long-run average time spent in queue per customer(w Q ) server utilization (ρ) This section defines the major measures of performance for a general G/G/c/N/K queuing system, discusses their relationships and shows how they can be estimated from a simulation run. There are two types of estimators: (i) an ordinary sample average, and (ii) a time-integrated (time-weighted) sample average.

14 Time-Average Number in System Time-Average Number in System L Consider a queuing system over a period of time T, and let L(t) denote the number of customers in the system at time t. Let T i denote the total time during [0, T ] in which the system contained exactly i customers. The time-weighted-average number in system is defined by L = 1 ( ) Ti it i = i T T i=0 i=0 Time-Average Number in System Time-Average Number in System L L(t) 3 T 3 2 T 2 T 2 1 T 1 T 1 T 1 T 1 T 0 T T 20 t Figure : Number in System, L(t) at time t

15 Time-Average Number in System Time-Average Number in System L For the example problem in the previous slide, L = [0(3) + 1(12) + 2(4) + 3(1)]/20 = 1.15 customers. It can be seen that the total area under the function L(t) can be decomposed into rectangles of height i and length T i. It follows that the total area is given by i=0 it i = T 0 L(t)dt, and hence, L = 1 it i = 1 T L(t)dt T T i=0 0 Time-Average Number in System Time-Average Number in System / Queue L If we let L be the long-run time-average number in system, 1 lim L = lim T T T T 0 L(t)dt = L The above can be applied to any sub-system of a queuing system. If we let L Q denote the number of customers in line, L Q = 1 it Q i = 1 T L Q (t)dt L Q as T T T i=0 0

16 Time-Average Number in System Time-Average Number in Queue L If the previous figure corresponds to a single-server queue-that is a G/G/1/N/K queuing system (N 3, K 3). Then the number of customers waiting in queue is given by L Q (t) L Q (t) = { 0 if L(t) = 0 L(t) 1 if L(t) 1 It is shown in the next figure. Thus, T Q 0 = = 15, T Q 1 = = 4 and T Q 2 = 1. Therefore, (0)(15) + (1)(4) + (2)(1) L Q = = 0.3 customers 20 Time-Average Number in System Time-Average Number in Queue L L Q(t) T 20 t Figure : Number in Queue, L Q (t) at time t

17 Average Time Spent in System Average Time Spent in System per Customer w If W 1, W 2,..., W n are the times each customer spends in system during [0, T ], where N is the number of arrivals during that time period, the average time spent in system per customer (average system time) is ŵ = 1 N N i=1 W i For stable systems, as N, ŵ w. Also, ŵ Q = 1 N W Q i as N N i=1 Average Time Spent in System Average Time Spent in System per Customer w For stable systems, as N, ŵ w with probability 1, where w is called the long-run average system time. Also, ŵ Q = 1 N N i=1 W Q i as N

18 The Conservation Equation The Conservation Equation L = λw For the example system considered previously, there were N = 5 arrivals in T = 20 time units, and thus, the observed arrival rate was λ = N/T = 1/4 customers per time unit. Recall that L = 1.15 and ŵ = 4.6; hence, it follows that L = λŵ This is not coincidence. So, if T and N, the above relationship becomes L = λw Server Utilization Server Utilization Server utilization is defined as the proportion of time that a server is busy. We have, the observed utilization, ρ, defined over [0, T ], ρ ρ as T. Server Utilization in G/G/1/ / Queues Server Utilization in G/G/c/ / Queues

19 Server Utilization Server Utilization Example From the figure in the next slide and the one we looked for the previous example, and assuming a single server, the server utilization is ρ = total busy time T i=1 = T i T = T T 0 T = Server Utilization Server Utilization Example L(t) 3 W 4 2 W 3 W 4 1 W 4 W 3 W 1 W 2 W T 20 t Figure : System Times, W i for Single-Server FIFO Queuing System

20 Server Utilization Server Utilization in G/G/1/ / Queues Let λ customers be the average arrival rate per time unit and E(S) = 1/µ average service time (when busy, server is working at the rate µ customers per time unit. The server alone can be considered as a queuing system itself. If we let λ s be the average arrival rate to the server, we have, λ s = λ for stable systems. If λ s < λ, then, the queue length tend to increase at an average rate of λ λ s customers per time unit. Server Utilization Server Utilization in G/G/1/ / Queues For the server sub-system, we have w = E(S) = µ 1 Hence, the average number in system is L s = 1 T T 0 [L(t) L Q (t)]dt = T T 0 T In this case, L s = ρ. As T, L s = ρ L s = ρ. Combining this with L = λw, we have ρ = λe(s) = λ µ

21 Server Utilization Server Utilization in G/G/1/ / Queues That is, the long-run server utilization in a single-server queue is equal to the average arrival rate divided by the average service rate. We should have λ < µ or ρ = λ/µ < 1 for this system to be stable. For unstable systems (λ > µ), the long-run server utilization is 1 and the long-run queue length is infinity. For stable systems, the long-run performance measures, such as queue length, number of customers in system, system time, queue time, are well defined. Server Utilization Server Utilization in G/G/c/ / Queues The average number of busy servers is given by L s = λe(s) = λ µ, 0 L s c The long run server utilization is ρ = L s c = λ cµ, 0 ρ 1 The system is stable iif λ < cµ.

22 Server Utilization Server Utilization in G/G/c/ / Queues Customers arrive at random to a license bureau at a rate of λ = 50 customers per hour. Currently, there are 20 clerks, each serving µ = 5 customers per hour on the average. Here, the long-run or steady-state average number of busy servers is L s = λ µ = 50 5 = 10 We note that c > λ/µ. The long run server utilization is ρ = λ cµ = 50 (20)(5) = 0.5 Server Utilization Server Utilization and System Performance System performance can vary widely for a given utilization, ρ. Consider a D/D/1 queue. We have all arrival times are equal to E(A) = 1/λ, and all service times equal to E(S) = 1/µ. By looking at the figure in the next slide, we see that by varying λ and µ, we can obtain any utilization between 0 and 1, and yet, there are no waiting customers. What causes the long queues if not a high server utilization?

23 Server Utilization Server Utilization and System Performance L(t) 2 Server utilization r m 1 l l 1 m 1 m 1 m 1 m 1 m 1 m 1 0 l 1 2l 1 3l 1 4l 1 5l 1 t Figure : D/D/1 Queue Costs in Queuing Problems Cost in Queuing Problems We can associate costs with various aspects of the queues and servers. For example, if a cost occurs for each customer in queue, say at a rate of $ 10 per hour per customer, then, if customer j spends W Q j hours in the queue, N j=1 (10W Q j ) is the total cost of the N customers. Thus, the average cost per customer is N 10W Q j = 10ŵ Q N j=1 We can proceed using this.

24 Steady-State Behavior of Infinite-Population Markovian Models Steady-State Behavior of Infinite-Population Markovian Models A queuing system is said to be in statistical equilibrium or steady state, if the probability that the system is in a given state is not time dependent-that is, P[L(t) = n] = P n (t) = P n is independent of time t. For the simple models studied here, the steady-state parameter L, the time-average number of customers in the system, can be computed as L = np n n=0 where [P n ] are the steady-state probabilities of finding n customers in the system. Steady-State Behavior of Infinite-Population Markovian Models Steady-State Behavior of Infinite-Population Markovian Models Once L is given, the other steady-state parameters can be computed from Little s equation applied to the whole system and to the queue alone. w = L λ w Q = w 1 µ L Q = λw Q

25 Steady-State Behavior of Infinite-Population Markovian Models Single-Server Queues Single-Server Queues (Poisson Arrivals & Infinite Capacity) Table : Steady-State Parameters of the M/G/1 Queue ρ λ µ L ρ + λ2 (1/µ 2 +σ 2 ) 2(1 ρ) = ρ + λ2 (1+σ 2 µ 2 ) 2(1 ρ) 1 w µ + λ(1/µ2 +σ 2 ) 2(1 ρ) w Q λ(1/µ 2 +σ 2 ) 2(1 ρ) λ L 2 (1/µ 2 +σ 2 ) Q 2(1 ρ) = ρ2 (1+σ 2 µ 2 ) 2(1 ρ) P 0 1 ρ Steady-State Behavior of Infinite-Population Markovian Models Single-Server Queues Single-Server Queues (Poisson Arrivals & Infinite Capacity) Example There are two workers competing for a job; Able and Baker. Able claims an average service time that is faster than Baker s, but Baker claims to be more consistent, even if not as fast. The arrivals occur according to a Poisson process with a rate of λ = 2 per hour. Able s statistics are an average service time of 24 minutes with a standard deviation of 20 minutes. Baker s statistics are an average service time of 25 minutes with a standard deviation of 2 minutes. If the average queue length is the criterion for hiring, which worker should be hired?

26 Steady-State Behavior of Infinite-Population Markovian Models Single-Server Queues Single-Server Queues (Poisson Arrivals & Infinite Capacity) Example For Able, L Q = λ2 (1/µ 2 + σ 2 ) 2(1 ρ) For Baker, = ( 1 ) 2 30 ( ) 2 ( 1 4 ) = customers 5 L Q = λ2 (1/µ 2 + σ 2 ) 2(1 ρ) Baker should be hired! = ( 1 ) 2 30 ( ) 2 ( 1 5 ) = customers 6 Steady-State Behavior of Infinite-Population Markovian Models Single-Server Queues Single-Server Queues (Poisson Arrivals & Infinite Capacity) Table : Steady-State Parameters of the M/M/1 Queue L λ µ λ = ρ 1 ρ w 1 µ λ = 1 µ(1 ρ) w Q λ µ(µ λ) = ρ µ(1 ρ) λ L 2 Q µ(µ λ) = ρ2 µ(1 ρ) P n (1 λ µ ) ( λ µ ) n = (1 ρ)ρ n

27 Steady-State Behavior of Infinite-Population Markovian Models Single-Server Queues Single-Server Queues (Poisson Arrivals & Infinite Capacity) Example Assume that time between arrivals and service times at a single-chair unisex hair-styling shop have been shown to be exponentially distributed. The values of λ and µ are 2 per hour and 3 per hour, respectively. Compute the server utilization and the probabilities of having 0, 1, 2 and 3 or more customers in the shop. The server utilization is ρ = λ µ = 2 3 Steady-State Behavior of Infinite-Population Markovian Models Single-Server Queues Single-Server Queues (Poisson Arrivals & Infinite Capacity) Example The probabilities of having 0, 1, 2 and 3 or more customers P n = ( 1 λ ) ( ) λ n P 0 = µ µ P 1 = P 2 = P{n 3} = 1 ( ( ( n=0 ) ( ) 2 0 = ) ( ) 2 1 = ) ( ) 2 2 = P n = 8 27

28 Steady-State Behavior of Infinite-Population Markovian Models Single-Server Queues Single-Server Queues (Poisson Arrivals & Infinite Capacity) Example The number of customers in system, in queue and their waiting times L = λ µ λ = 2 customers w Q = L Q = λ 2 µ(µ λ) = 4 3 customers w = 1 µ λ = 1 hour = L λ λ µ(µ λ) = 2 3 hour = w E(S) = w 1 µ Steady-State Behavior of Infinite-Population Markovian Models Multi-Server Queues Multi-Server Queues Table : Steady-State Parameters of the M/M/c Queue ρ P 0 P[L( ) c] λ cµ {[ c 1 n=0 ] (λ/µ) n + n! (λ/µ) c P 0 c!(1 λ/cµ) = (cp)c P 0 c!(1 ρ) [( λ µ ) c ( 1 ) ( )]} 1 cµ c! cµ λ L cρ + (cρ)c+1 P 0 cc!(1 ρ) 2 w L λ w Q L Q L L Q w 1 λ λw Q λ µ = cρ

29 Steady-State Behavior of Infinite-Population Markovian Models Multi-Server Queues Multi-Server Queues Example Assume Poisson arrivals with λ = 2 per minute and exponentially distributed service times with mean 40 seconds. Since λ µ = 2 3/2 = 4 3 > 1 the system is unstable. We need more servers to make it stable (c > λ/µ). We can let c = 2. Then, Steady-State Behavior of Infinite-Population Markovian Models Multi-Server Queues Multi-Server Queues Example The probability that there are no customers in the system P 0 = = = = 1 5 {[ c 1 ] (λ/µ) n [( λ + n! µ n=0 {[ 1 ] [ (4 (4/3) n ) 2 ( 1 + n! 3 2! n=0 [ ( ) ( ) ] (3) 9 2 ) c ( ) ( 1 cµ )] } 1 c! cµ λ ) ( )]} 1

30 Steady-State Behavior of Infinite-Population Markovian Models Multi-Server Queues Multi-Server Queues Example The probability that all servers are busy P{L( ) 2} = (λ/µ) c P 0 c!(1 λ/cµ) = (4/3)2 (1/5) [ ] 2! 1 2 2(3/2) ( ) ( ) 8 1 = 3 5 = 8 15 Steady-State Behavior of Infinite-Population Markovian Models Multi-Server Queues Multi-Server Queues Example A grocery store operates with 3 check-out counters. The company uses the following schedule to determine the number of counters in operation based on the number of customers in the store: # of customers # of counters 1 to to 6 2 more than 6 3 Customers arrive in the counters area according to a Poisson distribution with with a mean rate of 10 customers per hour and the average check-out time per customer is exponential with mean 12 minutes. Determine the steady-state probability p n of n customers in the system.

31 Steady-State Behavior of Infinite-Population Markovian Models Multi-Server Queues Multi-Server Queues Example We let λ n = λ = 10 customers per hour, n = 0, 1,... 60/12 customers per hour, n = 0, 1, 2, 3 µ n = (2)(60)/12 customers per hour, n = 4, 5, 6 (3)(60)/12 customers per hour, n = 7, 8,... Continue from here. Steady-State Behavior of Infinite-Population Markovian Models Multi-Server Queues Multi-Server Queues Table : Steady-State Parameters of the M/G/ Queue P 0 w 1 µ w Q 0 L e λ/µ λ µ L Q 0 P n e λ/µ (λ/µ) n n!, n = 0, 1,...

32 Steady-State Behavior of Infinite-Population Markovian Models Multi-Server Queues Multi-Server Queues Table : Steady-State Parameters of the M/M/c/N Queue [ P c a n n=1 + ] 1 ac N n! c! n=c+1 ρn c P N L Q a N c!c N c P 0 P 0 a c [ ρ c!(1 ρ) 1 ρ N c (N c)ρ N c (1 ρ) ] 2 λ e λ(1 P N ) w Q w L L Q λ e w Q + 1 λ λ ew Birth and Death Processes Birth and Death Processes The number of people present in a queuing system at time t is defined as the state of the system at time t. P ij (t) is the probability that there are j people in the system at time t given that there are i people at time 0. π j is defined as the steady-state, long-term or equilibrium probability of state j. The behavior of P ij (t) is called as the transient behavior of the queuing system. A birth and death process (BDP) is a continuous time stochastic process for which the system s state at any time is a non-negative integer.

33 Birth and Death Processes Birth and Death Processes-cont. Laws of Motion for BDP With probability λ j t + o( t), a birth (arrival) occurs between time t and time t + t. A birth increases the system state by 1 to j + 1. The variable λ j is called the birth (arrival) rate in state j. In most queuing systems, a birth is an arrival. With probability µ j t + o( t), a death (departure) occurs between time t and time t + t. A death decreases the system state by 1 to j 1. The variable µ j is called the death rate in state j. In most queuing systems, a death is a departure or service completion. Births and deaths are independent of each other. Birth and Death Processes Birth and Death Processes-cont. Derivation of Steady-State Probabilities for BDP Table : Steady-State Probabilities for State being j state state probability (time t) (time t + t) j 1 j P i,j 1 (t)(λ j 1 t + o( t)) j + 1 j P i,j+1 (t)(µ j+1 t + o( t)) j j P i,j (t)[1 λ j t µ j t 2o( t)] i j, j ± 1 j o( t) o( t) lim = 0 t 0 t

34 Birth and Death Processes Birth and Death Processes-cont. Derivation of Steady-State Probabilities for BDP P i,j (t + t) = P i,j (t) + t[λ j 1 P i,j 1 (t) + µ j+1 P i,j+1 (t) P ij (t)µ j P ij (t)λ j ] + o( t)[p i,j 1 (t) + P i,j+1 (t) + 1 2P ij (t)] Since the last row is equal to o( t), P i,j 1 (t+ t) P i,j (t) = t[λ j 1 P i,j 1 (t)+µ j+1 P i,j+1 (t) P ij (t)µ j P ij (t)λ j ]+o( t) By dividing the last expression by t and letting t 0, for i, j, P ij(t) = λ j 1 P i,j 1 (t) + µ j+1 P i,j+1 (t) P ij (t)µ j P ij (t)λ j j = 0 P i,j 1 (t) = 0 and µ j = 0 P i0(t) = µ 1P i,1 (t) λ 0P i,0 (t) Birth and Death Processes Birth and Death Processes-cont. Derivation of Steady-State Probabilities for BDP The last expression is an infinite system of differential equations. It is very difficult to solve these equations. However, we can use the above expressions to obtain the steady-state probabilities π j s (or P j s). P j = π j = lim t P ij (t) For large t and any initial state i, we can thought of P ij (t) as a constant, and we can assume P ij (t) = 0.

35 Birth and Death Processes Birth and Death Processes-cont. Derivation of Steady-State Probabilities for BDP We can then write, for j = 1, 2,..., By organizing, For j = 0, λ j 1 P j 1 + µ j+1 P j+1 λ j P j µ j P j = 0 λ j 1 P j 1 + µ j+1 P j+1 = λ j P j µ j P j = 0 λ 0 P 0 = µ 1 P 1 We now have an infinite system of linear equations that can be solved easily! Birth and Death Processes Birth and Death Processes-cont. Solution of BDP Equations j=1 P j = λ 0λ 1... λ j 1 µ 1 µ 2... µ j P 0 P j = 1 P P 0 = j=1 λ 0 λ 1... λ j 1 µ 1 µ 2... µ j j=1 λ 0 λ 1...λ j 1 µ 1 µ 2...µ j = 1

36 Birth and Death Processes Birth and Death Processes-cont. Example Indiana Bell customer service representatives receive 1,7000 calls per hour. The time between calls follow an exponential distribution. A customer service representative can handle an average of 30 calls per hour. The time to handle a call is also exponential. Indiana Bell can put up to 25 people on hold. If 25 people are on hold, a call is lost to the system. Indiana Bell has 75 representatives. (a) What fraction of the time are all operators busy? (b) What fraction of all calls are lost to the system? Birth and Death Processes Birth and Death Processes-cont. Example-cont. We can use MS Excel to compute the desired probabilities. [Click] (a) The fraction of time all operators are busy is 100 j=75 P j = (b) The fraction of all calls that are lost to the system is P 100 =

37 Others Others More complicated models can be considered. Finite Population Models Networks of Queues Summary Summary Reading HW: Chapter 6. Chapter 6 Exercises.

Queuing Theory. Queuing Theory. Fatih Cavdur April 27, 2015

Queuing Theory. Queuing Theory. Fatih Cavdur April 27, 2015 Queuing Theory Fatih Cavdur fatihcavdur@uludag.edu.tr April 27, 2015 Introduction Introduction Simulation is often used in the analysis of queuing models. A simple but typical model is the single-server

More information

Slides 9: Queuing Models

Slides 9: Queuing Models Slides 9: Queuing Models Purpose Simulation is often used in the analysis of queuing models. A simple but typical queuing model is: Queuing models provide the analyst with a powerful tool for designing

More information

Chapter 6 Queueing Models. Banks, Carson, Nelson & Nicol Discrete-Event System Simulation

Chapter 6 Queueing Models. Banks, Carson, Nelson & Nicol Discrete-Event System Simulation Chapter 6 Queueing Models Banks, Carson, Nelson & Nicol Discrete-Event System Simulation Purpose Simulation is often used in the analysis of queueing models. A simple but typical queueing model: Queueing

More information

CPSC 531: System Modeling and Simulation. Carey Williamson Department of Computer Science University of Calgary Fall 2017

CPSC 531: System Modeling and Simulation. Carey Williamson Department of Computer Science University of Calgary Fall 2017 CPSC 531: System Modeling and Simulation Carey Williamson Department of Computer Science University of Calgary Fall 2017 Motivating Quote for Queueing Models Good things come to those who wait - poet/writer

More information

Queueing Review. Christos Alexopoulos and Dave Goldsman 10/6/16. (mostly from BCNN) Georgia Institute of Technology, Atlanta, GA, USA

Queueing Review. Christos Alexopoulos and Dave Goldsman 10/6/16. (mostly from BCNN) Georgia Institute of Technology, Atlanta, GA, USA 1 / 24 Queueing Review (mostly from BCNN) Christos Alexopoulos and Dave Goldsman Georgia Institute of Technology, Atlanta, GA, USA 10/6/16 2 / 24 Outline 1 Introduction 2 Queueing Notation 3 Transient

More information

Queueing Review. Christos Alexopoulos and Dave Goldsman 10/25/17. (mostly from BCNN) Georgia Institute of Technology, Atlanta, GA, USA

Queueing Review. Christos Alexopoulos and Dave Goldsman 10/25/17. (mostly from BCNN) Georgia Institute of Technology, Atlanta, GA, USA 1 / 26 Queueing Review (mostly from BCNN) Christos Alexopoulos and Dave Goldsman Georgia Institute of Technology, Atlanta, GA, USA 10/25/17 2 / 26 Outline 1 Introduction 2 Queueing Notation 3 Transient

More information

Queuing Theory. The present section focuses on the standard vocabulary of Waiting Line Models.

Queuing Theory. The present section focuses on the standard vocabulary of Waiting Line Models. Queuing Theory Introduction Waiting lines are the most frequently encountered problems in everyday life. For example, queue at a cafeteria, library, bank, etc. Common to all of these cases are the arrivals

More information

QUEUING SYSTEM. Yetunde Folajimi, PhD

QUEUING SYSTEM. Yetunde Folajimi, PhD QUEUING SYSTEM Yetunde Folajimi, PhD Part 2 Queuing Models Queueing models are constructed so that queue lengths and waiting times can be predicted They help us to understand and quantify the effect of

More information

PBW 654 Applied Statistics - I Urban Operations Research

PBW 654 Applied Statistics - I Urban Operations Research PBW 654 Applied Statistics - I Urban Operations Research Lecture 2.I Queuing Systems An Introduction Operations Research Models Deterministic Models Linear Programming Integer Programming Network Optimization

More information

λ, µ, ρ, A n, W n, L(t), L, L Q, w, w Q etc. These

λ, µ, ρ, A n, W n, L(t), L, L Q, w, w Q etc. These Queuing theory models systems with servers and clients (presumably waiting in queues). Notation: there are many standard symbols like λ, µ, ρ, A n, W n, L(t), L, L Q, w, w Q etc. These represent the actual

More information

Performance Evaluation of Queuing Systems

Performance Evaluation of Queuing Systems Performance Evaluation of Queuing Systems Introduction to Queuing Systems System Performance Measures & Little s Law Equilibrium Solution of Birth-Death Processes Analysis of Single-Station Queuing Systems

More information

Queuing Analysis. Chapter Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall

Queuing Analysis. Chapter Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Queuing Analysis Chapter 13 13-1 Chapter Topics Elements of Waiting Line Analysis The Single-Server Waiting Line System Undefined and Constant Service Times Finite Queue Length Finite Calling Problem The

More information

Queueing Theory. VK Room: M Last updated: October 17, 2013.

Queueing Theory. VK Room: M Last updated: October 17, 2013. Queueing Theory VK Room: M1.30 knightva@cf.ac.uk www.vincent-knight.com Last updated: October 17, 2013. 1 / 63 Overview Description of Queueing Processes The Single Server Markovian Queue Multi Server

More information

5/15/18. Operations Research: An Introduction Hamdy A. Taha. Copyright 2011, 2007 by Pearson Education, Inc. All rights reserved.

5/15/18. Operations Research: An Introduction Hamdy A. Taha. Copyright 2011, 2007 by Pearson Education, Inc. All rights reserved. The objective of queuing analysis is to offer a reasonably satisfactory service to waiting customers. Unlike the other tools of OR, queuing theory is not an optimization technique. Rather, it determines

More information

Data analysis and stochastic modeling

Data analysis and stochastic modeling Data analysis and stochastic modeling Lecture 7 An introduction to queueing theory Guillaume Gravier guillaume.gravier@irisa.fr with a lot of help from Paul Jensen s course http://www.me.utexas.edu/ jensen/ormm/instruction/powerpoint/or_models_09/14_queuing.ppt

More information

Exercises Stochastic Performance Modelling. Hamilton Institute, Summer 2010

Exercises Stochastic Performance Modelling. Hamilton Institute, Summer 2010 Exercises Stochastic Performance Modelling Hamilton Institute, Summer Instruction Exercise Let X be a non-negative random variable with E[X ]

More information

Figure 10.1: Recording when the event E occurs

Figure 10.1: Recording when the event E occurs 10 Poisson Processes Let T R be an interval. A family of random variables {X(t) ; t T} is called a continuous time stochastic process. We often consider T = [0, 1] and T = [0, ). As X(t) is a random variable

More information

Classification of Queuing Models

Classification of Queuing Models Classification of Queuing Models Generally Queuing models may be completely specified in the following symbol form:(a/b/c):(d/e)where a = Probability law for the arrival(or inter arrival)time, b = Probability

More information

BIRTH DEATH PROCESSES AND QUEUEING SYSTEMS

BIRTH DEATH PROCESSES AND QUEUEING SYSTEMS BIRTH DEATH PROCESSES AND QUEUEING SYSTEMS Andrea Bobbio Anno Accademico 999-2000 Queueing Systems 2 Notation for Queueing Systems /λ mean time between arrivals S = /µ ρ = λ/µ N mean service time traffic

More information

Networking = Plumbing. Queueing Analysis: I. Last Lecture. Lecture Outline. Jeremiah Deng. 29 July 2013

Networking = Plumbing. Queueing Analysis: I. Last Lecture. Lecture Outline. Jeremiah Deng. 29 July 2013 Networking = Plumbing TELE302 Lecture 7 Queueing Analysis: I Jeremiah Deng University of Otago 29 July 2013 Jeremiah Deng (University of Otago) TELE302 Lecture 7 29 July 2013 1 / 33 Lecture Outline Jeremiah

More information

Non Markovian Queues (contd.)

Non Markovian Queues (contd.) MODULE 7: RENEWAL PROCESSES 29 Lecture 5 Non Markovian Queues (contd) For the case where the service time is constant, V ar(b) = 0, then the P-K formula for M/D/ queue reduces to L s = ρ + ρ 2 2( ρ) where

More information

Introduction to Queueing Theory

Introduction to Queueing Theory Introduction to Queueing Theory Raj Jain Washington University in Saint Louis Jain@eecs.berkeley.edu or Jain@wustl.edu A Mini-Course offered at UC Berkeley, Sept-Oct 2012 These slides and audio/video recordings

More information

All models are wrong / inaccurate, but some are useful. George Box (Wikipedia). wkc/course/part2.pdf

All models are wrong / inaccurate, but some are useful. George Box (Wikipedia).  wkc/course/part2.pdf PART II (3) Continuous Time Markov Chains : Theory and Examples -Pure Birth Process with Constant Rates -Pure Death Process -More on Birth-and-Death Process -Statistical Equilibrium (4) Introduction to

More information

CDA5530: Performance Models of Computers and Networks. Chapter 4: Elementary Queuing Theory

CDA5530: Performance Models of Computers and Networks. Chapter 4: Elementary Queuing Theory CDA5530: Performance Models of Computers and Networks Chapter 4: Elementary Queuing Theory Definition Queuing system: a buffer (waiting room), service facility (one or more servers) a scheduling policy

More information

Waiting Line Models: Queuing Theory Basics. Metodos Cuantitativos M. En C. Eduardo Bustos Farias 1

Waiting Line Models: Queuing Theory Basics. Metodos Cuantitativos M. En C. Eduardo Bustos Farias 1 Waiting Line Models: Queuing Theory Basics Cuantitativos M. En C. Eduardo Bustos Farias 1 Agenda Queuing system structure Performance measures Components of queuing systems Arrival process Service process

More information

Queueing Theory I Summary! Little s Law! Queueing System Notation! Stationary Analysis of Elementary Queueing Systems " M/M/1 " M/M/m " M/M/1/K "

Queueing Theory I Summary! Little s Law! Queueing System Notation! Stationary Analysis of Elementary Queueing Systems  M/M/1  M/M/m  M/M/1/K Queueing Theory I Summary Little s Law Queueing System Notation Stationary Analysis of Elementary Queueing Systems " M/M/1 " M/M/m " M/M/1/K " Little s Law a(t): the process that counts the number of arrivals

More information

System Simulation Part II: Mathematical and Statistical Models Chapter 5: Statistical Models

System Simulation Part II: Mathematical and Statistical Models Chapter 5: Statistical Models System Simulation Part II: Mathematical and Statistical Models Chapter 5: Statistical Models Fatih Cavdur fatihcavdur@uludag.edu.tr March 20, 2012 Introduction Introduction The world of the model-builder

More information

Queues and Queueing Networks

Queues and Queueing Networks Queues and Queueing Networks Sanjay K. Bose Dept. of EEE, IITG Copyright 2015, Sanjay K. Bose 1 Introduction to Queueing Models and Queueing Analysis Copyright 2015, Sanjay K. Bose 2 Model of a Queue Arrivals

More information

Exponential Distribution and Poisson Process

Exponential Distribution and Poisson Process Exponential Distribution and Poisson Process Stochastic Processes - Lecture Notes Fatih Cavdur to accompany Introduction to Probability Models by Sheldon M. Ross Fall 215 Outline Introduction Exponential

More information

Kendall notation. PASTA theorem Basics of M/M/1 queue

Kendall notation. PASTA theorem Basics of M/M/1 queue Elementary queueing system Kendall notation Little s Law PASTA theorem Basics of M/M/1 queue 1 History of queueing theory An old research area Started in 1909, by Agner Erlang (to model the Copenhagen

More information

Computer Networks More general queuing systems

Computer Networks More general queuing systems Computer Networks More general queuing systems Saad Mneimneh Computer Science Hunter College of CUNY New York M/G/ Introduction We now consider a queuing system where the customer service times have a

More information

Outline. Finite source queue M/M/c//K Queues with impatience (balking, reneging, jockeying, retrial) Transient behavior Advanced Queue.

Outline. Finite source queue M/M/c//K Queues with impatience (balking, reneging, jockeying, retrial) Transient behavior Advanced Queue. Outline Finite source queue M/M/c//K Queues with impatience (balking, reneging, jockeying, retrial) Transient behavior Advanced Queue Batch queue Bulk input queue M [X] /M/1 Bulk service queue M/M [Y]

More information

Continuous Time Processes

Continuous Time Processes page 102 Chapter 7 Continuous Time Processes 7.1 Introduction In a continuous time stochastic process (with discrete state space), a change of state can occur at any time instant. The associated point

More information

Introduction to Queueing Theory

Introduction to Queueing Theory Introduction to Queueing Theory Raj Jain Washington University in Saint Louis Saint Louis, MO 63130 Jain@cse.wustl.edu Audio/Video recordings of this lecture are available at: 30-1 Overview Queueing Notation

More information

Link Models for Circuit Switching

Link Models for Circuit Switching Link Models for Circuit Switching The basis of traffic engineering for telecommunication networks is the Erlang loss function. It basically allows us to determine the amount of telephone traffic that can

More information

Introduction to Queueing Theory

Introduction to Queueing Theory Introduction to Queueing Theory Raj Jain Washington University in Saint Louis Saint Louis, MO 63130 Jain@cse.wustl.edu Audio/Video recordings of this lecture are available at: http://www.cse.wustl.edu/~jain/cse567-11/

More information

Since D has an exponential distribution, E[D] = 0.09 years. Since {A(t) : t 0} is a Poisson process with rate λ = 10, 000, A(0.

Since D has an exponential distribution, E[D] = 0.09 years. Since {A(t) : t 0} is a Poisson process with rate λ = 10, 000, A(0. IEOR 46: Introduction to Operations Research: Stochastic Models Chapters 5-6 in Ross, Thursday, April, 4:5-5:35pm SOLUTIONS to Second Midterm Exam, Spring 9, Open Book: but only the Ross textbook, the

More information

Queuing Theory. 3. Birth-Death Process. Law of Motion Flow balance equations Steady-state probabilities: , if

Queuing Theory. 3. Birth-Death Process. Law of Motion Flow balance equations Steady-state probabilities: , if 1 Queuing Theory 3. Birth-Death Process Law of Motion Flow balance equations Steady-state probabilities: c j = λ 0λ 1...λ j 1 µ 1 µ 2...µ j π 0 = 1 1+ j=1 c j, if j=1 c j is finite. π j = c j π 0 Example

More information

Introduction to queuing theory

Introduction to queuing theory Introduction to queuing theory Queu(e)ing theory Queu(e)ing theory is the branch of mathematics devoted to how objects (packets in a network, people in a bank, processes in a CPU etc etc) join and leave

More information

SYSTEM MODELING AND SIMULATION. Sub Code: 10CS82 IA Marks : 25 Hrs/Week: 04 Exam Hours : 03 Total Hrs : 52 Exam Marks : 100 PART A

SYSTEM MODELING AND SIMULATION. Sub Code: 10CS82 IA Marks : 25 Hrs/Week: 04 Exam Hours : 03 Total Hrs : 52 Exam Marks : 100 PART A SYSTEM MODELING AND SIMULATION Sub Code: 10CS82 IA Marks : 25 Hrs/Week: 04 Exam Hours : 03 Total Hrs : 52 Exam Marks : 100 PART A UNIT 1 8 Hours Introduction: When simulation is the appropriate tool and

More information

Continuous Time Markov Chains

Continuous Time Markov Chains Continuous Time Markov Chains Stochastic Processes - Lecture Notes Fatih Cavdur to accompany Introduction to Probability Models by Sheldon M. Ross Fall 2015 Outline Introduction Continuous-Time Markov

More information

Review of Queuing Models

Review of Queuing Models Review of Queuing Models Recitation, Apr. 1st Guillaume Roels 15.763J Manufacturing System and Supply Chain Design http://michael.toren.net/slides/ipqueue/slide001.html 2005 Guillaume Roels Outline Overview,

More information

Part II: continuous time Markov chain (CTMC)

Part II: continuous time Markov chain (CTMC) Part II: continuous time Markov chain (CTMC) Continuous time discrete state Markov process Definition (Markovian property) X(t) is a CTMC, if for any n and any sequence t 1

More information

SYSTEM MODELLING AND SIMULATION

SYSTEM MODELLING AND SIMULATION SYLLABUS SYSTEM MODELLING AND SIMULATION PART A UNIT 1 8 Hours Introduction: When simulation is the appropriate tool and when it is not appropriate; Advantages and disadvantages of Simulation; Areas of

More information

Introduction to queuing theory

Introduction to queuing theory Introduction to queuing theory Claude Rigault ENST claude.rigault@enst.fr Introduction to Queuing theory 1 Outline The problem The number of clients in a system The client process Delay processes Loss

More information

Glossary availability cellular manufacturing closed queueing network coefficient of variation (CV) conditional probability CONWIP

Glossary availability cellular manufacturing closed queueing network coefficient of variation (CV) conditional probability CONWIP Glossary availability The long-run average fraction of time that the processor is available for processing jobs, denoted by a (p. 113). cellular manufacturing The concept of organizing the factory into

More information

Chapter 1. Introduction. 1.1 Stochastic process

Chapter 1. Introduction. 1.1 Stochastic process Chapter 1 Introduction Process is a phenomenon that takes place in time. In many practical situations, the result of a process at any time may not be certain. Such a process is called a stochastic process.

More information

IOE 202: lectures 11 and 12 outline

IOE 202: lectures 11 and 12 outline IOE 202: lectures 11 and 12 outline Announcements Last time... Queueing models intro Performance characteristics of a queueing system Steady state analysis of an M/M/1 queueing system Other queueing systems,

More information

Introduction to Markov Chains, Queuing Theory, and Network Performance

Introduction to Markov Chains, Queuing Theory, and Network Performance Introduction to Markov Chains, Queuing Theory, and Network Performance Marceau Coupechoux Telecom ParisTech, departement Informatique et Réseaux marceau.coupechoux@telecom-paristech.fr IT.2403 Modélisation

More information

Queueing systems. Renato Lo Cigno. Simulation and Performance Evaluation Queueing systems - Renato Lo Cigno 1

Queueing systems. Renato Lo Cigno. Simulation and Performance Evaluation Queueing systems - Renato Lo Cigno 1 Queueing systems Renato Lo Cigno Simulation and Performance Evaluation 2014-15 Queueing systems - Renato Lo Cigno 1 Queues A Birth-Death process is well modeled by a queue Indeed queues can be used to

More information

The effect of probabilities of departure with time in a bank

The effect of probabilities of departure with time in a bank International Journal of Scientific & Engineering Research, Volume 3, Issue 7, July-2012 The effect of probabilities of departure with time in a bank Kasturi Nirmala, Shahnaz Bathul Abstract This paper

More information

Engineering Mathematics : Probability & Queueing Theory SUBJECT CODE : MA 2262 X find the minimum value of c.

Engineering Mathematics : Probability & Queueing Theory SUBJECT CODE : MA 2262 X find the minimum value of c. SUBJECT NAME : Probability & Queueing Theory SUBJECT CODE : MA 2262 MATERIAL NAME : University Questions MATERIAL CODE : SKMA104 UPDATED ON : May June 2013 Name of the Student: Branch: Unit I (Random Variables)

More information

Lecture 7: Simulation of Markov Processes. Pasi Lassila Department of Communications and Networking

Lecture 7: Simulation of Markov Processes. Pasi Lassila Department of Communications and Networking Lecture 7: Simulation of Markov Processes Pasi Lassila Department of Communications and Networking Contents Markov processes theory recap Elementary queuing models for data networks Simulation of Markov

More information

Statistics 150: Spring 2007

Statistics 150: Spring 2007 Statistics 150: Spring 2007 April 23, 2008 0-1 1 Limiting Probabilities If the discrete-time Markov chain with transition probabilities p ij is irreducible and positive recurrent; then the limiting probabilities

More information

System Simulation Part II: Mathematical and Statistical Models Chapter 5: Statistical Models

System Simulation Part II: Mathematical and Statistical Models Chapter 5: Statistical Models System Simulation Part II: Mathematical and Statistical Models Chapter 5: Statistical Models Fatih Cavdur fatihcavdur@uludag.edu.tr March 29, 2014 Introduction Introduction The world of the model-builder

More information

Queueing Theory and Simulation. Introduction

Queueing Theory and Simulation. Introduction Queueing Theory and Simulation Based on the slides of Dr. Dharma P. Agrawal, University of Cincinnati and Dr. Hiroyuki Ohsaki Graduate School of Information Science & Technology, Osaka University, Japan

More information

M/G/1 and M/G/1/K systems

M/G/1 and M/G/1/K systems M/G/1 and M/G/1/K systems Dmitri A. Moltchanov dmitri.moltchanov@tut.fi http://www.cs.tut.fi/kurssit/elt-53606/ OUTLINE: Description of M/G/1 system; Methods of analysis; Residual life approach; Imbedded

More information

Stochastic Models of Manufacturing Systems

Stochastic Models of Manufacturing Systems Stochastic Models of Manufacturing Systems Ivo Adan Systems 2/49 Continuous systems State changes continuously in time (e.g., in chemical applications) Discrete systems State is observed at fixed regular

More information

IEOR 6711, HMWK 5, Professor Sigman

IEOR 6711, HMWK 5, Professor Sigman IEOR 6711, HMWK 5, Professor Sigman 1. Semi-Markov processes: Consider an irreducible positive recurrent discrete-time Markov chain {X n } with transition matrix P (P i,j ), i, j S, and finite state space.

More information

Class 11 Non-Parametric Models of a Service System; GI/GI/1, GI/GI/n: Exact & Approximate Analysis.

Class 11 Non-Parametric Models of a Service System; GI/GI/1, GI/GI/n: Exact & Approximate Analysis. Service Engineering Class 11 Non-Parametric Models of a Service System; GI/GI/1, GI/GI/n: Exact & Approximate Analysis. G/G/1 Queue: Virtual Waiting Time (Unfinished Work). GI/GI/1: Lindley s Equations

More information

2905 Queueing Theory and Simulation PART IV: SIMULATION

2905 Queueing Theory and Simulation PART IV: SIMULATION 2905 Queueing Theory and Simulation PART IV: SIMULATION 22 Random Numbers A fundamental step in a simulation study is the generation of random numbers, where a random number represents the value of a random

More information

Chapter 2 Queueing Theory and Simulation

Chapter 2 Queueing Theory and Simulation Chapter 2 Queueing Theory and Simulation Based on the slides of Dr. Dharma P. Agrawal, University of Cincinnati and Dr. Hiroyuki Ohsaki Graduate School of Information Science & Technology, Osaka University,

More information

The exponential distribution and the Poisson process

The exponential distribution and the Poisson process The exponential distribution and the Poisson process 1-1 Exponential Distribution: Basic Facts PDF f(t) = { λe λt, t 0 0, t < 0 CDF Pr{T t) = 0 t λe λu du = 1 e λt (t 0) Mean E[T] = 1 λ Variance Var[T]

More information

Chapter 10. Queuing Systems. D (Queuing Theory) Queuing theory is the branch of operations research concerned with waiting lines.

Chapter 10. Queuing Systems. D (Queuing Theory) Queuing theory is the branch of operations research concerned with waiting lines. Chapter 10 Queuing Systems D. 10. 1. (Queuing Theory) Queuing theory is the branch of operations research concerned with waiting lines. D. 10.. (Queuing System) A ueuing system consists of 1. a user source.

More information

Simple queueing models

Simple queueing models Simple queueing models c University of Bristol, 2012 1 M/M/1 queue This model describes a queue with a single server which serves customers in the order in which they arrive. Customer arrivals constitute

More information

GI/M/1 and GI/M/m queuing systems

GI/M/1 and GI/M/m queuing systems GI/M/1 and GI/M/m queuing systems Dmitri A. Moltchanov moltchan@cs.tut.fi http://www.cs.tut.fi/kurssit/tlt-2716/ OUTLINE: GI/M/1 queuing system; Methods of analysis; Imbedded Markov chain approach; Waiting

More information

Lecture 20: Reversible Processes and Queues

Lecture 20: Reversible Processes and Queues Lecture 20: Reversible Processes and Queues 1 Examples of reversible processes 11 Birth-death processes We define two non-negative sequences birth and death rates denoted by {λ n : n N 0 } and {µ n : n

More information

Queueing Systems: Lecture 3. Amedeo R. Odoni October 18, Announcements

Queueing Systems: Lecture 3. Amedeo R. Odoni October 18, Announcements Queueing Systems: Lecture 3 Amedeo R. Odoni October 18, 006 Announcements PS #3 due tomorrow by 3 PM Office hours Odoni: Wed, 10/18, :30-4:30; next week: Tue, 10/4 Quiz #1: October 5, open book, in class;

More information

Queueing. Chapter Continuous Time Markov Chains 2 CHAPTER 5. QUEUEING

Queueing. Chapter Continuous Time Markov Chains 2 CHAPTER 5. QUEUEING 2 CHAPTER 5. QUEUEING Chapter 5 Queueing Systems are often modeled by automata, and discrete events are transitions from one state to another. In this chapter we want to analyze such discrete events systems.

More information

Solutions to Homework Discrete Stochastic Processes MIT, Spring 2011

Solutions to Homework Discrete Stochastic Processes MIT, Spring 2011 Exercise 6.5: Solutions to Homework 0 6.262 Discrete Stochastic Processes MIT, Spring 20 Consider the Markov process illustrated below. The transitions are labelled by the rate q ij at which those transitions

More information

INDEX. production, see Applications, manufacturing

INDEX. production, see Applications, manufacturing INDEX Absorbing barriers, 103 Ample service, see Service, ample Analyticity, of generating functions, 100, 127 Anderson Darling (AD) test, 411 Aperiodic state, 37 Applications, 2, 3 aircraft, 3 airline

More information

10.2 For the system in 10.1, find the following statistics for population 1 and 2. For populations 2, find: Lq, Ls, L, Wq, Ws, W, Wq 0 and SL.

10.2 For the system in 10.1, find the following statistics for population 1 and 2. For populations 2, find: Lq, Ls, L, Wq, Ws, W, Wq 0 and SL. Bibliography Asmussen, S. (2003). Applied probability and queues (2nd ed). New York: Springer. Baccelli, F., & Bremaud, P. (2003). Elements of queueing theory: Palm martingale calculus and stochastic recurrences

More information

ISyE 2030 Practice Test 2

ISyE 2030 Practice Test 2 1 NAME ISyE 2030 Practice Test 2 Summer 2005 This test is open notes, open books. You have exactly 75 minutes. 1. Short-Answer Questions (a) TRUE or FALSE? If arrivals occur according to a Poisson process

More information

Classical Queueing Models.

Classical Queueing Models. Sergey Zeltyn January 2005 STAT 99. Service Engineering. The Wharton School. University of Pennsylvania. Based on: Classical Queueing Models. Mandelbaum A. Service Engineering course, Technion. http://iew3.technion.ac.il/serveng2005w

More information

Advanced Computer Networks Lecture 3. Models of Queuing

Advanced Computer Networks Lecture 3. Models of Queuing Advanced Computer Networks Lecture 3. Models of Queuing Husheng Li Min Kao Department of Electrical Engineering and Computer Science University of Tennessee, Knoxville Spring, 2016 1/13 Terminology of

More information

57:022 Principles of Design II Final Exam Solutions - Spring 1997

57:022 Principles of Design II Final Exam Solutions - Spring 1997 57:022 Principles of Design II Final Exam Solutions - Spring 1997 Part: I II III IV V VI Total Possible Pts: 52 10 12 16 13 12 115 PART ONE Indicate "+" if True and "o" if False: + a. If a component's

More information

SOLUTIONS IEOR 3106: Second Midterm Exam, Chapters 5-6, November 8, 2012

SOLUTIONS IEOR 3106: Second Midterm Exam, Chapters 5-6, November 8, 2012 SOLUTIONS IEOR 3106: Second Midterm Exam, Chapters 5-6, November 8, 2012 This exam is closed book. YOU NEED TO SHOW YOUR WORK. Honor Code: Students are expected to behave honorably, following the accepted

More information

The University of British Columbia Computer Science 405 Practice Midterm Solutions

The University of British Columbia Computer Science 405 Practice Midterm Solutions The University of British Columbia Computer Science 405 Practice Midterm Solutions Instructor: Kees van den Doel Time: 45 mins Total marks: 100 The solutions provided here are much more verbose than what

More information

Sandwich shop : a queuing net work with finite disposable resources queue and infinite resources queue

Sandwich shop : a queuing net work with finite disposable resources queue and infinite resources queue Sandwich shop : a queuing net work with finite disposable resources queue and infinite resources queue Final project for ISYE 680: Queuing systems and Applications Hongtan Sun May 5, 05 Introduction As

More information

Name of the Student:

Name of the Student: SUBJECT NAME : Probability & Queueing Theory SUBJECT CODE : MA 6453 MATERIAL NAME : Part A questions REGULATION : R2013 UPDATED ON : November 2017 (Upto N/D 2017 QP) (Scan the above QR code for the direct

More information

Introduction to Queuing Theory. Mathematical Modelling

Introduction to Queuing Theory. Mathematical Modelling Queuing Theory, COMPSCI 742 S2C, 2014 p. 1/23 Introduction to Queuing Theory and Mathematical Modelling Computer Science 742 S2C, 2014 Nevil Brownlee, with acknowledgements to Peter Fenwick, Ulrich Speidel

More information

COMP9334 Capacity Planning for Computer Systems and Networks

COMP9334 Capacity Planning for Computer Systems and Networks COMP9334 Capacity Planning for Computer Systems and Networks Week 2: Operational Analysis and Workload Characterisation COMP9334 1 Last lecture Modelling of computer systems using Queueing Networks Open

More information

Queuing Theory. Using the Math. Management Science

Queuing Theory. Using the Math. Management Science Queuing Theory Using the Math 1 Markov Processes (Chains) A process consisting of a countable sequence of stages, that can be judged at each stage to fall into future states independent of how the process

More information

Chapter 5: Special Types of Queuing Models

Chapter 5: Special Types of Queuing Models Chapter 5: Special Types of Queuing Models Some General Queueing Models Discouraged Arrivals Impatient Arrivals Bulk Service and Bulk Arrivals OR37-Dr.Khalid Al-Nowibet 1 5.1 General Queueing Models 1.

More information

Exercises Solutions. Automation IEA, LTH. Chapter 2 Manufacturing and process systems. Chapter 5 Discrete manufacturing problems

Exercises Solutions. Automation IEA, LTH. Chapter 2 Manufacturing and process systems. Chapter 5 Discrete manufacturing problems Exercises Solutions Note, that we have not formulated the answers for all the review questions. You will find the answers for many questions by reading and reflecting about the text in the book. Chapter

More information

Name of the Student: Problems on Discrete & Continuous R.Vs

Name of the Student: Problems on Discrete & Continuous R.Vs SUBJECT NAME : Probability & Queueing Theory SUBJECT CODE : MA 6453 MATERIAL NAME : Additional Problems MATERIAL CODE : JM08AM1004 REGULATION : R2013 UPDATED ON : March 2015 (Scan the above Q.R code for

More information

Section 1.2: A Single Server Queue

Section 1.2: A Single Server Queue Section 12: A Single Server Queue Discrete-Event Simulation: A First Course c 2006 Pearson Ed, Inc 0-13-142917-5 Discrete-Event Simulation: A First Course Section 12: A Single Server Queue 1/ 30 Section

More information

Performance Modelling of Computer Systems

Performance Modelling of Computer Systems Performance Modelling of Computer Systems Mirco Tribastone Institut für Informatik Ludwig-Maximilians-Universität München Fundamentals of Queueing Theory Tribastone (IFI LMU) Performance Modelling of Computer

More information

Probability and Statistics Concepts

Probability and Statistics Concepts University of Central Florida Computer Science Division COT 5611 - Operating Systems. Spring 014 - dcm Probability and Statistics Concepts Random Variable: a rule that assigns a numerical value to each

More information

Part I Stochastic variables and Markov chains

Part I Stochastic variables and Markov chains Part I Stochastic variables and Markov chains Random variables describe the behaviour of a phenomenon independent of any specific sample space Distribution function (cdf, cumulative distribution function)

More information

YORK UNIVERSITY FACULTY OF ARTS DEPARTMENT OF MATHEMATICS AND STATISTICS MATH , YEAR APPLIED OPTIMIZATION (TEST #4 ) (SOLUTIONS)

YORK UNIVERSITY FACULTY OF ARTS DEPARTMENT OF MATHEMATICS AND STATISTICS MATH , YEAR APPLIED OPTIMIZATION (TEST #4 ) (SOLUTIONS) YORK UNIVERSITY FACULTY OF ARTS DEPARTMENT OF MATHEMATICS AND STATISTICS Instructor : Dr. Igor Poliakov MATH 4570 6.0, YEAR 2006-07 APPLIED OPTIMIZATION (TEST #4 ) (SOLUTIONS) March 29, 2007 Name (print)

More information

Elementary queueing system

Elementary queueing system Elementary queueing system Kendall notation Little s Law PASTA theorem Basics of M/M/1 queue M/M/1 with preemptive-resume priority M/M/1 with non-preemptive priority 1 History of queueing theory An old

More information

EE 368. Weeks 3 (Notes)

EE 368. Weeks 3 (Notes) EE 368 Weeks 3 (Notes) 1 State of a Queuing System State: Set of parameters that describe the condition of the system at a point in time. Why do we need it? Average size of Queue Average waiting time How

More information

P (L d k = n). P (L(t) = n),

P (L d k = n). P (L(t) = n), 4 M/G/1 queue In the M/G/1 queue customers arrive according to a Poisson process with rate λ and they are treated in order of arrival The service times are independent and identically distributed with

More information

Solutions to COMP9334 Week 8 Sample Problems

Solutions to COMP9334 Week 8 Sample Problems Solutions to COMP9334 Week 8 Sample Problems Problem 1: Customers arrive at a grocery store s checkout counter according to a Poisson process with rate 1 per minute. Each customer carries a number of items

More information

Chapter 2. Poisson Processes. Prof. Shun-Ren Yang Department of Computer Science, National Tsing Hua University, Taiwan

Chapter 2. Poisson Processes. Prof. Shun-Ren Yang Department of Computer Science, National Tsing Hua University, Taiwan Chapter 2. Poisson Processes Prof. Shun-Ren Yang Department of Computer Science, National Tsing Hua University, Taiwan Outline Introduction to Poisson Processes Definition of arrival process Definition

More information

4.7 Finite Population Source Model

4.7 Finite Population Source Model Characteristics 1. Arrival Process R independent Source All sources are identical Interarrival time is exponential with rate for each source No arrivals if all sources are in the system. OR372-Dr.Khalid

More information

6 Solving Queueing Models

6 Solving Queueing Models 6 Solving Queueing Models 6.1 Introduction In this note we look at the solution of systems of queues, starting with simple isolated queues. The benefits of using predefined, easily classified queues will

More information

Renewal theory and its applications

Renewal theory and its applications Renewal theory and its applications Stella Kapodistria and Jacques Resing September 11th, 212 ISP Definition of a Renewal process Renewal theory and its applications If we substitute the Exponentially

More information

Introduction to Queuing Networks Solutions to Problem Sheet 3

Introduction to Queuing Networks Solutions to Problem Sheet 3 Introduction to Queuing Networks Solutions to Problem Sheet 3 1. (a) The state space is the whole numbers {, 1, 2,...}. The transition rates are q i,i+1 λ for all i and q i, for all i 1 since, when a bus

More information