A differential equation model for multi-class, multi-server queue - - PowerPoint PPT Presentation

a differential equation model for multi class multi
SMART_READER_LITE
LIVE PREVIEW

A differential equation model for multi-class, multi-server queue - - PowerPoint PPT Presentation

SANUM Conference March 2016 A differential equation model for multi-class, multi-server queue networks with time dependent parameters. Emma Gibson Prof SE Visagie Operations Research Division, Department of Logistics, Stellenbosch University


slide-1
SLIDE 1

SANUM Conference March 2016

A differential equation model for multi-class, multi-server queue networks with time dependent parameters.

Emma Gibson Prof SE Visagie

Operations Research Division, Department of Logistics, Stellenbosch University

slide-2
SLIDE 2

Table of contents

2/33

1

Introduction

2

Model

3

Queueing theory

4

DE model

5

Results

6

Conclusion

slide-3
SLIDE 3

Introduction Model Queueing theory DE model Results Conclusion References

Zithulele Hospital

3/33

slide-4
SLIDE 4

Introduction Model Queueing theory DE model Results Conclusion References

Zithulele Hospital

4/33

slide-5
SLIDE 5

Introduction Model Queueing theory DE model Results Conclusion References

Hospital services

5/33

Zithulele Hospital

Clinics

Doctors Nutrition Dental Education Optometry

Zithulele Hospital

In-patients

Maternity Surgical Paediatrics TB

Clinics

Doctors Nutrition Dental Education Optometry

Zithulele Hospital

Casualty

Fractures Burns Minor surgery

In-patients

Maternity Surgical Paediatrics TB

Clinics

Doctors Nutrition Dental Education Optometry

Zithulele Hospital

Out- patients

Doctors Dispensary Therapy Blood tests X-rays

Casualty

Fractures Burns Minor surgery

In-patients

Maternity Surgical Paediatrics TB

Clinics

Doctors Nutrition Dental Education Optometry

slide-6
SLIDE 6

Introduction Model Queueing theory DE model Results Conclusion References

Aims

6/33

Minimise patient waiting times

slide-7
SLIDE 7

Introduction Model Queueing theory DE model Results Conclusion References

Aims

6/33

Minimise patient waiting times

  • 1. Understand the queueing process:

Detailed model Data

slide-8
SLIDE 8

Introduction Model Queueing theory DE model Results Conclusion References

Aims

6/33

Minimise patient waiting times

  • 1. Understand the queueing process:

Detailed model Data

  • 2. Make practical decisions:

Ongoing feedback Accessible with matric maths

slide-9
SLIDE 9

Introduction Model Queueing theory DE model Results Conclusion References

General model

7/33

Patient profiles

Respiratory infections Maternity Certificates Fractures Burns MVA ARV TB Diabetes

Processes

Clerk Vitals Triage Blood tests Xrays Doctor Pharmacy Dentist Therapy

Interaction

slide-10
SLIDE 10

Introduction Model Queueing theory DE model Results Conclusion References

Queueing theory

8/33

Vitals Clerk Triage Blood X-rays Doctor Pharmacy

slide-11
SLIDE 11

Introduction Model Queueing theory DE model Results Conclusion References

Queueing theory

9/33

qi: number of patients in the ith queue R: routing matrix

2 1 3 4 5 6 7

R1,2 R2,3 R3,4 R2,4 R5,6 R3,5 R3,6 R6,7 R4,6

slide-12
SLIDE 12

Introduction Model Queueing theory DE model Results Conclusion References

Queueing theory

10/33

λi: arrival rate µi: service rate

qi

λi µi

slide-13
SLIDE 13

Introduction Model Queueing theory DE model Results Conclusion References

Patient profiles

11/33

λp

i : arrival rate for profile p

µp

i : service rate for profile p

q1

i

. . . qm

i λ1

i

µ1

i

. . . . . . λm

i

µm

i

slide-14
SLIDE 14

Introduction Model Queueing theory DE model Results Conclusion References

Problems

12/33

Multi-class queues (Kelly network) Non-stationary arrival rates λp

i (t)

Time-dependent servers si(t) ∈ N0 Transient queues - variation in traffic intensity Large state space

slide-15
SLIDE 15

Introduction Model Queueing theory DE model Results Conclusion References

Fluid approximations

13/33

Deterministic model for expected queue length First-order DE’s Approximate discrete queues with continuous functions Represent arrivals/exits with continuous (mean) flows

slide-16
SLIDE 16

Introduction Model Queueing theory DE model Results Conclusion References

Equations

14/33

qi(t) =

m

  • p=1

qp

i (t)

dqp

i

dt = λp

i (t) − µp i (t)

slide-17
SLIDE 17

Introduction Model Queueing theory DE model Results Conclusion References

Arrival rate

15/33

λp

i (t) = αp i (t) + n

  • j=1

Rp

j,iµp j (t)

αp

i : external arrival rate for profile p

Rp

j,i: probability of moving from process j → i

qp

i

λp

i

µp

i

Rp

1,iµp 1

. . .

Rp

j,pµp j

. . .

Rp

n,iµp n

αp

i

slide-18
SLIDE 18

Introduction Model Queueing theory DE model Results Conclusion References

Traffic intensity

16/33

ρi(t) = m

p=1 λp i (t)τ p i

si(t) τ p

i : minutes to treat patient type p at process i

si(t): staff on duty at process i Case 1: no backlog ρi(t) ≤ 1 and m

p=1 qp i (t) = 0

Case 2: backlog ρi(t) > 1

  • r

m

p=1 qp i (t) > 0

slide-19
SLIDE 19

Introduction Model Queueing theory DE model Results Conclusion References

State function

17/33

φi(t) =

  • 1

m

p=1 λp i (t)τ p i ≤ si(t)

&& qi(t) = 0

  • therwise
slide-20
SLIDE 20

Introduction Model Queueing theory DE model Results Conclusion References

Service rate: no backlog

18/33

Patients are treated on arrival: µp

i (t) = λp i (t)

slide-21
SLIDE 21

Introduction Model Queueing theory DE model Results Conclusion References

Service rate: backlog

19/33

New arrivals join the queue. Staff must divide their time between different patient profiles: µp

i (t) = βp i (t)si(t)

τ p

i

slide-22
SLIDE 22

Introduction Model Queueing theory DE model Results Conclusion References

Service rate: backlog

19/33

New arrivals join the queue. Staff must divide their time between different patient profiles: µp

i (t) = βp i (t)si(t)

τ p

i

Weights βp

i are proportional to the number of patients and their

treatment needs: βp

i (t) = ci(t)qp i (t)τ p i

slide-23
SLIDE 23

Introduction Model Queueing theory DE model Results Conclusion References

Service rate: backlog

19/33

New arrivals join the queue. Staff must divide their time between different patient profiles: µp

i (t) = βp i (t)si(t)

τ p

i

Weights βp

i are proportional to the number of patients and their

treatment needs: βp

i (t) = ci(t)qp i (t)τ p i

ci(t) = 1 m

p=1 qp i (t)τ p i

slide-24
SLIDE 24

Introduction Model Queueing theory DE model Results Conclusion References

Service rate

20/33

µp

i (t) = φiλp i (t) + (1 − φi)

si(t)qp

i (t)

m

k=1 qk i (t)τ k i + φi

φi(t) =

  • 1

m

p=1 λp i (t)τ p i ≤ si(t)

&& qi(t) = 0

  • therwise.
slide-25
SLIDE 25

Introduction Model Queueing theory DE model Results Conclusion References

Initial DE model

21/33

dqp

i

dt = λp

i (t) − µp i (t)

λp

i (t)

= αp

i (t) + n j=1 Rp j,iµp j (t)

µp

i (t)

= φiλp

i (t) + (1 − φi)

si(t)qp

i (t)

m

k=1 qk i (t)τ k i + φi

φi(t) =

  • 1

m

p=1 λp i (t)τ p i ≤ si(t)

&& qi(t) = 0

  • therwise.
slide-26
SLIDE 26

Introduction Model Queueing theory DE model Results Conclusion References

Initial DE model

22/33

Unknown functions: qp

i , λp i , µp i , φi

Function Units Equation qp

i

Patients Differential λp

i

Patients/time Algebraic µp

i

Patients/time Algebraic φi Binary Algebraic

slide-27
SLIDE 27

Introduction Model Queueing theory DE model Results Conclusion References

Substitutions

23/33

λp

i (t) =dΛp i

dt Λp

i (t) =

t λp

i (x)dx

µp

i (t) =dUp i

dt Up

i (t) =

t µp

i (x)dx

slide-28
SLIDE 28

Introduction Model Queueing theory DE model Results Conclusion References

Substitutions

24/33

dqp

i

dt = dΛp

i

dt − dUp

i

dt dΛp

i

dt = αp

i (t) + n j=1 Rp j,i

dUp

i

dt dUp

i

dt = φi

  • αp

i (t) + n j=1 Rp j,i

dUp

j

dt

  • + (1 − φi)

si(t)qp

i (t)

m

k=1 qk i (t)τ k i + φi

φi(t) =    1 m

k=p

dΛp

i

dt τ p

i ≤ si(t)

&& qi(t) = 0

  • therwise.
slide-29
SLIDE 29

Introduction Model Queueing theory DE model Results Conclusion References

Substitutions

25/33

qp

i (t) =

Λp

i (t) − Up i (t)

Λp

i (t) =

Ap

i (t) + n j=1 Rp j,iUp i (t)

slide-30
SLIDE 30

Introduction Model Queueing theory DE model Results Conclusion References

Substitutions

26/33

dUp

i

dt = φi

  • αp

i (t) + n j=1 Rp j,i

dUp

j

dt

  • + (1 − φi)

si(t)qp

i (t)

m

k=1 qk i (t)τ k i + φi

φi(t) =    1 m

p=1

dΛp

i

dt τi(t) ≤ si(t) && qi(t) = 0

  • therwise.
slide-31
SLIDE 31

Introduction Model Queueing theory DE model Results Conclusion References

Substitutions

26/33

dUp

i

dt = φi

  • αp

i (t) + n j=1 Rp j,i

dUp

j

dt

  • + (1 − φi)

si(t)qp

i (t)

m

k=1 qk i (t)τ k i + φi

φi(t) =    1 m

p=1

dΛp

i

dt τi(t) ≤ si(t) && qi(t) = 0

  • therwise.

qp

i (t)

→ Ap

i (t) + n j=1 Rp j,iUp i (t) − Up i (t)

dΛp

i

dt → αp

i (t) + n j=1 Rp j,i

dUp

i

dt

slide-32
SLIDE 32

Introduction Model Queueing theory DE model Results Conclusion References

Final DE model

27/33

dUp

i

dt =φi  αp

i (t) + n

  • j=1

Rp

j,i

dUp

j

dt   + (1 − φi)   si(t)

  • Ap

i (t) + n j=1 Rp j,iUp j − Up i

  • m

k=1 τ k i

  • Ak

i (t) + n j=1 Rk j,iUk j − Uk i

  • + φi

  φi(t) =              1 m

p=1(αp i (t) + n j=1 Rp j,i

dUp

i

dt )τ p

i ≤ si(t)

&& Ap

i (t) + n j=1 Rp j,iUp j − Up i = 0

  • therwise.
slide-33
SLIDE 33

Introduction Model Queueing theory DE model Results Conclusion References

Numerical solution

28/33 1 Solve DE’s for Up

i and φi:

Initialise t = 0, Up

i (0) = 0 and φi(0) = 0.

slide-34
SLIDE 34

Introduction Model Queueing theory DE model Results Conclusion References

Numerical solution

28/33 1 Solve DE’s for Up

i and φi:

Initialise t = 0, Up

i (0) = 0 and φi(0) = 0.

1

Calculate Up

i (t + ∆t)

2

Update φi(t + ∆t)

slide-35
SLIDE 35

Introduction Model Queueing theory DE model Results Conclusion References

Numerical solution

28/33 1 Solve DE’s for Up

i and φi:

Initialise t = 0, Up

i (0) = 0 and φi(0) = 0.

1

Calculate Up

i (t + ∆t)

2

Update φi(t + ∆t)

3

If φi(t + ∆t) = φi(t):

t = t + ∆t

slide-36
SLIDE 36

Introduction Model Queueing theory DE model Results Conclusion References

Numerical solution

28/33 1 Solve DE’s for Up

i and φi:

Initialise t = 0, Up

i (0) = 0 and φi(0) = 0.

1

Calculate Up

i (t + ∆t)

2

Update φi(t + ∆t)

3

If φi(t + ∆t) = φi(t):

t = t + ∆t

4

If φi(t + ∆t) = φi(t):

Locate discontinuity at t + δ Calculate Up

i (t + δ)

Calculate φi(t + δ+) t = t + δ

slide-37
SLIDE 37

Introduction Model Queueing theory DE model Results Conclusion References

Results: Queue length

29/33

slide-38
SLIDE 38

Introduction Model Queueing theory DE model Results Conclusion References

Results: Queue length

29/33

slide-39
SLIDE 39

Introduction Model Queueing theory DE model Results Conclusion References

Results: Rate of change

30/33

slide-40
SLIDE 40

Introduction Model Queueing theory DE model Results Conclusion References

Results: Rate of change

30/33

slide-41
SLIDE 41

Introduction Model Queueing theory DE model Results Conclusion References

Results: Accuracy

31/33

slide-42
SLIDE 42

Introduction Model Queueing theory DE model Results Conclusion References

Results: Accuracy

31/33

slide-43
SLIDE 43

Introduction Model Queueing theory DE model Results Conclusion References

Conclusion

32/33

DE results give less information than simulations Fairly accurate for long queues/high traffic intensity Can usually predict queue growth

slide-44
SLIDE 44

Introduction Model Queueing theory DE model Results Conclusion References

References

33/33

[1] R. Ceglowski, L. Churilov, and

  • J. Wasserthiel.

Combining data mining and discrete event simulation for a value-added view of a hospital emergency department. Journal of the Operational Research Society, 58(2):246–254, 2007. [2] H. Chen and D. D. Yao. Fundamentals of queueing networks: Performance, asymptotics, and

  • ptimization, volume 46.

Springer Science & Business Media, 2013. [3] C. Duguay and F. Chetouane. Modeling and improving emergency department systems using discrete event simulation. Simulation, 83(4):311–320, 2007. [4] L. Moreno, R. M. Aguilar, C. Martin,

  • J. D. Pi˜

neiro, J. Estevez, J. F. Sigut, and J. L. S´ anchez. Patient-centered simulation to aid decision-making in hospital management. Simulation, 74(5):290–304, 2000. [5] S. Sharma and D. Tipper. Approximate models for the study of nonstationary queues and their applications to communication networks. In Communications, 1993. ICC’93

  • Geneva. Technical Program,

Conference Record, IEEE International Conference on, volume 1, pages 352–358. IEEE, 1993. [6] J. A. White. Analysis of queueing systems. Elsevier, 2012.