Abstract
Flexible manufacturing systems exhibit a high degree of resource sharing. Since the parts advancing through the system compete for a finite number of resources, a deadlock may occur. Accordingly, many pioneers make efforts in the issue. However, how to obtain maximally permissive supervisors in deadlock flexible manufacturing system is an extremely difficult and time-consuming problem. In existing literature, place invariant) and graph analysis method are merged called maximal number of forbidding First Bad Marking (FBM) problem to obtained optimal controllers with a small number of control places. However, this prevention just can be used in some special nets. For general cases, deadlocks could still exist. Therefore, this paper tries to propose one improved iterative deadlock prevention policy to solve above disadvantage. Experimental results show that the proposed improved policy can be used in all kinds of nets. In other words, it does improve the drawback of conventional maximal number of forbidding First Bad Marking (FBM) problem technology.
Keywords
Introduction
Flexible manufacturing systems (FMS) exhibit a high degree of resource sharing. Since the parts advancing through the system compete for a finite number of resources, a deadlock may occur. Solving deadlock prevention, therefore, seems a very important issue in essence for FMS.
Accordingly, many experts make their best efforts in the issue.1–7,9–18 In the literature,7,10,13,19–22 the deadlock prevention problem is solved using the concept of siphons. In particular, Ezpeleta et al. 7 first defined a subclass of the ordinary and conservative Petri nets called Systems of simple sequential processes with resources (S3PR) and proposed one novel deadlock prevention policy based on the concept of strict minimal siphon (SMS). However, every SMS is needed to prevent such that permissive states of a deadlock-prone system can be enforced. In short, they all cannot obtain optimal ones. On the other hand, reachability graph methods are proposed to obtain the optimal behavior in a deadlock-prone system.4–6 However, these methods have the time-consuming problem since they need to generate the reachability graph. It is worth mentioning that Hu et al.,23–25 for the first time, investigate the deadlock resolution in the paradigm of Petri nets allowing assembly operations, multiple-type and multiple-quantity resource acquisition, and production ratio among jobs. A mathematical programming-based method is developed to synthesize liveness-enforcing supervisors. Their approach outperforms many traditional methods in both generality and efficiency.
To circumvent the above disadvantage of the conventional siphon control, Piroddi et al. 17 proposed a control policy which combined the concepts of siphon control and reachability graph for solving deadlock problems. Our experience shows that the above policy is the first deadlock prevention policy to achieve the goal which can obtain maximally permissive controllers for all S3PR models in existing literature. However, the problem is still NP hard—the same as other optimal policies due to the need to generate the reachability graph of a Petri net.
The maximal permissive (optimal) supervisors in deadlock FMS can usually be found but is an extremely difficult and time-consuming problem. Recently, Chen et al. 1 proposed one novel technology called maximal number of forbidding FBM problem (MFFP) to obtain optimal states with a small number of control places. Place invariant (PI) and reachability graph analysis method play very important keys in this novel deadlock prevention policy. It solves the time-consuming problem successfully. However, this policy merely can be used in some special nets (i.e. S3PR 6 ). Furthermore, it could get no solution outside S3PR net. In other words, deadlocks still exist.
In this paper, the authors try to propose one improved iterative deadlock prevention policy which can suit for all kinds of FMS. The proposed policy not only can obtain maximally permissive controllers in S3PR net but all deadlock situations can be solved even outside S3PR net. Experimental results show that the proposed algorithm does improve the drawback of conventional MFFP.
The rest of this paper is organized as follows. The next section presents the basic definitions and properties of Petri nets theory and reachability graph analysis. “The improved control place computation” section describes our proposed deadlock prevention policy. Next, “Examples” section presents the experimental results. The final sections give the comparisons and conclusions.
Preliminaries
Petri Nets7,8
A Petri net is a four-tuple
A P-vector is a column vector
Reachability graphs and first bad markings1,5
A reachability graph can be partitioned into a deadlock zone (DZ) and a live zone (LZ). DZ contains deadlocks and bad markings that inevitably lead to deadlocks. LZ contains all the legal markings. The set of legal markings
An FBM is a node within DZ, representing the very first entry from LZ to DZ. Mathematically
In a reachability graph, a system cannot enter DZ if all FBMs are forbidden by control places. In this case, the controlled system keeps running in LZ, i.e. it is live.
PI
This section presents the control place synthesis based on PI, 3 which we can use to forbid FBMs.
Generally, PI is concerned with a control place, its reachability graph, and related arcs. Let
Suppose that the control goal is to enforce the plant to satisfy the following constraint
Similarly, all PI equations of the type of (4) can be grouped into a matrix form as follows
The PIs defined by equation (4) satisfy the PI equation
Equation (6) must be true at the initial marking of a net. Thus, the initial marking
The improved control place computation
Maximally permissive controller synthesis
One optimal controller synthesis method is obtaining maximally permissive controllers for a Petri net model of an FMS. Generally, all places in a Petri net can be defined as idle, activity, and resource places which are denoted as P0, PA, and PR, respectively. 6 In designing of deadlock prevention policy, only activity places are considered.
Each FBM
Constraint (9) is called the forbidding condition. To ensure all marking
Constraint (11) is called the reachability conditions. For an FBM, by substituting equations (10) and (11), the reachability conditions of legal markings become
Constraint (12) determine coefficients
Please note that we still find out suboptimal controllers once maximally permissive behavior does not exist in Petri net model of one FMS. In other words, the proposed improved deadlock prevention in this paper will identify one system’s optimal controllers if the maximal permissive behavior of one Petri net model does exist. Or, the proposed policy still finds out its suboptimal controllers so as to one Petri net model of an FMS is live.
New vector covering approach for PI 1
This section tries to improve the conventional vector covering approach which Chen et al.1,2 developed to design an optimal PI, which can greatly reduce computation and the sets of FBMs and legal markings to be considered. Let M and Similarly, if M A-covers M′, it can also be considered that M′ is A-covered by M, which is denoted as Let Definition 1
Definition 2
In definition 2, if all markings in Let Definition 3
In definition 3, if no any markings in
Generally,
Therefore, the vector covering approach can greatly reduce computation by reducing FBMs and legal markings which is needed to be considered.
Control place synthesis for forbidding FBMs
This section briefly reviews two techniques that Chen et al.
1
developed to design a maximally permissive PI, which can prevent system from FBMs as many as possible and no any legal marking. By using the proposed method in “New vector covering approach for PI
1
” section, we can use the optimal PI to forbid FBMs. Let I be a PI for the constraint
An FBM
A set of variable fk’s
The coefficient of I and β should satisfy the reachability conditions. As a result, we have the following ILPP to design a PI, which is denoted as the MFFP as follows
Subject to
The objective function f is used to maximize the number of FBMs that are forbidden by I. Please note that if
The above improved maximal number of forbidding FBM problem is called IMFFP.
The improved deadlock prevention policy
Input: One Petri net model
Output: One optimal (maximally permissive)/suboptimal controlled Petri net system (
The proposed deadlock prevention algorithm has the following steps given a deadlock PN model.
Generate R(N, M0). Identify all dead, illegal markings, and legal markings. Identify all FBMs. Identify the relative minimal covering sets of legal markings and covered set of FBMs. List IMFFP equation. Solve ILPPs. All ILPPs are solved? /Yes go to Step 8. /No go to Step 9. End and output the optimal controlled system. Adding all obtained controllers into model and redo steps 4–6. Solve suboptimal ILPPs. End and output the suboptimal controlled system. The improved deadlock prevention policy is more efficient than the method in Chen et al.
1
(1) The S3PR net is included in all kinds of nets. (2) The conventional method MFFP is used merely in S3PR net. (3) The improved deadlock prevention policy in this paper can be used for all kinds of net. (4) Therefore, the improved deadlock prevention policy is more efficient than the method in Chen et al.
1
Theorem 1
Proof
Examples
In this section, two examples are used to evaluate the proposed improved policy. The first one is a classical S3PR model. And, it is used to show our improved policy how to get the optimal controllers for a deadlock FMS when maximally permissive states exist. The second one is used to present how to obtain suboptimal controllers once maximally permissive states do not exist. The Petri net model of FMS and its reachability graph are shown as Figures 1 and 2, respectively. There are 20 markings in total, five and 15 of which are FBMs and legal ones, respectively.
A Petri net model of FMS. FMS: flexible manufacturing system. The reachability graph of Figure 1.Example I


According to the proposed definition in “Control place synthesis for forbidding FBMs” section, the minimal covering set of legal markings and the minimal covered set of FBMs are
The above ILPP has an optimal solution with
Accordingly, one control place calculated is that
After the first iteration, we can find that
The second iteration of above ILPP has another optimal solution when
Similarly, one control place calculated is that
Adding these two control places to the original model shown in Figure 3, one new Petri net model is with 15 maximally permissive legal markings. Most important, it is deadlock free. Another model shown in Figure 4 is used to demonstrate the proposed policy. In this model, there are 39 markings, nine and 23 of which are FBMs and legal ones, respectively (shown in Figure 5). According to vector covering approach, the set of minimal covered set of FBMs and legal markings can be defined as The live system with optimal controllers. General Petri net model of an FMS. FMS: flexible manufacturing system. The reachability graph of Figure 4.Example II



After determining the minimal covered set of FBMs and legal markings, we have an ILPP as below
The ILPP above has an optimal solution with,
The ILPP above has an optimal solution with
However, there is no solution in the above ILPP. In other words, there are no optimal controllers in this example. It means that conventional MFFP method fails to solve the deadlock problem of this model. No doubt, after adding above two controllers into original model shown in Figure 6, its new reachability graph is present in Figure 7.
The Petri net model with two controllers. The reachability graph of the uncontrolled model of Figure 6.

In our proposed policy, deadlock free controllers still can be obtained even when optimal controllers does not exist. Therefore, we redefine
Accordingly, we pick I5 as the third set of PI since I5 is the simplest one among all PIs. Finally, the third controller is then calculated. It is M0( All controllers are added into example II. The reachability graph of the controlled model by IMFFP. IMFFP: improved maximal number of forbidding FBM problem.

Comparison with previous methods
Comparison of the controlled example I.
CMTSI: crucial set of marking transition separation instances; MFFP: maximal number of forbidding FBM problem; MTSI: the set of marking transition separation instances.
Comparison in example II.
MFFP: maximal number of forbidding FBM problem.
Conclusions
Solving deadlock problems of FMSs is a topic of intense research nowadays due to the damaging consequences to the entire factory if it was not controlled. Therefore, so many experts try to propose all kinds of technology. However, how to keep the liveness of one controlled system is very difficult. Nowadays, therefore, all proposed deadlock prevention methods devote to identifying maximally permissive and least number of controllers. In existing literature, all kinds of methods are tried to develop for this goal. In our study, the deadlock prevention policy developed by Chen et al. 1 seems the best one since it can obtain maximally permissive controllers and least number of control places. However, it just can be applied in some special S3PR nets.
Based on above reasons, this paper tries to propose one iterative deadlock prevention policy to circumvent the disadvantage. Although the final result is still suboptimal, it does control the deadlock system. In fact, this paper is the first one proposed to improve the MFFP technology. Experimental results also show that the proposed improved policy can be used in all kinds of nets. Therefore, we believe that this paper contains several new and significant concepts and ideas as well as enough materials since it does improve the drawback of conventional MFFP technology. In the future, we will try to enhance further the computational efficiency of MPPF technology and lower the computer time in solving the process of systems’ deadlock problem. Besides, how to use the concept of “Inhibitor Arcs” 27 solving deadlock problems is also our future goal since it can deal with the considered problem proposed in this paper.
Footnotes
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) received no financial support for the research, authorship, and/or publication of this article.
