Research Article Volume 2 Issue 2
College of Electrics and Information, Xi'an Polytechnic University, China
Correspondence: Ruiqing Wang, Master Degree Candidate, Xi?an Polytechnic University, Xi'an, Shaanxi Province, China, Tel 15802977982
Received: May 30, 2017 | Published: July 11, 2017
Citation: Xiaohua W, Ruiqing W, Zhang L, et al. Timed Petri net based optimal scheduling for garment flexible productions. J Textile Eng Fashion Technol. 2017;2(2):343-349. DOI: 10.15406/jteft.2017.02.00055
The process sequence of universal garment hanging system is carried out according to the order of the single task process only. In this paper, Petri nets are used to realize the flexible optimal scheduling of the process in multitask garment production. By considering the competition for equipment resources among process in garment hanging system and the firing rules of transitions, analysis and obtain the process optimal scheduling policy algorithm. The optimal processing sequence and time are obtained by Petri nets simulation. According to the example analysis of the multiple sets of different clothing multitask production, verify the effectiveness of process scheduling in the garment hanging system, and improve the flexible degree of the system.
Keywords: garment hanging system, timed petri net, flexible production, process optimization
S, Seconds; TPPN, Timed Place Petri Nets
With the aggravation of market competition and the improvement of social material level, modern clothing enterprises gradually shift to small batch, multi variety and short cycle production mode.1 The garment hanging system developed in the 70s Century gradually evolved into the modern transition system with rapid response production technology. It is the centralized application of electromechanical integration technology in garment industry. The cut pieces for processing put on special hangers in the process of production, which transferred into the workstation orderly, and the whole processes completed in hanging state. The flexibility of current garment hanging system is not high although it can quickly replace the production type. Moreover, many problems may appear in multiple clothing productions, such as equipment competitions, assembly line balance, workstation configuration and so on.
People have carried out the research on the optimization of the garment hanging system.2,3 Yu et al. 4 presented the ant colony algorithm to rearrange the locations and workers of workstations without considering the production of different types of clothing. The fitting curve method was used to correct the standard hours of different batch sizes,5 which can concluded the man-hour quota of small batch and many varieties production. However, there is no specific control policy of various resources. Mork et al.6 provided the genetic algorithm to plan the allocation of job orders in complex and mixed production environment, while there is no study of specific process competition for resources. As a modeling and analysis tool for discrete event systems, Petri nets have been widely used in the control and scheduling of flexible manufacturing systems.7-9 Su et al.10 proposed the Timed Place Petri Net model established for a manufacturing system with three processes, and searched for the transition sequence of the model by nested partition algorithm, then optimized the completion time of different batches. However, this method cannot apply in the dynamic scheduling problem. Research by Liu11 and Tian et al.12 show that the Petri net model based on ant colony optimization can realize the unity of the static modeling and dynamic optimization of the scheduling problem. However, this method is more complicated in multitask processing. Zhou et al.13 established the Timed Place Petri Nets model for batch chemical system, combined the model with the optimal scheduling policy, gave the valve control strategies and made the system run efficiently. Zhang et al.14 applied Petri nets theory in the balance of garment production line, while it did not give specific modeling method and production line balance algorithm.
The limited equipment resources of the production line of garment hanging system make the reasonable arrangement of the process in multitask production become the key problem to improve the flexibility of the system. According to the above literatures, Petri nets possess considerable superiority in the optimal scheduling of flexible manufacturing systems. By considering the correlation between the factors of process and time, this paper adopts the Timed Place Petri Nets as the modeling method on the process optimization problem of garment hanging system. According to the constraint conditions and optimization objectives of the production line, an optimal scheduling algorithm is proposed. Through the analysis of a variety of cases, this method is proved to be effective to solve multitask process optimization problems and can improve the efficiency of the system.
The basic Petri net is a 4-tuple N=(P,T,F,W) , where P and T is finite, nonempty, and disjoint sets. P is a set of places and T is a set of transitions, and F⊆(P×T)∪(T×P) is a set of directed arcs with arrows between transitions and places. The element W:F→N+ where N+ is the set of positive integers, is a mapping that assigns a weight to each arc, and W is called the weight function of Petri net N. When a graph is used to represent a Petri net, the place is represented by a circle and transition represented by a rectangle. The marking M of a Petri net is a mapping from P to N, (N,M0) is called the marked Petri net where is the sum of tokens in all places at initial state of a system, and it is called initial marking of N. Marked Petri net can be expressed as N=(P,T,F,W,M0) , and the firing rules of transitions are described as follows. A transition t∈T is enabled at the marking M, if and only if ∀p∈t• , M(p)≥W(p,t) . After firing the enabled transitions, the system leaps to another state and yields a new marking M′ , and ∀p∈P,M′(p)=M(p)−W(p,t)+W(t,p) . The definition of TPPN (Timed Place Petri Nets) is TPPN=(P,T,F,W,M0,D) where D={ d1 , d2 ,…, dn } is the time delay set of places, di is the time delay of pi , i∈(1,n) . After the fire of a transition t, the corresponding number of tokens moved from input to output places. The tokens put into pi should hold for time di before it becomes available.
TPPN method modeling garment hanging system
Assuming that n tasks J1,J2,...,Jn are taken to manufacture n kinds of clothes, the number of process involves in each task is X1,X2,...,Xn respectively. Operation of these tasks requires certain resource units, such as ironing table, cup seaming machine, double needle lockstitch sewing machine, cylindrical crimping machine and so on. Otherwise, there is one device for each kind of equipment. Take task Ji as an example, the required cut pieces put on the circular guide rail of the hanging system by computer control, which will send the pieces to workstations according to the order of the process. Operate task Ji requires the cooperation of certain equipments and spend some time executing process, according to its task table, and the finished garments will be send to the unloading station. Due to the concurrent process and resource competition while the system taking multitask productions, different execution sequence of the process will lead to different time to complete the n tasks. It is necessary to consider how to schedule the process to realize that the processing time minimized.
In this work, the Petri net model is completed by two steps. Firstly, establish a Petri net model for a single task. Then, get the TPPN model of the hanging system by connecting subnets via shared device resources. The operation of each process can be described as three stages, the initial, final and processing state. The initial and final state can be considered as two events represented by a set of transitions at the logic level, and the processing state can be considered as the operation state, which represented by a place with time delay. Here, a single task is taken as an example to establish a subsystem model which is shown below.
Given task Ji with Xi processes in a garment hanging system, the TPPN model for garment production of single task is described as NJi=(PJi,TJi,FJi,WJi,MJi0,DJi) . In this model, the set of places can be expressed as PJi={pJis,Pi,j,k,P∗i,j,k,pJif,Pmk} , where places pJis and pJif are initial and final of the task Ji respectively. Operation place pi,j,k∈Pi,j,k represents the operation that the process j of the task i by the k-th equipment. The intermediate place represents a buffer, and resource place p∗i,j,k∈P∗i,j,k represents the required equipment. The set of transitions can be expressed as TJi={Tbi,j,k,Tfi,j,k} where tbi,j,k∈Tbi,j,k and tfi,j,k∈Tfi,j,k represent the initial and final events of the operation place pi,j,k respectively. The elements in the set of directed arc FJi are directed lines between places and transitions, it represent the processing flow of the task. Since each task in garment processing is carried out in a single order, all of the elements in the weight function set WJi are equal to one. The column vector MJi0=(1,0,...,0)T denotes that the number of tokens is one in pJis and zero in other places at time zero of the system. The element di,j,k∈DJi denotes the time delay of the operation place or the processing time of the operation in terms of garment hanging system. The intermediate and resource place are all places that time delay is zero.
Optimal scheduling policy
The Petri net model is applied to solve the problem of completing the task with the least time. The optimal scheduling algorithm is as follows.
Step 1: Set the priority for the tasks J1,J2,...,Jn which are expressed as L1,L2,...,Ln . There are Ann arrangement methods to the number of n priorities. Therefore, n tasks possess the number of n! priority arrangements.
Step 2: Set no priority for tasks. Select any one as the start point from J1,J2,...,Jn respectively. There are a total of n different arrangement methods.
Step 3: Operate the n!+n implementation schemes successively.
Step 4: Search the enabled transitions. If the transition tbi,j,k possesses the priority, implement Step4.1 to the model, else implement Step4.2.
Step 4.1: If multiple different tasks require the same resource place pmk at the same time, the firing sequence of tbi,j,k is ranked by the priority of the transitions. Record the enabled time d′i,j,k and firing time d″i,j,k for each transition, the waiting time of the transition tbi,j,k is expressed as d′i,j=d″i,j,k−d′i,j,k .
Step 4.2: If different tasks require the same resource place pmk at the same time, the firing sequence of tbi,j,k is ranked by the sequence of the enabled time d′i,j,k . Record the value of d′i,j,k and d″i,j,k , then figures out the d′i,j according to the time difference.
Step 5: Go to Step 4 until all the transitions have fired.
Step 6: The task completion time dr=Xm∑j=1(di,j,k+d′i,j) where r∈(1,n!+n) represents the r-th kind of implementation scheme, and Xm is the number of the process of the task, which corresponds to the last firing transition.
Step 7: Go to Step 3 until n!+n kinds of implementation schemes are completed.
Step 8: The least time to complete n tasks is expressed as d=min(d1,d2,...,dr,...,dn!+n) . According to the implementation scheme from d, get the sequence and time of the fired transitions in set TJi .
In order to solve the problem of process scheduling, it is necessary to figure out the sequence and firing time of the start transition tbi,j,k of each process. Map each transition to the event associated with the process in the system, and get the sequence and firing time of the process of n tasks from the mapping. Then the optimal scheduling policy is obtained. Figure 1 shows the flow chart of optimal process scheduling policy based on TPPN.
Suppose that there are two processing tasks J1 and J2 for the garment hanging system. J1 Contains 13 processes J1,1,J1,2,...,J1,13 , J2 contains 15 processes J2,1,J2,2,...,J2,15 . A total of four equipments are needed,14 including ironing table, button sewing machine, cup seaming machine and lockstitch sewing machine which are represented as A, B, C and D, respectively. The specific implementation processes of two tasks are shown in Table 1. For the task J1 in Table 1, the Petri net model of the task can be described as NJ1=(PJ1,TJ1,FJ1,WJ1,MJ10,DJ1) . Transitions tb1,j,k and tfi,j,k represent the initial and final events respectively for each production stage J1,1,J1,2,...,J1,13 , places pJ1s and pJ1f denote the initial and final state of J1 , place pi,j,k represents the processing status of the production stages J1,1,J1,2,...,J1,13 , and place p∗i,j,k is the subsequent buffer place of the pi,j,k (where j = 1, 2 ... 13, k=1, 2, 3, 4). The analogy can be used to reach the meaning of the places and transitions in the task J2 (where j = 1, 2 ... 15, k = 1, 2, 3, 4). For the task J2 in Table 1, the Petri net model of J2 can be described as NJ2 =( PJ2 , TJ2 , FJ2 , WJ2 , MJ20 , DJ2 ). The transitions tb2,j,k and tf2,j,k represent the initial and final events respectively for each production stage J2,1,J2,2,...,J2,13 places pJ2s and pJ2f denote the initial and final state of J2 , place p2,j,k represents the processing status of the production stages J2,1,J2,2,...,J2,13 , and place p∗2,j,k is the subsequent buffer place of the p2,j,k . The Petri net model of J1 is shown in Figure 2.
In the same way, the Petri net model of J2 can be obtained by the description of the task J2 . Connect the subnet models of task J1 and J2 via shared resource places pm1,pm2,pm3,pm4 . The Petri net model of the garment hanging system of two tasks is shown in Figure 3. Set the value of n as 2 in the optimal process scheduling policy. There are four possible implementation schemes for the production. Run the programs of the optimal scheduling policy algorithm in MATLAB environment, the processing time and transitions firing sequence of each scheme can be obtained. Table 2 shows the completion time of the four schemes.
Table 2 shows the implementation scheme, which possesses no priority and J1 start first should be selected. Firing time and sequence of all transitions at the condition of the shortest completion time are shown in Table 3.
In consideration of the correspondence between transitions tbi,j,k(tfi,j,k) and the initial (final) event of the production stages in garment hanging system, and the information in Table 3, the optimal process scheduling policy can be obtained from the schedules of production stages. The result is shown in Table 4.
In order to verify the practicability of the method, this paper selects the cases of garment production optimization from Tao15 and Liu16, and set multitask processing in Table 5.
Production Stage |
Equipment |
Time(S) |
Production Stage |
Equipment |
Time(S) |
J1,1 |
A |
61 |
J1,8 |
D |
30 |
J1,2 |
D |
41 |
J1,9 |
A |
33 |
J1,3 |
A |
13 |
J1,10 |
D |
105 |
J1,4 |
D |
36 |
J1,11 |
A |
47 |
J1,5 |
B |
25 |
J1,12 |
D |
94 |
J1,6 |
D |
32 |
J1,13 |
C |
127 |
J1,7 |
A |
22 |
|||
J2,1 |
A |
61 |
J2,9 |
A |
22 |
J2,2 |
C |
24 |
J2,10 |
D |
30 |
J2,3 |
A |
13 |
J2,11 |
A |
33 |
J2,4 |
D |
36 |
J2,12 |
D |
105 |
J2,5 |
A |
10 |
J2,13 |
A |
47 |
J2,6 |
C |
7 |
J2,14 |
D |
94 |
J2,7 |
B |
25 |
J2,15 |
C |
127 |
J2,8 |
D |
32 |
Table 1 Task table of garment hanging system
Four Kinds of Implementation Schemes |
Completion Time(S) |
J1 possesses the priority |
1029 |
J2 possesses the priority |
1097 |
No priority, J1 start first |
902 |
No priority, J2 start first |
980 |
Table 2 The completion time of four schemes
Set the value of n as 2, 3, 4, 5, 6 respectively and input process, time and equipment data to the program, the completion time optimized by the algorithm are 902, 1638, 1167, 1543, 1268 seconds respectively. The comparison of consumed time before and after optimization is shown in Figure 4.
The contrast diagram shows that the algorithm presented in this paper is suitable for different styles and multitask process optimization in garment hanging system. Applying the optimal scheduling policy to the garment hanging system can distribute the processing time of each process reasonably, reduce the completion time and improve the efficiency of garment hanging system for small batch and multi variety production.
Moment(S) |
Transition |
Moment(S) |
Transition |
Moment(S) |
Transition |
0 |
tb1,1,1 |
217 |
tf2,5,1,tb2,6,3 |
377 |
tf2,11,1 |
61 |
tf1,1,1,tb1,2,4,tb2,1,1 |
224 |
tf2,6,3,tb2,7,2 |
449 |
tf1,10,4,tb1,11,1,tb2,12,4 |
102 |
tf1,2,4 |
239 |
tf1,6,4,tb1,7,1 |
496 |
tf1,11,1 |
122 |
tf2,1,1,tb1,3,1,tb2,2,3 |
249 |
tf2,7,2,tb2,8,4 |
554 |
tf2,12,4,tb2,13,1,tb1,12,4 |
135 |
tf1,3,1,tb1,4,4 |
261 |
tf1,7,1 |
601 |
tf2,13,1 |
146 |
tf2,2,3,tb2,3,1 |
281 |
tf2,8,4,tb1,8,4,tb2,9,1 |
648 |
tf1,12,4,tb1,13,2,tb2,14,4 |
159 |
tf2,3,1 |
303 |
tf2,9,1 |
742 |
tf2,14,4 |
171 |
tf1,4,4,tb1,5,2,tb2,4,4 |
311 |
tf1,8,4,tb1,9,1,tb2,10,4 |
775 |
tf1,13,2,tb2,15,3 |
196 |
tf1,5,2 |
341 |
tf2,10,4 |
902 |
tf2,15,3 |
207 |
tf2,4,4,tb1,6,4,tb2,5,1 |
344 |
tf1,9,1,tb1,10,4,tb2,11,1 |
Table 3 Optimal transition sequence
Moment(S) |
Production Stage |
Moment(S) |
Production Stage |
Moment(S) |
Production Stage |
0 |
J1,1 |
207 |
J1,6,J2,5 |
311 |
J1,9,J2,10 |
61 |
J1,2,J2,1 |
217 |
J2,6 |
344 |
J1,10,J2,11 |
122 |
J1,3,J2,2 |
224 |
J2,7 |
449 |
J1,11,J2,12 |
135 |
J1,4 |
239 |
J1,7 |
554 |
J2,13,J1,12 |
146 |
J2,3 |
249 |
J2,8 |
648 |
J1,13,J2,14 |
171 |
J1,5,J2,4 |
281 |
J1,8,J2,9 |
775 |
J2,15 |
Table 4 Optimal scheduling policy of the process
Clothing Type |
Task Quantity |
Process Quantity |
Equipment Quantity |
Time Before Optimization(S) |
Shirt |
2 |
28 |
4 |
1332 |
Tailored suit |
3 |
36 |
3 |
2934 |
Jeans |
4 |
64 |
9 |
2108 |
Three-quarter trousers |
5 |
75 |
3 |
5700 |
Polo shirt |
6 |
48 |
4 |
2268 |
Table 5 Multitask processing related data of variety clothing
In this paper, the TPPN is applied to establish the model of the garment hanging system. According to the firing rules of transitions in Petri nets and the processing characteristics of the production line, propose the optimal scheduling algorithm for multitask processing. Simulation experiment shows that the optimal scheduling algorithm, achieves the purpose of high efficiency of garment hanging system in the mode of small batch and multi variety processing. In this study, only the process optimization of multitasks production is considered. Hence, optimizing the personnel allocation at all stages of production according to the operator proficiency in the garment processing will be the next research objective.
The scientific research program is funded by Shaanxi Provincial Education Department under Grant No.16JK1342 and Shaanxi Province under Grant No.2016-GY136, also supported by Xi’an Polytechnic University under Grant No.107090811.
Author declares there is no conflict of interest in publishing the article.
©2017 Xiaohua, et al. This is an open access article distributed under the terms of the, which permits unrestricted use, distribution, and build upon your work non-commercially.