A Timed Colored Petri Net Simulation-Based Self-A Timed Colored Petri Net Simulation-Based Self-Adaptive Collaboration Method for Production-Adaptive Collaboration Method for Production-Logistics Systems Logistics Systems

: Complex and customized manufacturing requires a high level of collaboration between production and logistics in a ﬂexible production system. With the widespread use of Internet of Things technology in manufacturing, a great amount of real-time and multi-source manufacturing data and logistics data is created, that can be used to perform production-logistics collaboration. To solve the aforementioned problems, this paper proposes a timed colored Petri net simulation-based self-adaptive collaboration method for Internet of Things-enabled production-logistics systems. The method combines the schedule of token sequences in the timed colored Petri net with real-time status of key production and logistics equipment. The key equipment is made ‘smart’ to actively publish or request logistics tasks. An integrated framework based on a cloud service platform is introduced to provide the basis for self-adaptive collaboration of production-logistics systems. A simulation experiment is conducted by using colored Petri nets (CPN) Tools to validate the performance and applicability of the proposed method. Computational experiments demonstrate that the proposed method outperforms the event-driven method in terms of reductions of waiting time, makespan, and electricity consumption. This proposed method is also applicable to other manufacturing systems to implement production-logistics collaboration.


Introduction
Nowadays, in order to survive in the competitive market, manufacturing enterprises have changed the mode of production from mass production to customized and on-demand production with small batches and short cycles.Flexible manufacturing systems (FMS) can produce a mid-volume and a mid-variety of products and allow rapid changes between them [1].However, due to external and internal fluctuations, the machining environment changes dynamically and the optimal process plan and schedule becomes less efficient or even infeasible.In order to solve the aforementioned problems, many research efforts have been made by using the advanced technologies, such as Internet of Things (IoT) [2], cloud computing (CC) [3], cyber-physical systems (CPS) [4], and service-oriented technologies (SOT) [5].Based on these types of research and technology, real-time and multi-source manufacturing data and logistics data are easier to access than ever before [6].The advances in IoT and (1) How can the advantages of IoT and CC technology be leveraged to model the behaviors of key production and logistics equipment and make the equipment 'smart'?Generally, key equipment such as machines and AGVs simply execute the commands of the preset programs or workers.The equipment is not aware and cannot make decisions based on dynamic changes in the manufacturing environment.Thus, they cannot adjust the schedule according to real-time scenarios.(2) How can a production-logistics collaboration strategy be designed to undertake active response and self-organizing configuration?In traditional manufacturing systems, the behaviors of both machines and AGVs are event-driven.The logistics task generates after the machine processing is finished.However, this kind of production-logistics system is time-consuming, which may cause high costs.(3) How can key manufacturing resources be integrated with cloud service platforms to provide the foundations for production-logistics collaboration?Despite the achievements in Industry 4.0 and CPS models, it is not clear how to implement production-logistics collaboration in an FMS.An integrated framework is needed to describe the relationships among different components of the FMS and the cloud service platform.
In order to address these challenges, this paper investigates the mechanism of production-logistics collaboration in an FMS.A self-adaptive collaboration method based on a timed colored Petri net (TCPN) is proposed for production-logistics systems.The proposed method combines the schedule of token sequences in the TCPN model with real-time status of key production and logistics equipment such as machines and AGVs.In the simulation experiment, colored Petri nets (CPN) Tools is used to validate the performance and applicability of the proposed method.Three key performance indicators (KPI), including waiting time, makespan, and electricity consumption are considered.Several contributions are significant to the literature.In the first place, intelligent modeling of key equipment is implemented by equipping the equipment with embedded devices or sensors and establishing a knowledge base.The behaviors of key equipment are associated with the TCPN model.Thus, key production and logistics equipment, such as machines and AGVs, are made 'smart' to actively publish logistic tasks and actively request logistics tasks.Secondly, an integrated framework based on a cloud service platform is introduced to provide the basis for self-adaptive collaboration of production-logistics systems.The capacity and real-time status of key equipment are packaged as cloud services to be published on the cloud services platform.Thus, the production-logistics collaboration is switched to the matching of tasks with services.Thirdly, simulation studies are carried out to compare the proposed method with the event-driven method.The results present the outperformance of the proposed method in reductions of waiting time, makespan, and electricity consumption.
The rest of this paper is organized as follows.Section 2 introduces an integrated framework based on cloud service platform for production-logistics systems.Section 3 performs a detailed description of a TCPN-based self-adaptive collaboration method for IoT-enabled production-logistics systems.Section 4 presents an industrial case and a simulation experiment to evaluate the fulfillment and feasibility of the proposed method.Section 5 draws conclusions and describes future work activities.

Framework
In order to solve the aforementioned problems, an integrated framework based on a cloud service platform for production-logistics systems is introduced as shown in Figure 1.The proposed framework is composed of three layers, namely the physical layer, the cyber layer, and the application layer.The aim of this framework is to provide the foundations for production-logistics collaboration.
Appl.Sci.2017, 7, 235 3 of 15 publish logistic tasks and actively request logistics tasks.Secondly, an integrated framework based on a cloud service platform is introduced to provide the basis for self-adaptive collaboration of production-logistics systems.The capacity and real-time status of key equipment are packaged as cloud services to be published on the cloud services platform.Thus, the production-logistics collaboration is switched to the matching of tasks with services.Thirdly, simulation studies are carried out to compare the proposed method with the event-driven method.The results present the outperformance of the proposed method in reductions of waiting time, makespan, and electricity consumption.The rest of this paper is organized as follows.Section 2 introduces an integrated framework based on cloud service platform for production-logistics systems.Section 3 performs a detailed description of a TCPN-based self-adaptive collaboration method for IoT-enabled production-logistics systems.Section 4 presents an industrial case and a simulation experiment to evaluate the fulfillment and feasibility of the proposed method.Section 5 draws conclusions and describes future work activities.

Framework
In order to solve the aforementioned problems, an integrated framework based on a cloud service platform for production-logistics systems is introduced as shown in Figure 1.The proposed framework is composed of three layers, namely the physical layer, the cyber layer, and the application layer.The aim of this framework is to provide the foundations for production-logistics collaboration.

The Physical Layer
The physical layer consists of manufacturing resources, such as smart production cells, smart AGVs, materials, pallets, RFID readers and tags, etc.These manufacturing objects are equipped with embedded devices and sensors so that they can perceive real-time status of themselves as well as others.The objective of the physical layer is to realize real-time status information perception and interaction between machine tools, AGVs, buffers, workers, and cloud clients.
In a smart production cell, cameras and sensors are used to perceive real-time status of machines during machine processing.RFID tags are attached to machines, materials, pallets, and workers.Thus, RFID readers can obtain the location information and basic information of these manufacturing objects.For a smart AGV, embedded devices and sensors are used to collect real-time status information.For example, global positioning system (GPS) devices can capture real-time location

The Physical Layer
The physical layer consists of manufacturing resources, such as smart production cells, smart AGVs, materials, pallets, RFID readers and tags, etc.These manufacturing objects are equipped with embedded devices and sensors so that they can perceive real-time status of themselves as well as others.The objective of the physical layer is to realize real-time status information perception and interaction between machine tools, AGVs, buffers, workers, and cloud clients.
In a smart production cell, cameras and sensors are used to perceive real-time status of machines during machine processing.RFID tags are attached to machines, materials, pallets, and workers.Thus, RFID readers can obtain the location information and basic information of these manufacturing objects.For a smart AGV, embedded devices and sensors are used to collect real-time status information.For example, global positioning system (GPS) devices can capture real-time location information in a real manufacturing environment.An AGV with RFID tags can be associated with the pallet and materials that are being transported.Hence, by integrating manufacturing objects with IoT technology, real-time status information is more easily collected and accessed.The real-time status information can be divided into five parts, including product information, production cell information, AGV information, storage information, and manpower information.

The Cyber Layer
The cyber layer is composed of cloud computing centers and other computational resources, such as servers, processors, disks, and databases, etc.These computational resources provide the capabilities that include data storage, data processing, statistical analysis, and simulation.This layer aims at managing the collected information and providing the basis for decision-making.
In this layer, there are two steps to implement the intelligent modeling of key equipment.Firstly, data cubes are constructed to store the collected status information.A large number of data cubes compose a data warehouse.On-line analytical processing (OLAP) tools are used to process the data in the data warehouse.Secondly, virtual devices including virtual machines and virtual AGVs are designed based on the collected status information to monitor and control the behaviors of key equipment.The characteristic of a virtual machine contains the location, current operation, temperature, and vibration, etc.The characteristic of a virtual AGV contains the location, current operation, speed, and voltage, etc.Thus, real-time status of key equipment can be associated with the characteristic of virtual devices.

The Application Layer
In the application layer, a cloud services platform is constructed to provide cloud services and publish logistics tasks through cloud clients.The cloud client includes thin clients, mobile apps, and web browsers, etc.Thus, these cloud services can be well integrated with embedded devices and mobile devices, such as smartphones and tablets.In this layer, a TCPN model is developed to depict and control the behaviors of key equipment by adjusting the schedule of token sequences.A rule base and a knowledge base are set up based on real-time data and historical data.The rules and knowledge are learned from historical data and are tuned by real-time data.
In order to implement production-logistics collaboration, a self-adaptive collaborative strategy is designed as follows.Firstly, smart machines actively publish logistics tasks on the cloud services platform at the beginning of machine processing.Then, smart AGVs actively request the logistics tasks once published and provide logistics services.The nearest AGV with enough space will be selected as a feasible option.The selected AGV will accept or reject the logistics task according to the priority of the task.Real-time routing optimization is implemented during the empty trip and the transport.
For the data communication between key equipment and servers, a variety of connection technologies and protocols for wireless communication including fourth-generation (4G) connectivity and Wi-Fi access can be used to realize the proposed framework.4G Long-Term Evolution (LTE) standard provides data transfer rates of 100 Mb/s in the downlink and 50 Mb/s in the uplink, which is enough to satisfy the demand of speed and time [20,21].Thus, the proposed framework is technically feasible.

Method
In this section, a self-adaptive collaboration method is proposed for IoT-enabled production-logistics systems.TCPN is used to develop the model of production-logistics systems.The mechanism of self-adaptive collaboration between production and logistics is investigated.Conflict-free routing is not dealt with in the proposed TCPN model.

Problem Definition and Notations
In this part, the production-logistics problem and corresponding notations are given as follows.Generally, an FMS consists of a set of computer numerically controlled machines and a material-handling system.AGVs are widely used to facilitate the transport of raw materials, work in process (WIP), finished products, and waste materials between warehouses and production cells.Consider an FMS that contains a set of machines and a set of AGVs.A set of jobs is to be processed on a list of machines in a predetermined order.A machine can perform one operation once.The warehouse and every production cell has an input buffer and an output buffer served as the unloading point and the loading point respectively.Both the number and the loading space of AGVs are limited.
The notations used in the problem statement, algorithm description, and throughout the paper are as follows: i, h: machine j: job (i, j): an operation that job j is processed on machine i (i, j) → (h, j) : job j should be firstly processed on machine i and then on machine h t: current time y ij : starting time of operation (i, j) p ij : processing time of operation (i, j) ∆T R ij : remaining time of operation (i, j) P ihj : priority of logistics task between operation (i, j) and operation (h, j) ik : time cost of AGV k passing road segment r T ik : time cost of AGV k arriving at machine i ∆T A ihk : time cost of AGV k going from machine i to machine h ∆T total : total waiting time ∆T ihj : waiting time between operation (i, j) and operation (h, j) ∆T WB ij : waiting time of job j on machine i before processing ∆T WA ij : waiting time of job j on machine i after processing C max : makespan C j : completion time of job j C ij : completion time of operation (i, j) E total : total electricity consumption AGV : electricity consumption of AGV k P (i) MP : average power of machine i when processing P (i) MI : average power of machine i when idle P (k)

AGV : average power of AGV k
Assuming that a feasible schedule plan is given as in Figure 2, first, the job j is processed on the machine i.The starting time of operation (i, j) is y ij .The processing time of operation (i, j) is p ij .The completion time of operation (i, j) is C ij .The remaining time of operation (i, j) is ∆T R ij .Then, after the operation (i, j), the WIP is transported to the next machine h.The waiting time between operation (i, j) and operation (h, j) is ∆T ihj .The waiting time of the job j on machine i before processing is ∆T WB ij .The time cost of AGV k going from machine i to machine h is ∆T A ihk .The waiting time of the job j on machine i after processing is ∆T WA ij .Next, the job j is processed on the machine h.The starting time of operation (h, j) is y hj .The processing time of operation (h, j) is p hj .The completion time of operation (h, j) is C hj .The completion time of the job j is C j .

Timed Colored Petri Net Model
Colored Petri nets (CPNs) form a graphical language for constructing models and analyzing properties of concurrent systems and distributed systems, which extends PNs with data types, functions, and modules.
A CPN is a directed bipartite graph that includes two types of nodes, namely the place and the transition [22].The nodes are connected via directed arcs.The place is used to describe resources and status in the system, which contains colored tokens.The colored token is used to describe the entity attributes.The transition is used to describe the event in the system, which can be fired based on the preconditions of input arc expressions and guards.In a CPN, places, transitions, arcs, and guards are graphically represented by ellipses, rectangles, arrows, and parentheses respectively.
In order to evaluate the performance of the model system, TCPNs are introduced with a global clock to represent the model time [23].Each token has a time attribute called the time stamp which describes the earliest time at which a token becomes available.Hence, both the temporal behavior and the logical behavior can be described by TCPNs explicitly in a concise manner.

T C P N P T A N C G E I 
which satisfies the following conditions: Σ is a finite set of non-empty color sets.

5.
N is a node function defined from A into P T T P    .

6.
C : P   is a color set function that assigns a color set to each place.7.
G : T EXPR  is a guard function that assigns a guard to each transition t such that: 8.

E : A EXPR
 is an arc expression function that assigns an arc expression to each arc a such that:

Timed Colored Petri Net Model
Colored Petri nets (CPNs) form a graphical language for constructing models and analyzing properties of concurrent systems and distributed systems, which extends PNs with data types, functions, and modules.
A CPN is a directed bipartite graph that includes two types of nodes, namely the place and the transition [22].The nodes are connected via directed arcs.The place is used to describe resources and status in the system, which contains colored tokens.The colored token is used to describe the entity attributes.The transition is used to describe the event in the system, which can be fired based on the preconditions of input arc expressions and guards.In a CPN, places, transitions, arcs, and guards are graphically represented by ellipses, rectangles, arrows, and parentheses respectively.
In order to evaluate the performance of the model system, TCPNs are introduced with a global clock to represent the model time [23].Each token has a time attribute called the time stamp which describes the earliest time at which a token becomes available.Hence, both the temporal behavior and the logical behavior can be described by TCPNs explicitly in a concise manner.
The definition of a TCPN can be formalized as follows [24].A TCPN is defined as a nine-tuple, TCPN = {P, T, A, Σ , N, C, G, E, I} which satisfies the following conditions: 1. P = {p 1 , p 2 , ..., p m } is a finite set of places.2.

4.
Σ is a finite set of non-empty color sets.

5.
N is a node function defined from A into P × T ∪ T × P.

6.
C: P → ∑ is a color set function that assigns a color set to each place.7.
G: T → EXPR is a guard function that assigns a guard to each transition t such that: Based on the description of the production logistics problem, TCPN is used to model production and logistics in an FMS.The TCPN model of the self-adaptive collaboration method is established as shown in Figure 3.
where ( ) p a is the place of ( ) N a .9.


is an initialization function that assigns an initialization expression to each place p such that: ( ) Type v denotes the type of the variable v.In the TCPN model, the meaning of each transition has been briefly explained in Table 1.Table 2 explains the meaning of each place.The global color set declarations are given in Table 3.  3.

Transition Description of Transitions
The transition aims at modeling the check of the worker 2 t The transition aims at modeling the check of the material 3 t The transition aims at modeling requesting the worker 4 t The transition aims at modeling requesting the material 5 t The transition aims at modeling the machine processing and publishing a logistics task 6 t The transition aims at modeling the quality detection The transition aims at modeling picking pallet and loading 13 t The transition aims at modeling the selected AGV going to the destination 14 t The transition aims at modeling the unloading In the TCPN model, the meaning of each transition has been briefly explained in Table 1.Table 2 explains the meaning of each place.The global color set declarations are given in Table 3.  3.

Transition
Description of Transitions The transition aims at modeling the check of the worker t 2 The transition aims at modeling the check of the material t 3 The transition aims at modeling requesting the worker t 4 The transition aims at modeling requesting the material t 5 The transition aims at modeling the machine processing and publishing a logistics task t 6 The transition aims at modeling the quality detection t 7 The transition aims at modeling the selection of the AGV t 8 The transition aims at modeling the temporary storage t 9 The transition aims at modeling the selected AGV going to the start point t 10 The transition aims at modeling the reprocessing or the scarp t 11 The transition aims at modeling the rejection of the AGV t 12 The transition aims at modeling picking pallet and loading t 13 The transition aims at modeling the selected AGV going to the destination t 14 The transition aims at modeling the unloading Figure 3 shows the TCPN model of the self-adaptive collaboration method.This model refers to the basic cycle of production-logistics systems, which consists of twenty-three places and fourteen transitions.Conditional statement expressions are assigned to the directed arcs a 1 , a 2 , a 3 , a 4 , a 5 , a 6 , a 7 , and a 8 .The cycle starts with checking workers and materials to be processed in production cells.Transition t 1 denotes the check of workers while transition t 2 denotes the check of materials.If the workers or materials are not ready, they will be requested.Otherwise, the materials will be processed on the machine.Transition t 5 describes machine processing as well as publishing a logistics task.The two processes are performed at the same time.The remaining time of the current operation of the machine is calculated and considered as a critical parameter for selecting an AGV.While a logistics task is published, all AGVs actively request the task.A token in the place p 9 represents the status information of an AGV, including current location and remaining space, which are collected by embedded devices or sensors.Thus, the machine can perceive the status of the AGV.Transition t 6 represents the quality detection of the WIP after machine processing.Unqualified WIP will be reprocessed or abandoned based on the detection standards.Transition t 10 denotes the reprocessing or the scarp.If the WIP is unqualified and needs to be reprocessed or abandoned, this cycle ends and the next cycle begins.Only the qualified one will be sent to the out-buffer of the production cell and wait to be transported to the next production cell.Transition t 7 represents selection of an AGV.The nearest AGV with remaining space will be selected as one of the feasible options.Based on the current tasks and routes, the selected AGV will decide whether to accept the logistics task or not.Finally, the most appropriate AGV will be selected to finish the logistics task.t 9 and t 12 represent that the AGV goes to the out-buffer and then picks and loads the pallet which carries the WIP.t 13 and t 14 represent that the AGV goes to the destination and unloads the pallet on the in-buffer of the next production cell.After the selected AGVs have finished their deliveries, the smart machine will select the nearest AGVs with enough remaining space to conduct the transportation of other jobs.Then, this cycle ends and next cycle begins.

Mechanism of Self-Adaptive Collaboration
In this part, based on the depiction of the proposed TCPN model, the mechanism of self-adaptive collaboration for production-logistics systems is investigated.The objective of the proposed TCPN model is to minimize the waiting time of all jobs, the makespan, and the electricity consumption of all machines and AGVs.Three KPIs including waiting time, makespan, and electricity consumption are considered.
The KPI waiting time is used to calculate the total waiting time of all jobs.The waiting time represents the time between two sequential operations of the same job.The total waiting time of all jobs is mathematically formulated to minimize the objective ∆T total as follows: where In Equations ( 1) and ( 2), the waiting time ∆T ihj is composed of three parts, namely the waiting time after processing ∆T WA ij , the transport time ∆T A ihk , and the waiting time before processing ∆T WB hj .∆T WA ij can be reduced by calling for AGVs once the job j begins being processed on machine i.

The transport time refers to the time cost of transporting materials between machines. ∆T A
ihk can be reduced by selecting the nearest available AGV and planning a time-saving route.∆T WB  hj is influenced by the former two parts and is related to the production schedule.
The KPI makespan is used to calculate the maximum completion time of all jobs.The makespan is mathematically formulated to minimize the objective C max as follows: where In Equations ( 3) and ( 4), C j denotes the completion time of the job j, y 1j denotes the starting time of the first operation of the job j, m ∑ i=1 p ij denotes the processing time of the job j, and denotes the total waiting time of the job j.To reduce the makespan, the processing sequence or the processing speed of machines can be adjusted based on realities of the situation.
The KPI electricity consumption is used to calculate the total electricity consumption of all machine tools and AGVs.The total electricity consumption is mathematically formulated to minimize the objective E total as follows: where MP when processing, P (i) In Equations ( 5)-( 7), E M denotes the electricity consumption of machine i, E AGV denotes the electricity consumption of AGV j, P (i) M denotes the power of the machine i, P (i) MP denotes the average power of the machine i when processing, P (i) MI denotes the average power of the machine i when idle, and P (k) AGV denotes the average power of AGV k.To reduce the total electricity consumption, the running time of all machines and AGVs should be shortened.
In the proposed TCPN model, the smart machine can calculate the remaining time of current operations.The remaining time of operation (i, j) can be formulated as follows.
where ∆T R ij denotes the remaining time of operation (i, j), C ij denotes the completion time of operation (i, j), and t denotes the current time.
While the machine processing begins, the smart machine actively publishes a logistics task for the WIP being processed.All AGVs actively request the logistics task and provide with real-time status information, such as current location and remaining space.The smart machine will select AGVs which are nearest and have enough remaining space.For example, if an available AGV can arrive at the smart machine within the remaining time of current operation, the waiting time of the operation after processing will be reduced to 0. The optimization of matches between logistics tasks and AGVs can be formulated as follows.

Minimize
where In Equations ( 9) and ( 10), T ik denotes the time cost of AGV k arriving at the machine i, ∆T R ij denotes the remaining time of operation (i, j), Q ih denotes the volume of WIP transported from machine i to machine h, and Q A k (t) denotes the remaining space of AGV k at the current time t.While a logistics task is published, the smart AGV will actively request the task.If several machines choose a smart AGV simultaneously, the smart AGV makes a decision based on the priority of these tasks as well as the remaining space.The priority of tasks can be formulated as follows: where P ihj denotes the priority of logistics task between operation (i, j) and operation (h, j), y hj denotes the starting time of operation (h, j), and t denotes the current time.Based on the proposed priority, the logistics task can be categorized into two types, namely the urgent logistics task and the normal logistics task.If P ihj < 0, then the task is an urgent task.Otherwise, the task is a normal task.For the urgent logistics task, the next machine is idle and waiting for the task.For the normal logistics task, the next machine is not available and the WIP being transported has to wait in a list.The smart AGV will select logistics tasks that have the highest priority and the volume of tasks must be less than the remaining space of the AGV.Then, the smart AGV can compute the time cost of feasible routes to go to the start point and transport the WIP to the destination.The time cost T ik for AGV k arriving at the machine i can be formulated as follows: where In Equations ( 12) and ( 13), T ik (t) denotes the time cost of AGV k passing road segment r at current time t, L r denotes the path length of the road segment r, and v k (t) denotes the current speed of AGV k.Thus, a feasible route with the least time cost will be selected as the optimal route.The optimization of routes selection is implemented constantly during the transport and in real time.
In this paper, based on the real-time status information of machines, AGVs, and WIP, the objective functions are implemented in the application layer of the cloud service platform and the results are input into the TCPN model through the colored tokens located in the places.

Simulation Results
This section introduced an industrial case from an engine manufacturing company in Xi'an.In the case company, FMS was used to manage and coordinate key equipment and automatize the production.Engine components were processed on different machines in the given processing sequence.A material handling system was used to transport these components between machines.However, the machining environment changed dynamically due to the external and internal fluctuations, and the optimal process plan and schedule became less efficient or even infeasible.Thus, the case company needed production-logistic collaboration methods and tools to solve the problems.Based on the investigation of the case company, a simulation experiment was conducted in the laboratory by using CPN Tools to validate the performance and applicability of the proposed method.
In the simulation experiment, an instance of job shop problems from [25] was used as a feasible schedule plan, including four machines and three jobs, as shown in Table 4. p ij denotes the processing time of the operation that job j is processed on machine i, i = 1, 2, 3, 4, j = 1, 2, 3.These jobs would be processed by a list of machines in a given order.The volume of each job was given in Table 4 because the volume capacity of AGVs was considered as a constraint in the simulation experiment.A feasible schedule plan is shown Figure 4.The initial time of the schedule was 0. The gray segment represented the variable waiting time between two continuous operations of the same job.In addition, two AGVs were added in the simulation experiment in order to investigate the collaborative relationship between production and logistics in a job shop.Thus, the aforementioned job shop consisted of the following main components, namely a warehouse, four production cells, and two AGVs.The warehouse had an in-buffer and an out-buffer.Each production cell had a machine, an in-buffer, and an out-buffer.Machines and AGVs installed with sensors had the capability of perceiving status information in real time and making decisions based on the knowledge base and real-time information.Other manufacturing resources, such as in-buffers, out-buffers, pallets, and WIP were attached RFID tags to provide real-time location information.The workers had staff cards with embedded RFID tags to provide individual information.
For simplicity of understanding but without losing generality of principle, some initial and basic information of manufacturing resources were given as follows.The average power of each machine when processing was 15, while the average power of each machine when idle was 4. AGV1 and AGV2 had the same initial location (0, 4.5).The average power of each AGV was 7. The speed of each AGV was 5 and the maximum space of each AGV was 3. The production and logistics began at initial time 0. Firstly, raw materials were transported to smart machines by smart AGVs.Then, the machine Thus, the aforementioned job shop consisted of the following main components, namely a warehouse, four production cells, and two AGVs.The warehouse had an in-buffer and an out-buffer.Each production cell had a machine, an in-buffer, and an out-buffer.Machines and AGVs installed with sensors had the capability of perceiving status information in real time and making decisions based on the knowledge base and real-time information.Other manufacturing resources, such as in-buffers, out-buffers, pallets, and WIP were attached RFID tags to provide real-time location information.The workers had staff cards with embedded RFID tags to provide individual information.
For simplicity of understanding but without losing generality of principle, some initial and basic information of manufacturing resources were given as follows.The average power of each machine when processing was 15, while the average power of each machine when idle was 4. AGV1 and AGV2 had the same initial location (0, 4.5).The average power of each AGV was 7. The speed of each AGV was 5 and the maximum space of each AGV was 3. The production and logistics began at initial time 0. Firstly, raw materials were transported to smart machines by smart AGVs.Then, the machine processing started and smart machines actively published logistics tasks.Next, smart AGVs actively requested the logistics tasks.The layout of the shop floor is shown in Figure 5.The black spots in the layout represented the location of in-buffers or out-buffers of the warehouse or production cells.Using the proposed method, the simulation result is shown in Table 5. T0001 denotes the first published logistics task, W denotes the warehouse, M1 denotes the machine1, A001 denotes the AGV1, and similarly for the others.The total waiting time was 26.4.The makespan was 30.3.The electricity consumption of machines was 894.8, while the electricity consumption of AGVs was 98.7.Thus, the total electricity consumption was 993.5.The efficiency of the proposed model was As shown in Figure 5, a simulation experiment was conducted based on the case scenario.In the experiment, a personal computer, fifteen antennas, four RFID readers, and nine RFID tags were used.Antennas were connected to readers and readers were connected to the computer.The RFID tags were attached to different manufacturing objects, such as machines, AGVs, and WIP.Antennas were used to collect real-time status information of these manufacturing objects from attached RFID tags.
Computational experiments were conducted by R-3.3.0 for Windows (64-bit) in a PC with a quad-core AMD A10-5750M processor at 2.5 GHz and 8 GB DDR3-1333 RAM.R-3.3.0 for Windows (64-bit) is a software environment for statistical computing and graphics.Referring to the manufacturing process, the TCPN model was built up in CPN Tools, as shown in Figure 5.The TCPN model started running at the same time when the production and logistics were executed according to the planned time.Firstly, real-time status information of machines, AGVs, and WIP were transmitted to the PC through RFID reader ports.Secondly, based on the collected information, the objective functions were implemented by R-3.3.0 for Windows (64-bit) in the PC and the results were stored in Standard ML (SML) files.Thirdly, every time the cycle of the TCPN model started, the information in the SML files was updated.By loading SML files, the status of colored tokens was tuned accordingly.
Using the proposed method, the simulation result is shown in Table 5. T0001 denotes the first published logistics task, W denotes the warehouse, M1 denotes the machine1, A001 denotes the AGV1, and similarly for the others.The total waiting time was 26.4.The makespan was 30.3.The electricity consumption of machines was 894.8, while the electricity consumption of AGVs was 98.7.Thus, the total electricity consumption was 993.5.The efficiency of the proposed model was verified and the result showed that the computing time was less than 0.01 s, which was reasonable for implementing the proposed method in the real manufacturing environment.
A comparative study between an event-driven method [18] and the proposed TCPN based self-adaptive collaboration method was presented.Since real-life data were not given in the paper used for the comparative study, an instance of job shop problems from [25] was used as a feasible schedule plan, including four machines and three jobs, as shown in Table 4. Based on the same benchmark, the objective functions were implemented by R-3.3.0 for Windows (64-bit) in the PC with the consideration of three KPIs including waiting time, makespan, and electricity consumption.The result of the comparative study is shown in Table 6.The result demonstrated that the TCPN-based self-adaptive collaboration method outperformed the event-driven method in reductions of waiting time, makespan, and electricity consumption.

Conclusions
This work contributes to the study of production-logistics collaboration to improve economic and environmental performances of production-logistics systems.A TCPN simulation-based self-adaptive collaboration method for production-logistics systems is proposed.The method combines the schedule of token sequences in the timed colored Petri net with real-time status of key production and logistics equipment.The key equipment is made 'smart' to actively publish or request logistics tasks.An integrated framework based on cloud service platform is introduced to provide the foundations for self-adaptive collaboration of production-logistics systems.The capabilities of key equipment are packaged as cloud services to be published on the cloud services platform.Computational experiments demonstrate that the proposed method is feasible and effective in reducing waiting time, makespan, and electricity consumption.A comparative study is implemented and the result indicates that the proposed method outperforms the event-driven method in improving the overall efficiency of the production-logistics systems and reducing electricity consumption.This work can be applied to other types of manufacturing systems to implement production-logistics collaboration.Future research will mainly focus on the following aspects.Other algorithms would be investigated and used to develop the production-logistics collaboration model and real-life data from the manufacturing environment would be used to verify the production-logistics collaboration model.

Figure 1 .
Figure 1.An integrated framework based on cloud service platform for production-logistics systems.AGV: automated guided vehicle.

Figure 1 .
Figure 1.An integrated framework based on cloud service platform for production-logistics systems.AGV: automated guided vehicle.
time of the job j on machine i before processing isWB ij T .The time cost of AGV k going from machine i to machineh is A ihk T .The waiting time of the job j on machine i after processing isW A ij T .Next, the job j is processed on the machine h.The starting time of operation   , h j is hj y .The processing time of operation   , h j is hj p .The completion time of operation   , h j is hj C .The completion time of the job j is j C .

Figure 2 .
Figure 2. The simplified schedule plan of a job.

Figure 2 .
Figure 2. The simplified schedule plan of a job.

8 .
E: A → EXPR is an arc expression function that assigns an arc expression to each arc a such that:∀a ∈ A : [Type(E(a)) = C(p(a)) MS ∧ Type(Var(E(a))) ⊆ Σ]where p(a) is the place of N(a).9. I: P → EXPR is an initialization function that assigns an initialization expression to each place p such that: ∀p ∈ P : [Type(I(p)) = C(p) MS ∧ Type(Var(I(p))) ⊆ ∅].Type(v) denotes the type of the variable v. Var(expr) denotes a set of variables in the expression expr.
Var expr denotes a set of variables in the expression expr .Based on the description of the production logistics problem, TCPN is used to model production and logistics in an FMS.The TCPN model of the self-adaptive collaboration method is established as shown in Figure3.

Figure 3 .
Figure 3.The timed colored Petri net model for self-adaptive collaborative production-logistics systems.

7 t 8 t 9 t 10 t 11 t
The transition aims at modeling the selection of the AGV The transition aims at modeling the temporary storageThe transition aims at modeling the selected AGV going to the start pointThe transition aims at modeling the reprocessing or the scarpThe transition aims at modeling the rejection of the AGV 12 t

Figure 3 .
Figure 3.The timed colored Petri net model for self-adaptive collaborative production-logistics systems.

Figure 5 .
Figure 5. Simulation experiment of the case scenario.CPN: colored Petri nets; RFID: radio frequency identification.

Table 1 .
Transitions in Figure

Table 1 .
Transitions in Figure

Table 2 .
Places in Figure3.WIP: work in process.

Table 3 .
Global color set declarations.

Table 4 .
The instance of the job shop problem.

Table 5 .
The result of the simulation experiment.

Table 6 .
The result of the comparative study.KPI: key performance indicators.