**Journal of Computer and Communications**

Vol.03 No.07(2015), Article ID:57921,11 pages

10.4236/jcc.2015.37001

Elementary Siphons of Petri Nets and Deadlock Control in FMS

Mowafak Hassan Abdul-Hussin

Central Technical Information’s & Communications, University of Technology, Baghdad, Iraq

Email: mow_abdul2007@yahoo.com

Copyright © 2015 by author and Scientific Research Publishing Inc.

This work is licensed under the Creative Commons Attribution International License (CC BY).

http://creativecommons.org/licenses/by/4.0/

Received 4 June 2015; accepted 11 July 2015; published 14 July 2015

ABSTRACT

For responsiveness, in the Petri nets theory framework deadlock prevention policies based elementary siphons control are often utilized to deal with deadlocks caused by the sharing of resources in flexible manufacturing system (FMS) which is developing the theory of efficient strict minimal siphons of an S^{3}PR. Analyzer of Petri net models and their P-invariant analysis, and deadlock control are presented as tools for modelling, efficiency structure analysis, control, and investigation of the FMSs when different policies can be implemented for the deadlock prevention. We are to show an effective deadlock prevention policy of a special class of Petri nets namely elementary siphons. As well, both structural analysis and reachability graph analysis and simulation are used for analysis and control of Petri nets. This work is successfully applied Petri nets to deadlock analysis using the concept of elementary siphons, for design of supervisors of some supervisory control problems of FMS and simulation of Petri net tool with MATLAB.

**Keywords:**

Deadlock Prevention, Siphon, Petri Net, FMSs, PN-Toolbox V. 2.3, S^{3}PR

1. Introduction

A flexible manufacturing system (FMS) is proposed to produce a set of different types of products of varying batch size. It contains a set of computer-controlled machines and transportation systems. Various types of raw components enter it and are processed concurrently. Hence, part resources among various competing jobs have to be carefully controlled and coordinated. For this purpose, a powerful tool for modelling which is called Petri net (PNs) can be used. Petri net is a modelling tool applicable to numerous of FMS.

Petri nets are a favorite tool for depicting and studying information processing systems that are concurrent, asynchronous, synchronous, distributed systems, and reconfiguration structure system. When Petri nets are use of modelling of a real system, a powerful feature of Petri nets is their ability to represent good behavior properties of the system, such as liveness, boundedness, deadlock-free-ness, and reversibility. In FMSs, liveness ensures that deadlocks do not occur. Boundedness guarantees that the number of raw components, buffer spaces and resources is bounded. Reversibility enables the system to return to its initial state, thereby guaranteeing repetitive production. The competition for resources in an FMS may cause it to be deadlocked. In general, a deadlock occurs when the raw components are blocked, while waiting for shared resources held by other production processes.

Abdul-Hussin (2015) [1] studies the synchronization competitive processes to deal with deadlocks caused by the sharing of resources in FMS which is developing the theory for efficient strict minimal siphons for S^{3}PR. An FMS example is used to illustrate the application of the proposed method, and competitive processes are provided in an S^{3}PR to show its superior efficiency. The monitors are used to prevent the presence of unmarked siphons that are the direct causes of deadlocks in such a Petri net. The mathematical computations siphon and trap of Petri net are leading to liveness-enforcing Petri net supervisors with behavior that is more permissive. Petri nets are a modelling and simulation formalism for describing concurrency and synchronization in distributed of FMS.

Abdul-Hussin (2015) [2] presents an approach toward constructing a class structural analysis of Petri nets, where elementary siphon is a main utility used in the development of a deadlock control policy of flexible manufacturing systems (FMSs) that have been exploited successfully for the design of supervisors of some supervisory control problems. Deadlock-free operation of FMSs is significant objectives of siphons in the Petri net. A monitor is added to the plant model such that the siphon is P-invariant-controlled for each elementary siphon, where an integer programming technique is used to guarantee that no emptiable control-induced siphon is generated. The modelling, control and simulation are important topics for both design and operation of FMS. The author [2] has experimental approach based-siphon which is able to resolve the problem of deadlock occurred to Petri nets that are representative of an FMS.

A system of simple sequential processes with resources (S^{3}PR) by Ezpeleta et al. [3] is a powerful Petri net model to describe and analyze the behavior of FMS, and has been adopted widely by many researchers to handle deadlock problems with FMS [1] [3] [4] . Ezpeleta et al. [3] develop a design method of monitor-based liveness Petri net supervisors for FMS, which is usually considered to be a classical contribution that utilizes structural analysis techniques of Petri nets to prevent deadlocks in FMS. The deadlock prevention method can be achieved by adding a control place and related arcs to each strict minimal siphon (SMS), thus the SMS can never be emptied, which guarantees the liveness of the controlled system. There is proposed the relationship between strict minimal siphons and liveness of an S^{3}PR is established. Elementary siphons are first proposed by Li et al. [5] - [7] which are a subclass of SMSs. Apparently, the number is smaller the set of all SMSs. They use the method to control only elementary siphons and prove what the controlled system is live under some conditions.

Huang et al. (2001) [8] propose a strict minimal siphon extraction algorithm such that the complete siphon enumeration is successfully avoided. A shortcoming of their method is that the maximal unmarked siphons need to be computed beforehand, thus the computational efficiency of their method still needs to be improved. Huang et al. (2006) [9] have proposed a deadlock prevention algorithm for S^{3}PR modelled manufacturing systems. The algorithm is an iterative approach based on mixed integer programming (MIP) method [8] . At all iteration, the MIP technique is used to find an unmarked maximal siphon. Next, an unmarked minimal siphon is obtained from the maximal siphon.

Organization. Section 2 provides the preliminaries to be used in this paper. The deadlock control policy is proposed, where is introduced the class (S^{3}PR) of Petri nets models, and the concept of elementary siphons in Section 3. Section 4 presents an FMS example to illustrate the applications of the proposed policy. Section 5 concludes papered.

2. Preliminaries [1] [3]

Definition 1. A Petri net is a 4-tuple Y = (P, T, E, W), where P, and T are finite nonempty, and disjoint sets. P is a set of places, and T is a set of transitions with P È T ≠ Æ, and P Ç T = Æ. E Í (P ´ T) È (T ´ P) is called a flow relation or the set of directed arcs. The net has represented by arcs with arrows from places to transitions or from transitions to places. W: E ® Z^{+} is a mapping that assigns a weight to any arc, where. Y = (P, T, E, W) is ordinary, denoted as Y = (P, T, E, W), (When Weights W, of the arcs (W) = l, the net Y is called ordinary Petri net). The Weights W: (P ´ T) È (T ´ P) ® Z^{+} is a mapping that assigns a weight to an arc: W(x, y) > 0 if (x, y) Î E, and W(x, y) = 0 otherwise, where x, y Î P È T and Z^{+} denote the set of non-negative integers.

Definition 2. In the absence of self-loops, an equivalent information is given by the incidence matrix. The computation of the incidence matrix C is subtracting C^{−} from C^{+} that is: C = (C^{+} − C^{−}) or
. A Petri net Y = (P, T, E, W) can be alternatively represented by its flow matrix or incidence C = (C_{ij}) which is defined by:
and. In addition, we can write, is the change in matrix C, where incidence matrix [C] of net Y is a |P| × |T| integer matrix and.

Definition 3. The preset of a node
is defined as. While the post-set of a node
is defined as. This notation can be extended to a set of nodes as: given,
and. A marking is a mapping M: P ® Z^{+}, where Z^{+} È

{0}. M(p) denotes the number of tokens in place p. The preset (postset) of a set is defined as the union of the presets (postsets) of its elements. The pre- and post-sets of a transition t Î T are defined respectively as:

, and. The pre- and post-sets of a place p Î P are defined respectively as: and.

Definition 4. The pair (Y, M_{0}) is called a marked Petri net or a net system. The set of markings reachable from M in Y is denoted as R(Y, M). A net (Y, M) is bounded if and only if (iff) $k Î Y, "M Î R(Y, M_{0}), "p Î P, M(p) ≤ k holds. A transition t Î T is enabled under M, denoted by M[tñ, iff "p Î ∙t, M(p) ≥ 1. A transition t Î T is live under M_{0} iff "M Î R(Y, M_{0}), $M Î R(Y, M_{0}), M'[tñ holds. (Y, M_{0}) is deadlock-free iff "M Î R(Y, M_{0}), ∃t Î T, M[tñ holds. (Y, M_{0}) is live iff "t Î T, t is live under M_{0}.

Definition 5. A transition t is said to be live if for any M Î R(Y, M_{0}), there exists a sequence of transitions that is fired to lead next marking M' that enables at transition t. A PN is said to be live if all the transitions are live. A PN contains a deadlock if there is a marking M Î R(Y, M_{0}), at which no transition is enabled. Such a marking is called a dead marking. Deadlock situations are because of in appropriate resource allocation policies or exhaustive use of some or all resources. Liveness of a PN means that for each marking M Î R(Y, M_{0}) reachable from the M_{0}, it is finally possible to fire t, "t Î T through some firing sequence. A net (Y, M_{0}) is said to be reversible, if "M Î R(Y, M_{0}), M_{0} Î R(Y, M). Therefore, in a reversible net it is always possible to go back to initial marking M_{0}. A marking M' is said to be a home state, if for each marking M Î R(Y, M_{0}), M' is reachable from M. Reversibility is a special case of the home state property. If the home state M' = M_{0}, then the net is reversible.

Definition 6. A sequence of transitions
is a firing sequence of (Y, M_{0}) if and only if (iff) there exists a sequence of markings such that is: M_{0}[t_{1}ñM_{1}[t_{2}ñM_{2}, ××× , [t_{n}ñM_{n}. Moreover, marking M_{n} is said to be reachable from M_{0} by firing σ, and this is denoted by M_{0}[σñM_{n}. The firing sequence is a marking
such that: ("i, 1 £ i £ n), and (M_{i}[t_{i}ñM_{i}_{+1}), We can also write its by [M_{1}[sñM_{n}_{+1}]. The set of all markings reachable from M_{0} is denoted by reachability set R(M_{0}). The function s': T ® Z^{+} is the firing count vector of the firable sequence s, i.e. s¢[t] represents the number of occurrences of t Î T in s. If M_{0}[sñM', then we can write in vector form M¢ = M_{0} + C × s¢, which is referred to as the linear state equation of the net. A marking M_{0} is said to be potentially reachable iff $X ≥ 0 such that: M¢ = M_{0} + C × s ≥ 0, where s is a firing sequence, a vector which is i-th denotes the number of occurrences of in s. For M_{0}[σñM_{n}, we have, which is called the state equation of net Y, where s, called the firing count vector, is a vector which is i-th entry denotes the number of occurrences of t_{i} in s.

Definition 7. A P-vector is a column vector I: P → Z indexed by P, where Z is the set of integers. I is a P-invariant (place invariant) if and only if I ≠ 0 and I^{T} × [Y] = 0^{T} holds. P-invariant I is said to be a P-semiflow

if every element of I is non-negative. is called the support of I. If I is a P-invariant of

(Y, M_{0}) then "M Î R(Y, M_{0}): I^{T} × M = I^{T}× M_{0}. In an ordinary net, siphon S is controlled by P-invariant I under

M_{0} if and only if (I^{T} × M_{0} > 0) and. Such a siphon is called invariant-controlled siphons.

Definition 8. Let S A non-empty sub-set of places. S Í P is a siphon (trap) iff ∙S Í S∙ (resp. Q∙ Í ∙Q). A siphon is said to be minimal iff there is no siphon contained in S it as a proper subset. A minimal siphon that does not contain the support of any P-invariant is called a strict minimal siphon (SMS). A siphon S is controlled iff it can never be emptied. It is said to be invariant-controlled by P-invariant I if I^{T} × M > 0 and ||I||^{+} Í S.

Definition 9. A PN is live under M_{0} iff "t Î T, t is live under M_{0}. A transition t Î T is live under M_{0} iff "M Î R(Y, M_{0}), $M' Î R(Y, M_{0}), t is friable under M'. A transition t Î T is dead under M_{0} if
M ÎR(Y, M_{0}), where t is friable. A marking M Î R(Y, M_{0}) is a (total) deadlock iff "t Î T, t is dead.

Definition 10.(Conservative). A Petri Net PN with initial marking M_{0} is strictly conservative, if for all markings M, elements of the Reachability set R(M_{0}), the number of tokens remains constant, i.e. A marked Petri net

Y = (Y, M_{0}), is said to be conservative iff :
"M Î R(M_{0}). If a marked Petri net is conservative, then the sum of all tokens will remain a constant in all reachable markings:.

A P-invariant characterizes a token conservation rule for a set of places, over which the weighted sum of tokens is constant independently from any firing, i.e., for a p-invariant x and any markings M_{i}, M_{j} Î Y^{n}, which are reachable from M_{0} by the firing of transitions, it holds. X^{T} × M = X^{T} × M_{0}.

Definition 11. The Pre- and Post-incidence matrix of net Y can be represented as (n ´ m) matrix, Pre-and Post with elements Pre(p_{i}, t_{j}), and Post(p_{i}, t_{j}), respectively. The linear algebraic analysis method uses the description of a Petri net by its so called incidence matrix C = (C_{ij}) which is defined by:

is the change in number of tokens in p_{i} after firing t_{j} once, for
and. Moreover, the incidence matrix C of the net is defined as C = Post-Pre. The incidence

matrix of a net is a matrix with |P| rows and |T| columns defined as pre (P × T) ® {−1, 0, 1} such that pre(p, t) is (+1) if (t, p) Î E, (−1) if (p, t) Î E, and 0 otherwise. The state changes of a PN occur when a transition t is fire. These changes can be representing in an algebraic form using the state equation given by: M_{1} = M_{0} + post(p, t) − pre(p, t).

Example 1. An example of a Petri net is shown in Figure 1. Places are circles and transitions by rectangles or bars. This is the convention, which has been adopted for ordinary Petri nets when the weight of arcs equals to one. To design a controller to avoid deadlock, it is necessary to find the strict minimal siphons as: S_{1} = {p_{1}, p_{3}, p_{4}}, and S_{2} = {p_{1}, p_{2}, p_{4}}. The strict minimal trap as Q_{1} = {p_{1}, p_{4}, p_{5}}, and Q_{2} = {p_{1}, p_{3}, p_{4}}. Siphons are very important in the analysis and control of deadlocks in a Petri net. Any Petri Net can be representation as an incidence matrix. The Petri net of Figure 1 has the following incidence matrices shown in Figure 2.

Figure 1. Shows a simple example of a Petri net.

Figure 2. Incidence matrix of Figure 1.

An important practical, applied definition (6) (linear state equation) is a Petri net a transition t of an ordinary. Petri net is enabled if and only if each of its input places contains at least one token. In this example represented in Figure 1, the initial marking M_{0} = [1, 0, 1, 0, 1]^{T} and the following transitions can be fired starting from M_{0}.

Applied definition (6), the state equation is: M¢ = M_{0} + C × s_{ti} , and taking the column vector of firing transition from the incidence matrix on Figure 2. The marking evolve M_{1} = [0, 1, 1, 1, 1]^{T}, after the firing of t_{1}. Such that M_{1} = M_{0} + C × s_{t}_{1} = M_{0} [1, 0, 1, 0, 1]^{T} + column t_{1} from matrix Figure 2, [-1, 1, 0, 1, 0]^{T} = M_{1} = [0, 1, 1, 1, 1]^{T} = M_{1}. For each of these new marking is representing a node of the reachability tree and used the next state at firing transition. In the sequel, the next marking can be found by adding last marking to the column of transition shown in Figure 2, where transition t_{1} is enabled. The new marking M_{2} = M_{1} + C × s_{t}_{2 }= [0, 1, 1, 1, 1]^{T} + [0, -1, -1, 1, 0]^{T} = [0, 0, 0, 2, 1] = M_{2}. The next firing transition is t_{3}, M_{3} = M_{1} + C × s_{t}_{3} = [0, 1, 1, 1, 1]^{T} + [1, 0, 0, -1, -1]^{T} = [1, 1, 1, 0, 0] = M_{3}. The deadlock is occurring at transition t_{4}, the marking M_{9} = [0, 0, 2, 0, 3] as shown in Figure 3, in the red colored. The remainder of the mathematical computation of the net in Figure 1, can be analytically in the reachability tree of a Petri net is shown in Figure 3, where are used Petri net tool for MATLAB, (Toolbox PN-Tool 2.3) [10] .

Additional place V_{1}, called control place in order to controlled siphon of the net. The simulation and structure analyses of this example are provided to illustrate the feasibility and effectiveness of siphon controlled by adding a monitor that can be enforced on the net dynamics by the addition of a “control” or “monitor” place to the original net structure.

We have predicted a deadlock with a look-ahead Petri net controller. The connections of control places V_{1}is in the red colored in Figure 4. The resulting controlled Petri net is shown in Figure 5. It can be verified that deadlock does not occur in this Petri net. In the Figure 1, the minimal siphon whose emptiness leads to the deadlock of the net shown in Figure 3. To control the net prevented from being unmarked, a place V_{1} is added with ×V_{1} = {t_{3}} and V_{1}× = {t_{4}}, as shown in Figure 4, in order to the control is a Petri net in Figure 1. The effecting controlled place in Petri net is shown in Figure 5. It can be verified that deadlock does not occur in this Petri net.

3. Deadlock Prevent Policy

Deadlock prevention policy is dealing with a special class of Petri nets, which is a subclass of ordinary and conservative Petri nets called S^{3}PR. In this a section, we introduced some definitions have been needed for our application for a deadlock prevention policy that can keep the system in deadlock-free for a class of Petri nets, which is called S^{3}PR nets.

Figure 3. Reachability tree is non-live in PN-Toolbox with MATLAB [10] of Figure 1.

Figure 4. Siphon control examples 1.

Figure 5. The coverability tree is live of Figure 4.

3.1. The Class of the S^{3}PR Nets

The class of Petri nets investigated in this research is an S^{3}PR that is first proposed in Ezpeleta et al. [3] . The presentation of its formal definitions is needed for our application. The following results are mainly from [3] [4] .

Definition 12. A simple sequential process (S^{2}P) is a Petri net Y = (P_{A} È {p^{0}}, T, E), where the following statements are true:

1) P_{A} ¹ Æ is called a set of operation places;

2) p^{0} Ï P_{A} is called the process idle place;

3) A net Y is a strongly connected state machine; and

4) Every circuit of Y contains place p^{0}.

Definition 13. Let Y_{i} = (P_{A} È P^{0} È P_{R}, T, E) be an S^{3}PR. An initial marking M_{0} is called an acceptable one if: 1) "p Î P^{0}, M_{0}(p) ≥ 1; 2) "p Î P_{A}, M_{0}(p) = 0; and 3) "p Î P_{R}, M_{0}(p) ≥ 1.

3.2. Elementary Siphon in Petri Nets

The concepts elementary and dependent siphons are original work by Li et al. [5] - [7] . They are developed the Petri nets theory of computation and powerful mathematics. We have introduced the concept of elementary and dependent siphons as well as used in this paper.

Definition 14. Let S Í p is a subset of places of Petri net Y = (P, T, E, W). P-vector l_{S} is called the characteristic P-Vector of S if and only if "p Î S, l_{S}(p) =1; otherwise l_{S}(p) = 0.

Definition 15. Let h_{S} is characteristic T-Vector of S if and only if h_{S}^{T} = l_{S}^{T} = [Y].

Definition 16. Let S Í P is a subset of places of Petri net Y. h_{S} is characteristic T-Vector of S if and only if h_{S} = l_{S}^{T}∙[C], where C is incidence matrix of Y.

Definition 17. Let Y = (P, T, E, W) is a net with |P| = m, |T| = n, and K siphons S_{1} - S_{k},. Let l_{S} (h_{S}) is the characteristic P(T)-vector of siphon S_{i}, i Î Y_{k}. We define [l]_{k}_{´m} = [l_{S}_{1}|l_{S}_{2}|×××|l_{Sk}]^{T}, and [h]_{k}_{´n} = [l]_{k}_{´m} ´ [Y]_{m}_{´n} = [h_{S}_{1}|h_{S}_{2}|×××|h_{Sk}]^{T}. Where [l]([h]) is called the characteristic P(T)-vector matrix of the siphons in net Y.

Definition 18. Let a linearly independent maximal set of Matrix [h]. Then, is called a set of elementary siphons in net Y.

Definition 19. Let S Ï P_{E} be a siphon in net Y. Then S is called a strongly dependent siphon if
holds, where.

Theorem 1. Let Y_{ES} be the number of elementary siphons in Y = (P, T, E, W). Then we have Y_{ES} < min{|P|, |T|}. This result indicates that the smaller of a place and transition counts bound the number of elementary siphons in a net.

Theorem 2. Let S be a siphon if net Y = (P, T, E, W) and h_{S} be its characteristic T-vector. We can conclude that {t Î T|h_{S}(t) > 0}, {t Î T|h_{S}(t) = 0}, and {t Î T|h_{S}(t) < 0} are a sets of transitions that is firings will increase, maintain, and decrease the number of tokens marked in S respectively.

4. Application of Petri Net Modelling in FMSs

Let us assume the small FMS have shown in Figure 6. The system consists of two robots, R1 and R2, each of

Figure 6. Layout of a manufacturing cell of FMS.

which can hold one part at a time, and three machines, M1, M2, and M3. The machine M1 can process only one part at a time, while M2 and M3 can process two parts at a time. Parts enter into the FMS through input/output buffers I1/O1 and I2/O2. In the situation, we consider that there are two part types J1 - J2, can be produced in this system. The production routing of J1 is: I1 ® R1 ® M1 ® O1 or I1 ® R1 ® M2 ® R2 ® M3 ® O1. The production routing of J2 is I2 ® M3 ® R2 ® M2 ® O2.

The S^{3}PR Petri net with 15 places and 11 transitions depicted in Figure 7, which has been considered in the literature (see [3] [6] [8] ). We are choice of different approach to structure and initial markings in order to find out different sets of siphons, and have experienced, and application to show the efficient methods the concept of, elementary and dependent siphons in an S^{3}PR can be controlled net.

The Petri net model of the FMS is shown in Figure 7, in which places p_{3}, p_{4}, p_{9}, p_{10}, p_{11}, denote R1, M1, M2, R2, and M3, respectively. Places p_{1} and p_{15} are idle places, and p_{2}, p_{5}, p_{6}, p_{7}, p_{8}, are operation places for production Line_1. Places p_{12}, p_{13}, and p_{14} are operation places for production Line_2. The Petri net shown in Figure 7 is represented an S^{3}PR by this place specification.

Figure 7 shows the Petri net model of FMS. Places p_{2} and p_{5} represent the operation of R1, and M1, respectively, for the production sequence of the part type_P_{1}. Similarly, places p_{2}, p_{6}, p_{7} and p_{8} represent the operation of R1, M2, R2 and M3 respectively, for the production sequence of the part type P_{1}. The production sequence of the part type_P_{2}, places p_{12}, p_{13} and p_{14} represent the operation of M3, R2 and M2 respectively. The number of tokens in Figure 7, M_{0} is an acceptable initial marking if M_{0}(p_{1}) = 3, M_{0}(p_{15}) = 5, M_{0}(p_{9}) = M_{0}(p_{11}) = 2, M_{0}(p_{3}) = M_{0}(p_{4}) = M_{0}(p_{10}) = 1, and others are zero.

For the Petri net of Figure 7 is an S^{3}PR. The elements of this net are defined as: Figure 7.
, for the process idle places P^{0} = {p_{1}, p_{15}}, the resource places: P_{R} = {p_{3}, p_{4}, p_{9}, p_{10}, p_{11}}, holders of resource H(p_{3}) = (p_{2}), H(p_{9}) = {p_{6}, p_{14}}, H(p_{10}) = {p_{7}, p_{13}}, and H(p_{11}) ={p_{8}, p_{12}}.The initial marking
of Figure 7, corresponds to the situation when all the resources are idle. The analysis of the behavioral properties of the PN model used Petri net tool with MATLAB [10] starts with consulting its coverability tree key. The reachability graph has 285 states with initial marking, and the deadlock marking is occurring at:

We can be found out the strict minimal siphons. In the Petri net shown in Figure 7, has 10 minimal siphons:

, , ,

, , ,

, , ,.

The set of siphons from S_{4} - S_{10} is both a siphon and a trap. We have choice strict minimal siphons S_{1}, S_{2}, and

Figure 7. An S^{3}PR (Y, M_{0}) [3] .

S_{3} that do not contain any trap. The strict minimal siphons are as:

, ,.

We have three the strict minimal:

, , and.

The computation of S_{1} and S_{2} is leading to determinate the third control place S_{3} from the account accumulation of S_{1} and S_{2} is the linearly independent vectors can be constructed in [η] shown as follows.

, , and.

The T-vector matrix can be strutted in [η] shown as follows:

Therefore, the siphons that correspond to the first and second rows are elementary siphons. Next, we can compute the dependent siphons as: h_{S}_{3} = h_{S}_{1}+ h_{S}_{2} . Thus, S_{1} = {p_{8}, p_{10}, p_{11}, p_{13}}, and S_{2} = {p_{7}, p_{9}, p_{10}, p_{14}}, are elementary siphons and S_{3} = {p_{8}, p_{9}, p_{10}, p_{11}, p_{14}}, is a strict dependent siphon. The elementary siphons are Π_{E} = (S_{1}, S_{2}), and the dependent siphons Π_{D} = (S_{3}), and S_{3} is a strongly dependent siphon.

We are representing here a structural analysis method including the following verification on the specification of the elementary siphon of the algorithm found in [6] - [8] , and S_{1} and S_{2} are elementary siphons in the net for the deadlock control purpose. Therefore, we are connected control place VS_{1} to the transition, where: ∙VS_{1} = {t_{6}, t_{9}}, VS_{1}∙ = {t_{5}, t_{8}}, and ∙VS_{2 }= {t_{4}, t_{5}, t_{10}}, VS_{2}∙ = {t_{1}, t_{3}, t_{8}}. We can be adding two controls place in the original net. While the third control place is not necessary to add because the simulation of Petri net in Figure 8, do not affected results. The resulting control policy is overly restrictive only, and reachability graph has reduced to 15 states as show in Figure 9.

Figure 8. Control place VS_{1}, and VS_{2}, are control net Figure 7.

Figure 9. Represented coverability tree is liveness of Figure 8.

This is successfully resulted when comparison purposes with the other researcher such as: Ezpeleta et al. [3] computes three control places and has only 28 reachable marking. The method in [6] classifies S_{1} and S_{2} as elementary siphons and S_{3} as strictly dependent. Then, only two controls places are necessary, which actually coincide with the first two control places added by the previous method. In addition, this work has only 28 markings be reachable in the controlled net. The method of Huang et al. (2001) [8] proposed to require three control places, one of which connected with weighted arcs that the controlled net is not ordinary: The controlled net has only 44 reachable markings. In our experiment, we can add two-controlled net has only (15) reachable markings show in Figure 9, without needing third control places, because, the result is not affected to the net (i.e. some results).

The additional controlled places net of Figure 8, is live and obtain to marking M_{14}, and has 15 reachable states marking, so that the Petri net is deadlock-free actually liveness. Siphons are generating even though the monitors are added. An experiment is carried on encouragement one to discover the technicality to make a siphon powerful to control by adding control places (monitor). The result of the efficient structural analysis of Petri nets, because the PN-Toolbox with MATLAB [10] can show the PN shape of the simulation is accurate and correct results.

Let us show the Petri net is modelled in Figure 8. According to definition 7, there are three minimal siphons, which can be emptied. There are S_{1} = {p_{8}, p_{10}, p_{11}, p_{13}}, S_{2 }= {p_{7}, p_{9}, p_{10}, p_{14}}. For the purpose control place VS_{1} is added such that I_{1 }= (0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1VS1) is a P−invariant of (Y_{1}, M_{1}). Therefore, I_{1} × M_{1} = 0 by definition 7, we can compute that [(Y_{1}](VS_{1}, t) = − t_{5} + t_{6} − t_{8} + t_{9}. Similarly, I_{2} = (0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1VS_{2}) is also a P−invariant of (Y_{1}, M_{1}). Hence (I_{2} × M_{1}) = 0, and [Y_{1}](VS_{2}, t) = − t_{1} − t_{3} + t_{4} + t_{5} − t_{8} + t_{10}, than reachability tree reachable to M_{14} as shown in Figure 9.

For elementary siphons S_{1} and S_{2}, three monitor VS_{1} and VS_{2} are added respectively to the net. We can apply definition 7, to find a P-invariant controlled of the Petri net depending of the incidence matrix existing in Figure 10, implementation manuals.

Petri net incidence matrix and P-invariant

Figure 10. The incidence matrix of Figure 8, and P-invariant.

Figure 10. The incidence matrix of Figure 8, and P-invariant.

For instance, Figure 8 has shown an S^{3}PR net. S_{1} = {p_{8}, p_{10}, p_{11}, p_{13}} is a siphon of the net. We can apply definition 7, to find a P-invariant of the net in Figure 10. This is: I_{1} = (0, −1, −1, 0, 0, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, −1VS_{1})^{T} = (−p_{2} − p_{3} + p_{8} + p_{10} + p_{11 }+ p_{13} − VS_{1}) is a P-invariant of (Y_{1}, M_{1}). Where, I^{T} × M_{0} = M(p_{8}) + M(p_{10}) + M(p_{11}) + M(p_{13}) − M(p_{2}) − M(p_{3}) − M(VS_{1}) = 1 > 0. So that ||I_{1}||^{+} = {p_{8}, p_{10}, p_{11}, p_{13}} Í S. Thus, S_{1} = {p_{8}, p_{10}, p_{11}, p_{13}} is an invariant-controlled siphon and it can never be emptiable. Similarly, for S_{2} = {p_{7}, p_{9}, p_{10}, p_{14}} is a siphon of the net. Also, I_{2} = (1, 0, 0, 0, 0, 1, 1, 0, 1, 1, −1, −1, 0, 1, 0, −1VS_{1} − 1VS_{2})^{T} = {p_{1} + p_{6} + p_{7} + p_{9} + p_{10}− p_{11} − p_{12} + p_{14 }− VS_{1} − VS_{2}} is a P−invariant of (Y_{1}, M_{1}). Where, I^{T} × M_{0} = {M(p_{1}) + M(p_{6}) + M(p_{7}) + M(p_{9}) + M(p_{10}) − M(p_{11}) − M(p_{12}) + M(p_{14})− M(VS_{1}) − M(VS_{2})} = 1 > 0. So that: ||I_{2}||^{+} = {p_{7}, p_{9}, p_{10}, p_{14}} Í S, is an invariant-controlled siphon and it can never be emptied.

In addition, there are five resources in this system of Figure 7, leading to five minimal P-invariants, we would like to mention as follow:

, where,

, where,

, where,

, ,

,.

This has been done with a Laptop computer, Intel(R) Core(TM) i5-3337U CPU@ 1.80GHz, with 4Gb of RAM, with Windows 7 Ultimate.

5. Conclusion

Petri net is possible to represent of FMS that can be simulation and analysis is supported by different visualization and interaction techniques to capture the properties such as strict minimal siphons, and behaviour of Petri nets quickly (e.g. interactive behavior, interactive exploration of invariants and the reachability graph). We are developing a guarantees tool for Petri net based to siphon, simulation and structural analysis dealing with the (FMS). Some control places and related arcs are added to minimal siphons such that no siphon can be emptied. A Petri net is efficient techniques to enumerate and reduce the reachability graph by adding monitors to all basic siphons and only those compound siphons. The reachability graph is reduced to explain the necessary evolutionary behavior of the PN regarding liveness and deadlocks. Based on Petri nets, a deadlock prevention policy is proposed to a special class of Petri nets called (S^{3}PR).

Cite this paper

Mowafak HassanAbdul-Hussin, (2015) Elementary Siphons of Petri Nets and Deadlock Control in FMS. *Journal
of Computer and Communications*,**03**,1-12.
doi:
10.4236/jcc.2015.37001

References

- 1. Abdul-Hussin, M. (2015) Synchronization Competitive Processes of Flexible Manufacturing Systems Using Siphons Petri Net. Proceedings of IEEE the 5th National Symposium on Information Technology: Towards New Smart World 2015, Human-Robot Interaction, Riyadh, 16 February 2015, 6 p.
- 2. Abdul-Hussin, M.H. (2015) A Structural Analysis of Petri Nets-Based Siphons Supervisors of Flexible Manufacturing Systems. Proceedings of IEEE-UKSim-AMSS, 17th International Conference on Computer Modelling and Simulation, Cambridge University, (Emmanuel College), Cambridge, March 2015, 235-241.http://uksim.info/uksim2015/data/8713a235.pdf
- 3. Ezpeleta. J., Colom, J.M. and Martinez, J. (1995) A Petri Net Based Deadlock Prevention Policy for Flexible Manufacturing Systems. IEEE Transactions on Robotics and Automation, 11, 173-184.

http://dx.doi.org/10.1109/70.370500 - 4. Wang, S.G., Zhou, M.C. and Wu, W.H. (2015) Design of a Maximally Permissive Liveness-Enforcing Supervisor with Reduced Complexity for Automated Manufacturing Systems. Asian Journal of Control, 17, 190-201. http://dx.doi.org/10.1002/asjc.837
- 5. Li, Z.W. and Zhou, M.C. (2004) Elementary Siphons of Petri Nets and Their Application to Deadlock Prevention in Flexible Manufacturing Systems. IEEE Transactions on System Man, and Cybernetic. Part A: System and Humans, 34, 38-51. http://dx.doi.org/10.1109/TSMCA.2003.820576
- 6. Li, Z.W. and Zhou, M.C. (2008) Control of Elementary and Dependent Siphons in Petri Nets and Their Application. IEEE Transactions on Systems, Man and Cybernetics, Part A: Systems and Humans, 38, 133-148. http://dx.doi.org/10.1109/TSMCA.2007.909548
- 7. Li, Z.W. and Zhou, M.C. (2009) Deadlock Resolution in Automated Manufacturing Systems: A Novel Petri Net Approach. Springer, London.
- 8. Huang, Y.S., Jeng, M., Xie, X. and Chung, S. (2001) Deadlock Prevention Policy Based on Petri Nets and Siphons. International Journal of Production Research, 39, 283-305.

http://dx.doi.org/10.1080/00207540010002405 - 9. Huang, Y.S., Jeng, M., Xie, X.L. and Chung, D.-H. (2006) Siphon-Based Deadlock Prevention Policy for Flexible Manufacturing Systems. IEEE Transactions on Systems, Man and Cybernetics, Part A, 36, 1248-1256. http://dx.doi.org/10.1109/TSMCA.2006.878953
- 10. Mahulea, C., Matcovschi, M.H. and Pastravanu, O. (2003) Home Page of the Petri Net. Petri Net Toolbox with MATLAB Version 2.3. http://www.ac.tuiasi.ro/pntool