An Extended Genetic Algorithm for Distributed Integration of Fuzzy Process Planning and Scheduling

The distributed integration of process planning and scheduling (DIPPS) aims to simultaneously arrange the two most important manufacturing stages, process planning and scheduling, in a distributed manufacturing environment. Meanwhile, considering its advantage corresponding to actual situation, the triangle fuzzy number (TFN) is adopted in DIPPS to represent the machine processing and transportation time. In order to solve this problem and obtain the optimal or near-optimal solution, an extended genetic algorithm (EGA) with innovative three-class encoding method, improved crossover, and mutation strategies is proposed. Furthermore, a local enhancement strategy featuring machine replacement and order exchange is also added to strengthen the local search capability on the basic process of genetic algorithm.Through the verification of experiment, EGA achieves satisfactory results all in a very short period of time and demonstrates its powerful performance in dealing with the distributed integration of fuzzy process planning and scheduling (DIFPPS).


Introduction
Nowadays in manufacturing fields, there are desperate needs for not only the integration of process planning and scheduling but also distributed manufacturing.On the one hand, although the conventional job shop scheduling problem (JSSP) is still a hotspot in the studies of manufacturing researchers and has great potential to make progress, its separation from process planning inevitably obstructs the improvement of manufacturing efficiency and disables it in tackling complicated manufacturing environment [1]; on the other hand, the distribution feature of resources such as raw materials, manpower, and technologies propels the enterprise to operate in a more decentralized way and has gradually drawn the attention of many researchers [2][3][4].
Besides these two concerns, there is also an urge to represent the processing time in manufacturing with fuzzy values.For instance, fuzzy job shop scheduling problem has become the main topic of production scheduling [5].Due to the unpredictable conditions in realistic manufacturing and the different proficiency among manual workers, the processing time in manufacturing is variable in a certain range.However, in the traditional research, it is fixed to a precise value to facilitate the calculation.To a certain extent, the fixed value loses the flexibility and definitely cannot accord with the practice.
Under these circumstances, the distributed integration of processing planning and scheduling (DIPPS) is proposed first.For one thing, the DIPPS is on the basis of the integrated processing planning and scheduling (IPPS) which overcomes the deficiency of JSSP in integration; for another, it features distribution manufacturing to conform to the realistic manufacturing environment.In addition, considering the necessity of the fuzzy feature in the manufacturing and the distribution feature in the DIPPS, the fuzzy processing time and fuzzy transportation time are both introduced to replace the traditional fixed values and become an integral part of the whole model.
On the basis of the several enhanced parts, the distributed integration of fuzzy process planning and scheduling (DIF-PPS) is thus formulated.In order to solve this problem effectively, we construct an upgraded genetic algorithm (EGA) with local enhancement strategy.The EGA has three-class chromosome to fully encode the complex information of DIFPPS, and it gets improved in both crossover and mutation strategies to reinforce the global exploration capability.Also, the local enhancement strategy is equipped in EGA to strengthen its local exploration capability by replacing the processing machines with more efficient ones and exchanging the processing order of some specific operations.
The rest of the paper is arranged as follows: in Section 2, we review the related work addressing IPPS and fuzzy processing time in manufacturing; in Section 3, the DIFPPS model is proposed, and the creative EGA is constructed to deal with it; in Section 4, a two-part experiment with a case study and several comparisons is conducted to demonstrate the capability of EGA in solving DIFPPS; in Section 5, we draw our conclusion.

Related Work
In this paper, we mostly focus on formulating and solving the distributed IPPS model with fuzzy processing and fuzzy transportation time, that is, DIFPPS.In this case, the related work is divided into two parts: one is the related work in dealing with IPPS; and the other is the implementation of fuzzy theories in manufacturing.In these two parts, we mainly discuss the application of GA and its related algorithms.

IPPS Related Work.
By simultaneously arranging the process planning and scheduling, IPPS overcomes the scheduling-only deficiency of traditional JSSP and gradually inspires researchers to find the optimal or near-optimal solution with the assistance of various evolutionary algorithms.Mostly, genetic algorithm (GA) is a popular algorithm in tackling IPPS.For example, Shao et al. [6] adopted a modified GA-based approach by improving the genetic representations and operator schemes to solve IPPS.Li et al. [7] made the algorithm closer to the biological evolution by adding a learning operator to GA to record a certain amount of better solutions in the iterations.Zhang and Wong [8] constructed an object-coding GA with inferior selection and population degeneration mechanisms to strengthen the global exploration capability in dealing with IPPS.In order to further enhance the exploration capability, some other methods are also combined with GA to construct hybrid algorithms.For instance, Li et al. [9] combined GA with a local search strategy, and Yu et al. [10] used an additional particle swarm optimization to select the appropriate machines in the scheduling part.These combinations prevented GA from falling into local optima and have achieved better outcomes in the experiments than GA-only strategies.
Besides the above work that is based on GA, quite a number of researchers also adopted other evolutionary algorithms, such as simulated annealing algorithm [11], imperialist competitive algorithm [12], and ant colony algorithm [13], to deal with IPPS.In the experiment and case studies, they all demonstrated their outstanding performance.
However, despite their competence in solving IPPS, these algorithms still fall short of handling DIPPS due to the more complex information accompanying the distributed manufacturing.

Fuzzy Processing Time in Manufacturing.
The theory of fuzzy sets is first introduced by Zadeh [14] and then gets improved and popular in a variety of areas.In the manufacturing field, Sakawa and Kubota [15,16] were among those who first proposed the fuzzy job shop scheduling problem (fJSSP) in which the triangular fuzzy number (TFN) is applied to represent the fuzzy processing time and fuzzy due date.In their work, the corresponding genetic algorithms are enhanced and achieved desirable results in solving the fJSSP.After the initial exploration, a number of researchers put their efforts in the fJSSP.Lei [5,17,18] tried not only a Pareto archive particle swarm optimization but also a random key scheduling algorithm which used a random key representation and the extended version of the first decoding to figure out an optimal solution for fJSSP.Niu et al. [19] redefined and modified the particle swarm optimization by introducing genetic operators to update the particles and then applied this algorithm to the fJSSP.Hu et al. [20] constructed a modified differential evolution algorithm for fJSSP after proposing the ranking concept among fuzzy numbers and several novel objective functions.Li and Pan [21] combined Tabu search with the particle swarm optimization in order to promote the latter one's local search.
Moreover, the flexible job shop scheduling problem (FJSSP) which is more complicated than traditional JSSP in allowing an operation to be processed on any of the machines in a corresponding set along different routes is gradually equipped with fuzzy processing time [22].To tackle the fuzzy flexible job shop scheduling problem (fFJSSP), Lei and Guo [23] proposed a swarm-based neighborhood search algorithm, in which they implemented a novel representation, two swaps, and insertion.Wang et al. [24] used a hybrid artificial bee colony algorithm with variable neighborhood search-based local search to enhance local exploitation in search of the optimal solution.Also, Palacios et al. [25] implemented two new neighborhood structures for the local search and proposed a genetic Tuba search for the fFJSSP.And Xu et al. [22] equipped a novel teaching-learning search mechanism with special local search operators in the solution-exploring procedure.
Furthermore, there are also some work focused on some congeneric NP-hard problems such as flow shop scheduling [26,27] and the general formulated group shop scheduling [28] with fuzzy processing time.However, rare work has been done to discuss the fuzzy processing time in IPPS or even DIFPPS environment.

An EGA for the DIFPPS
3.1.Problem Definition and Representation.On the basis of the definition of IPPS problem, the DIPPS problem discussed in this paper is generalized as follows: given  independent jobs and  geographically distributed manufacturing cells (MCs), where each possesses  machines and owns full capability to process every given job, determine the specific MC, manufacturing plan, and schedule for each job in consideration of the constraints and objective.Specifically, due to the diversity of equipment among different MCs, the optional plans and schedules for the same job are also Although there exist a variety of flexibilities in the manufacturing process [29,30], processing flexibility that indicates the operation replaceability for the same feature in the job and operation flexibility that indicates the machine replaceability for the same operation are the major flexibilities adopted in the DIPPS problem.To represent the flexible plans and schedules for different jobs in each MC, the network that was introduced by Ho and Moodie [31] is applied as an example with two MCs and three jobs.
In a network graph (Figure 1), there are three node types in the network: starting node, intermediate node, and ending node [30].The starting node and ending node labeled "B" and "C" are dummy nodes that denote the beginning and completion of a job, while the intermediate nodes labeled numbers indicate the specific operations with alternative machines that may be done in the processing procedure.From the beginning to the completion node, the arrows connecting the nodes represent the precedence of operations [31].Besides, the OR-links joining the arrows indicate the processing flexibility.If the links following a node are connected by an "OR" symbol, we only need to traverse one of them [31].Thus, a job processing procedure is perfectly illustrated by a network.In Figure 1, six networks exhibit the flexible plans and schedules of three jobs in two MCs, respectively.

Fuzzy Processing Time and Fuzzy Transportation Time.
Take two triangle fuzzy numbers (TFNs) Ṽ = (V 1 , V 2 , V 3 ) and W = ( 1 ,  2 ,  3 ) as an example; three numbers from left to right represent the minimum value, the most possible value, and the maximum value, respectively.Here, several basic rules in TFN that help to achieve the necessary calculations are displayed below.
Addition Rule.The addition of two TFNs is calculated as Ranking Rule.Three criteria used in [18,22,23] are adopted to rank between two TFNs.
(b) Second criterion: if two TFNs have the same result in the first criterion, then the TFN that has higher value of V 2 (or  2 ) ranks higher.
(c) Third criterion: if two TFNs have the same result in both first and second criteria, then the TFN that has higher value of By this means, the order of priority of all the TFNs can be figured out.
Max Rule.The max of two TFNs is calculated by the rule proposed by Lei [18] as Compared with other methods [15,16], the max rule applied here guarantees the triangular feature of Ṽ ∨ W and makes the schedule building procedure simple [23].Objective.Minimize the final completion time (FCT) F, which is the time cost from the beginning of the first job's manufacturing to the completion of last job's transportation:

DIFPPS Problem with Fuzzy Processing and
, ⋅ ( Ẽ, + T, )} . (3) Constraint 1.One job can only be assigned to one MC: 3.4.An Extended Genetic Algorithm 3.4.1.Encoding and Decoding.A three-class encoding method is implemented to construct chromosomes, each of which contains all the required information.In this case, the gene (Figure 2) is thus divided into three correlative sections with different classes.
The first section from the left, that is, the first class, is used to encode the distribution information for each job.From left to right, genes in this section store the selected MC numbers for jobs in sequence.In Figure 2, this section has numbers "1," "2," and "1," which means Jobs 1, 2, and 3, are processed in MCs 1, 2, and 1, respectively.
In the second section, that is, the second class, each gene deposits the planning information for each job in sequence.For a specific job, we first rank its OR-links in the network graph.Take Figure 1 for example, every OR-link is marked with different numbers to identify its ranking: "OR1" means the OR-link is ranked first, and "OR2" means it is ranked second.Then, we determine the link information: the left link in an "OR-link" is labeled as "1," while the right link is labeled as "2."On this basis, each gene in the second part is divided into several rows.And from top to bottom, each row contains one OR-link's link information.For example, in Figure 2, the corresponding gene of Job 1 in the seconding part contains "2" and "1" from top to bottom, which means the process plan of Job 1 in MC 1 goes right in the "OR1" and goes left in "OR2."However, considering that there is no more "OR-link" after choosing the right link in "OR1," the link information of "OR2" is thus neglected, and the chosen plan of Job 1 is 1-2-5-7-9 according to Figure 1(a).
Once the first and second sections are settled down, the third section is employed to decide the schedules for jobs.In this section, each job's operations in schedules are placed in sequence from left to right while blended together with other jobs' operations.The gene number each job occupies is as much as the operation number in its longest plan among all MCs.Thus, the total gene number in this section is the addition of all jobs' occupied genes.For each gene, it stands for an operation and has two labeled numbers to identify its corresponding job and chosen machine.Because the alternative machines for one operation show no regularity, we resequence them from "1" for each operation and use the resequenced machine number in the gene.For example, the first gene of the third part in Figure 2 belongs to Job 1's first operation, and the resequenced machine number "3" means this operation chooses the third alternative machine, that is, Machine 5, according to Figure 1(a) and Table 1.
By means of the above encoding method, all the planning and scheduling information can be inserted into a chromosome.
In the traditional IPPS and JSSP problem, the active schedule [32] that ensures the reasonability and optimum in real execution is always adopted to decode the chromosome.Here, because of the feature of fuzzy processing time, a leftshift scheme is implemented in this paper to improve the schedule in decoding by shifting the operations to the left as compact as possible [22,24,33].

Crossover.
In this procedure, we implement a binary mask in helping decide the crossover scheme for two parent chromosomes (Figure 3).This binary mask is as long as the job number, and each part of it represents the corresponding scheme for a certain job.When the randomly generated binary numbers are settled in all parts from left to right, the crossover scheme is also settled for Job 1 to .Specifically, for those jobs who are assigned "1" in the corresponding parts of the mask, all their planning and scheduling information in Parent A (B) is directly duplicated to the same positions of Offspring A (B); while for those jobs who are assigned "0," their information in Parent A (B) is duplicated to fill the bank positions in sequence.However, because the crossover needs the participation of two parents, the all "1" or all "0" situation in binary mask is not allowed.

Mutation.
To mutate the chromosome, we also create a mask so as to improve the flexibility in mutation (Figure 4).The mutation mask consists of three parts for three different functions.The first part in the mask helps to decide which job information to mutate.In this case, the number in the first part can randomly choose among 1, 2, and 3 to represent Job 1, Job 2, and Job 3, respectively.After appointing a specific job, the number in the second part helps to determine the mutation range: "1" means the mutation only acts on the third section of the chromosome by randomly changing the machine number of the assigned job; "2" means the mutation also randomly changes the job's plan in second section; and "3" means the mutation extends its action range to the first section by randomly changing the MC number.The third part of the mask is a randomly generated binary number.If it is "1," then the assigned job's genes in the third section of chromosome will change positions with its former job (Job 1's former job is Job 4); and if it is "0," do nothing.However, when Job A and Job B have  and  genes in the third section, respectively, and  < , then the change action will only act on the former  genes of Job B without disturbing the last − genes.According to the binary mask in Figure 4, Job 1's MC, plan, and processing machines are all mutated, and then its operation genes are replaced with those of Job 3's.

Local Enhancement Strategy.
Because of the big solution space of DIFPPS and the complexity of fuzzy intervals, it is hard to exploit a globally optimal method through the conventional procedures of genetic algorithm.So, we add a local enhancement strategy in this paper to assist the genetic algorithm.The idea of this strategy is inspired by the local search used in Xu et al. [22], and it is operated through the following two parts.

MC number
Plan Operation Resequenced machine number Job number

Third section First section
Second section (1) Machine Replacement.The machine replacement is expected to reduce the FCT by minimizing the makespan in each MC through machine alteration.First, we need to find out the jobs that have the maximal makespan in every MC and locate the corresponding operations in the third section of the chromosome.Then, replace each selected operation's machine with the least time-costing machine the operation can choose.And if the previous machine is already the most efficient one, keep it unchanged.For example, in Figure 5, processing machines of Job 3's operations are replaced with the other ones.However, considering that the 2nd, 4th, and 5th operations of the job have already chosen the best machine, the replacement is only conducted at the 1st and 3rd operations.
(2) Order Exchange.In this step, two operations' positions will be exchanged in order to strengthen the flexibility of the schedule and the diversity of the generation.Given two operations A and B, only if the following two conditions are all satisfied, the order exchange of A and B can take place.To be specific, these two conditions are set to prevent the illegal chromosome after the order exchange: (a) A and B belong to different jobs but are processed on the same machine in a MC.
(b) Any intermediate operations between A and B in the third section of the chromosome do not belong to the jobs that A or B belongs to.
Once these two operations' positions are exchanged, they are fixed and cannot be exchanged again.And the order exchange ends after all the possible exchanges are executed.For example, in Figure 6, the 5th and 6th operations (both processed on Machine 5 in MC 2) and the 9th and 10th operations (both processed on Machine 3 in MC 2) will exchange their positions.
Through machine replacement and order exchange, the chromosome is restructured to a renewed one.However, because the renewed chromosome may degenerate, that is, having longer FCT than the original one, we determine that the chromosome with better performance will be reserved, while the other one will be abandoned.

Experiment
The experiment is divided into two parts to demonstrate the exploration capability of EGA in managing DIFPPS problem.In the first part, EGA is applied to a case with six jobs and two MCs, while in the second part, a GA used to be applied in IPPS is adapted to deal with DIFPPS and Mathematical Problems in Engineering [1,3]    then compared with EGA.The whole program is coded by C# programming language in Microsoft Visual Studio 2008 with .NET Framework 4.0, and the operating system is Windows 7.

Case Study.
In this part, we adopt the EGA to deal with a DIFPPS case with six jobs and two MCs.The alternative plans and schedules for these jobs are shown in Figures 1 and 7, while the fuzzy processing time and transportation time are shown in Tables 1, 2, 3, and 4.
After repeated adjustment with the case, the quantity of chromosomes in each generation is set as 30, while the crossover and the mutation rates are fixed to 0.85 and 0.2, respectively.In this case, we set two stop criteria, and the program will cease and output the result once one of them is satisfied: (1) reach the maximal iteration time (the 50th generation); (2) the difference of FCTs in every four consecutive generations is no more than 2%.However, owing to the difficulty in comparing the difference of TFN Ṽ and ( 1 +2 2 + 3 )/4 as their substitutions in the calculation of comparison.Meanwhile, this substitution method is also used to represent FCT in Figures 8,9,11,and 12.In order to determine the proportion of population that the local enhancement strategy will apply on, we first build a randomly simulated case which adopts the configuration of MC, job, plan, and machine from the six-job case and randomly sets the number of optional machines and the corresponding operating and transportation time for each job.To be specific, the most possible value  of each P,,,, or T, is randomly generated in [10,40], while the minimum value and the maximum value are in [5, p) and (p, 45].Then, the algorithm will run five times in each proportion (0, 10%, 20%, 30%, 40%, and 50%) and output the best FCT and the average FCT.obvious that the application of strategy effectively promotes the FCT, especially when the proportion is 10% or 20%.Considering that bigger proportion of application will disturb the process of genetic algorithm more and the result difference between 10% and 20% is tolerable, the application proportion of local enhancement strategy in population is set to 10% here for the best tradeoff between quality improvement and evolution stability.
The EGA starts computing after the program is triggered.Once the evolution process completes, we can obtain the results and capture the image and the corresponding Gantt chart.Here, we run the EGA 10 times and obtain the best solution with a FCT of 75, 105, and 136.The best evolutionary process and the Gantt chart are shown in Figures 9 and 10, respectively.Two lines in Figure 9 are drawn to represent the best and the average FCTs.In the Gantt chart, the triangle and the inverted triangle stand for the start and end of a job, while "J" and "O" are used to represent the job and the operation, respectively.

Comparison with a GA Used in IPPS.
In the traditional IPPS model, jobs are all settled in one centralized factory before process planning and scheduling, and there is no need to consider the selection of MCs for jobs.Based on this difference compared with DIPPS, we first assign the jobs to specific MCs and then implement GA for each scenario.For convenience, we adopt the crossover strategy in this paper for GA, and the mutation strategy is to mutate the plan and processing machine for a random selected job.In each time of GA, the maximal iteration is 30, while the quantity of chromosomes, the crossover, and the mutation rates are 30, 0.85, and 0.2, respectively.

Comparison in Established
Case.In this part, we employ the same case in Section 4.2 with six jobs and two MCs, which  Table 5 shows the comparison between EGA and GA used in IPPS.It is obvious that EGA is far more efficient and effective.

Comparison in
Random-Generated Cases.Four random-generated cases with different optional machines (from two to five) for each operation are adopted here with the configuration of the established case to further demonstrate the reliability of EGA in dealing with different DIFPPS problems.For example, in the case with two machines, each operation can randomly choose two optional machines from all machines (there are five machines in each MC of the established case).Meanwhile, the most possible value  of each P,,,, or T, is also randomly generated in [10,40], while the minimum value and the maximum value are in [5, p) and (p, 45]. Figure 12 and Table 6 show the best FCT results of EGA and GA used in IPPS in dealing with random-generated cases.It is obvious that in all cases EGA performs better than GA.

Conclusion
In this paper, we first propose a DIFPPS model in which the process planning and scheduling are settled in a distributed manufacturing environment and the processing time of each operation and the transportation time from MC to central warehouse are represented by TFN.This comprehensive integration makes the model accord with the actual situation better while resulting in an equitable distribution of resources.Then, an EGA is formulated to  explore the optimal or near-optimal solution of this DIFPPS problem.Compared with the conventional GA, EGA has a three-class chromosome to fully contain the abundant and intricate information of DIFPPS.Then, the crossover and mutation are accomplished with flexibility by adopting different masks.Besides, a local enhancement strategy with machine replacement and order exchange is structured to improve the efficiency of manufacturing processing.In the experiment, we conduct a case study and make several comparisons between EGA and the conventional GA used in IPPS.The results show the strong capability of EGA in tackling the DIFPPS problem.

Figure 9 :
Figure 9: The evolutionary process of EGA.

Figure 11 :
Figure 11: The evolutionary process of GA used in IPPS (Jobs 2, 3, 4, and 5 in MC 1 and Jobs 1 and 6 in MC 2).

Figure 12 :
Figure 12: Comparison between EGA and GA in random-generated cases.
Transportation Time.Compared to the DIPPS problem we defined in Section 3.1, DIFPPS problem adopts TFN P,,,, = (1,,,, ,  2 ,,,, ,  3 ,,,, ) to represent the processing time of th operation in the plan  of job  that is processed by machine  in MC ; and T, = ( 1 , ,  2 , ,  3 , ) is used to represent the transportation time of job  from MC  to the warehouse.Table1exhibits the alternative machines and corresponding processing time for each operation in Figure1, while Table2exhibits the fuzzy transportation time for each job from a specific MC to the warehouse.To measure the superiority of plan and schedule while specifying the model, an objective and several constraints are formulated.Firstly, the corresponding notations are expounded as follows:: the quantity of MCs.: the quantity of jobs.: the quantity of plans of job  in MC . ,, : he quantity of operations of plan  of job  in MC .: the quantity of machines in MC .,,,, : the th operation of plan  of job  processed by machine  in MC .S,,,, : the starting time of  ,,,, .S,,  ,  , : the starting time of any other operation processed on the same machine of  ,,,, .S,,,(+1),  : the starting time of the next operation of  ,,,, in the same job.C,,,, : the completion time of  ,,,, .C,,  ,  , : the completion time of  ,,  ,  , .Ẽ, : the completion time of job  in MC ., : if job  is assigned to MC , set to 1; if not, set to 0.

Table 1 :
The processing time for each operation (Job 1-Job 3).

Table 3 :
The processing time for each operation (Job 4-Job 6).

Table 6 :
Best FCTs of EGA and GA in random-generated cases.