• 沒有找到結果。

S3PR 模型之增強至能處理一般資源的S3PGR, S2NPGR and S2WPGR模型

N/A
N/A
Protected

Academic year: 2021

Share "S3PR 模型之增強至能處理一般資源的S3PGR, S2NPGR and S2WPGR模型"

Copied!
6
0
0

加載中.... (立即查看全文)

全文

(1)

行政院國家科學委員會專題研究計畫 成果報告

S3PR 模型之增強至能處理一般資源的 S3PGR, S2NPGR and

S2WPGR 模型

計畫類別: 個別型計畫

計畫編號: NSC93-2212-E-004-001-

執行期間: 93 年 08 月 01 日至 94 年 07 月 31 日

執行單位: 國立政治大學資訊管理學系

計畫主持人: 趙玉

報告類型: 精簡報告

處理方式: 本計畫可公開查詢

中 華 民 國 95 年 5 月 19 日

(2)

S

3

PR 模型之增強至能處理一般資源的 S

3

PGR, S

2

NPGR and S

2

WPGR

計畫編號:NSC

93-2212-E-004-001

執行期限: 93 年 8 月 1 日至 94 年 7 月 31 日

主持人:

趙玉 政治大學資管系

計畫參與人員:吳俊德,

翁懷嘉

政治大學資管系

一、中文摘要

利用派翠網路(Petri nets)模擬的彈性生產系統(FMS)之活性和空的壞虹吸有相關。FMS 模型包括一大堆 過程工作流程 (WP) 互相爭奪資源。 循環等待資源可能帶領系統進入死結使得有些 WP 可能從未完成的僵局。 預防比規避好是因為計算過程只被執行一次和離線計算。 因此它較快速地運行在真實發生的案例。Ezpeleta 等提出了一 PN 類型叫簡單的循序過程資源系統 (S3 PR) 並且提出了死結預防方法。最近多數死結控制方法都 是延伸 Ezpeleta 的工作。我們提議將其增強為 S3 GPR (簡單的循序過程系統延伸它以一般資源), S2 NPGR (以 一般資源及同步選擇網路工作流程) 並且 S2 WPGR (以一般資源及加權的同步的選擇過程系統) 並且改進它的計 算效率。 另外, 我們將推廣普通派翠網路(OPN)與虹吸相關理論到一般派翠網路 PN (GPN) 並且將改進我們 GPN 的合成規則。 SNC 擴大我們在與 PN 合成有關的重要紡織技術(Knitting Technique)工作。 關鍵詞:彈性生產系統, 派翠網, 死結, 虹吸 Abstract

Liveness in Flexible Manufacturing Systems (FMS) modelled by Petri nets (PN) are closely related to bad siphons whose tokens can be emptied completely. The FMS model consists of a set of working processes (WP) competing for resources. Circular wait for resources can bring the system into a deadlock where some WP can never finish. Prevention is preferred to avoidance because the computational effort is carried out once and off-line. Hence it runs much faster in real-time cases. Ezpeleta et al proposed a class of PN called Systems of Simple Sequential Processes with Resources (S3PR) and a deadlock prevention approach. Most recent deadlock control approaches extend Ezpeleta’s work. We propose to extend it to S3PGR (systems of simple sequential processes with general resources), S2NPGR (Systems of Synchronized choice Net processes with General Resource) and S2WPGR (Systems of Weighted Synchronized choice Net processes with General Resource) and improve its computational efficiency. In addition, we will generalize some siphon-related theory of Ordinary PN (OPN) to General PN (GPN) and improve our synthesis rules for GPN.

Keywords: Flexible manufacturing systems, Deadlock prevention, Petri nets, Siphons, S

3PR.

二、緣由與目的

Liveness in Flexible Manufacturing Systems (FMS) modelled by Petri nets (PN) are closely related to bad siphons [3] whose tokens can be emptied completely. A siphon (trap) is a set of places where tokens can leak out (inject in). If a siphon is also a trap, then tokens in it cannot leak out completely. A bad siphon is a siphon that is not a trap. Once a bad siphon is found that can be emptied, output transitions of places in the siphon can never be fired. Hence the net is not live. In this situation, we can construct a control policy based on the total number of tokens in the bad siphon.

The FMS model consists of a set of working processes (WP) competing for resources. A state machine (SM) models each WP plus a set of resource places modeling the availability of resources. Each SM contains one idle state plus a number of states for the set of possible sequences of operations. The initial and the final state of a WP collapse into the idle state for cyclic models. The number of tokens at the idle state indicates the maximum number (constrained by the system resource capacity) of products that can be concurrently manufactured. Circular wait for resources can bring the system into a deadlock where some WP can never finish.

There are two approaches to control deadlocks: deadlock recovery and deadlock prevention/avoidance. Recovery is to restore the system to a normal state so as to be able to finish the production. Prevention/avoidance is to avoid such situations. Prevention establishes the control policy in a static way [2,16,22]; while avoidance [7,15,17,20-21,23-25] determines possible system evolutions at each system state and chooses the correct ones to proceed.

(3)

runs much faster in real-time cases compared with deadlock avoidance algorithms where much time is consumed by doing on-line each time the system ought to change the state. Deadlock prevention control policy is essential when it is unacceptable to have deadlocks and real time response time is critical. Although the number of minimum siphons grows exponentially with the size of the PN, in practical cases, as indicated by [2,28], it is not exponential.

Ezpeleta et al proposed a class of PN called Systems of Simple Sequential Processes with Resources (S3PR) [2] which generalizes that in [8] by allowing choices in W. Their idea is to compute all bad siphons of the given model and find the maximum number of tokens at each idle state followed by a control policy of adding arcs and nodes with tokens. Most recent deadlock control approaches [30,32-33] extend Ezpeleta’s work.

Reveliotis [30-31] extends Xie’s MIP [3] approach to propose Systems of Simple Sequential Processes with General Resources (S3PGR) to generalize Ezpeleta’s deadlock prevention approach. But Xie’s approach posts the following disadvantages:

a. The worst-case time complexity is exponential.

b. It does not enumerate all bad minimum siphons at once, hence is not efficient for deadlock control since as many iteration steps as the total number of bad minimum siphons are required.

c. In case of detecting the presence of empty siphons, the FMS must be redesigned. The structure of the FMS (i.e., siphons) must be analyzed. Without the knowledge of the structure, it is rather hard to judge whether to add or delete transitions, places or arcs (and its weights). Add-hoc modifications simply result in many unsuccessful attempts and retests.

d. It has to analyze the net to ensure its structure boundedness (SB).

In addition, Reveliotis [30] did not discuss how to make the net SB; while our proposed scheme does. Further, S3PGR is less powerful than our proposed S2NPGR (Systems of Synchronized choice Net processes with General Resource) which can model not only assembly operation requiring multiple resources but also parallel activity and synchronization.

Xie proposed a linear programming approach that requires the examination of all minimal siphons. Its efficiency depends on the number of minimal siphons. Unfortunately, it is well known that the total number of minimal siphons (traps) grows quickly beyond practical limits and that, in worst case, it grows exponentially in the number of nodes. Xie showed that it is possible to check deadlock-freeness without generating minimal siphons based on the mixed integer linear programming approach where the net is assumed to be structurally bound. One way to reduce the complexity of the linear programming approach is to find efficient algorithms for generating minimal siphons that do not contain traps without generating other siphons such as that proposed by Jeng [28]. Xie’s MIP [3] approach is based on the assumption that no such algorithms exist. Although theoretically the number of such siphons grows exponentially in the number of nodes, both Jeng and Ezpeleta indicated in their papers that in practice, it is usually small comparing to the number of basis siphons. Thus, the MIP approach may not be the best approach. In addition, it finds maximum

siphons. Computational efforts are still required to extract minimum siphons for deadlock prevention by adding control places.

We propose to extend it to S3PGR and with general resource requirements and improve its computational efficiency. Because at most one resource type is used in each job stage and the processes are modeled using state machines using S3PR, its modeling power is limited, hence we further propose S2NPGR (Systems of Synchronized choice Net processes with General Resource) where each process or WP is a WSNC (Weighted SNC) [14]. This is better than the RCNM (Resource Control Net-merged which cannot model parallel and synchronization activities [26]. Additional benefit of this research will be to generalize some siphon-related theory of Ordinary PN (OPN) to General PN (GPN). Our reachability paper [27] in SNC has received good comments and SNC [27] has been considered an important variant of PN classes since we already have two papers published in the prestigious Computer Journal. Note that SNC [11] extends our work on our important Knitting Technique [9,12-13] for PN synthesis. It is important to continue research in this line to establish and reinforce our reputation in PN field. We will stand over all researchers’ shoulder in this field.

三、Results

To prevent deadlocks arising in flexible manufacturing systems (FMS), some control places and related arcs are added to minimal bad siphons (MBS) such that no siphon can be emptied. Since the number of minimal siphons grows in general exponentially with respect to a Petri net size, efficient techniques to enumerate them are urgently needed.

Once we find all MBS, we can follow the approach in [34] to add control places and arcs to prevent deadlocks. Hence our efforts focus on finding all MBS for various enhanced models resulting in a number of papers.

(4)

arbitrary strongly connected Petri nets and three ways to improve it. We [35] then develop theory to efficiently extract minimal bad siphons and specialize it for S3PR (Systems of Simple Sequential Processes) proposed by Ezpeleta et al. in an incremental fashion using an algorithm rather than the traditional global approach. Only linear number of minimal bad siphons needs to be searched. The rest can be found by adding and deleting common sets of places from existing ones with search time significantly reduced.

We [36] further extend it to SNC-Based Resource Allocation System called S2NPR where each WP is replaced by an SNC. Again, only a subset of all MBS needs to be searched. The rest SMS can be found by adding and deleting common sets of places from existing ones. And the enhanced model covers the Extended Resource Control Merged Net (ERCN*) as a subset. It is very interesting that both nets and siphons can be synthesized by first locating a circuit followed by adding handles.

Next, we [37] propose to decompose an S2NPR into a number of S3PR components and apply our earlier technique for S3PR the technique to find MBS for each component. This has the advantage of simplifying the theory.

Based on the above research results, we found that each strongly connected resource subnet — containing no state places — correspond to an MBS. The same result holds for S2PGR and S2PWR. We [38] have developed an algorithm for finding all sub-SCC (strongly connected component).

Unlike other techniques, Li et al. [34] add control nodes and arcs for only elementary siphons greatly reducing the number of control nodes and arcs. Their method suffers from the expensive computation of siphons. We [39] propose a new T-characteristic vector ζ to compute MBS for S3PR in an algebraic fashion. For a special subclass of S3PR called S4PR, the set of elementary siphons can be computed without the knowledge of all SMS. We discover that any elementary siphon is a basic siphon constructed from an elementary circuit where all places are resources. We also propose to construct characteristic T-vectors η by building a graph for all redundant siphons without their computations.

We discover and have proved that for non-S4PR, redundant siphons built from compound resource circuits, the intersection between any two basic circuits must be a single resource place — very interesting and significant. We have adapted the above sub-SCC search-algorithm to find all elementary siphons instead of all MBS. This

significantly relieves the NP-complete problem of searching all minimal siphons.

For S2NPWR & S2NPGR, we have also established new and outstanding results regarding the marking for liveness. We extend the concept of invariant-controlled siphons for OPN to GPN. We call it max’-controlled siphons. For details, please refer to [40].

For OPN, even if all siphons are controlled to be deadlock-free, the net may not be live. The proof of liveness for various new classes of nets is not intuitive and rather hard to understand. We [41] propose to find the maximum class, called non-virtual-net that are live as long as all minimal siphons never get empty of tokens and the maximum class, called virtual-net that may be weakly live if all minimal siphons never get empty of tokens. We show that weakly liveness is closely related to a structure called Virtual First Order Structure. We show that both Synchronized Choice Net and Extended Synchronized Choice Net belong to non-virtual-net. In [42], we show that they remain to be maximal for general Petri nets under a different condition — all siphons are max-controlled rather than always have tokens.

The above theory is important, because we can show that for S3PR, S2PGR, S2NPR, and S2WPGR, all belong to NV-net. Once if we prove that they are controlled, we can be sure of their liveness instead of a mere deadlock-freeness. In addition, we enhance our synthesis rules so that they relieve both structure and marking problems of Petri Nets [43].

For S2PWR, we found that simple extension of the technique in [34] by adding control places and arcs do not work, we have discovered its issues and a new method to add control places and arcs.

In summary, our achievements are excellent and exceed all other scholars. Without timely support of NSC, this project may have not been so successful.

四、參考文獻

1. Teruel, E., Chrzastowski-Watchel, P., Colom, and J.M., Silva, M. (1992) On Weighted T-systems, Research

Report GISI-RR-92-04. Dpto. Ing. Electrica e Informatia, Universidad de Zaragoza, January, and in LNCS, 616,

348-367.

2. J. Ezpeleta, J. M. Colom, and J. Martinez, A petri net based deadlock prevention policy for flexible manufacturing systems, IEEE Trans. on R&A, vol. 11, pp. 173-184, 1995.

3. F. Chu and X-L. Xie, Deadlock analysis of petri nets using siphons and mathematical programming, IEEE Trans. On R&A, vol. 13, pp. 793-804, 1997.

4. Lien, Y.L. (1976) Termination properties of Generalized Petri Nets, SIAM Journal of Computers, 5(2), 251-265. 5. Lautenbach K. and H. Ridder. (1994) Liveness in Bounded Petri Nets which are Covered by T-Invariants, In

Application and Theory of Petri Nets 1994, Zaragoza, Spain, LNCS, 815, 358-378.

(5)

352-364.

7. M. A. Lawley, Deadlock avoidance for production systems with flexible routing, IEEE Trans. Robotics & Automation, vol. 15, pp. 497-509, 1999.

8. J. Ezpeleta, F. Garcia-Vallės and J.M. Colom. (1998) A Class of Well Structured Petri Nets for Flexible Manufacturing Systems, In Application and Theory of Petri Nets, LNCS, 1420, 64-83.

9. Chao, D.Y., and David Wang. (1994) A Synthesis Technique for General Petri Nets, J. of Systems Integration, 4(1), 67-102.

10. D.Y. Chao. (1997) Performance of Multi-Rate Data Flow Graphs for Concurrent Processing, J. of Information

Science and Engineering, 13(1), 85-123.

11. D. Y. Chao and Jose A. Nicdao. (2001) Liveness for Synchronized Choice Petri Nets, Comp. J., (British Computer Society), 44(2), 124-136.

12. D. Y. Chao. (1999) Petri Net Synthesis and Synchronization Using Knitting Technique. J. Information Science and Engineering, 15(4), . 543-568.

13. Chao, D.Y., and D. Wang. (1997) Two Theoretical and Practical Aspects of Knitting Technique – Invariants and A New Class of Petri Net, IEEE Trans. on System, Man, and Cybernatics, 27(6), 962-967.

14. Chao, D.Y., Extended Synchronized Choice Nets, Comp. J., (British Computer Society), 46(5), 505-523.

15. Z.A. Banaszalc. B.H. Krogh (90): Deadlock Avoidance in Flexible Manufacturing Systems with Concurrently Competing Process Flows. IEEE Trans. on Robotics and Automaton. Vol 6. n6. pp 724-734.

16. T. Minoura, C. Ding (91): A Deadlock Prevention Method for a Sequence Controller for Manufacturing Control. International Journal of Robotics and Automation. Vol. 6, n3.

17. N. Viswanadham, Y. Naiahary (92): Performance Modeling of Automated Manufacturing Sysiems, Prenncc-Hall. 18. S. Tanimoto, M. Yamalichi, and T. Wataiiabe, Finding minimal siphons in general Petri nets, IEICE Trails.

Fundamentals, vol.E79-A, no. 11, pp.l817-1824, 1996.

19. M. Yamauchi, S. Tanimoto, and T. Watanabe, Finding a minimal siphon containing specified places in a general Petri net, IEICE Trans. Fundamentals, vol.E79-A, no.ll, pp.l825-1828, 1996.

20. T.K. Klimaran. W. chang and R.A. Wysk (94): A structured approach to deadlock detection.avoidance and resolution in flexible manufacturing systems, int J. Prod. Res. Vol. 32. no. l0. pp. 2361-2379.

21. K. Y. Xing, B. S. Hu, and H. X. Chen. Deadlock avoidance policy for petri net modeling of Flexible manufacturing systems with shared resources. IEEE Transactions on Automatic Control, 41:289–295, 1996.

22. F. Tricas, F. Garcia-Valles, J. M. Colom, and J. Ezpeleta. A structural approach to the problem of deadlock prevention in processes with resources. In Proceedings of the 4th Workshop on Discrete Event Systems, pages 273–278. IEE, 1998.

23. S. A. Reveliotis, M. A. Lawley, and P. M. Ferreira. Polynomial complexity deadlock avoidance policies for sequential resource allocation systems. IEEE Transactions on Automatic Control, 42(10):1344–1357, 1997. 24. S. A. Reveliotis and P. M. Ferreira. Deadlock avoidance policies for automated manufacturing cells. IEEE

Transactions on Robotics & Automation, 12(6):845–857, 1996.

25. N. Viswanadham, Y. Narahari, and T. L. Johnson, “Deadlock prevention and deadlock avoidance in flexible manufacturing systems using Petri net models,” IEEE Trans. Robot. Automat., vol. 6, pp. 713–723, 1990.

26. X. Xie and M. Jeng, “Ercn-merged nets and their analysis using siphons," IEEE Trans. on R&A, vol. 13, pp. 692{703, 1999.

27. D.Y. Chao, Reachability and Firing Sequences of Homogeneous Synchronized Choice Petri Nets, JISE, under second review.

28. MuDer Jeng, MaoYu Peng, YiSheng Huang, An algorithm for calculating minimal siphons and traps of Petri nets, International Journal of Intelligent Contro and Systems, Vol. 3, No. 3, pp 263-275, 1999.

29. K. Barkaoui, J. M. Couvreur, and C. Dutheillet.(1995) On Liveness in Extended Non Self-Controlling Nets. In

Application and Theory of Petri Nets 1995, LNCS, 935, 25-44.

30. S. A. Reveliotis, On the siphon-based characterization of liveness in sequential resource allocation systems," manuscript, 2003.

31. J. Park and S. A. Reveliotis, Deadlock avoidance in sequential resource allocation systems with multiple resource acquisitions and flexible routings, IEEE Trans. on Automatic Control, vol.46, pp. 1572-1583, 2001.

32. YiSheng Huang,, Modeling, Analysis, Deadlock Prevention and Cell Controller Implementation for Flexible Manufacturing Systems, Ph.D. Dissertation, NTUST, 2001.

33. K. Barkaoui, and I. B. Adallah. Deadlock avoidance in FMS on structural theory of petri nets. In Proc.

INRIA/IEEE Symposium on ETFA,, 2(4), pp. 499–510, 1995.

34. Z. Li and M. Zhou, “Elementary Siphons of Petri Nets and Their Application to Deadlock Prevention in Flexible Manufacturing Systems,” IEEE Trans. Syst., Man, Cybern. A, 34(1), 2004, pp. 38-51.

35. D. Y. Chao, “An Incremental Approach to Extracting Minimal Bad Siphons,” accepted to appear in J. Inform. Sci.

and Eng. , 2005.

36. D. Y. Chao, “Searching Strict Minimal Siphons for SNC-Based Resource Allocation System,” 1st revision, J. Inform. Sci. and Eng. 2005.

(6)

38. D. Y. Chao, “A Graphic-Algebra Approach to SMS Enumeration”. 39. D. Y. Chao, “Computation of Elementary Siphons for Deadlock Control”.

40. D. Y. Chao, “Liveness for S3PWR, Systems of Simple Sequential Processes with Weighted Resources”. 41. D. Y. Chao, “Virtual First-Order Structures,” accepted to appear in J. Inform. Sci. and Eng., 2005. 42. D. Y. Chao, “Max-Controlled Siphons and A Special First Order Structure”.

43. D. Y. Chao, “Synthesis Relieves Both Structure and Marking Problems of Petri Nets,” accepted to appear in J. Inform. Sci. and Eng. , 2005.

附件:封面格式

行政院國家科學委員會補助專題研究計畫成果報告

※※※※※※※※※※※※※※※※※※※※※※※※※※

※ ※

S3PR 模型之增強至能處理一般資源的

※ S3PGR, S2NPGR and S2WPGR

模型

※ ※

※※※※※※※※※※※※※※※※※※※※※※※※※※

計畫類別:■個別型計畫 □整合型計畫

計畫編號:NSC NSC

93-2212-E-004-001

執行期間: 93 年 8 月 1 日至 94 年 7 月 31 日

計畫主持人:趙玉 政治大學資管系

共同主持人:

計畫參與人員:吳俊德,

翁懷嘉

政治大學資管系

本成果報告包括以下應繳交之附件:

□赴國外出差或研習心得報告一份

□赴大陸地區出差或研習心得報告一份

□出席國際學術會議心得報告及發表之論文各一份

□國際合作研究計畫國外研究報告書一份

執行單位:

中 華 民 國

94 年 9 月 25 日

參考文獻

相關文件

Listen to the sentence and circle the

Highest levels of memory hierarchy Fast: level 1 typically 1 cycle access time With luck, supplies most data. Cache

a substance, such as silicon or germanium, with electrical conductivity intermediate between that of an insulator and a

• The  ArrayList class is an example of a  collection class. • Starting with version 5.0, Java has added a  new kind of for loop called a for each

Recent preclinical data by Nardone et al (2015) indicate that olaparib may enhance endocrine therapy efficacy and circumvents resistance; as a consequence, addition of olaparib to

• If students/ children develop fever and symptoms of respiratory tract infection, advise them to stay at home for rest until fever has subsided for at least 2 days. • Staff

Arbenz et al.[1] proposed a hybrid preconditioner combining a hierarchical basis preconditioner and an algebraic multigrid preconditioner for the correc- tion equation in the

mathematical statistics, statistical methods, regression, survival data analysis, categorical data analysis, multivariate statistical methods, experimental design.