1 Petri Nets Ina Koch and Monika Heiner. 2 Petri Nets(1962) Carl Adam Petri.

Slides:



Advertisements
Similar presentations
What is Petri nets? A bipartite graph G(V,E) – V = P U T P is the set of places (represented with circles) T is the set of transitions (represented with.
Advertisements

VL Netzwerke, WS 2007/08 Edda Klipp 1 Max Planck Institute Molecular Genetics Humboldt University Berlin Theoretical Biophysics Networks in Metabolism.
Techniques to analyze workflows (design-time)
Concurrent Operational Semantics of Safe Time Petri Nets Claude Jard European University of Brittany, ENS Cachan Bretagne, IRISA Campus de Ker-Lann,
1 SE-561 Formal Methods in Software Petri Nets - I.
An Introduction to Petri Nets
Introduction to Petri Nets Hugo Andrés López
8.3 Representing Relations Connection Matrices Let R be a relation from A = {a 1, a 2,..., a m } to B = {b 1, b 2,..., b n }. Definition: A n m  n connection.
Petri Nets Section 2 Roohollah Abdipur.
Based on: Petri Nets and Industrial Applications: A Tutorial
Graph-02.
26 September 2003U. Buy -- SEES 2003 Sidestepping verification complexity with supervisory control Ugo Buy Department of Computer Science Houshang Darabi.
Chapter 3 Petri nets Learning objectives : Introduce Petri nets
Graphical Representation of Asynchronous Systems Jan 15, 2004
IE 469 Manufacturing Systems
Graphs Graphs are the most general data structures we will study in this course. A graph is a more general version of connected nodes than the tree. Both.
Lei Bu Petri Nets 11 Dining Philosphier 4 States , 5 transitions.
Petri net modeling of biological networks Claudine Chaouiya.
Synthesis of Embedded Software Using Free-Choice Petri Nets.
10. Petri Nets Prof. O. Nierstrasz. Roadmap  Definition: —places, transitions, inputs, outputs —firing enabled transitions  Modelling: —concurrency.
Petri Nets Overview 1 Definition of Petri Net C = ( P, T, I, O) Places P = { p 1, p 2, p 3, …, p n } Transitions T = { t 1, t 2, t 3, …, t n } Input.
Applied Discrete Mathematics Week 12: Trees
CS447/ECE453/SE465 Prof. Alencar University of Waterloo 1 CS447/ECE453/SE465 Software Testing Tutorial Winter 2008 Based on the tutorials by Prof. Kontogiannis,
CP — Concurrent Programming 12. Petri Nets Prof. O. Nierstrasz Wintersemester 2005 / 2006.
A Schedulability-Preserving Transformation of BDF to Petri Nets Cong Liu EECS 290n Class Project December 10, 2004.
1 Petri Nets Marco Sgroi EE249 - Fall 2001 Most slides borrowed from Luciano Lavagno’s lecture ee249 (1998)
Petri Nets: Properties, Analysis and Applications Gabriel Eirea EE249 Discussion 10/8/02 Based on paper by T. Murata.
CSE 321 Discrete Structures Winter 2008 Lecture 25 Graph Theory.
Mata kuliah :K0362/ Matematika Diskrit Tahun :2008
Technische universiteit eindhoven Department of Electrical Engineering Electronic Systems Liveness and Boundedness of Synchronous Data Flow Graphs A.H.
Linear and Branching Time Safety, Liveness, and Fairness
Graph Theoretic Concepts. What is a graph? A set of vertices (or nodes) linked by edges Mathematically, we often write G = (V,E)  V: set of vertices,
Modeling with ordinary Petri Nets Events: Actions that take place in the system The occurrence of these events is controlled by the state of the system.
CY2003 Computer Systems Lecture 7 Petri net. © LJMU, 2004CY2003- Week 72 Overview Petri net –concepts –Petri net representation –Firing a transition –Marks.
Based on slides by Y. Peng University of Maryland
- 1 -  P. Marwedel, Univ. Dortmund, Informatik 12, 05/06 Universität Dortmund Petri nets Introduced in 1962 by Carl Adam Petri in his PhD thesis. Focus.
Generalized stochastic Petri nets (GSPN)
Petri Nets Lecturer: Roohollah Abdipour. Agenda Introduction Petri Net Modelling with Petri Net Analysis of Petri net 2.
Modelling by Petri nets
Rigoros and Adaptive... Information Systems1 Development of Rigorous Adaptive Information Systems Dr. Nasreddine Aoumeur FIN, ITI, DB group
Learning objectives : Introduce Petri nets Dynamic behavior modeling of manufacturing systems using PN Analysis of Petri net models Textbook : J.-M. Proth.
CSCI1600: Embedded and Real Time Software Lecture 11: Modeling IV: Concurrency Steven Reiss, Fall 2015.
Representing Relations Using Matrices A relation between finite sets can be represented using a zero-one matrix Suppose R is a relation from A = {a 1,
School of Computer Science & Software Engineering
Humboldt- Universität zu Berlin Edda Klipp Systembiologie 8 – Petri Nets Sommersemester 2010 Humboldt-Universität zu Berlin Institut für Biologie Theoretische.
1 Lecture 23 – April 11, 2002 Semester end questions More about Bond agents Models and languages supporting concurrency Petri Nets.
/faculteit technologie management PN-1 Petri nets refresher Prof.dr.ir. Wil van der Aalst Eindhoven University of Technology, Faculty of Technology Management,
Hardware/Software Codesign of Embedded Systems
26/04/04 Petri nets in systems biology: creation, analysis and simulation Oliver Shaw School of Computing Science.
Graphs. Graph Definitions A graph G is denoted by G = (V, E) where  V is the set of vertices or nodes of the graph  E is the set of edges or arcs connecting.
Section 9.3. Section Summary Representing Relations using Matrices Representing Relations using Digraphs.
Technology of information systems Lecture 5 Process management.
Process Mining – Concepts and Algorithms Review of literature on process mining techniques for event log data.
Petri Potato Presentation about paper: “Application of Petri net theory for modelling and validation of the sucrose breakdown pathway in the potato tuber,
Advantages of FSM Their simplicity make it easy for inexperienced developers to implement with little to no extra knowledge (low entry level)
Chapter 3 Petri nets Learning objectives : Introduce Petri nets
Dr. Eng Amr T. Abdel-Hamid
Clockless Computing COMP
COT 5611 Operating Systems Design Principles Spring 2014
Concurrent Systems Modeling using Petri Nets – Part II
CAP 4800/CAP 5805: Computer Simulation Concepts
بسمه‌تعالي فصل چهاردهم شبکه‌هاي پتري.
CSCI1600: Embedded and Real Time Software
Introduction to Petri Nets (PNs)
Graphs G = (V, E) V are the vertices; E are the edges.
Petri Net :Abstract formal model of information flow Major use:
Applied Discrete Mathematics Week 13: Graphs
Based on slides by Y. Peng University of Maryland
CSCI1600: Embedded and Real Time Software
GRAPHS.
Presentation transcript:

1 Petri Nets Ina Koch and Monika Heiner

2 Petri Nets(1962) Carl Adam Petri

3 Outline basic definition structural analysis biological network with Petri net

4 Petri net Definition : PN = (P, T, f, m 0 ) Two type nodes Set : P (Places) ; T (transitions) Edges Set : f (set of directed arcs) m 0 : initial marking(tokens)

5 Example Arcs only connect of different type

6 Firing rule Definition A transition t is enabled in a marking m m[t>,if ∀ p ∈ t : f (p, t) ≤ m(p). transition t,which is enabled in m, may fire. When t in m fires : m[t>m ’,with ∀ p ∈ P : m ’ (p) = m(p) − f (p, t) + f (t, p).

7 Example: firing 2NAD + + 2H 2 O → 2NADH + 2H + + O 2

8 Concurrent Firing actions partial order (r 1,r 2 ); (r 1,r 3 ); r 2,r 3 can fire independently

9 Behavioral Properties Reachability liveness, reversibility Boundedness others

10 Behavioral Properties : Reachability Marking M is reachable from marking M 0 if there exists a sequence of firings  M 0 t 1 M 1 t 2 M 2 … M that transforms M 0 to M. [M 0 > Set of marking M reachable from M 0

11 Behavioral Properties : Reachability [M 0 > = R(M 0 )={( ), ( ), ( ) }

12 Behavioral Properties : Liveness Definition: Liveness of transitions A transition t is dead in a marking m, if it is not enabled in every marking m ’ reachable from m:  ∃ m ’ ∈ [m> : m ’ [t>  m ’ ∈ [m> :  m ’ [t> A transition t is live, if it is not dead in any marking reachable from m 0

13 Behavioral Properties : Liveness Definition: Liveness of Petri net Deadlock-free (weakly live) : if there are no reachable dead markings. (marking m is dead if there is no transition enabled in m) Live (strongly live) : if each transition is live

14 Examples Weakly live

15 Behavioral Properties : Reversibility Definition : A Petri net is reversible: ∀ m ∈ [m 0 > : m 0 ∈ [m> Not reversible X

16 Behavioral Properties : Boundedness Definition : place p is k-bounded : if ∃ k ∈ postive integer : ∀ m ∈ [m 0 > : m(p) ≤ k Petri Net is k-bounded : if all its places are k-bounded

17 Unbounded

18 Unbounded

19 Unbounded

20 Unbounded

21 Structural Analysis ordinary : A Petri net is ordinary, if all arc weights are equal to 1 Pure: A Petri net is pure, if there are no two nodes, connected in both directions conservative : A Petri net is conservative, if all transitions fire token- preservingly

22 Structural Analysis (cont ’ s) connected : A Petri net is connected, if it holds for all pairs of nodes a and b that there is an undirected path from a to b. Strongly connected : A Petri net is strongly connected, if it holds for all pairs of nodes a and b that there is an directed path from a to b. free of boundary nodes : A Petri net is free of boundary nodes, if there are no transitions without pre-/postplaces and no places without pre/posttransitions

23 Structural Analysis (cont ’ s) free of static confilct : A Petri net is free of static conflicts, if there are no two transitions sharing a preplace..

24 Structural Analysis (cont ’ s) structural deadlock : D ⊆ P, D ⊆ D trap : Q ⊆ P, Q ⊆ Q

25 example structural deadlock : D ={A,B}, D ={r1,r2}, D ={r1,r2,r3} : D ⊆ D trap : Q ={C,D,E}, Q ={r4,r5}, Q ={r1,r3,r4,r5} : Q ⊆ Q

26 matrix representation matrix entry c ij : token change in place pi by firing of transition tj matrix column Δt j : vector describing the change of the whole marking by firing of t j

27 incidence (stoichiometric) matrix

28 T-invariants integer solutions y :( y is transition vector) C y= 0, y≠ 0, y ≥ 0 1y 1 −3y 2 +3y 3 = 0 2y 1 −2y 2 = 0 −2y 1 +3y 3 = 0 +2y 2 −3y 3 = 0

29 P-invariants integer solutions x : ( x is place vector) x C= 0, x≠ 0, x ≥ 0 x 1 +2x 2 −2x 3 = 0 −3x 1 −2x 2 +2x 4 +2x 5 = 0 3x 1 +3x 3 −3x 4 −3x 5 = 0

30 covered by invariants Definition : A Petri net is covered by p-invariants — CPI, if every place belongs to a p-invariant A Petri net is covered by t-invariants — CTI, if every transition belongs to a t-invariant.

31 example P-invar solutions (2, 0, 1, 0, 3)=>{A,C,E} (0, 1, 1, 0, 1)=>{B,C,E} (2, 0, 1, 3, 0)=>{A,C,D} (0, 1, 1, 1, 0)=>{B,C,D} T-invar solutions (3,3,2)=>{r1,r2,r3}

32 Reachability graph Let N = (P, T, f,m0) be a Petri net. The reachability graph of N is the graph RG(N) = (VN,EN ), where VN := [m0> is the set of nodes, EN := {(m, t,m ’ ) | m,m ’ ∈ [m0, t ∈ T : m[t>m ’ } is the set of arcs.

33 Reachability graph 1.k-bounded: iff there is no node in the reachability graph with a token number larger than k in any place. 2. reversible: iff the reachability graph is strongly connected. 3.deadlock-free: iff the reachability graph does not contain nodes without outgoing arcs.

34 Reachability graph

35 Different type of biological network metabolic networks signal transduction networks gene regulatory networks

36 Pathway vs Network Network cell behavior or the whole model of a cell Pathway represents functional subnetwork Network may consist of several pathways

37 Hypergraph to Petri Nets