Analysis of tandem fluid queues Magorzata OReilly 1 Werner - - PowerPoint PPT Presentation

analysis of tandem fluid queues
SMART_READER_LITE
LIVE PREVIEW

Analysis of tandem fluid queues Magorzata OReilly 1 Werner - - PowerPoint PPT Presentation

Model and preliminaries Analysis and numerics Analysis of tandem fluid queues Magorzata OReilly 1 Werner Scheinhardt 2 1 Discipline of Mathematics, University of Tasmania 2 Department of Applied Mathematics, University of Twente MAM 2016


slide-1
SLIDE 1

1/33 Model and preliminaries Analysis and numerics

Analysis of tandem fluid queues

Małgorzata O’Reilly1 Werner Scheinhardt2

1Discipline of Mathematics, University of Tasmania 2Department of Applied Mathematics, University of Twente

MAM 2016

Małgorzata O’Reilly, Werner Scheinhardt Analysis of tandem fluid queues

slide-2
SLIDE 2

2/33 Model and preliminaries Analysis and numerics

Outline

1

Model and preliminaries

2

Analysis and numerics

Małgorzata O’Reilly, Werner Scheinhardt Analysis of tandem fluid queues

slide-3
SLIDE 3

3/33 Model and preliminaries Analysis and numerics

Outline

1

Model and preliminaries

2

Analysis and numerics

Małgorzata O’Reilly, Werner Scheinhardt Analysis of tandem fluid queues

slide-4
SLIDE 4

4/33 Model and preliminaries Analysis and numerics

Model: two fluid queues driven by ϕ(t)

CTMC ϕ(t) with finite state space S, generator T Two fluid queues, contents X(t) and Y(t), both ∈ [0, ∞)

Małgorzata O’Reilly, Werner Scheinhardt Analysis of tandem fluid queues

slide-5
SLIDE 5

5/33 Model and preliminaries Analysis and numerics

First queue X(t) driven by ϕ(t)

(ϕ(t), X(t)) is standard fluid queue Fluid rates in R = diag(ri)i∈S d dt X(t) = rϕ(t) when X(t) > 0, d dt X(t) = max(0, rϕ(t)) when X(t) = 0. S = S+ ∪ S− ∪ S, e.g. S+ = {i ∈ S : ri > 0} (upstates, downstates, zero-states) also: S⊖ = S− ∪ S (“zero-states at X(t) = 0”) after ordering, T =   T++ T+− T+ T−+ T−− T− T+ T− T   .

Małgorzata O’Reilly, Werner Scheinhardt Analysis of tandem fluid queues

slide-6
SLIDE 6

6/33 Model and preliminaries Analysis and numerics

Second queue Y(t) driven by (ϕ(t), X(t))

Y(t) increases when X(t) > 0, at rate ci > 0 Y(t) decreases when X(t) = 0, at rate

  • ci < 0

(unless Y(t) = 0) So d dt Y(t) = cϕ(t) > 0 when X(t) > 0, d dt Y(t) =

  • cϕ(t) < 0

when X(t) = 0, Y(t) > 0, d dt Y(t) = cϕ(t) · 1{ϕ(t) ∈ S+} when X(t) = 0, Y(t) = 0.

  • C = diag(

ci)i∈S and

  • C = diag(
  • ci)i∈S

Małgorzata O’Reilly, Werner Scheinhardt Analysis of tandem fluid queues

slide-7
SLIDE 7

7/33 Model and preliminaries Analysis and numerics

Special case: S = ∅, |S+| = |S−| = 1,

  • C = −
  • C = I

ri>0 ri<0 Ci>0 ^ Ci<0 v t t X(t) Y(t) X(t) Y(t)

[Kroese and Scheinhardt. Joint Distributions for Interacting Fluid Queues, Queueing Systems, 2001]

Małgorzata O’Reilly, Werner Scheinhardt Analysis of tandem fluid queues

slide-8
SLIDE 8

8/33 Model and preliminaries Analysis and numerics

Qualitative behaviour

ri>0 ri<0 Ci>0 ^ Ci<0 v t t X(t) Y(t) X(t) Y(t)

Assuming stability (see paper) process (ϕ(t), X(t), Y(t)) alternates between: (i) periods on x = 0 (ii) periods on x > 0

Małgorzata O’Reilly, Werner Scheinhardt Analysis of tandem fluid queues

slide-9
SLIDE 9

9/33 Model and preliminaries Analysis and numerics

Qualitative behaviour (i) on x = 0

ri>0 ri<0 Ci>0 ^ Ci<0 v t t X(t) Y(t) X(t) Y(t)

(i) periods on x = 0

Y(t) decreasing, unless at x = 0, y = 0 ϕ(t) in S⊖ starts at x = 0, y > 0, with ϕ(t) in S− ends at x = 0, y ≥ 0, with ϕ(t) jumping from S⊖ to S+

Małgorzata O’Reilly, Werner Scheinhardt Analysis of tandem fluid queues

slide-10
SLIDE 10

10/33 Model and preliminaries Analysis and numerics

Qualitative behaviour (ii) on x > 0

ri>0 ri<0 Ci>0 ^ Ci<0 v t t X(t) Y(t) X(t) Y(t)

(ii) periods on x > 0

Y(t) increasing (while X(t) can either increase or decrease) ϕ(t) in S (any phase) starts at x = 0, y ≥ 0, with ϕ(t) ∈ S+ ends at x = 0, y > 0, with ϕ(t) ∈ S−

Małgorzata O’Reilly, Werner Scheinhardt Analysis of tandem fluid queues

slide-11
SLIDE 11

11/33 Model and preliminaries Analysis and numerics

Stationary distribution

has following form (all vectors with |S| components): (i)

1-dimensional densities π(0, y) at x = 0, y > 0 point masses p(0, 0) at (0, 0)

(ii)

2-dimensional densities π(x, y)

  • n {(x, y) : x > 0, y > x · mini∈S+{

ci/ri}} 1-dimensional density πi(x, x ci/ri)

  • n line y = x

ci/ri, i ∈ S+

Małgorzata O’Reilly, Werner Scheinhardt Analysis of tandem fluid queues

slide-12
SLIDE 12

12/33 Model and preliminaries Analysis and numerics

Outline

1

Model and preliminaries

2

Analysis and numerics

Małgorzata O’Reilly, Werner Scheinhardt Analysis of tandem fluid queues

slide-13
SLIDE 13

13/33 Model and preliminaries Analysis and numerics

Approach

Several steps: Introduce embedded discrete-time process Jk Find its stationary distribution ξy Take a deep breath... Express π(0, y) and p(0, 0) in ξy, using down-shift in Y Normalise based on knowledge of (ϕ(t), X(t)) Express π(x, y) in π(0, y) and p(0, 0), using up-shift in Y Express πi(x, x ci/ri) in p(0, 0) Mostly as LST’s (but not always)

Małgorzata O’Reilly, Werner Scheinhardt Analysis of tandem fluid queues

slide-14
SLIDE 14

13/33 Model and preliminaries Analysis and numerics

Approach

Several steps: Introduce embedded discrete-time process Jk Find its stationary distribution ξy Take a deep breath... Express π(0, y) and p(0, 0) in ξy, using down-shift in Y Normalise based on knowledge of (ϕ(t), X(t)) Express π(x, y) in π(0, y) and p(0, 0), using up-shift in Y Express πi(x, x ci/ri) in p(0, 0) Mostly as LST’s (but not always)

Małgorzata O’Reilly, Werner Scheinhardt Analysis of tandem fluid queues

slide-15
SLIDE 15

13/33 Model and preliminaries Analysis and numerics

Approach

Several steps: Introduce embedded discrete-time process Jk Find its stationary distribution ξy Take a deep breath... Express π(0, y) and p(0, 0) in ξy, using down-shift in Y Normalise based on knowledge of (ϕ(t), X(t)) Express π(x, y) in π(0, y) and p(0, 0), using up-shift in Y Express πi(x, x ci/ri) in p(0, 0) Mostly as LST’s (but not always)

Małgorzata O’Reilly, Werner Scheinhardt Analysis of tandem fluid queues

slide-16
SLIDE 16

14/33 Model and preliminaries Analysis and numerics

Intermezzo (i) on down-shift:

  • Q⊖⊖ and
  • Q⊖+

Define generator matrix

  • Q⊖⊖ = (|
  • C⊖|)−1T⊖⊖,

then for i, j ∈ S⊖, and z > 0, [e

  • Q⊖⊖z]ij = P(ϕ(tz) = j, ϕ(u) ∈ S⊖, 0 ≤ u ≤ tz | ϕ(0) = i, X(0) = 0)

Also,

  • Q⊖+ = (|
  • C⊖|)−1T⊖+,

is a matrix of transition rates (w.r.t. level) to phases in S+ (for times at which X and Y start increasing) [Bean, O’Reilly and Taylor. Hitting probabilities and hitting times for stochastic fluid flows, SPA 2005]

Małgorzata O’Reilly, Werner Scheinhardt Analysis of tandem fluid queues

slide-17
SLIDE 17

15/33 Model and preliminaries Analysis and numerics

Intermezzo (ii) on up-shift: Q(s) and Ψ(s)

Let θ = inf{t > 0 : X(t) = 0} and U(t) = t

u=0

cϕ(u)du, then U(θ) is total up-shift in Y during Busy Period of X Its |S+| × |S−| density matrix ψ(z) is given via LST

  • Ψ(s) =

z=0

e−sz ψ(z)dz, as [ Ψ(s)]ij = E(e−sU(θ)1{ϕ(θ) = j} | ϕ(0) = i, X(0) = 0), [Bean and O’Reilly. A stochastic two-dimensional fluid model, Stochastic Models, 2013]

Małgorzata O’Reilly, Werner Scheinhardt Analysis of tandem fluid queues

slide-18
SLIDE 18

16/33 Model and preliminaries Analysis and numerics

Intermezzo (ii) on up-shift: Q(s) and Ψ(s)

To find Ψ(s) define Key generator matrix Q(s), as

  • Q(s) =

Q(s)++

  • Q(s)+−
  • Q(s)−+
  • Q(s)−−
  • Q(s)++ = (R+)−1

T++ − s C+ − T+(T − s C)−1T+

  • Q(s)+− = (R+)−1

T+− − T+(T − s C)−1T−

  • Q(s)−+ = (|R−|)−1

T−+ − T−(T − s C)−1T+

  • Q(s)−− = (|R−|)−1

T−− − s C− − T−(T − s C)−1T−

  • Then

Ψ(s) is minimum nonnegative solution of Riccati eq.

  • Q(s)+− +

Q(s)++ Ψ(s) + Ψ(s) Q(s)−− + Ψ(s) Q(s)−+ Ψ(s) = O, [Bean and O’Reilly. A stochastic two-dimensional fluid model, Stochastic Models, 2013]

Małgorzata O’Reilly, Werner Scheinhardt Analysis of tandem fluid queues

slide-19
SLIDE 19

17/33 Model and preliminaries Analysis and numerics

Back on track... Embedded process Jk

Let Jk = (ϕ(θk), Y(θk)), with state space S− × (0, ∞), where θk is k-th time that (ϕ(t), X(t), Y(t)) hits x = 0 Lemma The transition kernel of Jk is given by Pz,y = z

u=[z−y]+

  • I

O

  • e
  • Q⊖⊖u
  • Q⊖+

ψ(y − z + u)du +

  • I

O

  • e
  • Q⊖⊖z(−
  • Q⊖⊖)−1
  • Q⊖+

ψ(y). where [x]+ denotes max(0, x), and

  • I

O

  • is a |S−| × |S⊖|

matrix.

Małgorzata O’Reilly, Werner Scheinhardt Analysis of tandem fluid queues

slide-20
SLIDE 20

18/33 Model and preliminaries Analysis and numerics

Embedded process Jk

  • Proof. Based on Lindley-type recursion,

Y(θk+1) = [Y(θk) − Dk]+ + Uk, (1) where Dk = τk

u=θk

|

  • cϕ(u)|du,

Uk = θk+1

u=τk

  • cϕ(u)du

So (i) Y(t) first has down-shift −D, as long as ϕ(t) ∈ S⊖ (ii) after jump S⊖ → S+, Y(t) has up-shift U, during busy period

  • f X.

Then use previous knowledge; note that Jk moves from (i, z) to (j, y) without or with returning to 0 during (θk, θk+1).

Małgorzata O’Reilly, Werner Scheinhardt Analysis of tandem fluid queues

slide-21
SLIDE 21

19/33 Model and preliminaries Analysis and numerics

Embedded process Jk

Corollary The Laplace-Stieltjes transform of Pz,y w.r.t. y is given by Pz,·(s) =

  • I

O

  • e−sz

Q⊖⊖ + sI −1 e

  • Q⊖⊖+sI
  • z − I
  • ×
  • Q⊖+

Ψ(s) +

  • I

O

  • e
  • Q⊖⊖z(−
  • Q⊖⊖)−1
  • Q⊖+

Ψ(s).

  • Proof. Using lemma, or based on (1) directly

Małgorzata O’Reilly, Werner Scheinhardt Analysis of tandem fluid queues

slide-22
SLIDE 22

20/33 Model and preliminaries Analysis and numerics

Embedded process Jk – stationary distribution ξy

Stationary distribution of Jk is given by row vector ξz = [ξi,z]i∈S− of densities, satisfying    ∞

z=0 ξzPz,ydz

= ξy ∞

y=0 ξydy1

= 1, Will be solved numerically. Next step (after deep breath): Express stationary distribution of (ϕ(t), X(t), Y(t)) at level x = 0 in terms of ξz.

Małgorzata O’Reilly, Werner Scheinhardt Analysis of tandem fluid queues

slide-23
SLIDE 23

20/33 Model and preliminaries Analysis and numerics

Embedded process Jk – stationary distribution ξy

Stationary distribution of Jk is given by row vector ξz = [ξi,z]i∈S− of densities, satisfying    ∞

z=0 ξzPz,ydz

= ξy ∞

y=0 ξydy1

= 1, Will be solved numerically. Next step (after deep breath): Express stationary distribution of (ϕ(t), X(t), Y(t)) at level x = 0 in terms of ξz.

Małgorzata O’Reilly, Werner Scheinhardt Analysis of tandem fluid queues

slide-24
SLIDE 24

21/33 Model and preliminaries Analysis and numerics

Expressing π(0, y) and p(0, 0) in ξy

ri>0 ri<0 Ci>0 ^ Ci<0 v t t X(t) Y(t) X(t) Y(t)

Małgorzata O’Reilly, Werner Scheinhardt Analysis of tandem fluid queues

slide-25
SLIDE 25

22/33 Model and preliminaries Analysis and numerics

Expressing π(0, y) and p(0, 0) in ξy

Lemma We have π(0, y) =

  • π(0, y)⊖
  • , where

π(0, y)⊖ = α ∞

z=y

  • ξz
  • e
  • Q⊖⊖(z−y)(|
  • C⊖|)−1dz,

and p(0, 0) =

  • p(0, 0)⊖
  • , where

p(0, 0)⊖ = α ∞

z=0

  • ξz
  • e
  • Q⊖⊖zdz(−T⊖⊖)−1.

Here, α is a normalization constant In fact α is the total rate of hitting x = 0.

Małgorzata O’Reilly, Werner Scheinhardt Analysis of tandem fluid queues

slide-26
SLIDE 26

23/33 Model and preliminaries Analysis and numerics

Expressing π(0, y) and p(0, 0) in ξy

  • Proof. Consider “cycles” defined by hitting times of x = 0, and

condition on where previous hit took place. [Latouche and Taylor. A stochastic fluid model for an ad hoc mobile network, Queueing Systems, 2009]

Małgorzata O’Reilly, Werner Scheinhardt Analysis of tandem fluid queues

slide-27
SLIDE 27

24/33 Model and preliminaries Analysis and numerics

Expressing π(0, y) and p(0, 0) in ξy

LST of density part: let π(0, ·)(s) = ∞

z=0

e−syπ(0, y)dy Corollary We have π(0, ·)(s) =

  • π(0, ·)(s)⊖
  • , where

π(0, ·)(s)⊖ = α ∞

z=0

  • ξz
  • e
  • Q⊖⊖z(
  • Q⊖⊖ + sI)−1

×

  • I − e−(
  • Q⊖⊖+sI)z

(|

  • C⊖|)−1dz.
  • Proof. Straightforward.

Małgorzata O’Reilly, Werner Scheinhardt Analysis of tandem fluid queues

slide-28
SLIDE 28

25/33 Model and preliminaries Analysis and numerics

Normalise, based on 1-dim fluid queue (ϕ(t), X(t))

Lemma The normalisation constant α is given by α =

  • ξ
  • (−T⊖⊖)−1
  • 1

+T⊖+K−1 (R+)−1 Ψ(|R−|)−1 ×

  • 1 + T±(−T)−11

−1 , where, ξ = ∞

z=0 ξzdz, Ψ =

Ψ(s)|s=0 and K = K(s)|s=0 with

  • K(s) =

Q(s)++ + Ψ(s) Q(s)−+.

Małgorzata O’Reilly, Werner Scheinhardt Analysis of tandem fluid queues

slide-29
SLIDE 29

26/33 Model and preliminaries Analysis and numerics

Normalise, based on 1-dim fluid queue (ϕ(t), X(t))

  • Proof. Integrating π(0, y) and adding p(0, 0) yields the

probability mass vector of ϕ(t) at x = 0, which is also known from 1-dim fluid queue:

  • p−

p

  • =

α

  • ξ
  • (−T⊖⊖)−1

Similarly, we have expression for density π(x) at x > 0. Now solve α from p1 + ∞

x=0

π(x)dx1 = 1

Małgorzata O’Reilly, Werner Scheinhardt Analysis of tandem fluid queues

slide-30
SLIDE 30

27/33 Model and preliminaries Analysis and numerics

Expressing π(x, y) in π(0, y) and p(0, 0)

Lemma We have π(x, ·)(s) =

  • π(x, ·)(s)+

π(x, ·)(s)− π(x, ·)(s)

  • with
  • π(x, ·)(s)+

π(x, ·)(s)−

  • = (π(0, ·)(s)⊖ + p(0, 0)⊖)

×T⊖+e

  • K(s)x ×
  • (R+)−1
  • Ψ(s)(|R−|)−1
  • ,

and π(x, ·)(s) =

  • π(x, ·)(s)+

π(x, ·)(s)−

  • ×T±(s

C − T)−1.

Małgorzata O’Reilly, Werner Scheinhardt Analysis of tandem fluid queues

slide-31
SLIDE 31

28/33 Model and preliminaries Analysis and numerics

Expressing π(x, y) in π(0, y) and p(0, 0)

Let π(·, ·)(v, s) = ∞

x=0 e−vxπ(x, ·)(s)dx.

Corollary We have π(·, ·)(v, s) =

  • π(·, ·)(v, s)+

π(·, ·)(v, s)− π(·, ·)(s)

  • with
  • π(·, ·)(v, s)+

π(·, ·)(v, s)−

  • = (π(0, ·)(s)⊖ + p(0, 0)⊖)

× T−+ T+

  • (−

K(s) + vI)−1 (R+)−1

  • Ψ(s)(|R−|)−1
  • and

π(·, ·)(s) =

  • π(·, ·)(s)+

π(·, ·)(s)−

×(s C − T)−1.

Małgorzata O’Reilly, Werner Scheinhardt Analysis of tandem fluid queues

slide-32
SLIDE 32

29/33 Model and preliminaries Analysis and numerics

Expressing πi(x, x ci/ri) in p(0, 0)

Lemma For all i ∈ S+, πi(x, x ci/ri) =

  • j∈S⊖

pj(0, 0)Tji exp(−(Tii/ri)x)/ri

  • Proof. Consider “cycle” starting when (0, 0) is left, and

consider expected number of visits to (i, x, x ci/ri) before return to (0, 0).

Małgorzata O’Reilly, Werner Scheinhardt Analysis of tandem fluid queues

slide-33
SLIDE 33

30/33 Model and preliminaries Analysis and numerics

Main result

Theorem Stationary distribution of (ϕ(t), X(t), Y(t)) is found, as mixture

  • f densities and LSTs.

Małgorzata O’Reilly, Werner Scheinhardt Analysis of tandem fluid queues

slide-34
SLIDE 34

31/33 Model and preliminaries Analysis and numerics

Numerical scheme

Discretize the DTMC Jk and truncate its state space: ˜ Pℓm = (m+1)∆u

y=m∆u

Pℓ∆u,ydy, ℓ, m = 0, 1, 2, . . . L Normalize this to obtain Pℓm with L

m=0 Pℓm1 = 1.

Find ¯ ξℓ = [¯ ξj;ℓ]j∈S− by solving ¯ ξP = ¯ ξ, ¯ ξ1 = 1. Use this to approximate e.g. p(0, 0)⊖ = α ∞

z=0

ξze

  • Q⊖⊖zdz(−T⊖⊖)−1

≈ α

L

  • ℓ=0

¯ ξℓe

  • Q⊖⊖ℓ∆u(−T⊖⊖)−1.

Similar for π(0, y) etc; invert using Abate and Whitt Work in progress

Małgorzata O’Reilly, Werner Scheinhardt Analysis of tandem fluid queues

slide-35
SLIDE 35

32/33 Model and preliminaries Analysis and numerics

Numerical scheme

  • Ψ(s)

↓ Pz,·(s) ξ(s) π(0, ·)(s) → π(x, ·)(s) ↓ ↑ ↓ Pz,y → ξz → π(0, y) π(x, y)

Małgorzata O’Reilly, Werner Scheinhardt Analysis of tandem fluid queues

slide-36
SLIDE 36

33/33 Model and preliminaries Analysis and numerics

Conclusions and future work

Stationary distribution found, as mixture of densities and LSTs (as opposed to closed form LST in special case) Finish numerical scheme Consider dual model

Małgorzata O’Reilly, Werner Scheinhardt Analysis of tandem fluid queues