stochastic petri net - university of illinois at chicagoyben/file/cs590-spn-ppt.pdfstochastic petri...

20
Stochastic Petri Net Ben, Yue (Cindy) 2013/05/08

Upload: others

Post on 14-Jul-2020

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Stochastic Petri Net - University of Illinois at Chicagoyben/file/CS590-SPN-ppt.pdfStochastic Petri Net (SPN) Stochastic Petri Net (SPN) transitions fire after a probabilistic delay

Stochastic Petri NetBen, Yue (Cindy)

2013/05/08

Page 2: Stochastic Petri Net - University of Illinois at Chicagoyben/file/CS590-SPN-ppt.pdfStochastic Petri Net (SPN) Stochastic Petri Net (SPN) transitions fire after a probabilistic delay

To study a formal model (personal view)

Definition (and maybe history)

Brief family tree: the branches and extensions

Advantages and disadvantages for each

Applications for each

Relation to other models

5/8/2013 WedBen, Yue (Cindy)

2

Page 3: Stochastic Petri Net - University of Illinois at Chicagoyben/file/CS590-SPN-ppt.pdfStochastic Petri Net (SPN) Stochastic Petri Net (SPN) transitions fire after a probabilistic delay

Questions

How came Stochastic PN (SPN)?

SPN and Markov Chain (MC)?

Application of SPN?

Conclusion

5/8/2013 WedBen, Yue (Cindy)

3

PN

MC

SPN

?

Page 4: Stochastic Petri Net - University of Illinois at Chicagoyben/file/CS590-SPN-ppt.pdfStochastic Petri Net (SPN) Stochastic Petri Net (SPN) transitions fire after a probabilistic delay

History (in the 1980s or earlier)

Performance Evaluation (PE) area

Modeling in the design phase

Modeling requirement

integration of formal description, proof of correctness, and performance evaluation

5/8/2013 WedBen, Yue (Cindy)

4

Petri Net + Markov Chain = Stochastic Petri Net (SPN) //Markov-SPN

Page 5: Stochastic Petri Net - University of Illinois at Chicagoyben/file/CS590-SPN-ppt.pdfStochastic Petri Net (SPN) Stochastic Petri Net (SPN) transitions fire after a probabilistic delay

Petri Net (PN)

A Petri Net is a directed bipartite graph 𝑁 = 𝑃, 𝑇, 𝐹

Elements: 𝑃 for places, 𝑇 for transitions; 𝑃 and 𝑇 are disjoint

Flow relations: 𝐹 ⊂ 𝑃 × 𝑇 ∪ 𝑇 × 𝑃 for arcs

Execution

Token → Transitions fire (events happen)

Marking 𝑀: a mapping which assigns tokens to each place

Reachability Graph (RG): illustrating marking transformation

5/8/2013 WedBen, Yue (Cindy)

5

Page 6: Stochastic Petri Net - University of Illinois at Chicagoyben/file/CS590-SPN-ppt.pdfStochastic Petri Net (SPN) Stochastic Petri Net (SPN) transitions fire after a probabilistic delay

Introduce temporal specifications in PN

Concerns:

Associate timing with the PN elements

Places, or transitions

The semantics of the firing in the case of timed transitions

atomic firing, or firing in three phases

The nature of the temporal specification

Deterministic, or probabilistic

5/8/2013 WedBen, Yue (Cindy)

6

Page 7: Stochastic Petri Net - University of Illinois at Chicagoyben/file/CS590-SPN-ppt.pdfStochastic Petri Net (SPN) Stochastic Petri Net (SPN) transitions fire after a probabilistic delay

Stochastic Petri Net (SPN)

Stochastic Petri Net (SPN)

transitions fire after a probabilistic delay

atomic firing

Formally, a SPN is a five-tuple <P, T, F, M0, Λ>:

<P,T,F,M0> is a PN with initial marking M0.

Λ = is the array of firing rates λ’s associated with the transitions in T; each λ is a random variable, or a function λ(M) of current marking.

5/8/2013 WedBen, Yue (Cindy)

7

Page 8: Stochastic Petri Net - University of Illinois at Chicagoyben/file/CS590-SPN-ppt.pdfStochastic Petri Net (SPN) Stochastic Petri Net (SPN) transitions fire after a probabilistic delay

Different SPNs

Different firing time probability density functions (pdf)

5/8/2013 WedBen, Yue (Cindy)

8

Page 9: Stochastic Petri Net - University of Illinois at Chicagoyben/file/CS590-SPN-ppt.pdfStochastic Petri Net (SPN) Stochastic Petri Net (SPN) transitions fire after a probabilistic delay

Markov SPN

CTMC-SPN: negative exponential pdfs 𝑒−𝜆𝑖𝜏

⊂ Markov SPN

Assumption: CTMC (Continuous-time MC)

Mature steady-state analysis for PE solution

5/8/2013 WedBen, Yue (Cindy)

9

Page 10: Stochastic Petri Net - University of Illinois at Chicagoyben/file/CS590-SPN-ppt.pdfStochastic Petri Net (SPN) Stochastic Petri Net (SPN) transitions fire after a probabilistic delay

Markov SPN and MC

The reachability graph (RG) of Markov SPN can be mapped directly to a Markov process.

5/8/2013 WedBen, Yue (Cindy)

10

Page 11: Stochastic Petri Net - University of Illinois at Chicagoyben/file/CS590-SPN-ppt.pdfStochastic Petri Net (SPN) Stochastic Petri Net (SPN) transitions fire after a probabilistic delay

Markov SPN - analysis

Disadvantages:

Complexity

Structural analysis of underlying PN

Compute other performance measures

∴ extensions of SPNs introduced

5/8/2013 WedBen, Yue (Cindy)

11

Page 12: Stochastic Petri Net - University of Illinois at Chicagoyben/file/CS590-SPN-ppt.pdfStochastic Petri Net (SPN) Stochastic Petri Net (SPN) transitions fire after a probabilistic delay

Generalized SPN (GSPN) ⊂ SPN

Allow “immediate“ transitions (no firing delay)

Priority of firing: immediate transitions > timed transitions

Weight or Probabilities of immediate transitions

To determine the firing probability in case of conflicting immediate transitions.

Advantage: better structural analysis of underlying PN

5/8/2013 WedBen, Yue (Cindy)

12

Page 13: Stochastic Petri Net - University of Illinois at Chicagoyben/file/CS590-SPN-ppt.pdfStochastic Petri Net (SPN) Stochastic Petri Net (SPN) transitions fire after a probabilistic delay

A small branch of the SPN family tree

5/8/2013 WedBen, Yue (Cindy)

13

CTMC-SPN

• Negative exponential pdfs

GSPN• Immediate

transitions allowed

• Constant timing = 0

DSPN• exponentially

distributed and constant timing

Page 14: Stochastic Petri Net - University of Illinois at Chicagoyben/file/CS590-SPN-ppt.pdfStochastic Petri Net (SPN) Stochastic Petri Net (SPN) transitions fire after a probabilistic delay

Modern Application of SPN

Stochastic Petri Net Identification for the Fault Detection and Isolation of Discrete Event System (DES) - 2011

NSPN: SPN with normal and exponential transitions

Methodology

Learn reference model from output sequences

Use reference model for fault detection and isolation

Consider NSPNs to represent faulty behaviors

5/8/2013 WedBen, Yue (Cindy)

14

Page 15: Stochastic Petri Net - University of Illinois at Chicagoyben/file/CS590-SPN-ppt.pdfStochastic Petri Net (SPN) Stochastic Petri Net (SPN) transitions fire after a probabilistic delay

Conclusion

5/8/2013 WedBen, Yue (Cindy)

15

PN

MC

SPN

Markov-SPN

A lot of ways to extend PN with time phase, SPN is one of them…

A lot of ways to define SPNs w.r.t. the firing delay, Markov SPN is one of them…

“Largeness problem”; active in DES study

Page 16: Stochastic Petri Net - University of Illinois at Chicagoyben/file/CS590-SPN-ppt.pdfStochastic Petri Net (SPN) Stochastic Petri Net (SPN) transitions fire after a probabilistic delay

Main Reference

Marsan, M Ajmone. "Stochastic Petri Nets: An Elementary Introduction." In Advances in Petri Nets 1989, 1-29: Springer, 1990.

Ciardo, Gianfranco, Reinhard German, and Christoph Lindemann. "A Characterization of the Stochastic Process Underlying a Stochastic Petri Net." Software Engineering, IEEE Transactions on 20, no. 7 (1994): 506-15.

Lefebvre, D., and E. Leclercq. "Stochastic Petri Net Identification for the Fault Detection and Isolation of Discrete Event Systems." Systems, Man and Cybernetics, Part A: Systems and Humans, IEEE Transactions on 41, no. 2 (2011): 213-25.

5/8/2013 WedBen, Yue (Cindy)

16

Page 17: Stochastic Petri Net - University of Illinois at Chicagoyben/file/CS590-SPN-ppt.pdfStochastic Petri Net (SPN) Stochastic Petri Net (SPN) transitions fire after a probabilistic delay

Thank you!Questions?

Ben, Yue (Cindy)

2013/05/08

5/8/2013 WedBen, Yue (Cindy)

17

Page 18: Stochastic Petri Net - University of Illinois at Chicagoyben/file/CS590-SPN-ppt.pdfStochastic Petri Net (SPN) Stochastic Petri Net (SPN) transitions fire after a probabilistic delay

Continuous-time Markov Chain (CTMC)

A stochastic/random process 𝑋 𝑡 , 𝑡 ∈ 𝑇

+ Markovian property (memoryless)

= Markov Process

+ discrete state space

= Markov Chain (MC)

+ continuous time parameter 𝑡

= Continuous-time MC (CTMC)

5/8/2013 WedBen, Yue (Cindy)

18

historyMSPN

Page 19: Stochastic Petri Net - University of Illinois at Chicagoyben/file/CS590-SPN-ppt.pdfStochastic Petri Net (SPN) Stochastic Petri Net (SPN) transitions fire after a probabilistic delay

Stochastic Process

A stochastic process 𝑋 𝑡 , 𝑡 ∈ 𝑇 is a family of random variables defined over the same probability space, taking values in the state space S, and indexed by the parameter t, which assumes values in the set T; normally T = (0,∞).

5/8/2013 WedBen, Yue (Cindy)

19

Page 20: Stochastic Petri Net - University of Illinois at Chicagoyben/file/CS590-SPN-ppt.pdfStochastic Petri Net (SPN) Stochastic Petri Net (SPN) transitions fire after a probabilistic delay

Markov Models

5/8/2013 WedBen, Yue (Cindy)

20

CTMC