Time-dependent queue modelling

Slides:



Advertisements
Similar presentations
Simulating Single server queuing models. Consider the following sequence of activities that each customer undergoes: 1.Customer arrives 2.Customer waits.
Advertisements

Lecture 6  Calculating P n – how do we raise a matrix to the n th power?  Ergodicity in Markov Chains.  When does a chain have equilibrium probabilities?
Copyright © 2005 Department of Computer Science CPSC 641 Winter PERFORMANCE EVALUATION Often in Computer Science you need to: – demonstrate that.
 1  Outline  Model  problem statement  detailed ARENA model  model technique  Output Analysis.
Discrete Time Markov Chains
TCOM 501: Networking Theory & Fundamentals
G12: Management Science Markov Chains.
Lecture 13 – Continuous-Time Markov Chains
Nur Aini Masruroh Queuing Theory. Outlines IntroductionBirth-death processSingle server modelMulti server model.
1 PERFORMANCE EVALUATION H Often in Computer Science you need to: – demonstrate that a new concept, technique, or algorithm is feasible –demonstrate that.
1 TCOM 501: Networking Theory & Fundamentals Lectures 9 & 10 M/G/1 Queue Prof. Yannis A. Korilis.
Queuing Networks: Burke’s Theorem, Kleinrock’s Approximation, and Jackson’s Theorem Wade Trappe.
Fundamental Characteristics of Queues with Fluctuating Load (appeared in SIGMETRICS 2006) VARUN GUPTA Joint with: Mor Harchol-Balter Carnegie Mellon Univ.
Queuing Models and Capacity Planning
Copyright warning. COMP5348 Lecture 6: Predicting Performance Adapted with permission from presentations by Alan Fekete.
Queueing Network Approach to the Analysis of Healthcare Systems H. Xie, T.J. Chaussalet and P.H. Millard Health and Social Care Modelling Group (HSCMG)
1 1 Slide © 2001 South-Western College Publishing/Thomson Learning Anderson Sweeney Williams Anderson Sweeney Williams Slides Prepared by JOHN LOUCKS QUANTITATIVE.
Finite Element Method.
Stochastic Processes A stochastic process is a model that evolves in time or space subject to probabilistic laws. The simplest example is the one-dimensional.
NETE4631:Capacity Planning (2)- Lecture 10 Suronapee Phoomvuthisarn, Ph.D. /
Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University, Chinese academy of Sciences. Network Design and Analysis Wang.
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.
Modeling and Simulation Queuing theory
Markov Chains X(t) is a Markov Process if, for arbitrary times t1 < t2 < < tk < tk+1 If X(t) is discrete-valued If X(t) is continuous-valued i.e.
ECE 466/658: Performance Evaluation and Simulation Introduction Instructor: Christos Panayiotou.
Simulation & Confidence Intervals COMP5416 Advanced Network Technologies.
1 Markov chains and processes: motivations Random walk One-dimensional walk You can only move one step right or left every time unit Two-dimensional walk.
The M/M/ N / N Queue etc COMP5416 Advanced Network Technologies.
NETE4631: Network Information System Capacity Planning (2) Suronapee Phoomvuthisarn, Ph.D. /
Queuing Theory.  Queuing Theory deals with systems of the following type:  Typically we are interested in how much queuing occurs or in the delays at.
Basic Queuing Insights Nico M. van Dijk “Why queuing never vanishes” European Journal of Operational Research 99 (1997)
QUEUING. CONTINUOUS TIME MARKOV CHAINS {X(t), t >= 0} is a continuous time process with > sojourn times S 0, S 1, S 2,... > embedded process X n = X(S.
Simulation. Types of simulation Discrete-event simulation – Used for modeling of a system as it evolves over time by a representation in which the state.
Queueing Theory II.
Variance reduction techniques Mat Simulation
Computer Simulation Henry C. Co Technology and Operations Management,
OPERATING SYSTEMS CS 3502 Fall 2017
Performance Eval Slides originally from Williamson at Calgary
Courtesy of J. Bard, L. Page, and J. Heyl
Industrial Engineering Dep
Much More About Markov Chains
Simulation Department of Industrial Engineering Anadolu University
Queuing Theory Non-Markov Systems
DTMC Applications Ranking Web Pages & Slotted ALOHA
Chapter 9: Queuing Models
Lecture on Markov Chain
Finite M/M/1 queue Consider an M/M/1 queue with finite waiting room.
Birth-Death Process Birth – arrival of a customer to the system
Our favorite simple stochastic process.
System Performance: Queuing
DECISION MODELING WITH Prentice Hall Publishers and
Computer Systems Performance Evaluation
Discrete-time markov chain (continuation)
COMP60611 Fundamentals of Parallel and Distributed Systems
Queueing Theory II.
Hidden Markov Models (HMMs)
Introduction to Queueing Theory
Queueing networks.
September 1, 2010 Dr. Itamar Arel College of Engineering
Lecture 18 Syed Mansoor Sarwar
COMP60621 Designing for Parallelism
Location models for airline hubs behaving as M/D/c queues
Computer Systems Performance Evaluation
An Accident and Emergency Case Study
Stochastic Processes A stochastic process is a model that evolves in time or space subject to probabilistic laws. The simplest example is the one-dimensional.
Where real stuff starts
Erlang, Hyper-exponential, and Coxian distributions
Kendall’s Notation ❚ Simple way of summarizing the characteristics of a queue. Arrival characteristics / Departure characteristics / Number of servers.
CS723 - Probability and Stochastic Processes
Presentation transcript:

Time-dependent queue modelling Dave Worthington Management Science Dept. Lancaster University d.worthington@lancaster.ac.uk

Time-dependent queue modelling -Outline Motivation What is time-dependent behaviour? Analytic methods Discrete time modelling (DTM) approach DTM-based task

Motivation Many real-life queueing problems exhibit time-dependent behaviour. Steady-state models can be very misleading Simulation is always an option, but can be time-consuming, difficult to use analytically, and lacking in insights. Some analytic queue modelling approaches for time-dependent behaviour, and some insights.

What is time-dependent behaviour? Transient ‘Fully’ time-dependent

A classic analytic approach: Chapman-Kolmogorov equ’ns for M(t)/M(t)/c system

Analytic Approaches 0: Numerical solution of C-K equations 1: Newell’s Graphical approach 2: Simple Stationary Approximation (SSA) 3: Pointwise Stationary Approximation (PSA) 4: M(t)/G/∞ system 5: Network of M(t)/G/∞ systems 6: Discrete Time Modelling (DTM) Approx.

1: Newell’s Graphical approach If arrivals exceed service capacity, ignore random variation and approximate using ‘business flow process’ approach (i.e. Newell’s Graphical approach). This approach can also be used for networks of queues.

Newell’s Graphical Method (‘Business Flow’ Approach) E[cumulative arrivals] Predicted no. of customers in system at time t No. of customers E[cumulative departures] n Predicted time in system for customer n time t

Newell’s method can be applied to ‘Business Flows’ A ‘complicated’ queueing network …. …. is represented by a simplified input/output process

2: Simple Stationary Approximation (SSA)

3: Pointwise Stationary Approximation (PSA)

SSA v PSA

SSA v PSA v Correct

4A: M(t)/G/∞ system Can be analysed exactly! Number in system N(t) has a time-dependent Poisson distribution with mean E[N(t)] given by: where l(u) is the arrival rate at time u and FC(t-u) = prob(service time > t-u) And by working in discrete time (e.g. round to nearest hour/minute/.....) ..........................

4B: M(t)/GD/∞ system And by working in discrete time (e.g. round to nearest hour/minute/...) ............ this is easy to evaluate in a spreadsheet, i.e.: Number in system N(t) has a time-dependent Poisson distribution with mean E[N(t)] given by: Where: E[A(i) ] is average arrivals in time interval i and: FC(t-i) = prob(service time >= t-i)

5: Network of M(t)/G/∞ systems Can also be analysed exactly! Number in system at node k has a time-dependent Poisson distribution with mean E[Nk(t)] calculated using the same logic as for single node M(t)/G/∞ system. For example: l2(t) l1(t) N1(t) N2(t) (r1) E[N2(t)]= E[N1(t) +N2(t)]- E[N1(t)] where E[N1(t)]= …….. and

6: Discrete Time Modelling (DTM) Origins of Discrete Time Modelling Meisling (1958), Operations Research; Dafermos & Neuts (1971), Cahiers du Centre Recherche Operationnelle; Neuts (1973), NRLQ; Alfa (1990s).

Formulate as a Finite Markov Chain: e.g.: M/D2/1 Transition matrix Pt e.g.: 1:1 to 1:2 if one arrival and new service time=2 States: {[0]&[n:i]} where n= no in sys, i= residual service time (rounded up);. Service time = 1 or 2 with probs = s1, s2. State at time (t+1) 1:1 1:2 2:1 2:2 Etc State at time t: a0 a1s1 a1s2 a2s1 a2s2 … a1 a0s1 a0s2 etc Arrivals in unit time = 0, 1, 2, …. with probs a0, a1, a2, .. e.g. for random arrivals rate l,

Markov Chain ‘solution’ for M(t)/GD/c systems: Let P t be the vector of probabilities at time t, then: P t= P t-1 P (applied numerically & iteratively) gives probability distr’n of states after t time steps, when transition matrix P does not change with t; (in this case steady-state may exist as well). and P t= P t-1 Pt (applied numerically & iteratively) gives probability distr’n of states after t time steps, when transition matrix Pt changes with t.

BUT: Dimensional Challenge No. of states = E.g. When c=4 (servers), L=30 (max no. in system) and m=10 (no. of values taken by service time) Transition matrix will be 19,591 x 19,591! Whereas when c=4, L=30 and m=3 Transition matrix will be 425 x 425 Can we reduce m whilst maintaining the accuracy of the discrete time model?

Well-known Pollaczek-Khintchine result for M/G/1 queues INSIGHTS: For given l, mean service time (1/m) has 1st order effect; And Var(st) has 2nd order effect. Maybe higher moments of service time can be ignored. Where: l= arrival rate; 1/m = mean service time; Var(st) = variance of service time.

3 equations in (m+1) unknowns Select discrete time distribution by Matching mean and variance of actual service times discrete distribution which takes the values v, 2v, .....mv with probabilities p1, p2, .....pm is chosen to match the mean 1/m and variance Var(S) by solving: 3 equations in (m+1) unknowns

e.g. Two discrete service time distributions which match in the first two moments.

Time-dependent behaviour of two M(t)/G/4 queues whose service times match in the first two moments

‘Correct’= Discrete time modelling (DTM)

DTM Results The Finite Capacity Multi-Server Queue with Inhomogeneous Arrival Rate and Discrete Service Time Distribution: and its Application to Continuous Service Time Problems - European Journal of Operational Research, 1991, vol 50, pp 310-324 Queueing Models for Out-patient Appointment Systems: a Case Study - Journal of the Operational Research Society, 1991, vol 42, pp 733-746 Practical Methods for Queue Length Behaviour for Bulk Service Queues of the form M/Go,c/1 and M(t)/Go,c/1, European Journal of Operational Research, 1994, Vol. 74, pp 103-113 Using Discrete Distributions to Approximate General Service Time Distributions in Queueing Models, Journal of Operational Research Society, 1994, vol 45, pp 1398-1404 Using the Discrete Time Modelling Approach to Evaluate The Time-Dependent Behaviour of Queueing Systems, Journal of Operational Research Society, 1999, 50(8), pp777-788. A New Model for Call Centre Queue Management, Journal of Operational Research Society, 2004, Vol 55, pp1352-1357 Time-Dependent Analysis of Virtual Waiting Time Behaviour in Discrete Time Queues, European Journal of Operational Research, 2007, vol 178, pp482-499

DTM Software DTM software has been developed to solve the M(t)/G/S(t) to sufficient accuracy for most/all practical problems. Basis of method is to approximate service time distribution with an ‘equivalent’ discrete distribution; Method has computational constraints, but they continue to recede.

Queue Modelling Task: The Scenario NHS Direct is a 24-hour telephone helpline which members of the public can call for advice from specially trained health advisors for advice about health problems and their treatment .............. ............................... Use the DTM queue modelling software (instructions attached) to answer the following questions ....................

Running DTM 1. Decide on suitable time unit 2. Prepare: 3. Prepare: Filenam1.DAT by editing ES.DAT in Notepad 3. Prepare: Filenam2.SER by running front end of DTM.EXE 3 cont’d. Run: DTM.EXE 4. Output 1: Filenam1.QLS (Queue Length Stats) Open & analyse in Excel ?. Output 2: Filenam1.SUS (Server Utilisation Stats) Open & analyse in Excel

e.g. mean no. in queue at each time Filenam1.QLS in Excel e.g. mean no. in queue at each time