Abstract
Reconfigurable manufacturing systems can change the structure of the systems to cope with manufacturing market requirements. Reconfigurability brings about new challenges for reconfigurable manufacturing systems’ development. In order to describe, analyze, and verify the reconfiguration of reconfigurable manufacturing systems, a reconfigurable manufacturing system formal model is proposed from the perspective of multi-agent systems, in which two complementary formalisms, namely, object-oriented Petri nets and π-calculus, are employed as formalisms. The object-oriented Petri nets are utilized to model the initial structure as well as system behaviors of reconfigurable manufacturing systems, while π-calculus is adopted to describe the reconfiguration of reconfigurable manufacturing systems. Some supporting tools of Petri nets and π-calculus can be used to analyze, verify, and validate the reconfigurable manufacturing system formal model. The reconfigurability mechanism and consistency of reconfigurable manufacturing systems can also be analyzed by π-calculus.
Introduction
Driven by a highly volatile market, traditional manufacturing systems have to improve the capacity to meet the new requirements. In recent years, an automated manufacturing system (AMS) has emerged as a new pattern of manufacturing systems, which is a computer-controlled system revealing a high level of resource sharing. 1 It consists of a set of interconnected workstations and material handling systems, and different types of parts can be processed based on the prescribed sequences of operations. In order to further improve the flexibility and productivity, flexible manufacturing systems (FMSs) 2 and reconfigurable manufacturing systems (RMSs) 3 have been developed. They are new types of AMSs.
In contrast to traditional manufacturing systems, RMSs can change the components, interactions, and structure over time and can be rapidly changed from one production mode to another to produce new products within the same product family. 4 A typical RMS consists of reconfigurable machine tools (RMTs), computerized numerical controlled (CNC) machines, robots, automated guided vehicles (AGVs), and input/output buffers.
The reconfigurability of an RMS makes it more flexible to adapt to the market demand changes through addition, removal, update, or adjustment of new machines or components. 5 Although the advantages of reconfigurability make it more capable and productive, its development becomes a challenging issue. The difficulties of developing an RMS are how to create and verify its initial configuration formal model and how to describe, analyze, and verify the reconfiguration. 5 Modeling of reconfigurable manufacturing system plays a key role in its efficient design. Traditional validation techniques, such as computer simulation and software testing, cannot sufficiently verify the correctness of a system. 6 Formal methods can accurately describe, analyze, and verify complex systems with mathematical methods and supporting tools, which allow one to detect bugs at the modeling phase and repair them at the high level, where changes are easily made. 7 Consequently, the use of formal methods for RMS development is indispensable. 5
Researchers have presented many formal methods for modeling and analyzing AMSs. Petri nets and their extensions are the most competent tools for modeling them.8–10 Li and Zhou 11 present elementary siphons to solve deadlock prevention problems in FMSs’ modeling, and then they propose an algorithm to obtain a set of elementary siphons and apply it to FMSs’ modeling. Wu et al. 1 model each resource in AMSs with a single place and then propose the resource-oriented Petri nets to model AMSs and solve the deadlock avoidance problems. Most existing researches focus on modeling FMSs using Petri nets and use deadlock resolution methods to prevent or avoid deadlocks in FMSs. For RMSs’ modeling and analysis, it is a challenge to how to deal with its reconfigurations. Meng 12 uses colored timed object-oriented Petri nets (OPNs) to describe the reconfiguring process of a manufacturing system and develops a modular hierarchical structure of RMSs. The reconfiguration is depicted as the inheritance of Petri net models. Wu and Zhou 13 propose an intelligent token Petri net (ITPN) to model and control RMSs. Tokens in ITPN represent job instances which carry real-time knowledge describing the system status and reconfigurations. ITPN models RMSs in a modular way. Only the changed part model will be modified when changes in RMSs occur. However, the reconfiguration mechanism in ITPN needs to be further studied. De Silva et al. 14 propose reconfiguration mechanisms using holonic and multi-agent system (MAS) techniques and then use Petri nets to describe the combined top–down and bottom–up approach. However, the reconfiguration is not addressed by Petri nets. Tarnauca et al. 15 introduce reconfigurable finite capacity Petri nets (RFCPNs) to describe an FMS. The changes in the FMS are modeled by adding or removing arcs or by setting different place capacities. Li et al. 16 present an improved net rewriting system (INRS)–based method for automatic reconfiguration of Petri net supervisory controllers for RMS. INRS can describe the variations in the structure of Petri nets. Thus, it can overcome the limitations of the net rewriting system and also keep its important behavioral properties unchanged. Li et al. 5 also combine INRS with UML 2 activity diagrams to design RMSs. Kahloul et al. 17 use reconfigurable object nets (RONs) to model, simulate, and analyze RMSs. The reconfiguration in RONs is specified as graph transformation theories. Some RON tools are used to simulate and analyze RMS models. All the above work has tried to model and analyze RMSs. Nevertheless, most of them fail to analyze or verify the reconfiguration results. Software supporting tools have not been developed for most of Petri net extensions.
No single formal method seems to be suitable for modeling and analyzing every aspect of RMSs. This work integrates OPNs and π-calculus to specify and analyze RMSs. Then an reconfigurable manufacturing system formal model (RMSFM) is proposed from MAS point of view, where OPNs are used to describe the static structure and behaviors of RMSs, and π-calculus is employed to characterize manufacturing configuration changes (reconfigurations). We can use some well-established techniques, such as reachability tree method, matrix-equation approach, and model checking, to analyze, verify, and validate RMSFM with respect to certain desired properties. Therefore, the design errors in the system modeling process can be detected and fixed at the model level, where changes are easier and cheaper to make. RMS control systems can be designed directly from RMSFM specifying the control logic of RMSs.
OPNs and π-calculus
Petri nets are an excellent graphical modeling tool that can depict the static structure and behaviors of a system. They can model causality and concurrency of a system. Furthermore, some structural objects and mathematical analysis methods can be employed to analyze, verify, and validate the system. Petri nets have been widely applied to discrete event systems, supervisory control theory, and the short-term scheduling problem.18–23 The ordinary Petri nets, however, do not address the modeling issues of dynamic structures.
π-Calculus is suitable for describing concurrent systems whose structures may change during the run-time. It uses algebraic operators to model a complex system. 24 However, π-calculus is too complicated to be easily used by non-technical users, and it has limited supporting tools only.
The modeling capabilities of Petri nets and π-calculus are different such that we cannot make full use of their advantages if they are employed separately to describe a system. Therefore, a practical approach is to use Petri nets and π-calculus in combination. The combination keeps the advantages of both the specification formalisms. Petri nets can be employed to depict the system static structure and behaviors, while π-calculus can be used to describe the system dynamic changes. According to the system requirements, we can use different kinds of Petri nets and π-calculus.
OPNs
The ordinary Petri nets lack modularity, reusability, and maintainability and are highly system dependent. To improve the modeling capability of ordinary Petri nets, OPNs are proposed by combining Petri nets with object-oriented theory. 25 OPNs promote better understanding for a complex system. In our previous work,26,27 we present a new kind of OPNs from software components’ perspective. The branch bisimilarity of OPNs is proposed to decide the behavior equivalence, and the object-oriented characteristics, such as encapsulation, inheritance, and polymorphism, are analyzed. This work revises our previous OPNs’ definition. The formal definition of a physical object can be given as follows.
Definition 1
A physical object model OPN is a tuple
P is a finite set of places,
G is a guard function that is defined from T into expressions such that
A system is composed of objects and their interconnection relations, and its formal definition is given as follows.
Definition 2
A system S is a three-tuple
O is a finite set of physical objects in the system,
Gate is a finite set of communication places denoted by eclipses, which is applied to message passing among OPN.
π-Calculus
π-Calculus
28
is a concurrent systems’ computation model. It is suitable for describing a system whose structure is continually changing. The most primitive entities in π-calculus are name and process. Names can be defined as an infinite set
The syntaxes of processes can be shown as follows 28
Example 1
Link passing is the basic example of the π-calculus, which is shown in Figure 1. Suppose that the server S interacts with printer P via a link y and then passes y by link x to client C. C is willing to receive it to print data d. Thus, S may be

Link passing.
The link x between server S and printer P is public in Figure 1. Now suppose that the link x is private. The privacy of x should be denoted by a restriction. Therefore, the transition will become
π-Calculus defines structural congruence, reduction rules, strong bisimulation, and strong bisimilarity to analyze a system. π-Calculus has been widely applied to mobile communication systems, computer networks, and software engineering. To improve π-calculus modeling capability, some extensions are proposed, such as polyadic π-calculus. 29
Formal modeling of reconfigurable manufacturing systems
To respond efficiently and effectively to dynamic changes in RMSs, the manufacturing control systems with intelligence, robustness, and adaptation need to be developed. MASs are one of the subfields in distributed artificial intelligence, which are suitable for building intelligent and distributed systems. An agent can be regarded as an autonomous system. Agents can work together to accomplish a common goal. Agents have been used to study reconfiguration systems.30,31 Consequently, MASs can be introduced into RMSs to implement some important properties, such as autonomy, responsiveness, reconfigurability, and openness. In an RMS, agents can express physical manufacturing units (e.g. machines, robots, buffers, and auto-guided vehicles) as well as products and logical objects. MASs can help RMSs to respond quickly to reconfigurations and disturbances through decision-making.
In this work, we use agents to represent machines, robots, and buffers in an RMS and then illustrate the usefulness and applicability of OPNs and π-calculus to the specification of the RMS. First, we employ OPNs to specify the static structure of the RMS and then π-calculus is used to depict the reconfiguration of the RMS. Finally, an RMSFM is proposed. It is built to guide the development of RMSs from the high level. We can also use mathematical methods and tools to analyze and verify the formal models. Therefore, some problems can be detected and fixed at the model level.
Definition 3
RMSFM is a two-tuple,
Static model of RMSs
The static model of an RMS SM is a two-tuple,
Entity agent
Entity agents can be classified as reacting agents or hybrid agents according to their function. The reacting agent formal model is shown in Figure 2, which is modeled by OPNs. The transitions IT and OT describe the interfaces of the reacting agent.

The reacting agent model.
The hybrid agent formal model is shown in Figure 3, which is described by OPNs. The hybrid agent integrates the reactive model with belief–desire–intention (BDI) model,
32
where

The hybrid agent model.
The abstract places can be refined according to the requirements. The entity agents interact with each other using their interfaces. Their internal implementation is invisible for other agents so as to keep well encapsulation.
Connecting agent
The connecting agent is a communication facilitator defining the interaction rules and transmitting the interaction information. The connecting agent coordinates and supervises entity agents.
A connecting agent may be
Gate is the tuple in OPN model and represents the channels among agents.
KB represents knowledge base and stores the information of entity agents and the external environment information.
RL is a set of entity agent identifiers, which is defined as
The static model of RMSs is assembled by the entity agents and connecting agents. In Figure 4(a), an RMS is composed of connecting agents and some entity agents; in Figure 4(b), a large-scale RMS is composed of some subsystems which are connected by the connecting agents.

The communication model of RMSs.
Example 2
Let us consider a simple RMS. It consists of one lathe machine, one milling machine, one robot, and one buffer. The robot is responsible for loading or unloading parts from the machines and buffers.
We use entity agents to represent the robot, lathe machine, milling machine, and buffers. According to their functions, the robot, lathe, and milling machine can be regarded as hybrid agents, and buffers are represented as reacting agents. Using the appropriate agent models, individual machines and robot agents can make their own decisions relating to resource allocation and coordination. These entity agent formal models in the RMS are shown in Figure 5. The lathe and milling machine models can be refined with the machine model according to the specifications.

Entity agent formal models in the RMS.
The abstract RMS formal model is shown in Figure 6. The robot, machine, and buffer agents interact with each other by the communication places Gate. Figures 5 and 6 illustrate the static model of the RMS, which is described by Petri nets.

The abstract RMS formal model.
Reconfiguration model of RMSs
To meet new product requirements, some new machines may join RMSs. If the machines or robots in RMSs have some faults, they need to update. Therefore, RMSs need to be reconfigured to meet the market or environment requirements. The reconfiguration model DM employs π-calculus to describe the typical reconfiguration processes, such as the addition or removal of entity agents, update of entity agents, and adjustment of logic relationship among entity agents.
Addition or removal of entity agents
Machines, robots, and buffers are represented as the entity agents. When a new entity agent, such as a new machine, is added into RMSs, it needs to register its information in a connecting agent. The addition process of an agent is
It means that a new machine is added with identifier id and function s which consists of the name and capability. The register process of the new machine agent is
It means that the machine agent sends identifier id and function s through the channel register to the connecting agent. The corresponding register process in the connecting agent is
It means that the connecting agent receives the new function by the channel register, and a and b are the private names. When some new products need to be produced, the operator wants to check the functions of the machines to make some decisions to respond to the requirements. The operator seeks the functions provided by different machines using a connecting agent. The connecting agent searches from its knowledge database to seek a required agent. If the agent providing the functions is found, the connecting agent builds the interactive channels for these agents to produce the new products; if not, the functions can be subscribed. The connecting agent will notify the operator when a required agent registers. This requesting process of the operator is
The operator sends request a via i to search the agent providing the functions and then waits for a response by channel r. When the operator gets the identifier of the corresponding agent z, the operator sends the requiring address l to the service agent via z.
The functions’ query process is
The connecting agent receives request y by i and judges whether function a exists. If function a exists, the agent identifier p is transmitted through channel r; otherwise nil is transmitted and this service is subscribed.
The corresponding process in the agent providing the functions is
The agent providing the function sends service s by channel x to the operator. The entire dynamic process of the function requiring and providing is described as follows
According to the above process, the interactive channel between two agents is built. When a machine agent or robot agent breaks down, damages, or achieves its goal, it has to be removed from the RMS. Therefore, its information must be deleted from the corresponding connecting agent. The removal process of an agent is
It means that an agent with an identifier id and a function f is deleted.
Update of entity agents
Some entity agents such as machines and robots may break down or provide some new functions to respond to new requirements, so they need to upgrade. The entity agent update can be classified into two categories: 27
Holding semantic update: the control algorithms of an agent in RMSs may make some errors or low efficiency, so the agent must be updated.
Extended semantic update: for new product requirements emerge, an agent with new functions will replace the former agent in RMSs.
For the holding semantic update, we can use the weak equivalent in π-calculus to determine whether the new agent replaces the former agent. If their behaviors are equivalent, the new agent can replace the former one and the environment does not apperceive the substitution. The holding semantic update can be defined as follows.
Rule 1
Suppose that the behaviors of agents
Holding semantic update means that the internal algorithms in RMS control systems are only updated, while their interfaces and external behaviors are not changed.
For the extended semantic update, a more powerful agent replaces the former agent. The extended semantic update can be defined as follows.
Rule 2
Suppose that the behaviors of agents
If
If
If
If
Then Q updates P; therefore,
Extended semantic update means that the new agent in RMS control systems may provide new functions and interfaces to improve the system performance. RMSs can meet the new product requirements by the entity agent update and exhibit these capabilities of responsiveness, flexibility, and reconfigurability.
Adjustment of logic relationship among entity agents
To respond to the new product requirements, the operating sequences of the machine agents may be adjusted. Given that
It means that before
Analyzing reconfiguration of reconfigurable manufacturing systems
For analyzing the formal model of RMSs, the related methods and supporting tools can be employed to analyze the deadlock, boundness, and reachability of the model. Petri nets provide some mathematical analysis methods and techniques to verify the logic correctness of the static model SM, and π-calculus can analyze and verify the reconfiguration model DM.
In this section, the major attention focuses on analyzing the reconfigurability of RMSs using π-calculus, especially the consistency of the agents. The reconfiguration makes RMSs more flexible to enhance the productivity. The machine, robot, and buffer agents in RMSs have to communicate and collaborate in order to achieve a goal. The success of RMSs depends on the quality of agents and their interactions. 17 The consistency can ensure the successful interactions among agents in RMSs.
The compatibility of the internal implementations and interfaces in agents
An agent is composed of the interfaces and internal implementations in RMSs. Machine agents, robot agents, and buffer agents interact with each other by the interfaces. Interfaces specify the functions of the agents. The internal implementations of the agents must be compatible with their interfaces. Therefore, the agents execute the behaviors specified by the interfaces. To analyze the compatibility between the interfaces and the internal implementations, the name hiding of π-calculus is used to describe the compatibility. 33
Suppose that a process P and a set of names
where
For each name
The hide names are distinct with the restricted names. The restricted names cannot interact with the other processes, but they can be regarded as values to be transmitted to the other processes. The hide names mean that the freedom names in processes are hidden and the actions along them are regarded as silent actions
Definition 4
(Agent interface) Suppose an entity agent AComp and a process P, if
then P is called an interface in AComp.
Definition 4 means that the actions executed by interface P is a subset of internal implementations in the agent AComp. Therefore, the freedom names of the interface are a subset of the freedom names of the agent, and the other names are hidden. Then the process
According to Definition 4, the interfaces can be obtained by name hiding. However, not every process satisfying Definition 4 correctly represents the internal implementations of an agent. The compatibility of the interfaces and implementations of an agent must be considered. The compatibility is defined as follows.
Definition 5
(Compatibility) Let EA be an agent and
If
The compatibility between the interfaces and the internal implementations in an agent shows that the agent encapsulates its internal behaviors very well, so we can use the interfaces to represent the behaviors of the agent. 33
Analyzing consistency of RMSs
The agents automatically reconfigure to respond new requirements or to solve damages in RMSs. When new agents add or agents update, RMSs will evolve, and its consistency may be changed. The consistency means that all agents in RMSs successfully interact with each other, which is important for RMSs. As agents interact with each other via the interfaces, the consistency can be judged from the interface level. 33
If processes P and Q are consistent, P interacts with Q via an allelomorph name, such as
Definition 6
(Consistency) Suppose the relation R in synchronous processes P and Q. If the replacer operator
If
If
If
Then R is called half-consistency. If R and
The consistency of the processes means that the processes can communicate with allelomorph names and execute successfully until their final states. If there exists a process
Theorem 1
(Consistency of agents) Suppose that P and Q are the interfaces of
Proof
We need to prove that if
Base case. Suppose
Inductive hypothesis. Suppose
General case. Suppose
Consequently, if
Theorem 1. ensures the matching of actions in the agents. For the agents with more interfaces, we can extend Theorem 1 to prove their consistency.
Theorem 2. (Consistency of RMSs) If all agents in RMSs can satisfy the consistency, then RMSs are consistent and can successfully execute.
We can prove Theorem 2 from Theorem 1, and the proof is omitted here.
Example 3
Consider the RMS in Example 2. To meet the market requirements, a drilling machine is added in the system. The drilling machine interacts with the robot, which can be described as follows
From Definition 4, the interfaces of the drilling machine can be represented as manufacture and storage
The interfaces of the robot interacting with the drilling machine are
From Definition 6, we can get
Hence, from Theorems 1 and 2, we have also that
is successful. Therefore, these machines, robot, and buffer can be safely composed to build a new RMS.
Conclusion
In order to respond to some new market requirements, improve the productivity, or deal with structural problems, reconfigurable manufacturing systems change their structures during the run-time. The development of RMSs is a very challenging issue. Formal methods are widely used to model, analyze, and verify RMSs. This work presents the RMS formal model based on OPNs and π-calculus, in which OPNs are employed to visualize initial structure as well as system behaviors of RMSs, while π-calculus is used to describe the reconfiguration of RMSs. Finally, the consistency of RMSs is analyzed using π-calculus.
Footnotes
Academic Editor: Jiacun Wang
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) disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This work was supported by the National Natural Science Foundation of China (grant nos 61202128, 71571190) and the National Aviation Science Foundation of China (grant no. 20125896020).
