Analysis and Optimization of Discrete Event Systems using Petri Nets

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

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

Petri Net Modeling of Irrigation Canal Networks

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

Control of Hybrid Petri Nets using Max-Plus Algebra

On the Design of Adaptive Supervisors for Discrete Event Systems

Georg Frey ANALYSIS OF PETRI NET BASED CONTROL ALGORITHMS

Elementary Siphons of Petri Nets and Deadlock Control in FMS

Industrial Automation (Automação de Processos Industriais)

A Review of Petri Net Modeling of Dynamical Systems

Modelling of Railway Network Using Petri Nets

Petri nets analysis using incidence matrix method inside ATOM 3

Specification models and their analysis Petri Nets

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

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

Simulation of Spiking Neural P Systems using Pnet Lab

c 2011 Nisha Somnath

Decidability of Single Rate Hybrid Petri Nets

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

A Structure Causality Relation for Liveness Characterisation in Petri Nets

Business Processes Modelling MPB (6 cfu, 295AA)

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

The State Explosion Problem

A Deadlock Prevention Policy for Flexible Manufacturing Systems Using Siphons

Modeling and Stability Analysis of a Communication Network System

Structural Analysis of Resource Allocation Systems with Synchronization Constraints

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

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

On Qualitative Analysis of Fault Trees Using Structurally Persistent Nets

On Supervisory Control of Concurrent Discrete-Event Systems

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

Interorganizational Workflow Nets: a Petri Net Based Approach for Modelling and Analyzing Interorganizational Workflows

Petri Nets (for Planners)

A New Method for Converting Trace Theoretic Specifications to Signal Transition Graphs

Modeling Continuous Systems Using Modified Petri Nets Model

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

Process Mining in Non-Stationary Environments

Time and Timed Petri Nets

MODELING AND SIMULATION BY HYBRID PETRI NETS. systems, communication systems, etc). Continuous Petri nets (in which the markings are real

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

A Polynomial-Time Algorithm for Checking Consistency of Free-Choice Signal Transition Graphs

Coloured Petri Nets Based Diagnosis on Causal Models

Research Article On Categories of Fuzzy Petri Nets

3 Net Models of Distributed Systems and Workflows

c 2014 Vijayalakshmi Deverakonda

Compact Regions for Place/Transition Nets

748 IEEE TRANSACTIONS ON AUTOMATIC CONTROL, VOL. 54, NO. 4, APRIL 2009

Petri Nets. 1. Overview and Foundations. Y Narahari

Finite-state machines (FSMs)

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

THROUGHPUT ANALYSIS OF MANUFACTURING CELLS USING TIMED PETRI NETS

Basis Marking Representation of Petri Net Reachability Spaces and Its Application to the Reachability Problem

Let us first give some intuitive idea about a state of a system and state transitions before describing finite automata.

THE simulation of a continuous or discrete time system

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

CONTROL AND DEADLOCK RECOVERY OF TIMED PETRI NETS USING OBSERVERS

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

Negotiation Games. Javier Esparza and Philipp Hoffmann. Fakultät für Informatik, Technische Universität München, Germany

Bounded LTL Model Checking with Stable Models

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

Classes of Petri Nets That a Necessary and Sufficient Condition for Reachability is Obtainable


Control Synthesis of Discrete Manufacturing Systems using Timed Finite Automata

Peter Wood. Department of Computer Science and Information Systems Birkbeck, University of London Automata and Formal Languages

Linear Time Analysis of Properties of Conflict-Free and General Petri nets

Markings in Perpetual Free-Choice Nets Are Fully Characterized by Their Enabled Transitions

A Static Analysis Technique for Graph Transformation Systems

Proxel-Based Simulation of Stochastic Petri Nets Containing Immediate Transitions

What You Must Remember When Processing Data Words

Embedded Systems 2. REVIEW: Actor models. A system is a function that accepts an input signal and yields an output signal.

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

An Holistic State Equation for Timed Petri Nets

On Polynomial Cases of the Unichain Classification Problem for Markov Decision Processes

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

Automata-Theoretic Model Checking of Reactive Systems

Discrete Event Systems Exam

Helsinki University of Technology Laboratory for Theoretical Computer Science Research Reports 66

Hybrid Transition Modes in (Tissue) P Systems

OPTIMAL TOKEN ALLOCATION IN TIMED CYCLIC EVENT GRAPHS

Introduction to Stochastic Petri Nets

Communication in Petri nets

A reachability graph partitioning technique for the analysis of deadlock prevention methods in bounded Petri nets

Embedded systems specification and design

Direct mapping of low-latency asynchronous

Linear programming techniques for analysis and control of batches Petri nets

Synchronizing sequences. on a class of unbounded systems using synchronized Petri nets

DECOMPOSITION OF PETRI NETS

Atomic Fragments of Petri Nets Extended Abstract

Marking Estimation in Labelled Petri nets by the Representative Marking Graph

Soundness of Workflow Nets with an Unbounded Resource is Decidable

Supervisory Control of Hybrid Systems

Reliability Analysis of an Anti-lock Braking System using Stochastic Petri Nets

Contents 1 Project Overview Topic of the research project Application areas of Petri nets Summary

DISTINGUING NON-DETERMINISTIC TIMED FINITE STATE MACHINES

Notes for Math 450 Stochastic Petri nets and reactions

NEW COLOURED REDUCTIONS FOR SOFTWARE VALIDATION. Sami Evangelista Serge Haddad Jean-François Pradat-Peyre

SCOPE: A Situation Calculus Ontology of Petri Nets

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

The Downward-Closure of Petri Net Languages

Introduction to Automata

Transcription:

Volume 113 No. 11 2017, 1 10 ISSN: 1311-8080 (printed version); ISSN: 1314-3395 (on-line version) url: http://www.ijpam.eu ijpam.eu Analysis and Optimization of Discrete Event Systems using Petri Nets 1,2 V. Padma and 1 K. Bhuvaneswari Dept.of Mathematics 1 Mother Teresa Women s University 2 SRM University, Tamil Nadu, India padmagurumoorthy@gmail.com Abstract Petrinets are a family of powerful discrete event models whose interest has grown with the development of the theory of discrete event systems. This has created needs for modeling, analysis and optimization that can help to evaluate the discrete events system. In this paper, we discuss about the advantages of petrinets as modeling, analysis and optimization tool of manufacturing system. In manufacturing system, systems are very complex and need in depth analysis before implementing them. Discrete Event System (DES) are much more difficult to study than linear system. Petrinets are a tool for study of these systems, petrinet graph models the static properties of the system. As a mathematical tool, it is possible to set up state equation, algebraic equations and other mathematical models governing the behaviour of the system. AMS Subject Classification: 68Q85, 93B20, 90B10, 93B30, 93B11. Key Words and Phrases: Petri Net, optimization, identification, and incidence matrix. ijpam.eu 1 2017

1 Introduction Discrete Event System (DES) are very complex, often large systems of many interacting components. Each component can be quite complex, as can its interaction with other components in the system. This also true for many other systems which all involve many individual components interacting with other components, possibly in complex ways. As a formal and graphical modeling petrinets have been successfully used for modeling and analysis of many discrete event dynamic systems including manufacturing system, communication systems, distributed database systems, workflow analysis and industrial control systems. The wide and successful applications of petrinets rely on its appealing graphic that enables both qualitative and quantitative analysis. The paper is structured as follows: Section 2 introduce the modeling of physical systems with petrinet system. In section 2 the main analysis techniques of petrinets are discussed with some examples. In section 3 the definition of petrinets and its rules are given. In section 4 the basic information about discrete event systems are presented. Section 5 & 6 presents the representation of petrinets as matrix, algebraic equations and coverability tree. Concluding remarks are given in section 7. In this paper we considered the basic petrinet model called place/transition net (PN for short). 2 Analysis Techniques Petrinets are a formal model that allows one to describe many interesting features of concurrent systems. Once a physical system has been modeled by a petrinet, the properties of interest of the system map fairly well into the properties of the corresponding model. Methods of analysis for petrinets may be classified into the following three groups. 1. The coverability (reachability) tree method. 2. The matrix - equation approach and 3. Reduction (or) decomposition techniques ijpam.eu 2 2017

t k Concurrency The first method involves essentially the enumeration of all reachable marking or their coverable markings. It should be able to apply to all classes of nets, but is limited to small nets due to the complexity of the state-space explosion. On the other hand, matrix equations and reduction techniques. Among the methods that have been developed for the analysis of a petrinet, those based on reachability analysis are of particular importance. Typically they require solving the marking reachability problem. (i.e.) Determining if a given marking is reachable from the initial one. It plays an important role in petrinet theory since many properties likeliveness and dead lock freeness require the reachability analysis of the system and many other problem like deadlock avoidance and controllability analysis are equivalent (or) can be reduced to the marking reachability problem. In some restrictive subclasses of petrinets such as acyclic nets, the marking reachability problem can be determined by solving an integer linear programming problem and in state machines and marked graphs it can be solved in polynomial time. 3 Optimization As a powerful modeling tool of DES petrinets are well adopted for describing the dynamic evolution and behavior of the system. Given that a system can be designed and controlled to achieve some desirable performance it is a nature task how can we control it so as to achieve the best possible performance. This goal requires the development of additional analytical (or) experimental techniques for efficiently determining the optimal system behavior and the means for attaining it. ijpam.eu 3 2017

One of the main advantages of petrinets is that the state is a vector of non-negative integers, while it is usually non-numerical in other discrete models such as automata. Example 1: Let us consider the system composed of two machines whose automaton and petrinet model are shown in Fig. 1 (a) and Fig. 1 (b). ' q 0 ' q 1 q ' '' ( q0, q0 ) ' '' q1 q1 q0 0 (, ) q '' 0 '' q 1 t t3 3 t 4 4 t 3 q t ' '' 1 2 ( q0, q1 ) ' '' q3 q1 q1 (, ) t 4 The automata models of two m/c Their concurrent composition Fig. 1(a) P 1 P 2 P 1 P 2 P3 P4 P3 P4 t t 4 3 t 4 Petrinet models of two m/c s Fig. 1(b) Their concurrent composition State q 0 (respectively q 0 ) denotes first (respectively second) machine is idle, state q 1 (respectively q 1 ) denotes that the first (respectively second) machine is working. the petrinet state is represented by a non-negative vector. Marking [1010] T corresponds to the state in which both machines are idle. The marking [0110] T corresponds to the state in which the first machine is working and second is idle and so on. Using a petrinet model the state space of this system, that is a series of labels with no algebraic structure can be described by a set of vectors (i.e.) by highly structured net. This also allows to describe logical specifications in a numerical form. Assume for instance, that we want to impose that the first ijpam.eu 4 2017

machine should never be working of the second machine is idle. Using the notation in diagram 1 (b) such a constraint can be imposed forcing the constraint M(P 2 ) + M(P 3 ) 1. The possibility offered by petrinets to describe the state space of a discrete event system that may have absolutely no algebraic structure with a set of integers vectors has an important implication. In fact it is possible to apply algebraic formations such as integer programming for the analysis and control of these symbols. A final class of problems arises from optimization considerations. If a petrinet exhibits a certain behavior as indicated by its set of transition firing sequences and its reachability set. 4 Discrete Event Systems (DES) DES are systems whose state space is discrete and whose state can only change as a result of asynchronously occurring instantaneous events over time. Sample paths of DES are typically piecewise constant functions of time. Conventional differential equations are not suitable for describing such discontinuous behavior. Classical control theory deals with time driven systems modeled by difference / differential equations. However, many properties of dynamical systems have been defined in very good terms that are model independent. In system theory a DES is composed by actuators, the system itself and sensors. Actuator signals and sensor signals will be modeled as input and output alphabets respectively. It is represented by the following diagram: System Static Dynamic Time Varying Time Invariant Linear Non-linear Discrete State Continuous State Time driven Event Driven Deterministic PN Discrete Time Stochastic PN Continuous Time ijpam.eu 5 2017

5 Petrinets A petrinet is usually defined a graph with two kinds of nodes called places and transitions and an interconnecting flow relation F which does not connect two nodes of the same kind. F is the union of disjoint relations P T (P T ) and T P (T P ) where P denotes the set of places and T denotes the set of transitions. Definition 6.1: A petrinet (N) is a bipartite directed graph usually represented by tuple N = (P, T, F ) where P: a finite set of places that is P = {P 1, P 2, P n } for n > 0. T: a finite set of transitions that is T = {,, t m } for m > 0. So that P T = ϕ. F (P T ) (T P ) is the incidence relation representing a set of directed arcs connecting places to transition and transition to places, corresponding to the input function and output function (flow relation). 6 Graphical Representation (i) Place It is denoted by a circle (or) ellipse. It is commonly used to represent the condition that exists in the modeled system. Input places of transition denote the conditions for the occurrence of the event whereas the conditions after the occurrence of the event represented by the output places of transition. (ii) Transition It is denoted by a solid bar (or) rectangle. It represents action, events, activity (or) task that is required in the system. (iii) Arc It is denoted by an arrow, between places and transitions and is always directed. An arc can connect only two nodes that belong to different types. Input arcs connect places to transitions, while output arcs start at a transition and end at a place. There cannot be an arc from a place to place (or) transition to transition. The symbols of place, transition and arc are given in Fig. 6.1. (iv) Token It is represented by a black dot. Tokens are assigned to/and residing inside the circles representing the places. In classical/ordinary ijpam.eu 6 2017

petrinets, the tokens do not represent any specific information and are not distinguishable. They are only markers indicating the presence (or) absence of data (eng) a signal, a piece to be machined etc. At any time places can hold arbitrary number of tokens or they can be restricted as to the number they can hold. (v) Marking The marking of a petrinet denoted by M, is the mapping P {0, 1, 2, } that is the number of tokens in the place. Generally, if a place is marked (i.e.) hold one (or) more tokens in it, the condition represented by the place is regarded as true. The marking, that is distribution of tokens on places represents the state of a modeled system. The state of the system changes when the distribution of tokens changes. The marking can be represented by an n-dimensional column vector M = {M 1, M 2, M n } where n = P is the number of places. A marked petrinet (F N)P N = (N, M) is a net structure N = (P, T, F ) with a marking M. So petrinets are also defined as P N = (P, T, F, M). (vi) Petrinet Execution Enability Rule: A transition t is said to be enabled iff there is atleast one token each input place of t. Firing Rule: When a transition enabled it may fire (or) occur. On firing it removes the token from all of its input places and deposits a token in each of petrinet its output places. The execution of a petrinet is done by the number and distribution of token in its places. A petrinet executes when the enabled transition fires and consequently change the state of the model system. Example: 2 Consider the PN namely P N 1 of the following fig.3 the incidence matrix the S-invariant vector is represented in the following equations: Incidence matrix of P N 1 is C 1 = t 3 P 1 1 1 1 P 2 1 0 1 P 3 1 1 0 P 4 1 0 1 ijpam.eu 7 2017

P 3 t P 1 1 P 2 t 3 Fig. 6.2 P 4 The vector X = [X 1 X 2 X 3 X 4 ] T will be an S-invariant iff C1 T X = 0 (or) equivalently if X 1 + X 2 X 3 X 4 = 0 X 1 + X 3 = 0 (1) X 2 + X 4 = 0 Solving the simultaneous system (1), we get X 1 = X 3, X 2 = X 4 X = [X 1 X 2 X 3 X 4 ] T. The two minimal support S-invariants are obtained by setting X 1 equal to one and X 2 equal to zero (or) X 1 equal to zero and X 2 equal to one. And X 1 = [1010] T with < X 1 >= {P 1, P 3 }. X 2 = [0101] T with < X 2 >= {P 2, P 4 }. The corresponding S components are shown in fig. 4. P 3 t1 P 1 t 3 P 2 P 4 Fig. 6.3 The two S-components of PN were constructed from minimal support S-invariants, they are minimal S-components, they do not contain any other S-components by themselves. For example consider another petrinet P N 2 where the token is assigned in P 1. The following fig. shows the firing of transitions and its reachability tree of the petrinet P N 2. ijpam.eu 8 2017

Reachability Tree: (1, 0, 0, 0) (0, 1, 1, 0) t t 2 3 (1, 0, 1, 0) (0, 0, 1, 1) P 3 P 2 P 4 (0, 1, 2, 0) P 1 t 3 (1, 0, 2, 0) (0, 0, 2, 1) 7 Conclusion Petrinet based approach of analysis and optimization of DES were discussed with some simple examples. The limitation in the optimization of systems by petrinets is generally accepted. The firing of a transition is considered to be an instantaneous event taking zero time and the occurrences of two events cannot happen simultaneously. The events are called primitive events, this need not cause problems in the optimization of a system. But non-primitive events cannot be properly modeled by transitions in a petrinet but it can be modeled by timed petrinets. References [1] T. Murata, Petrinets: Properties, Analysis and Applications, Proc. of the IEEE, 77(4), April 1989, 541-580. [2] David R and H. Alla, Petrinets and Grafcet: Tools for Modeling Discrete Event Systems, Prentice Hall, London, 1992. [3] Peterson, James L., Petrinet Theory and the Modeling of Systems, Prentice Hall, Englewood Cliffs, NJ, 1981. [4] Reisig, Wolfgang, Petrinets: An Introduction, Springer-verlag, Berlin, 1985. [5] Ramadge, P.J., Wonkium, W.M., The Control of Discrete Control Systems, Proceedings of IEEE, 77(18), 1989, 81-98. ijpam.eu 9 2017

10