Generalized stochastic Petri nets (GSPN)

Slides:



Advertisements
Similar presentations
Discrete time Markov Chain
Advertisements

SMA 6304/MIT2.853/MIT2.854 Manufacturing Systems Lecture 19-20: Single-part-type, multiple stage systems Lecturer: Stanley B. Gershwin
1 SE-561 Formal Methods in Software Petri Nets - I.
Course: Software Engineering II academic year: Course Web-site: [ Lecturer: Catia Trubiani.
An Introduction to Petri Nets
1 Analysis of workflows : Verification, validation, and performance analysis. Wil van der Aalst Eindhoven University of Technology Faculty of Technology.
Based on: Petri Nets and Industrial Applications: A Tutorial
Introduction to Graph “theory”
Chapter 3 Petri nets Learning objectives : Introduce Petri nets
1 A class of Generalized Stochastic Petri Nets for the performance Evaluation of Mulitprocessor Systems By M. Almone, G. Conte Presented by Yinglei Song.
IE 469 Manufacturing Systems
1 System Modeling with Petri Nets I I T Kanpur, November 2002 Andrea Bobbio and Kishor Trivedi Dipartimento di Informatica Università del Piemonte Orientale,
Introduction to Transfer Lines Active Learning – Module 1
1 Chapter 5 Continuous time Markov Chains Learning objectives : Introduce continuous time Markov Chain Model manufacturing systems using Markov Chain Able.
1 Part III Markov Chains & Queueing Systems 10.Discrete-Time Markov Chains 11.Stationary Distributions & Limiting Probabilities 12.State Classification.
Markov Reward Models By H. Momeni Supervisor: Dr. Abdollahi Azgomi.
NETE4631:Capacity Planning (3)- Private Cloud Lecture 11 Suronapee Phoomvuthisarn, Ph.D. /
Reliable System Design 2011 by: Amir M. Rahmani
Lecture 13 – Continuous-Time Markov Chains
Petri net modeling of biological networks Claudine Chaouiya.
Synthesis of Embedded Software Using Free-Choice Petri Nets.
CS447/ECE453/SE465 Prof. Alencar University of Waterloo 1 CS447/ECE453/SE465 Software Testing Tutorial Winter 2008 Based on the tutorials by Prof. Kontogiannis,
Performance analysis for high speed switches Lecture 6.
1 Petri Nets H Plan: –Introduce basics of Petri Net models –Define notation and terminology used –Show examples of Petri Net models u Calaway Park model.
12/07/2007Jiacun Wang1 SE-561 Math Foundations Petri Nets - II Dr. Jiacun Wang Department of Software Engineering Monmouth University.
1 Spare part modelling – An introduction Jørn Vatn.
Mata kuliah :K0362/ Matematika Diskrit Tahun :2008
Petri Nets An Overview IE 680 Presentation April 30, 2007 Renata Kopach- Konrad.
Lecture 14 – Queuing Systems
PETRINETS Nipun Devlekar Zauja Lahtau. PETRINETS DEFINITION : DEFINITION :  PETRINET (place/ transition net): a formal, graphical, executable technique.
Capacity analysis of complex materials handling systems.
Chapter 2 Machine Interference Model Long Run Analysis Deterministic Model Markov Model.
A. BobbioBertinoro, March 10-14, Dependability Theory and Methods 2. Reliability Block Diagrams Andrea Bobbio Dipartimento di Informatica Università.
ACPN2010, Rostock, September 22nd Advanced solution methods for Stochastic Petri Nets Prof.ssa Susanna Donatelli Universita’ di Torino, Italy
Pisa, 11/25/2002Susanna Donatelli1 Modelling process and heterogeneous model construction Susanna Donatelli Modelling and evaluation groups.
NETE4631:Capacity Planning (2)- Lecture 10 Suronapee Phoomvuthisarn, Ph.D. /
Decision Making in Robots and Autonomous Agents Decision Making in Robots and Autonomous Agents The Markov Decision Process (MDP) model Subramanian Ramamoorthy.
CY2003 Computer Systems Lecture 7 Petri net. © LJMU, 2004CY2003- Week 72 Overview Petri net –concepts –Petri net representation –Firing a transition –Marks.
Pisa, 11/25/2002Susanna Donatelli1 Heterogeneous model construction Susanna Donatelli Modelling and evaluation groups of the Dipartimento.
Stochastic Activity Networks ( SAN ) Sharif University of Technology,Computer Engineer Department, Winter 2013 Verification of Reactive Systems Mohammad.
Integrating UML and Petri Nets Problem with Current Software Engineering Methodology Stochastic Petri nets and their useful properties Translating UML.
Chapter 61 Continuous Time Markov Chains Birth and Death Processes,Transition Probability Function, Kolmogorov Equations, Limiting Probabilities, Uniformization.
Petri Nets Lecturer: Roohollah Abdipour. Agenda Introduction Petri Net Modelling with Petri Net Analysis of Petri net 2.
Modelling by Petri nets
NETE4631: Network Information System Capacity Planning (2) Suronapee Phoomvuthisarn, Ph.D. /
CSCI1600: Embedded and Real Time Software Lecture 11: Modeling IV: Concurrency Steven Reiss, Fall 2015.
School of Computer Science & Software Engineering
CAP 4800/CAP 5805: Computer Simulation Concepts
ECE 8443 – Pattern Recognition ECE 8527 – Introduction to Machine Learning and Pattern Recognition Objectives: Elements of a Discrete Model Evaluation.
1 Petri Nets Ina Koch and Monika Heiner. 2 Petri Nets(1962) Carl Adam Petri.
A Structured Solution Approach for Markov Regenerative Processes Elvio G. Amparore 1, Peter Buchholz 2, Susanna Donatelli 1 1 Dipartimento di Informatica,
Instructor: Spyros Reveliotis IE7201: Production & Service Systems Engineering Fall 2009 Closure.
Petri-Nets and Other Models
Survivability Quantification of Communication Services Poul E.Heegaard, Kishor S. Trivedi Advisor: Frank Y. S. Lin Presented by Y.W. Lee.
1 Chapter 5 Continuous time Markov Chains Learning objectives : Introduce continuous time Markov Chain Model manufacturing systems using Markov Chain Able.
Turing Machine Model Are there computations that no “reasonable” computing machine can perform? –the machine should not store the answer to all possible.
Reliability Engineering
Laurea Triennale in Informatica – Corso di Ingegneria del Software I – A.A. 2006/2007 Andrea Polini VIII. Specifications (II)
Discrete-time Markov chain (DTMC) State space distribution
Advantages of FSM Their simplicity make it easy for inexperienced developers to implement with little to no extra knowledge (low entry level)
Availability Availability - A(t)
Industrial Engineering Dep
Dr. Eng Amr T. Abdel-Hamid
Clockless Computing COMP
Concurrent Systems Modeling using Petri Nets – Part II
COT 5611 Operating Systems Design Principles Spring 2012
Linköping University, IDA, ESLAB
Discrete time Markov Chain
Discrete time Markov Chain
Petri Net :Abstract formal model of information flow Major use:
Presentation transcript:

Generalized stochastic Petri nets (GSPN) Chapter 5 Generalized stochastic Petri nets (GSPN) Learning objectives : Introduce generalized stochastic Petri nets (GSPN) Model manufacturing systems using GSPN Able to evaluate the steady-state performances Textbooks : M. Ajmone Marsan, G. Balbo, G. Conte, S. Donatelli, and G. Franceschinis, Modelling with Generalized Stochastic Petri Nets. J. Wiley, 1995 G. Chiola, M. Ajmone Marsan, G. Balbo, and G. Conte. Generalized stochastic Petri nets: A definition at the net level and its implications. IEEE Transactions on Software Engineering, 19(2):89--107, 1993

Introduction to stochastic Petri nets by examples Plan Introduction to stochastic Petri nets by examples Petri nets with inhibitors and priority Generalized stochastic Petri nets Applications Extensions

Example 1 Consider an unreliable machine with: 1/l : mean time between failures (MTTF) 1/m : mean time to repair (MTTR) 1/p : mean processing time Markov chain Stochastic Petri net model

Example 1 Reachability graph Stochastic Petri net model Removing transient states leads to an isomorphic CTMC :

Example 1 Results • p0001 = l / (l+m), p0100 = m / (l+m) • Failure rate (frequence of t4) : p0100 * l = m l / (l+m) • Production rate (frequence of t2) : p0100 * p = m p / (l+m)   Remark : The conflict between t2 and t4 is solved by competition of clocks (failure models)

Example 2 Two types of products P1 and P2 are produced. The production of each product requires two operations with the first operation on a shared flexible machine the second operation on a dedicated machine. P1 has priority to the shared machine but cannot preempt on- going operations There is at most one product of each type in the system at all moment When the production of a product is finished, a new one of the same type is dispatched into the system

Example 2 Stochastic Petri net model : P1 has priority to the shared machine

Example 2 Reachability graph : Markov chain : Convention : Immediate transitions have priority over timed transitions

Example 2 Results for the case li = l : • p2 = p4 = p5 = p7 = p8 = 1/5 • Utilization ratio of the shared machine: p2 + p4 + p5 + p7 = 4/5 • Production rate of P1 (frequence of t3) : p4 l3 + p8 l3 = 2/5 l • Production rate of P2 (frequence of t6) : p7 l6 + p8 l6 = 2/5 l (!!!)

Remarks It is not obvious to build directly the Markov chain Stochastic Petri nets offer an elegant tool for generation of correct Markov chain models of complex systems Immediate transitions seem a good way for representation of conflicts and priorities

Introduction to stochastic Petri nets by examples Plan Introduction to stochastic Petri nets by examples Petri nets with inhibitors and priority Generalized stochastic Petri nets Applications Extensions

Definition PN = (P, T, I, O, M0, H, P) where : P set of places T set of transitions I : P  T  IN : PRE function, i.e. arcs from places to transitions and their weights O : P  T  IN : POST function, i.e. arcs from transitions and places their weights M0 : P  IN : initial marking H : P  T  IN : generalized inhibitor arcs P : T  IN : priority degrees of transitions

Example Effect of inhibitor : Transition t5 is not firable if M(p6) ≥ 2 . Effect of priority : Transitions t1, t6 and t7 are not allowed to fire if at least one transition of higher priority is firable.

tj  G(M) and pj ≥ pk, " tk  G(M) Firing rules R1 : A transition t is said to have concession in marking M if M(p) ≥ I(p, t), "p •t and M(p) < H(p, t), "p °t. Let G(M) the set of transitions that have concession in M R2 : A transition tj is said firable if tj  G(M) and pj ≥ pk, " tk  G(M) R3 : Firing a transition t leads to the following marking : M' = M + O(t) - I(t) •t set of input places of transition t t• set of output places of t °t set of places linked to t by inhibitor arcs

Structures of conflicts • (Without priority) : A transition tm is said in effective conflict with tl at marking M if - tm has concession in M - tl is firable - tm no longer has concession in M' such that M(tl > M'. Example : t2, t3 and M1 obtained after firing t1.

Structures of conflicts (with priority) : A transition tk is said in indirect effective conflict with tl having the same degree of priority in M if tk is firable in M, tl is firable in M, firing tl leads to a sequence s of higher priority transitions such that, after s, no transition of priority higher than pk is firable, tk is not firable in M' such that M(tl s> M'. Example :

Structural properties of PN If the Markov chain of a stochastic Petri net has a finite state space and is ergodic, then - it is consistent : - and it is conservative : where C = O - I.

Introduction to stochastic Petri nets by examples Plan Introduction to stochastic Petri nets by examples Petri nets with inhibitors and priority Generalized stochastic Petri nets (GSPN) Applications Extensions

Definition GSPN = (P, T, I, O, M0, H, P, W) where PN = (P, T, I, O, M0, H, P) is a Petri net with inhibitors and priority composed of: transitions of priority 0 that are timed transitions with exponentially distributed firing times (timed transitions) transitions of priority n ≥ 1 that are immediate transitions (n-immediates transitions) W : T  IR+ : is a function such that W(t) is the rate of the exponential distribution, i.e. inverse of the mean firing time, if t is timed W(t) is a weight associated with t if t is immediate

Tangibles and intangibles markings A marking M is said tangible if no immediate transition is firable. It is said intangible if at least one immediate transition is firable.

Dynamics of GSPN To each timed transition is associated a clock initiated with the corresponding exponential distribution For a tangible marking, clocks of all firable transitions tick down at the same speed the next transition to fire is that whose clock reaches zero first

Dynamics of GSPN For an intangible marking, a firable transition ti fires next with probability : where E(M) is the set of firable transitions. All transitions in E(M) are immediate transitions of the same degree. Firing ti leads to a new marking If the new marking is till intangible, the above is repeated. Otherwise, clocks of new transitions are generated and the system evolves from the new tangible marking

Impacts The sequence of tangible markings is a CTMC. the average sojourn time in a tangible marking M is exponentially distributed with mean where E(M) is the set of transition firable at M, and W(t) is the parameter of the exponential distribution of t the probability of firing a firable transition tk in a tangible marking M is:

Generation of the isomorphic CTMC The CTMC can be derived from the reachability graph (RG) : (i) by establish a one-to-one correspondence between the states of the CTMC and tangible markings CTMC Reachability graph

Generation of the isomorphic CTMC (ii) by introducing an arc (or a state-transition) u for all arc t of RG connecting two tangible markings. The rate of u is W(t) CTMC Reachability graph

Generation of the isomorphic CTMC (iii) by introducing an arc v for all path t1t2…tk of RG connecting two tangible markings M and M* via intangible markings M1, M2, …, Mk-1. The rate of v is : W(t1) P(t2 / M1) .P(t3 / M2) … P(tk / Mk-1) where CTMC Reachability graph

Performance evaluation Steady state distribution : pj : probablity of being in tangible marking Mj Firing frequency of a timed transition tk where lk(Mj) is the firing rate of tk in Mj Average number of tokens in place p : Average sojourn time of tokens in a place p (Little's law):

Methodology Construction of the GSPN model Validation of the model. For example, the verification of the consistency and conservativeness. Definition of performance measures Generation of the reachability graph Derive the isomorphic CTMC Verification of the ergodicity of the CTMC Compute the steady state distribution of the CTMC Computation of the performance measures   Remark : Softwares are available for automatic generation and solution of CTMC (GreatSPN, …)

Introduction to stochastic Petri nets by examples Plan Introduction to stochastic Petri nets by examples Petri nets with inhibitors and priority Generalized stochastic Petri nets Applications Extensions

Failure-prone production line Assumption : idle machines cannot fail Parameters : li : failure rate mi : repair rate pi : production rate H : buffer capacity

Failure-prone production line : GSPN model

Failure-prone production line structural properties Conservative as the GSPN is covered by three p-invariants : {p1, p2, p3, p4} {p2, p3, p9, p10} {p5, p6, p7, p8} Consistent as the GSPN is covered by three t-invariants: {t1, t2, t3, t6, t7, t8} {t4, t5} {t9, t10}

Failure-prone production line : performances Production rate (frequency of t7) Average WIP Utilization ratios of the machines : Idle rate of the machines

An NC machine The operation cycle of the machine is as follows : Phase 1 : Read informations of the product to process Phase 2 : Simultaneous execution of two commands: preparation of machining tools and preparation of NC program Phase 3 : Process the product Phase 4 : Test of the quality. If the quality is insufficient, then the machine repeats phases 2 and 3 for other treatments. Otherwise, the product is unloaded.

An NC machine : GSPN model with r + q = 1. Phase 1 : Read the product informations Phase 2 : Simultaneous execution of two commands: tool preparation and NC program loading Phase 3 : Process the product Phase 4 : Quality test. With probability q, the quality is insufficient, then the machine repeats phases 2 and 3 for other treatments. Otherwise, the product is unloaded.

An NC machine : structural properties with r + q = 1. Phase 1 : Read the product informations Phase 2 : Simultaneous execution of two commands: tool preparation and NC program loading Phase 3 : Process the product Phase 4 : Quality test. With probability q, the quality is insufficient, then the machine repeats phases 2 and 3 for other treatments. Otherwise, the product is unloaded.

An NC machine : Markov chain Reachability graph Markov Chain

An NC machine : Steady state analysis The state-transition diagam is strongly connected and the CTMC is ergodic. Steady state distribution is solution of the system p1 l1 = p9l9 p3 (l3 + l4) = p1l1 + p7ql6 p4l4 = p3l3 p5l3 = p3l4 p9l9 = p7 rl6 p1 + p3 + p4 + p5 + p7 + p9 = 1

An NC machine : Performances - Production rate (frequency of t9) : TH = p9 l9 - mean production cycle : T = 1/TH - mean time of phase 2 (Little's law): - Utilization ratio of the machine : D = p7

Introduction to stochastic Petri nets by examples Plan Introduction to stochastic Petri nets by examples Petri nets with inhibitors and priority Generalized stochastic Petri nets Applications Extensions

Choice of immediate transitions with random switches Each random switch is associated with a set S of transition and it indicates, for each marking, the probability of firing a transition of this set Switches which are functions of markings are particularly useful Example : if M(p2) < M(p3) , P(t1) = 1, P(t2) =0 if M(p2) > M(p3), P(t1) = 0, P(t2) =1 if M(p2) = M(p3), P(t1) = 0.5, P(t2) = 0.5

Marking dependent firing times Example : lt(M) = lt * Min{M(p), "p  •t}

Approximation of general distribution Consider a random variable D of mean mD and standard deviation sD. Case : mD > sD. The delay of the subn-etwork N1 and D have the same mean and same standard deviation if :

Approximation of general distribution Consider a random variable D of mean mD and standard deviation sD. Case : mD < sD. The delay of the subnetwork N2 and D have the same mean and same standard deviation if :