Applications of Petri Nets

Similar documents
biological networks Claudine Chaouiya SBML Extention L3F meeting August

DES. 4. Petri Nets. Introduction. Different Classes of Petri Net. Petri net properties. Analysis of Petri net models

Stochastic Petri Nets. Jonatan Lindén. Modelling SPN GSPN. Performance measures. Almost none of the theory. December 8, 2010

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

A REACHABLE THROUGHPUT UPPER BOUND FOR LIVE AND SAFE FREE CHOICE NETS VIA T-INVARIANTS

Composition of product-form Generalized Stochastic Petri Nets: a modular approach

ADVANCED ROBOTICS. PLAN REPRESENTATION Generalized Stochastic Petri nets and Markov Decision Processes

Advances in Continuous Replenishment Systems. Edmund W. Schuster. Massachusetts Institute of Technology

Structural Analysis of Resource Allocation Systems with Synchronization Constraints

Specification models and their analysis Petri Nets

Petri net models. tokens placed on places define the state of the Petri net

Proxel-Based Simulation of Stochastic Petri Nets Containing Immediate Transitions

Elementary Siphons of Petri Nets and Deadlock Control in FMS

Resource-Oriented Petri Nets in Deadlock Avoidance of AGV Systems

Integrating prior knowledge in Automatic Network Reconstruction

Biological Pathways Representation by Petri Nets and extension

Petri nets. s 1 s 2. s 3 s 4. directed arcs.

From Stochastic Processes to Stochastic Petri Nets

Embedded Systems 6 REVIEW. Place/transition nets. defaults: K = ω W = 1

On Qualitative Analysis of Fault Trees Using Structurally Persistent Nets

The State Explosion Problem

Introduction to Stochastic Petri Nets

Direct mapping of low-latency asynchronous

EE249 - Fall 2012 Lecture 18: Overview of Concrete Contract Theories. Alberto Sangiovanni-Vincentelli Pierluigi Nuzzo

Petri Nets (for Planners)

Designing parsimonious scheduling policies for complex resource allocation systems through concurrency theory

MQNA - Markovian Queueing Networks Analyser

HYPENS Manual. Fausto Sessego, Alessandro Giua, Carla Seatzu. February 7, 2008

Time(d) Petri Net. Serge Haddad. Petri Nets 2016, June 20th LSV ENS Cachan, Université Paris-Saclay & CNRS & INRIA

Optimal Policies for an Assemble-to-Order N-System

Georg Frey ANALYSIS OF PETRI NET BASED CONTROL ALGORITHMS

Analysis and Simulation of Manufacturing Systems using SimHPN toolbox

AN INTRODUCTION TO DISCRETE-EVENT SIMULATION

Methods for the specification and verification of business processes MPB (6 cfu, 295AA)

7. Queueing Systems. 8. Petri nets vs. State Automata

ONE NOVEL COMPUTATIONALLY IMPROVED OPTIMAL CONTROL POLICY FOR DEADLOCK PROBLEMS OF FLEXIBLE MANUFACTURING SYSTEMS USING PETRI NETS

ARTICLE IN PRESS. Available online at Mathematics and Computers in Simulation xxx (2010) xxx xxx.

Analysis and Optimization of Discrete Event Systems using Petri Nets

Time and Timed Petri Nets

Property-preserving subnet reductions for designing manufacturing systems with shared resources

Petri nets analysis using incidence matrix method inside ATOM 3

c 2014 Vijayalakshmi Deverakonda

Simulation of Spiking Neural P Systems using Pnet Lab

Stochastic Petri Net

Process Discovery and Conformance Checking Using Passages

7.1 INTRODUCTION. In this era of extreme competition, each subsystem in different

Modeling Synchronous Systems in BIP

Networking = Plumbing. Queueing Analysis: I. Last Lecture. Lecture Outline. Jeremiah Deng. 29 July 2013

c 2011 Nisha Somnath

Modelling Systems by Hybrid Petri Nets: an Application to Supply Chains Mariagrazia Dotoli 1, Maria Pia Fanti 1, Alessandro Giua 2, Carla Seatzu 2

Modeling Continuous Systems Using Modified Petri Nets Model

The study reported in this monograph is sponsored by the TNO Institute for Production and Logistics (IPL) as part of the TASTE project.

Complexity Analysis of Continuous Petri Nets

Desynchronisation Technique using Petri Nets

NONBLOCKING CONTROL OF PETRI NETS USING UNFOLDING. Alessandro Giua Xiaolan Xie

A compact modeling approach for deterministic biological systems

Consistent Global States of Distributed Systems: Fundamental Concepts and Mechanisms. CS 249 Project Fall 2005 Wing Wong

Synchronous Reactive Systems

Exercises Solutions. Automation IEA, LTH. Chapter 2 Manufacturing and process systems. Chapter 5 Discrete manufacturing problems

Petri Net Modeling of Irrigation Canal Networks

SPN 2003 Preliminary Version. Translating Hybrid Petri Nets into Hybrid. Automata 1. Dipartimento di Informatica. Universita di Torino

Methods for the specification and verification of business processes MPB (6 cfu, 295AA)

Automatic Network Reconstruction

CHAPTER-3 MULTI-OBJECTIVE SUPPLY CHAIN NETWORK PROBLEM

Simulation & Modeling Event-Oriented Simulations

Technical report bds:00-21

DECOMPOSITION OF PETRI NETS

Worst-case Analysis of Concurrent Systems with Duration Interval Petri Nets

3 Net Models of Distributed Systems and Workflows

Learning Automata Based Adaptive Petri Net and Its Application to Priority Assignment in Queuing Systems with Unknown Parameters

Reliability of Technical Systems. Advanced Methods for Systems Modelling and Simulation I : Petri Nets

This paper can be downloaded without charge from the Social Sciences Research Network Electronic Paper Collection:

Inventory optimization of distribution networks with discrete-event processes by vendor-managed policies

Methods for the specification and verification of business processes MPB (6 cfu, 295AA)

Open Access Database Italy. 1. Introduction

Performance Control of Markovian Petri Nets via Fluid Models: A Stock-Level Control Example

Free-Choice Petri Nets without Frozen Tokens, and Bipolar Synchronization Systems. Joachim Wehler

Designing distribution networks of perishable products under stochastic demands and routs

Analysing Signal-Net Systems

Causality Interfaces and Compositional Causality Analysis

A strategy for Estimation in Timed Petri nets

Computers and Mathematics with Applications. Module-based architecture for a periodic job-shop scheduling problem

A deadlock prevention method for railway networks using monitors for colored Petri nets

NECESSARY AND SUFFICIENT CONDITIONS FOR DEADLOCKS IN FLEXIBLE MANUFACTURING SYSTEMS BASED ON A DIGRAPH MODEL

Petri Nets and Model Checking. Natasa Gkolfi. University of Oslo. March 31, 2017

Auctioning Substitutable Goods

Time Petri Nets. Miriam Zia School of Computer Science McGill University

An Holistic State Equation for Timed Petri Nets

Alexandru Ioan Cuza University of Iaşi Faculty of Computer Science. Modular Analysis of Petri Net Models. (Ph.D. Thesis) Aurora ŢIPLEA

Modeling and Stability Analysis of a Communication Network System

Asymptotically Optimal Inventory Control For Assemble-to-Order Systems

Communication in Petri nets

MQNA - Markovian Queueing Networks Analyser

Designing parsimonious scheduling policies for complex resource allocation systems through concurrency theory

MODELLING DYNAMIC RELIABILITY VIA FLUID PETRI NETS

Reaxys Improved synthetic planning with Reaxys

Compositional Analysis of Timed-arc Resource Workflows with Communication

1. sort of tokens (e.g. indistinguishable (black), coloured, structured,...),

SPECIFICATION MODELS. Chapter 3. Overview. Introducing Hierarchy. StateCharts

Checking Behavioral Conformance of Artifacts

Transcription:

Applications of Petri Nets Presenter: Chung-Wei Lin 2010.10.28

Outline Revisiting Petri Nets Application 1: Software Syntheses Theory and Algorithm Application 2: Biological Networks Comprehensive Introduction Application 3: Supply Chains Example and Experiment Summary 2

A 3-tuple (P,T,F) Definition of a Petri Net P: set of places T: set of transitions F: (P T) U (T P) N, weighted flow relation 1 1 1 2 How does it work? p 1 t 1 p 2 t 2 p 3 enabled enabled Each place holds some ( 0) tokens A transition is enabled if its input places contain at least the required # of tokens The firing of an enabled transition results in Consumption of the tokens of its input places Production of the tokens of its output places 3

Marking More about Petri Nets A vector representing the number of tokens in all places Properties of Petri Nets Reachability (of a marking from another marking) Boundedness The numbers of tokens in all places are bounded Conservation The total number of tokens is constant Deadlock-freedom Always at least one transition can fire Liveness From any marking, any transition can fire sometime Schedulability The first paper will discuss this 4

T-Invariant and Finite Complete Cycle T-invariant is a vector s.t. The i-th component is the number of firing times of transition t i The marking is unchanged if firing them so many times However, it does not guarantee that a transition can be fired Deadlock Finite complete cycle is a sequence of transitions s.t. The marking is unchanged if firing the sequence 1 2 1 2 t 1 p 1 t 2 p 2 t 3 One T-invariant: (4,2,1) Some finite complete schedules: <t 1,t 1,t 1,t 1,t 2,t 2,t 3 > <t 1,t 1,t 2,t 1,t 1,t 2,t 3 > 5

Outline Revisiting Petri Nets Application 1: Software Syntheses Synthesis of Embedded Software Using Free Choice Petri Nets Application 2: Biological Networks Application 3: Supply Chains Summary 6

Static, Quasi-Static, and Dynamic Scheduling Scheduling problem Mapping a functional implementation to real resources Satisfying real-time constraints Using resources as efficiently as possible Static scheduling Specifications contain only data computations The schedule can be completely computed at compile time Quasi-static scheduling Specifications contain data-dependent controls, like if-then-else or while-do loops The schedule leaves data-dependent decisions at run-time Dynamic scheduling Specifications contain real-time controls 7

Free Choice Petri Net Free Choice Petri Net (FCPN) is a Petri net such that every arc from a place is A unique outgoing arc, or A unique incoming arc to a transition exactly an if-then-else structure! FCPN Not FCPN Two transitions are in equal conflict relation (ECR) if their presets are non-empty and equal branches of if-then-else structure ECR Not ECR 8

Let Valid Schedule (Set) Σ = {σ 1,σ 2, } be a finite set σ i = <σ i1,σ i2, > is a finite complete cycle containing all source transitions Σ is a valid schedule (set) if For all (σ ij,t k ) s.t. σ ij σ ih for all h < j σ ij t k and they are in equal conflict relation Exist σ l s.t. σ lm = σ i m for all m j σ lm = t k if m = j In words, a valid schedule is A set of finite complete cycles for every possible outcome of a choice σ 1 σ 2 σ 1 in Σ iff σ 2 in Σ 9

Given A FCPN N Quasi-Statically Schedulable An initial marking μ 0 (N,μ 0 ) is quasi-statically schedulable if There exists a valid schedule t 2 t 4 t 2 t 1 t 3 t 5 t 1 t 3 t 4 Σ = { <t 1,t 2,t 4 >,<t 1,t 3,t 5 > } Schedulable Σ = { <t 1,t 1,t 2,t 3,t 4 > }? Σ = { <t 1,t 1,t 2,t 3,t 4 >,<t 1,t 1,t 3,t 2,t 4 > }? Non-schedulable 10

How to Find a Valid Schedule? Step 1 T-allocation is a function that chooses exactly one transition for every place T-reduction associated with a T-allocation is a set of subnets generated from the image of the T-allocation A 1 ={t 1,t 2,t 4,t 5,t 6,t 7,t 8,t 9 } A 2 ={t 1,t 3,t 4,t 5,t 6,t 7,t 8,t 9 } t 8 t 9 t 8 t 9 t 8 t 9 t 2 t 4 t 6 t 2 t 4 t 6 t 6 t 1 t 3 t 5 t 7 Step 1: decompose a net into conflict-free components t 1 Compute all T-reductions of the net Reduction algorithm R 1 t 1 t 3 t 5 t 7 t 1 t 8 t 9 t 2 t 4 R 2 t 6 t 3 t 5 t 7 11

How to Find a Valid Schedule? Step 2 A T-reduction is schedulable if It has a finite complete cycle that Contains at least one occurrence of every source transition of the net (Definition 3.5) Step 2: check if every conflict-free component is statically schedulable Apply the standard techniques for synchronous dataflow networks Solve T-invariant equation Check deadlock by simulation 12

How to Find a Valid Schedule? Step 3 Given a FCPN, there exists a valid schedule if and only if every T-reduction is schedulable Note that: a valid schedule quasi-schedulable Step 3: derive a valid schedule, if there exists one Compute the union of the finite complete cycles of all T-reduction t 8 t 9 t 8 t 9 t 8 t 9 t 2 t 4 t 6 t 2 t 4 t 6 t 6 t 1 t 3 t 5 t 7 t 1 t 1 t 3 t 5 t 7 T-invariants (why needs two?) (1,1,0,1,0,1,0,0,0) (0,0,0,0,0,1,0,1,1) (1,0,1,0,1,0,1,0,0) (0,0,0,0,0,1,0,1,1) finite complete cycle <t 1,t 2,t 4,t 6,t 8,t 9,t 6 > <t 1,t 3,t 5,t 7,t 8,t 9,t 6 > valid schedule { <t 1,t 2,t 4,t 6,t 8,t 9,t 6 >,<t 1,t 3,t 5,t 7,t 8,t 9,t 6 > } 13

Code Generation Derive an implementation directly from a valid schedule t 2 t 4 2 t 1 p 1 t 3 p 3 t 5 valid schedule { <t 1,t 2,t 1,t 2,t 4 >,<t 1,t 3,t 5,t 5 > } p 2 while ( true ) { 2 t 1 ; if ( p 1 ) { conflict transition } 1p 2 2 } else { 2p 3 1 } t 2 ; count ( p 2 ) ++; if ( count ( p 2 ) == 2 ) { t4; count ( p 2 ) = 2; t 3 ; count ( p 3 ) += 2; while ( count ( p 3 ) >= 1 ) { t 5 ; count ( p 3 ) ; } 14

Outline Revisiting Petri Nets Application 1: Software Syntheses Application 2: Biological Networks Petri Net Modeling of Biological Networks Application 3: Supply Chains Summary 15

Basic Modeling of Biological Reactions (1/2) Synthesis A A AB AB B B Decomposition A AB AB B Reversible reaction with stoichiometry A B A A B 2 AB B 2 2 AB 16

Basic Modeling of Biological Reactions (2/2) Catalyzed reaction E E A B AB A B AB Inhibited reaction E E A B AB A B AB 17

Extensions of Petri Nets Coloured Petri Net (CPN) Assign data values to the token Define constraints on the token values Stochastic Petri Net (SPN) Transitions have exponentially distributed time delays Hybrid Petri Net (HPN) Discrete and continuous places Marked tokens and concentration levels Discrete and continuous transitions Determined and distributed delays Functional Petri Net (FPN) Flow relations depend on the marking Hybrid Functional Petri Net (HFPN) 18

More Complicated Modeling Biochemical networks Enzymatic reaction chain: CPN Intrinsic noise due to low concentrations: SPN More general pathway: FPN, HFPN Genetic networks Response to genes rather than consumption and production Switch Control: logical approach, CPN Concentration dynamics: HPN, HFPN Signaling networks Response to signal rather than consumption and production Transition delay: timed PN, timed CPN, SPN Discussion Tradeoff between expressiveness and analyzability Spatial properties, hierarchical modeling, other modeling formalisms 19

Revisiting Petri Nets Outline Application 1: Software Syntheses Application 2: Biological Networks Application 3: Supply Chains Performance Analysis and Design of Supply Chains: A Petri Net Approach Summary 20

intermediate inventory raw material vendors Supply Chain Networks (SCN) inbound logistics finished goods inventory CUSTOMERS OEM distribution centers outbound logistics retailers 21

Configurations & Operational Models of SCN Configurations Serial structure Divergent structure: petroleum industry Convergent structure: automobiles and air crafts Network structure: computer industry Operational models Make-to-stock (MTS) Orders are satisfied from stocks of inventory of finished goods which are kept at retail points Make-to-order (MTO) A confirmed order triggers the flow of the supply chain Assemble-to-order (ATO) Before decoupling point, intermediate goods are made-to-stock After decoupling point, goods are made-to-order Tradeoff between holding cost and delayed delivery s cost 22

Performance Analysis Modeling S 1 W 1 M S 2 suppliers inbound logistics OEM interfaces outbound logistics W 2 warehouses Generalized Stochastic Petri Net (GSPN) Random order request Random logistics/interface time MTS, MTO, and ATO may have different structures & initial markings 23

Cost function Performance Analysis Setting Holding cost for inventories: H I Cost of delayed delivery: H D Vary the ratio of H D and H I from 1.5 to 40.0 Apply Stochastic Petri Net Package (SPNP) Compare between make-to-stock (MTS) and assembleto-order (ATO) 24

Performance Analysis Experiment 1 S 1 W 1 M S 2 W 2 Change arrival rate of end products on (W 2 ) Arrival Rate (W 2 ) H D / H I = 1.5 (Expensive Holding) Total Cost H D / H I = 40 (Expensive Delay) MTS ATO MTS ATO 0.8 22.421 19.815 26.001 257.437 1.0 21.237 18.610 25.818 237.559 1.2 20.012 17.714 25.961 224.228 1.4 18.774 17.016 26.339 214.675 MTS > ATO reasonable U-shape why? MTS < ATO reasonable 25

Performance Analysis Experiment 2 S 1 W 1 M S 2 W 2 Change targeted finished goods inventory (on M) Total Cost FGI (M) MTS ATO MTS ATO H D / H I = 1.5 H D / H I = 40 H D / H I = 1.5 H D / H I = 40 6 5 18.54 28.01 15.64 197.40 9 6 27.53 29.34 18.37 201.52 12 7 35.553 42.175 21.07 204.87 15 8 43.403 49.929 23.73 207.92 holding costs play more important roles immune but useless 26

Performance Analysis Experiment 3 S 1 W 1 M S 2 W 2 Change interface times (from S 2 to M) Interface Rate (S 2 M) H D / H I = 1.5 (Expensive Holding) Total Cost H D / H I = 40 (Expensive Delay) MTS ATO MTS ATO 4.0 22.566 15.542 24.934 197.185 5.0 22.651 15.640 24.981 197.360 6.0 22.709 15.705 25.038 197.502 8.0 22.780 15.785 25.109 197.659 holding costs increase because interface S1M is not fast enough to work with interface S2M 27

Decoupling Point Location Problem Modeling interface interface W 1 S 1 S 2 DC W 2 stage 1 supplier logistics stage 2 supplier Integrated GSPN-queuing model logistics stage N distribution center Amendable for integrated queuing network GSPN analysis and deriving aggregated facility by solving the original product from queuing network (PFQN) W 3 retail outlets 28

Decoupling Point Location Problem Setting Cost function Holding cost (proportional to H 1 ) H 1 : holding cost for the first stage supplier Increase as moving from the first stage supplier to the distribution center (H 1, 1.2H 1, 1.2 2 H 1, 1.2 3 H 1, ) Lead time cost (proportional to H 2 ) H 2 : average lead time cost per unit good per hour Consider 5 stage supply chain with the last stage being the retail outlet Set the decoupling point at stages 1, 2, 3, and 4 Solve the PFQNs 29

Decoupling Point Location Problem Experiment Decoupling Point Total Cost (Base Stock Policy) Expensive Holding Expensive Delay H 2 / H 1 = 10 H 2 / H 1 = 30 H 2 / H 1 = 40 H 2 / H 1 = 50 1 3.596 5.940 8.285 10.630 2 5.215 6.963 8.712 10.461 3 8.967 10.237 11.508 12.779 4 12.071 12.429 12.788 13.147 Decoupling Point Total Cost (Reorder Point Policy) Expensive Holding Expensive Delay H 2 / H 1 = 10 H 2 / H 1 = 30 H 2 / H 1 = 40 H 2 / H 1 = 50 1 3.427 5.853 8.280 10.706 2 4.234 6.060 7.886 9.711 3 5.686 6.974 8.262 9.550 4 8.055 8.414 8.772 9.131 As delay cost increases, the decoupling point is moving to right 30

Outline Revisiting Petri Nets Application 1: Software Syntheses Application 2: Biological Networks Application 3: Supply Chains Summary 31

Summary Perti Net and its extension provide a wide range of applications Software synthesis Biological network Supply chain 32