Petri Nets An Overview IE 680 Presentation April 30, 2007 Renata Kopach- Konrad.

Slides:



Advertisements
Similar presentations
School of Computer Science & Software Engineering
Advertisements

Principles of Engineering System Design Dr T Asokan
Techniques to analyze workflows (design-time)
An Introduction to Petri Nets
Principles of Engineering System Design Dr T Asokan
Introduction to Petri Nets Hugo Andrés López
A university for the world real R © 2009, Chapter 3 Advanced Synchronization Moe Wynn Wil van der Aalst Arthur ter Hofstede.
Petri Nets Section 2 Roohollah Abdipur.
Based on: Petri Nets and Industrial Applications: A Tutorial
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
An Introduction to Markov Decision Processes Sarah Hickmott
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.
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 H Plan: –Introduce basics of Petri Net models –Define notation and terminology used –Show examples of Petri Net models u Calaway Park model.
Modeling Worldviews Activity Scanning – Petri Nets and Event Graphs Event Scheduling – Event Graphs State Machines Process Interaction –Block Flow Diagrams.
12/07/2007Jiacun Wang1 SE-561 Math Foundations Petri Nets - II Dr. Jiacun Wang Department of Software Engineering Monmouth University.
Simulation.
Models of Computation for Embedded System Design Alvise Bonivento.
1 Petri Nets Marco Sgroi EE249 - Fall 2001 Most slides borrowed from Luciano Lavagno’s lecture ee249 (1998)
Modeling State-Dependent Objects Using Colored Petri Nets
/faculteit technologie management DEMO CPN-tools Ronny Mans Eindhoven University of Technology, Faculty of Technology Management, Department of Information.
Mata kuliah :K0362/ Matematika Diskrit Tahun :2008
Simulation Output Analysis
PETRINETS Nipun Devlekar Zauja Lahtau. PETRINETS DEFINITION : DEFINITION :  PETRINET (place/ transition net): a formal, graphical, executable technique.
Linear and Branching Time Safety, Liveness, and Fairness
Chapter 1 Introduction to Simulation
Jorge Muñoz-Gama Universitat Politècnica de Catalunya (Barcelona, Spain) Algorithms for Process Conformance and Process Refinement.
An Introduction to Petri Nets Marjan Sirjani Formal Methods Laboratory University of Tehran.
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.
Petri Nets Copyright, 2003 © Jerzy R. Nawrocki Models and Analysis of Software Lecture.
CY2003 Computer Systems Lecture 7 Petri net. © LJMU, 2004CY2003- Week 72 Overview Petri net –concepts –Petri net representation –Firing a transition –Marks.
Various topics Petter Mostad Overview Epidemiology Study types / data types Econometrics Time series data More about sampling –Estimation.
Jana Flochová and René K. Boel Faculty of Informatics and Information Technology Slovak university of Technology, Bratislava, Slovakia EESA Department,
Kurt Jensen Lars M. Kristensen 1 Coloured Petri Nets Department of Computer Science Coloured Petri Nets Modelling and Validation of Concurrent Systems.
Stochastic Activity Networks ( SAN ) Sharif University of Technology,Computer Engineer Department, Winter 2013 Verification of Reactive Systems Mohammad.
Generalized stochastic Petri nets (GSPN)
Hardware Design and The Petri Net Abhijit K. Deb SAM, LECS, IMIT, KTH Kista, Stockholm.
Petri Nets Lecturer: Roohollah Abdipour. Agenda Introduction Petri Net Modelling with Petri Net Analysis of Petri net 2.
Modelling by Petri nets
Modeling Mobile-Agent-based Collaborative Processing in Sensor Networks Using Generalized Stochastic Petri Nets Hongtao Du, Hairong Qi, Gregory Peterson.
CSCI1600: Embedded and Real Time Software Lecture 11: Modeling IV: Concurrency Steven Reiss, Fall 2015.
OPERATING SYSTEMS CS 3530 Summer 2014 Systems and Models Chapter 03.
School of Computer Science & Software Engineering
CAP 4800/CAP 5805: Computer Simulation Concepts
26/04/04 Petri nets in systems biology: creation, analysis and simulation Oliver Shaw School of Computing Science.
Petri Net based semantic engine Vivek Singh, SEECS, UCF Feb 7, 2002.
Instructor: Spyros Reveliotis IE7201: Production & Service Systems Engineering Fall 2009 Closure.
Petri-Nets and Other Models
Technology of information systems Lecture 5 Process management.
Process Mining – Concepts and Algorithms Review of literature on process mining techniques for event log data.
Polynomial analysis algorithms for free-choice workflow nets
OPERATING SYSTEMS CS 3502 Fall 2017
Requirements Techniques, cont.
Dr. Eng Amr T. Abdel-Hamid
2. Specification and Modeling
Clockless Computing COMP
Theory Of Petri Nets Under the guidance of: Dr. K.S Raju By:
Stochastic Activity Networks
Computation of Minimal Siphons for a Class of Generalized Petri Nets
CSCI1600: Embedded and Real Time Software
World-Views of Simulation
Introduction to Petri Nets (PNs)
An Introduction to Petri Nets
Petri Net :Abstract formal model of information flow Major use:
CSCI1600: Embedded and Real Time Software
Petri Nets Laurie Frazier.
Presentation transcript:

Petri Nets An Overview IE 680 Presentation April 30, 2007 Renata Kopach- Konrad

Overview The building blocks of Petri Nets An example Analysis tools Extensions Elements of steady-state simulation theory for SPNs

What are Petri Nets? Mathematical modeling tools that capture operational dynamics of discrete event systems Graphical Representation Modeling Language State-transition mechanism Event Scheduling mechanism Not this kind of Petri!

Applications Software design Workflow management Data Analysis Reliability Engineering

Suitable for Modeling Concurrency Synchronization Precedence Priority Bottom up and top-down modeling

Modeling Tool: Petri Nets Supports modularity and abstraction Supports system simulation Supports formal analysis for operational properties such as boundedness, liveness, reachabiltiy, etc. Petri Nets have a rich research literature

What is a Petri Net?

System State: Tokens and Net Marking

Initial State: (1,1,2,1) t2 is enabled

Fire t2, New State: (1,0,3,2)

Fire t3, New State: (2,0,2,2)

Fire t1, New State: (1,2,2,2)

Fire t4, New State: (1,3,2,0)

In the context of DES Marking of the SPN = state of the system Firing of a transition = occurrence of an event

Notation… A Petri net is a 5-tuple, where S is a set of places T is a set of transitions F is a set of arcs s.t. M 0 is an initial marking W is the set of arc weights/transition matrix/incidence matrix

…allows for many things The state of a net is an M vector so State equations are possible Where is how many times each transition fires W T state transition matrix

S={p 1,p 2,p 3,p 4 } T={t 1,t 2,t 3,t 4 } F={(p 1,t 1 ) (p 2,t 2 ) (p 3,t 3 ) (p 4,t 4 ) (t 1,p 2 )(t 2,p 3 )(t 2 p 4 ) (t 3,p 1 ) (t 4,p 2 )} W M 0 Initial state (1,1,2,1) σ Firing sequence (t2 t3 t1 t4) M n Final state (1,3,2,0)

Analysis Techniques Reachability: used to find erroneous state (Karp and Miller, Hack) Liveness: related to deadlock Boundedness: if the # of tokens in any place cannot exceed k. (Covering) Fairness: will there be an infinite sequence?

Reachability How do we get there? What sequence of event firings will get us to the final state? Final State Starting State (Initial Marking)

Reachability Example Obtain the min sequence of events (transition firings) from an initial state to a final state MIP Problem: solved multiple times Constraints: State Equations Objective Function: minimize the difference between the final and the intermediate state

An example

Part 1: Min number of events – Finding the Parikh Vector Min + S.t. X j>= 0 j Є J, Є Z where, α i >= 0 initial marking (given) i Є I y i >= 0 final marking (given) i Є I, Z Ф ij - coefficient on the Incidence Matrix for place i, transition j; i Є I, j Є J, x is the number of times transition j fires j Є J =

Part 2: Identifying the Sequence of Events using MIP Constraint (i) state equation Constraint (ii) limits the transitions per sequence to 1. Constraint (iii) enforces the total number of times a transition can fire across all sequences to be equal to the PV

Many extensions are possible Coloured Hierarchy Prioritized Timed Petri Nets Stochastic

The Stochastic Element Clocks X(t) is the marking process of an SPN Ref: Haas, 2004 page 102

A Queuing Example The SPN of the model is Ref: Haas, 2004 page Service Centers N(>2) jobs p: rework at Center 1

Stability and Simulation Interested in performance characteristics Typically interested in terms of the marking process Can apply Regenerative Simulation Method

Expected value of data collected in regenerative interval Expected number of data Concerns: How do you find regenerative point in an SPN?

Key Assumptions There exists a marking set of transitions Such that the marking process probability restarts whenever the marking is and the transitions in fire simultaneously.

Regenerative method for the Marking Process 1.Select a sequence of regeneration points for the process 2.Simulate the process and observe a fixed number n of cycles defined by the random times 3.Compute the length of the kth cycle and the quantity 4.Form the strongly consistent point estimate (e.g. using jackknife method) 5.Haas (2004) provides the theorem for defining the sequence of regeneration points for a marking process

Challenges Difficult to identify regeneration points in practice Can be long intervals/ high utilization Haas suggests using Standardized Time Series

Software STNPlay CPNTools (Colored PNs) Petri Net Kernel (in Java) YASPER (workflow analysis)

Summary Petri Nets are a powerful modeling tool Many extensions are possible Allows for rigorous formulalism

References J. Peterson. Petri Net Theory and the Modeling of Systems. Prentice Hall T. Murata, “Petri nets: Properties, Analysis And Applications”, Proc. Of The IEEE, Vol. 77 No.4, pp , April C. Cassandras. Discrete Event Systems: Modeling and Performance Analysis. Homewood, IL: Richard D. Irwin, Inc., and Aksen Associates, Inc., P. Haas, “Stochastic Petri Nets for Modelling and Simulation,” Proc. Of the 2004 Winter Simulation Conference, Washington, D.C, pp , December 2004.