Next Article in Journal
Optimization of Ordering and Allocation Scheme for Distributed Material Warehouse Based on IGA-SA Algorithm
Previous Article in Journal
Schur Lemma and Uniform Convergence of Series through Convergence Methods
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Hybrid Particle Swarm Optimization Algorithm for Process Planning

1
Business School, Sichuan University, Chengdu 610064, China
2
School of Economics and Management, Zhaoqing University, Zhaoqing 526061, China
3
School of Mechanical Engineering, Sichuan University, Chengdu 610064, China
*
Author to whom correspondence should be addressed.
Mathematics 2020, 8(10), 1745; https://doi.org/10.3390/math8101745
Submission received: 6 September 2020 / Revised: 24 September 2020 / Accepted: 6 October 2020 / Published: 11 October 2020

Abstract

:
Process planning is a typical combinatorial optimization problem. When the scale of the problem increases, combinatorial explosion occurs, which makes it difficult for traditional precise algorithms to solve the problem. A hybrid particle swarm optimization (HPSO) algorithm is proposed in this paper to solve problems of process planning. A hierarchical coding method including operation layer, machine layer and logic layer is designed in this algorithm. Each layer of coding corresponds to the decision of a sub-problem of process planning. Several genetic operators of the genetic algorithm are designed to replace the update formula of particle position and velocity in the particle swarm optimization algorithm. The results of the benchmark example in case study show that the algorithm proposed in this paper has better performance.

1. Introduction

Process planning runs through the entire manufacturing process and has a significant impact on the series of important indicators such as product production cycle, production cost and product quality. In the earlier traditional process planning, due to the limitation of manufacturing resources, process planners would generate a relatively fixed and single process route for each product, which would often cause adverse effects such as resource conflicts, “bottleneck” processes or unbalanced load of processing equipment in actual production, thus reducing the efficiency of production activities. With the transition from traditional manufacturing mode to modern advanced manufacturing mode, the flexibility of the manufacturing system is getting higher and higher, and the flexible manufacturing system come into being. In a flexible manufacturing system, there are multiple process route options for the same product, which are embodied in: (1) Operation selection flexibility, that is, the product can be produced by a combination of multiple different operations. (2) Operation sequence flexibility, that is, the processing sequence between some operations can be exchanged. (3) Machine selection flexibility, that is, some operations can be processed by different machines or equipment. There may be more than one process route for a product, but only one can be adopted in the end [1]. Flexible process routes can improve the flexibility of production activities, provide more options for manufacturing resources, and expand the optimization space of manufacturing process. So that the production efficiency of manufacturing enterprises can be improved effectively. Flexible manufacturing technology and production environment provide a broader optimization space for process planning, but at the same time it also increases the difficulty of optimizing process planning issues. The process planning problem studied in this paper mainly refers to the optimization decision of the above three dimensions for some optimization objects, so as to obtain the optimal process route plan. In other words, it is a problem of searching for the optimal process plan in the feasible process plan space according to certain restrictions. Process planning is a typical combinatorial optimization problem, which has been proved to be NPC (non-deterministic polynomial complete) problem [2]. The traditional accurate solution method is difficult to solve the process planning problem with a large scale.
In view of this, this paper proposes an improved hybrid particle swarm optimization algorithm to solve the process planning problem. This algorithm uses the crossover and mutation operation of genetic algorithm to replace the particle position and velocity update formula of particle swarm optimization algorithm. It is a hybrid algorithm of particle swarm optimization algorithm (PSO) and genetic algorithm (GA). The algorithm in this paper is mainly improved in two aspects: (1) Coding method: A hierarchical coding method including operation layer, machine layer and logic layer are designed, and each layer of coding corresponds to the decision of a sub-problem of process planning. This method can reduce the decoding difficulty of existing coding methods and increase the information contained in chromosome genes. Among them, the design of logic layer coding is conducive to the layered cross operation between different individuals, and has a significant contribution to the performance of the algorithm in this paper. (2) Genetic operator: Different cross-mutation operators are proposed for each layer of coding, and different search strategies are adopted, which greatly enhances the search performance of the algorithm. Finally, the benchmark problem is used to validate the algorithm and test its performance. The results show that the algorithm presented in this paper has some advantages.
The rest of this paper is formulated as follows. Section 2 provided a brief literature reviewed of optimization method for process planning. In Section 3, the description of process planning problem was given. In Section 4, the mixed integer programming model of process planning was established. In Section 5, a hybrid particle swarm optimization (HPSO) algorithm for process programming was designed. In Section 6, two benchmark examples were used to verify the effectiveness of the algorithm and test its performance. Section 7 presents some conclusions and some proposals for future research.

2. Literature Review

Process planning is a type of typical combinatorial optimization problem, which belongs to NPC problem. For solving process planning problem, the traditional method has great limitations, so that most of researchers use approximate methods to solve the problems with large scale. A large number of modern manufacturing enterprises use computer aided process planning (CAPP) system for process planning, the optimization method of the process route is the core of the CAPP system. The existing methods in related research mainly include expert system (ES), artificial neural network (ANN), multi-agent system (MAS), petri nets, fuzzy sets and fuzzy logic, heuristic algorithms, etc. [3,4]. Heuristic algorithms have outstanding characteristics such as diverse optimization mechanisms, high optimization efficiency, relatively simple implementation, and easy embedding, and are the most widely used in process planning.
Li et al. [5] used a mixture of genetic algorithm and simulated annealing algorithm to optimize the process plan of prismatic parts, and achieved good results. The GA is carried out in the first stage to generate some initially good process plans. Based on a few selective plans with Hamming distances between each other, the SA algorithm is employed to search for alternative optimal or near-optimal process plans. The calculation results of the calculation example show that the hybrid algorithm has better performance than the single algorithm. Singh et al. [6] studied the process planning problem based on part machining characteristics, and adopted genetic algorithms to optimize the optimal operation sequence, machine tool sequence and tool sequence under different conditions. Su et al. [7] proposed an edge selection strategy based on genetic algorithm to ensure the priority constraints of processes in process planning. The strategy based on edge selection could generate feasible solutions during initialization and ensure the generation of each feasible solution with acceptable probability, so as to improve the convergence efficiency of genetic algorithm. Delolme et al. [8] adopted genetic algorithm to generate process optimization plan, and made multi-criteria optimization decision based on them. Guo et al. [9] used particle swarm optimization algorithm to solve the problem of process sequencing in process planning, and compared the results of the improved particle swarm algorithm with the results of genetic algorithm and simulated annealing algorithm, and pointed out the different characteristics of the three algorithms. Li et al. [2] designed a multi-layer coding method based on processing characteristics, proposed a hybrid particle swarm optimization algorithm to solve process planning, and compared the results of multiple calculation examples to show the advantages of the algorithm. Wang et al. [10] used an improved particle swarm optimization algorithm to solve the process planning problem. The algorithm is improved on the basis of the traditional particle swarm algorithm, adding expansion operators for different parts of the particle code, which improves the search performance of particles. Miljković et al. [11] solve the multi-objective process planning problem which considering the indexes of minimize production cost and production time with an improved particle swarm optimization algorithm. Wu et al. [12] designed a hybrid algorithm of particle swarm optimization and genetic algorithm to solve the process planning problem, and verified the effectiveness of the algorithm with an example. Ma et al. [13] used the simulated annealing algorithm to solve the process planning. Li et al. [14] proposed a tabu search algorithm with embedded mixed constraint processing method for process planning, and compared it with the simulated annealing algorithm in a calculation example, which proved that the algorithm has more advantages. Lian et al. [15] designed a multi-dimensional tabu search algorithm to solve the process planning according to the characteristics of the process planning problem. Liu et al. [16] and Hu et al. [17] used ant colony optimization algorithm to optimize the process route and achieved relatively ideal results. Chan et al. [18] used immune algorithms (IA) to solve process planning problems. Algorithms in the above literatures include genetic algorithm (GA), particle swarm optimization (PSO) algorithm, simulated annealing (SA) algorithm, tabu search (TS) algorithm, ant colony optimization (ACO) algorithm, artificial immune algorithm (IA) and so on. There are some more novel methods except those common heuristic algorithms for solving process planning, such as the intelligent water drop algorithm used by Gao et al. [19], and DP-like heuristic algorithm used by Jin et al. [1] etc.
In the above-mentioned literatures, the algorithm encoding method can be divided into a method based on processing characteristics and a method based on processing operations. As part of the manufacturing features include multiple operations, the coding method of the process route plan for the process features reduces the computational complexity of problem solving and is more conducive to random search, but it also limits the optimization search space of the problem. Although the process-based coding method is also subject to the order constraints of the manufacturing features, it allows the processing processes that have no constraint relationship to be inserted between different processes of a certain manufacturing feature, and has more optimization space. Therefore, we design a new coding method to express the flexible process route, and proposes an improved hybrid particle swarm algorithm to solve the process planning problem in this paper.

3. Description of Flexible Process Route

For a more comprehensive description of the flexible process route of a product, multiple aspects of information need to be expressed, including the manufacturing feature information of the product (such as the optional operations of manufacturing feature, feature sequence constraints, etc.), and available processing equipment information (such as the operations that can be performed by the machine, etc.) and the information of the operations in the product manufacturing feature which is processed on a specific machine (such as the processing time of a operation on a specific machine, etc.). In many related literatures, there are many kinds of methods to describe flexible process planning, which can be roughly divided into table-based expression methods, directed graph-based expression methods, operation segments-based expression methods, set theory-based expression methods, and feature-based expression methods, and so on. Among the more common representation methods are network graphs, petri nets, AND/OR graphs, and so on. Li et al. [20] proposed an acyclic unidirectional graph that combines AND/OR graphs with network graphs to describe the flexible process route of products, which has the advantages of simplicity and intuitiveness. Under normal circumstances, using this method in conjunction with a table-based presentation method can more fully express the flexible process route of the product. According to the above method, the flexible process route of a product can be described as follows. Table 1 is the process information table of the product, and Figure 1 is the AND/OR network figure which described the flexible process route of the product. The product has 11 manufacturing features, 15 optional processes, and is processed on 6 optional machines.
In the figure, the starting point S and the ending point E are virtual nodes, Oi represents the process node, and the process route between OR and JOIN symbolic connection represents the optional process routes, and only one of them can be selected. For example, it can be chose one of the two routes between [O7] and [O8, O9]. Except the optional process route between OR and JOIN, it is necessary to traverse other operation nodes to complete the production of the product. Each operation needs to choose an available processing machine. For the example in Figure 1, a feasible process route plan for the product is:
S ( O 1 , M 2 ) ( O 2 , M 4 ) ( O 3 , M 4 ) ( O 4 , M 3 ) ( O 5 , M 6 ) ( O 6 , M 1 ) ( O 7 , M 6 ) ( O 10 , M 6 ) ( O 12 , M 6 ) ( O 13 , M 5 ) ( O 15 , M 4 ) E
Based on the expression method of this flexible process route above, we can describe the procedure of process planning activity as shown in Figure 2.

4. Mathematical Model

4.1. Problem Assumptions and Related Symbol Definitions

The main task of process planning is to determine the technical requirements and processing flow of a product from the rough or raw material to the final product. In the environment of flexible production system, processing methods and technologies are not unique, which makes a product have multiple optional process routes. Products with flexible processing technology include a variety of manufacturing features (such as planes, cylindrical surfaces, holes, etc.). Each manufacturing feature can be processed by multiple technologies. Each optional processing technology includes one or more processing operations. There may be sequence constraints between operations, and each operation can be processed on multiple alternative processing machines. In other words, the product has operation selection flexibility, processing machine selection flexibility, and operation sequence selection flexibility. To generate a complete process route plan, it is necessary to make decisions in these three dimensions. The process planning problem studied in this paper mainly refers to the optimization decision of the above three dimensions for some optimization objects, so as to obtain the optimal process route plan. In order to better carry out theoretical research and mathematical modeling, it is assumed that the following assumptions should be satisfied in the flexible process planning problem of this paper.
(1)
Each machine can only process one operation of the product at a time;
(2)
The product can only be processed on one machine at a time;
(3)
Each machine or equipment can be used at the initial moment;
(4)
The processing time of each operation is a fixed constant value;
(5)
The preparation time of each operation on the machine is included in the processing time, and has no relations to the operation sequence;
(6)
After an operation of the product is completed on the machine, it is immediately transferred to the machine of the next operation for processing, and the transportation time of the product between different machines is a certain constant value.
The description of the relevant parameters for process planning issues studied in this paper are shown in Table 2.

4.2. Mixed Integer Programming Model for Process Planning

Process planning issues generally take the completion time, the production cost, and the minimum number of machine conversions throughout the product processing process of the product as evaluation indicators. In this paper, we select the completion time of the product as the optimization goal:
f = min C = j = 1 n l t l j k · X l · Y l j k + j = 1 n l X l · Y l j k · t k k t r a n s · T ( k , k )
The first half of the Formula (1) is the sum of the processing time of the operations on the machine, and the second half is the sum of the time for the product to switch between different machines.
Generally, the following constraints needs to be satisfied in the process planning problem:
(1) Only one combination of processing operations can be selected for the product:
l = 1 L X l = 1
(2) Each operation can only select to be processed on one machine:
k = 1 m Y l j k = 1   l [ 1 , L ] ;   j [ 1 , n l ]
(3) The completion time of the operation is equal to the sum of start time of the operation and the processing time:
C l j k · X l j · Y l j k = S l j k · X l j · Y l j k + t l j k · X l j · Y l j k l [ 1 , L ] ; j [ 1 , n l ] ;   k [ 1 , m ]
(4) The different operations of the product cannot be processed at the same time:
F j 1 j 2 · X l · ( S l j 2 k 2 · Y l j 2 k 2 S l j 1 k 1 · Y l j 1 k 1 ) + H ( 1 F j 1 j 2 ) + H ( 1 Y l j 2 k 2 ) X l · Y l j 1 k 1 · t l j 1 k 1 ( 1 F j 1 j 2 ) · X l · ( S l j 1 k 1 · Y l j 1 k 1 S l j 2 k 2 · Y l j 2 k 2 ) + H · F j 1 j 2 + H ( 1 Y l j 1 k 1 ) X l · Y l j 2 k 2 · t l j 2 k 2   l [ 1 , L ] ;   j 1 , j 2 [ 1 , n l ] j 1 j 2 ;   k 1 , k 2 [ 1 , m ]
(5) Machine constraints, each machine can only process one operation at the same time:
F j 1 j 2 · X l ( C l j 2 k · Y l j 2 k C l j 1 k · Y l j 1 k ) + H ( 1 F j 1 j 2 ) + H ( 1 Y l j 2 k ) X l · Y l j 2 k · t l j 2 k ( 1 F j 1 j 2 ) · X l · ( C l j 1 k · Y l j 1 k C l j 2 k · Y l j 2 k ) + H · F j 1 j 2 + H ( 1 Y l j 1 k ) X l · Y l j 1 k · t l j 1 k   l [ 1 , L ] ;   j 1 , j 2 [ 1 , n l ] j 1 j 2 ;   k [ 1 , m ]
(6) The start and completion time of all operations are non-negative numbers:
S l j k · X l j · Y l j k 0 C l j k · X l j · Y l j k 0 l [ 1 , L ] ;   j [ 1 , n l ] ;   k [ 1 , m ]
(7) Process sequence constraint, the completion time of the preceding ones of the operation are greater than the start time of the operation:
( C j 1 k 1 · X j 1 · Y j 1 k 1 S j 2 k 2 · X j 2 · Y j 2 k 2 ) · F j 1 j 2 0 j 1 , j 2 [ 1 , n l ] j 1 j 2 ;   k 1 , k 2 [ 1 , m ]
(8) In a process route plan, there is only one sequence between two different operations:
( F j 1 j 2 + F j 2 j 1 ) · X l 1 l [ 1 , L ] ;   j 1 , j 2 [ 1 , n l ] j 1 j 2

5. Algorithm Design

For a complex product, the number of manufacturing features, the number of optional operation combinations for each manufacturing feature, and the number of optional machines for each operation is large. Different operation selection, operation sequence selection and machine selection combinations can form a large number of different processes route. In recent years, a variety of heuristic algorithms have been applied to the research of solving process planning problems and achieved some nice results. However, each algorithm has its advantages and disadvantages, and using a certain heuristic algorithm alone will inevitably suffer from performance limitations. Combining a variety of algorithms according to the characteristics of the problem to be solved, and complementing each other to form a hybrid optimization algorithm is an effective way to improve the performance of the optimization algorithm [21]. In many research fields, hybrid algorithms have been widely used and proved their superiority. PSO and GA are two very widely used metaheuristic algorithms, and they also show good performance in the optimization of process planning problems. This paper will use a hybrid particle swarm algorithm combining PSO and GA to solve the process planning problem.

5.1. Encoding and Decoding Methods

To use the HPSO algorithm to solve the process planning, the coding of the process route plan must be realized before the algorithm can be transformed into a computer program. In view of the fact that the HPSO algorithm in this paper uses genetic operations to update particles, the chromosome encoding method of GA can be considered to encode the feasible solution of the problem, so as to realize the expression of the process route plan. In the GA, the coding method determines the arrangement of the genes in the chromosome and the decoding method that transforms the genes in the chromosome into an effective solution to the problem. In addition, the coding method has played a decisive role in the operation methods of genetic operation operators such as crossover operators and mutation operators to a large extent. Generally speaking, in the operation of genetic algorithm, the main link that affects the efficiency of the algorithm is the calculation speed of the genetic operator. Therefore, designing a coding method that is conducive to genetic operations is the key to improving the efficiency of the algorithm in this paper. Through the study on the related literature of process planning, it is found that two representative coding methods are widely used.
(1) The integrated coding method, as shown in Figure 3. This method is a coding method based on the operation. The operation number and the machine number are integrated into a gene. The position of the gene indicates the processing sequence of the operation. The operation that appears in the chromosome indicates that the process is selected by the current process plan, otherwise, mean that the operation is not selected by the current routing scheme.
(2) The hierarchical coding method, as shown in Figure 4, represents a process planning encoding sample of the product in Figure 1. This method is a coding method based on product manufacturing features, using three digital sequences to map three-dimensional decision-making schemes in process planning. The first layer of coding is a feature sequence, each number in the sequence represents the product manufacturing feature number, and the position of the number represents the order of product manufacturing features. The second layer code is the process sequence, the length of the code is the same as the feature sequence, the number in the sequence indicates the processing process number selected by the product manufacturing feature at the corresponding position, and the second layer code can be decoded to obtain selection scheme of the operations in the process route of the product. The third layer of code is the machine sequence, the length of the code is the same as the number of all optional operations of the product, and each number indicates the sort number of the machine among the candidate machines for which the corresponding operation can select, not the machine number. Except for the first layer of feature sequence, this encoding method is an indirect encoding method, and its decoding complexity is higher than that of direct encoding. The advantage of this coding method is that the length of the chromosomes is the same, and each layer of coding is relatively independent, which is convenient for genetic operations; it can reduce the generation of illegal solutions after genetic operations to a certain extent; the three layer code correspond to the three-dimensional decision-making of process planning, which can better express the characteristics of the problem. However, this coding method is more complicated than the integrated method, and the chromosome information is not intuitive enough; the decoding method of process sequence and machine sequence is more difficult, which reduces the calculation efficiency of individual fitness function, which is also a prominent shortcoming of this coding method.
Combining the advantages of the above two coding methods, a new coding method for process planning is designed in this paper. This method draws on the hierarchical representation principle of the hierarchical coding method, and directly encodes based on the information of each candidate processing operation of the product, which can be regarded as a combination of the integrated coding method and the hierarchical coding method. The coding method in this paper divides the coding of process plan into three layers the same as the hierarchical coding method, but the digital sequence of each layer adopts the form of direct coding, and the process route information expressed is also different to a certain extent. The three layers of coding are operation layer, machine layer, and logic layer, which correspond to the three dimensions of operation sequence selection, operation machine selection, and operation selection in process planning. Figure 5 is an example of the new coding method, from which the process route plan of the product can be obtained more intuitively. In Figure 6, the first layer of the code is the operation layer, the codes represent all the optional operation numbers of the product, and the positions of the number indicate the processing sequence of the operations; the second layer of the code is the machine layer, and the codes indicate the processing machine number selected by the operation corresponding to the position of the first layer; the third layer of the code is the logic layer, the code 1 indicates that the operation corresponding to the position of the first layer is selected by the process route plan, the code 0 indicates that the corresponding operation is not selected, to express the selection of the operations for the process route.
The decoding method of this encoding method is very simple. It only needs to read the information of each operation according to the operation layer of the chromosome and delete the ones with a code ‘0’ in the logic layer to form the process route plan of the product. The code shown in Figure 6 can be decoded into the following process route:
( O 1 , M 3 ) ( O 5 , M 6 ) ( O 4 , M 4 ) ( O 6 , M 1 ) ( O 2 , M 4 ) ( O 3 , M 2 ) ( O 8 , M 5 ) ( O 9 , M 5 ) ( O 11 , M 2 ) ( O 10 , M 3 ) ( O 14 , M 3 ) ( O 15 , M 2 )

5.2. Hybrid Particle Swarm Optimization Algorithm for Process Planning

Through the basic principles of the standard PSO, it can be found that the updates for the velocity and position of the particles are according to some specific formulas. Each particle in the algorithm is set as an R-dimensional vector Xi = (Xi1, Xi2, Xi3, …, XiR)T. The components Xir of the vector are independent of each other, and there is no sequence constraint between them. According to the velocity and position update formulas of the PSO, it is not difficult to find that the standard PSO is designed for the continuous optimization problem, and each component Xir of the particle changes continuously. Although some kinds of discrete particle swarm optimization (DPSO) algorithms were proposed for solving discrete optimization problems, and some new velocity and position of particles update formulas were designed, most DPSO algorithms do not fully consider the specific characteristics of discrete combination optimization problems (such as the order constraints between the components vector of particle, etc.). As a result, the algorithm search efficiency is not high and there is a certain degree of redundant expression [22].
In a typical flexible process planning problem, the sequence constraints between operations need to be satisfied, and the update method for velocity and position of the particles in the PSO algorithm needs to be redesigned. In some classical discrete optimization problems, hybrid algorithms combining PSO and GA have been applied. This method abandons the velocity and position update model, and uses crossover and mutation operations of GA to update the particles. Li et al. [2] applied this method to the optimization of process planning problems, constructed a memory population in the iteration process to record the optimal position of particles which are in the population, and used a series of genetic operation operators and random search operator replaces the position and velocity update formula of the PSO. Adopting other methods to update the particles instead of the velocity and position update model in the standard PSO algorithm is a common method of HPSO. A large number of studies have shown that designing a particle update method that is more in line with the characteristics of the optimization problem can effectively improve the search performance of the PSO.
From what has been discussed above, we improve the coding method and genetic operator of the hybrid algorithm of PSO and GA, and applies it to the optimal solution of process planning problems in this article. According to the characteristics of the process planning problem, a new coding method is designed to express different process route schemes, which makes the decoding process easier and improves the efficiency of the algorithm; in the crossover operation, two paired crossover methods of individual random crossover and group optimal crossover are used to update the particle position, in order to further enhance the search performance of the algorithm. The main process framework of the improved HPSO algorithm proposed in this paper is shown in Figure 6.
The steps of the hybrid particle swarm optimization algorithm are as follows:
Step 1:
According to the problem, generate the initial population Initial_Pop according to a certain method, so that each particle Indi(i) is a feasible solution, the number of initialization iterations gen = 0, and the population size is N, where i = 1, 2, …, N;
Step 2:
Calculate the fitness fit(i) of each particle in the population according to the objective function of the problem;
Step 3:
Update the individual extreme value Pbest(i) and the group extreme value Gbest according to the fitness value of the particles;
Step 4:
Determine whether the algorithm termination condition is satisfied, if so, output the calculation result; otherwise, execute the next step and increase the number of iterations, gen = gen + 1;
Step 5:
Random crossover. Cross the particle Indi(i) with other random particles Indi(r), and calculate the fitness value RC_fit(i) of the offspring RC_Indi(i) which is generated by the crossover operation. If a particle with better fitness is obtained, that is, RC_fit(i) is better than fit(i), set Indi(i) = RC_Indi(i), and execute the next step after updating the current particle; otherwise, execute the next step directly;
Step 6:
Optimal crossover. Cross the particle Indi(i) with the group extreme particle Indi(Gbest), and calculate the fitness value GC_fit(i) of the offspring GC_Indi(i) which is generated by crossover operation. If a particle with better fitness is obtained, that is, GC_fit(i) is better than fit(i), set Indi(i) = GC_Indi(i), and execute the next step after updating the current particle; otherwise, execute the next step directly;
Step 7:
Mutation operation, the offspring generated by the mutation operation of particle Indi(i) is M_Indi(i), if a particle with better fitness is obtained, that is, M_fit(i) is better than fit(i), so that Indi(i) = M_Indi (i), jump to Step 3 after updating the current particle; otherwise, jump directly to Step 3.

5.3. Algorithm Details

The key modules of the algorithm will be explained in this part.

5.3.1. Particle Swarm Initialization

Solutions that do not conform to the sequence constraints of the product’s manufacturing features are called infeasible solutions or illegal solutions. In the random initialization process of particle swarms and subsequent mutation operation, it is inevitable to generate infeasible solutions. There are many ways to deal with infeasible solutions, such as directly deleting infeasible solutions, using penalty functions, and transforming feasible solutions and so on. In this paper, a feasible solution transformation method proposed in the literature [5]—the constraint adjustment method is used to adjust the infeasible solution to make it a feasible solution.
In order to obtain the initial population quickly, the method of randomly initializing the particle swarm is adopted in this article. The specific steps are as follows:
Step 1:
Generate a digital sequence from 1 to n as the original code of the operation layer of the particle (chromosome), where n is the total number of optional operations for the product;
Step 2:
According to the process information table, select the available processing machines randomly for each operation to form the machine sequence as the original code of the machine layer;
Step 3:
According to the optional process of the product’s manufacturing features, randomly select one operation combination that satisfies the product completion condition (or adopt the tree diagram traversal method to randomly generate the operation combination that satisfies completion condition of the product according to the AND/OR diagram), and generate 0–1 digital sequence as the original code of the logic layer;
Step 4:
Combine the above three layers of codes to form a 3 × n coding matrix;
Step 5:
Generate a random sequence, and sort the above coding matrix according to the random sequence in units of columns;
Step 6:
Use the constraint adjustment method in the literature [5] to adjust the operation sequence that does not satisfy the constraint conditions of the product’s manufacturing feature sequence to make it a feasible solution;
Step 7:
If the size of the particle swarm is N, repeat the above step N times to obtain the initial particle swarm.
The above steps can be described by the following pseudo code, POP represents population, Indi represents individual, N represents population size, ON represents number of operations, {OS} represents combination of optional operation, {JM} represents set of optional machines, {COO} represents constraints matrix set of the operations, LO represents the operation layer code, LM represents the machine layer code, LL represents the logic layer code, and M(j) represents the machine selected by operation j.
Generate Initial Population
1Input: N, ON, {OS}, {JM}, {COO}
2Output: Initial POP
3Set Initial POP = {Φ}
4For n = 1 to N do
5      LO = [Φ], LM = [Φ], LL = [Φ], M(j) = [Φ]
6      LO = ones*(1 to ON)
7      For j = 1 to ON do
8      M(j) = rand(JM(j))
9      End For
10      LM = [LM, M(j)]
11      Index_L = rand (OS(i))
12      LL = zeros(1,ON)
13      LL (Index_L)= = 1
14      Temp_Indi (n) = [LO;LM;LO]
15      Index_Total(n) = randperm(TN)
16      Indi(n) = Temp_Indi (n)(Index_Total(n))
17      if Indi(n)→{COO}illegal solution
18         run Constraint Adjustment function
19         Indi(n)→{COO}feasible solution
20      End if
21      Initial POP = {Initial POP; Indi(n)}
22   End For

5.3.2. Crossover Operators

In the crossover operation, each column of the chromosome serves as the basic unit of position transformation. When the position of any gene in a column changes, all genes in the column undergo the same position change. In this paper, three separate crossover operators are designed respectively for the operation layer, machine layer and logic layer, and iteratively searched from three different dimensions. The specific operations are as follows.
(1) Operation layer crossover. The crossover for the operation layer adopts a method similar to OX (order crossover) that can avoid generating infeasible offspring individuals. Figure 7 shows an example of crossover for the operation layer.
The steps of crossover for operation layer:
Step 1:
Select two parent individuals, extract the operation layer, and record it as P1 and P2;
Step 2:
Mark the gene whose logical layer code is 1 in P1 or P2 (gray in the figure);
Step 3:
Select two intersection points randomly, record them as pos1 and pos2 from left to right;
Step 4:
Copy the genes on the left side of pos1 and the right side of pos2 in P1 to the offspring individual O1;
Step 5:
Mark the same genes in P2 which are copied from P1 to O1;
Step 6:
Insert the genes in P2 that are different from those in O1 into the vacancy of O1 in order;
Step 7:
According to the mark in Step 2, adjust the logic layer of O1, make the selection of operations for O1 the same as P1 or P2, to get the offspring O1 after crossover.
(2) Machine layer crossover. The crossover for the machine layer adopt an operator similar to SEX (Subtour Exchange Crossover). Figure 8 shows an example of crossover for machine layer.
The steps of crossover for machine layer:
Step 1:
Select two parent individuals, extract the operation layer and the machine layer, and record them as P1 and P2;
Step 2:
Copy P1 as O1;
Step 3:
Select several operations in P1 randomly to conduct the crossover for machine layer (gray in the figure), and mark the same genes in P2 which are selected previously in P1;
Step 4:
Replace the machine layer code of the selected operations in O1 with the machine layer code of the same operation in P2, to get the offspring O1.
(3) Logic layer crossover. The logical layer crossover operator is similar to the machine layer crossover, but the operations of the product needs to be segmented before crossover. According to the product process information table, find the manufacturing features with flexible processes, and segment the operations belonging to these manufacturing features according to different ones. An example of crossover for logical layer is shown in Figure 9, the operations of the same color belong to the same manufacturing feature in the figure.
The steps of crossover for logic layer:
Step 1:
Select two parent individuals, extract the operation layer and logic layer, and record them as P1 and P2;
Step 2:
Copy P1 as O1;
Step 3:
Select one or more flexible operation segments of manufacturing features to be crossed. In the example, the first operation segment (7, 8, 9) belonging to a feature and the third operation segment (13, 14) belonging to another feature are selected;
Step 4:
Extract operation genes which are selected for crossover in Step3 from P2, and reorder them to make the sequence of these operations consistent with the sequence in P1;
Step 5:
Use the logic layer code after reorder which are extracted from P2 in Step 4 to replace the corresponding logic layer code in O1, to obtain the offspring O1 after crossover.

5.3.3. Mutation Operators

Generally, the mutation operation determines the local search performance of the genetic algorithm, and it cooperates with the crossover operation with global search capability to jointly complete the optimization process of the optimization problem. The same is true in the hybrid PSO algorithm of this article. In the mutation operation, like the crossover operation, when the position of any gene in a column changes, all genes in the column undergo the same position change. In the following mutation operations for the three-layer codes, only the operation layer mutation will change the positions of genes. In addition, the operation layer variation may produce infeasible solutions, which need to be converted into feasible solutions by using the constraint adjustment method. The three mutation operators designed for different dimensions are as follows.
(1) Operation layer mutation. An exchange mutation (EM) method is adopted to exchange the positions of the operations. An example of mutation for operation layer is shown in Figure 10.
The steps of mutation for operation layer:
Step 1:
Select one parent individual, extract the operation layer, and record it as P;
Step 2:
Copy P as O;
Step 3:
Within the length range of O, select two mutation positions pos1 and pos2 randomly;
Step 4:
Exchange the positions of genes in pos1 and pos2 of O;
Step 5:
Check that whether the operation sequence after mutation satisfies the constraint requirements of manufacturing feature. If the constraint conditions are met, the offspring O after the mutation is obtained; otherwise, convert it into a feasible solution by using the constraint adjustment method to obtain the offspring O after the mutation.
(2) Machine layer mutation. A single-point mutation (SPM) method is adopted to randomly select a position in the machine layer code for mutation. An example of mutation for machine layer is shown in Figure 11.
The steps of mutation for machine layer:
Step 1:
Select one parent individual, extract the machine layer, and record it as P;
Step 2:
Copy P as O;
Step 3:
Within the length range of O, randomly select a mutation position pos whose logic layer code is not 0, and record the machine number as k before mutation;
Step 4:
Read the optional machine set M(j) of operation j which is on the position selected in Step 3;
Step 5:
If there are multiple candidate machines in M(j), select other machine randomly in M(j) whose serial number are not equal to k to replace the one in position pos of offspring O, and obtain the offspring O after mutation; Otherwise, go to Step 3 to reselect the position for mutation.
(3) Logic layer mutation. This mutation operator is similar as the crossover of logic layer, the operations of the product need to be segmented according to different manufacturing features before operation. Using a method similar to machine layer mutation, a feature with flexible process is randomly selected for mutation. An example of mutation for logic layer is shown in Figure 12.
The steps of mutation for logic layer:
Step 1:
Select a parent individual, extract the operation layer and logic layer, and record it as P;
Step 2:
Copy P as O;
Step 3:
Randomly select an operation segment corresponding to one manufacturing feature, which has the flexible process, for logic layer mutation. In the example, the operation segment (11,12) belonging a feature is selected, and read the corresponding logic code (0,1);
Step 4:
Randomly select other optional process of the manufacturing feature to generate a new logic code, in the example (1,0);
Step 5:
Use the new logic code generated by Step 4 to replace the original logic code in O to obtain the offspring O after mutation.

6. Case Study

In order to prove the feasibility of the algorithm and test the performance of the algorithm, we conduct two calculation experiments in this section. The HPSO algorithm for process planning is programmed with an engineering computing software and runs on a notebook computer with an intel i-7 (Core 7700 HQ 2.8 GHz) CPU and 16 G RAM. After many tests, the parameters of the algorithm are set as follows: the maximum value of iterations is 200; the population size is 200; the three-layer probability of crossover are 0.8, 0.8, and 0.6; the three-layer probability of mutation are 0.1, 0.8, and 0.1, respectively. For each calculation example, the algorithm is run 20 times, and the optimal value and average value of the results are recorded.

6.1. Case 1

The data of case 1 comes from the literature [2]. The product contains 11 manufacturing features, 17 optional operations and 15 optional processing machines. The AND/OR network diagram of the product is shown in Figure 13. The process information of the product is shown in Table 3. It is set in this paper that it will take a certain of time to change the processing machine of a product in the manufacture process. In order to facilitate the comparison of results, the data of switch time between different machines of a product which is in literature [2] are also adopted here. Table 4 shows the transportation time required for the product between different machines.
Table 5 shows the comparison between the calculation results of the algorithm in this paper and the calculation results of several algorithms in literature [2].
The comparison results show that the optimal and average results of HPSO algorithm are better than the other three algorithms, which fully proves that the algorithm proposed in this paper has better search performance. A large part of the improvement of algorithm performance is due to the new coding method adopted in the algorithm of this article. The optimal process route plan of case 1 is as follows:
( O 7 , M 3 ) ( O 1 , M 3 ) ( O 4 , M 1 ) ( O 12 , M 13 ) ( O 8 , M 13 ) ( O 10 , M 3 ) ( O 13 , M 9 ) ( O 5 , M 9 ) ( O 16 , M 4 ) ( O 6 , M 8 ) ( O 17 , M 10 ) ( O 11 , M 10 )

6.2. Case 2

The data in the case 2 comes from the literature [23], including 18 independent products with different degrees of flexibility, each of which contains different features and operations, and there are 15 optional machines. The details of the optional machines, processing time and technological process (sequence constraints) of each operation of the products can be found in the appendix of the literature [24]. In order to facilitate comparison, the data of the transportation time of a product between the machines in case 1 (Table 4) is adopted in this case. In the literature [2], simple SA, simple GA and modified PSO were used by Li et al. to carry out the process planning of these 18 products, and the calculation result comparison is provided. The optimal results and average results comparison of the above three algorithms with the H-PSO proposed in this paper are shown in the Table 6 and Table 7.
The comparison results show that in the No. 1–18 problems of the process planning for products, the results of optimal value and average value calculated by the H-PSO algorithm in this paper are better than the other three algorithms in 15 problems, and equal in 2 problems. Table 8 provides the optimal process route scheme for each product calculated by H-PSO.

7. Conclusions

Based on the calculation results of the above two calculation result of cases, the HPSO algorithm designed in this paper is an effective method to solve the process planning problem. It has strong search performance and can obtain a better process route plan for the minimum completion time objective function. The reasons are as follows: First, a coding method which adopted the direct coding based on product operations is more in line with the characteristics of the problem for process planning was designed in this algorithm. Compared with the traditional integrated coding method and hierarchical coding method, it contains more comprehensive process information, reduces the difficulty of decoding in, thereby improving the efficiency and search performance of the algorithm. Second, the multiple genetic operation operators designed in this paper are more compatible with the decision-making dimensions of process planning. The three crossover operators and mutation operators cooperate with each other. Global and local searches are respectively performed in each dimension from the selection of the processing technology, the operation sequence, and the processing machine for the product, which further strengthens the optimization performance of the algorithm. Therefore, the HPSO algorithm designed to solve the process planning problem in this paper is a more effective method.
This article mainly studied the mathematical model and solution method of process planning. First, the related literatures of the solve method for process planning problem were reviewed. Second, the representation method of flexible process route was elaborated. Third, the problem assumptions and related symbols of the mathematical model were explained, and the mathematical model of mixed integer programming for process planning with an object function of minimum completion time was established. Fourth, the HPSO algorithm is improved according to the main characteristics of process planning, an improved hierarchical coding method including operation layer, machine layer and logic layer was proposed, and several genetic operators were designed for improving the optimization performance of the algorithm. Finally, the effectiveness of the algorithm is proved by two experiments in the case calculation, and at the same time, it is proved that the algorithm in this paper has better search performance by comparing with other algorithms. The algorithm for process planning in this paper can be embedded into the software of CAPP system, so that it can be applied in manufacturing enterprises.
With regard to directions for future research, we will try to propose more novel methods to solve process planning problems, and consider more dynamic factors of the actual production environment when performing the process planning. In addition, the integration of process planning with other systems is also a direction of the future research. Among them, the integrated optimization of process planning and scheduling is a kind of research with nice practical value.

Author Contributions

Conceptualization, X.Z. and J.Y.; methodology, X.Z. and J.Y.; software, X.Z.; validation, P.G. and H.Z.; formal analysis, X.Z.; resources, J.Y.; data curation, X.Z., P.G. and H.Z.; writing—original draft preparation, X.Z.; writing—review and editing, X.Z. and J.Y.; visualization, X.Z.; supervision, J.Y.; funding acquisition, J.Y.; project administration, J.Y. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by China University Research Fund: 2010scu2101.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Jin, L.; Zhang, C. Process Planning Optimization with Energy Consumption Reduction from a Novel Perspective: Mathematical Modeling and a Dynamic Programming-like Heuristic Algorithm. IEEE Access. 2019, 7, 7381–7396. [Google Scholar] [CrossRef]
  2. Li, X.; Gao, L.; Wen, X. Application of an Efficient Modified Particle Swarm Optimization Algorithm for Process Planning. Int. J. Adv. Manuf. Technol. 2013, 67, 1355–1369. [Google Scholar] [CrossRef]
  3. Yusof, Y.; Latif, K. Survey on Computer-aided Process Planning. Int. J. Adv. Manuf. Technol. 2014, 75, 77–89. [Google Scholar] [CrossRef] [Green Version]
  4. Al-Wswasi, M.; Ivanov, A.; Makatsoris, H. A survey on Smart Automated Computer-aided Process Planning (ACAPP) Techniques. Int. J. Adv. Manuf. Technol. 2018, 97, 809–832. [Google Scholar] [CrossRef] [Green Version]
  5. Li, W.D.; Ong, S.K.; Nee, A.Y.C. Hybrid Genetic Algorithm and Simulated Annealing Approach for the Optimization of Process Plans for Prismatic Parts. Int. J. Prod. Res. 2002, 40, 1899–1922. [Google Scholar] [CrossRef]
  6. Singh, D.K.J.; Jebaraj, C. Feature-based Design for Process Planning of Machining Processes with Optimization Using Genetic Algorithms. Int. J. Prod. Res. 2005, 43, 3855–3887. [Google Scholar] [CrossRef]
  7. Su, Y.; Chu, X.; Chen, D.; Sun, X. A genetic algorithm for operation sequencing in CAPP using edge selection based encoding strategy. J. Intell. Manuf. 2015, 29, 313–332. [Google Scholar] [CrossRef]
  8. Delolme, L.; Antomarchi, A.-L.; Durieux, S.; Duc, E. Decision-making for multi-criteria optimization of process planning. Mech. Ind. 2019, 20, 806. [Google Scholar] [CrossRef]
  9. Guo, Y.W.; Mileham, A.R.; Owen, G.W.; Li, W.D. Operation sequencing optimization using a particle swarm optimization approach. Proc. Inst. Mech. Eng. Part B J. Eng. Manuf. 2006, 220, 1945–1958. [Google Scholar] [CrossRef]
  10. Wang, J.; Kang, W.; Zhao, J.; Chu, K. A simulation approach to the process planning problem using a modified particle swarm optimization. Adv. Prod. Eng. Manag. 2016, 11, 77–92. [Google Scholar] [CrossRef]
  11. Miljković, Z.; Petrović, M. Application of Modified Multi-Objective Particle Swarm Optimisation Algorithm for Flexible Process Planning Problem. Int. J. Comput. Integr. Manuf. 2016, 30, 271–291. [Google Scholar] [CrossRef]
  12. Wu, W.; Zeng, J.; Huang, Z. A Hybrid Optimization Approach for Setup Planning with Tolerance Constraints. MATEC Web Conf. 2018, 249, 1–5. [Google Scholar] [CrossRef] [Green Version]
  13. Ma, G.H.; Zhang, Y.F.; Nee, A.Y.C. A Simulated Annealing-Based Optimization Algorithm for Process Planning. Int. J. Prod. Res. 2000, 38, 2671–2687. [Google Scholar] [CrossRef]
  14. Li, W.D.; Ong, S.K.; Nee, A.Y.C. Optimization of Process Plans Using a Constraint-Based Tabu Search Approach. Int. J. Prod. Res. 2004, 42, 1955–1985. [Google Scholar] [CrossRef]
  15. Lian, K.; Zhang, C.; Shao, X.; Zeng, Y. A multi-dimensional tabu search algorithm for the optimization of process planning. Sci. China Ser. E Technol. Sci. 2011, 54, 3211–3219. [Google Scholar] [CrossRef]
  16. Liu, X.J.; Yi, H.; Ni, Z.H. Application of Ant Colony Optimization Algorithm in Process Planning Optimization. J. Intell. Manuf. 2013, 24, 1–13. [Google Scholar] [CrossRef]
  17. Hu, Q.; Qiao, L.; Peng, G. An ant colony approach to operation sequencing optimization in process planning. Proc. Inst. Mech. Eng. Part B J. Eng. Manuf. 2016, 231, 470–489. [Google Scholar] [CrossRef]
  18. Chan, F.T.S.; Swarnkar, R.; Tiwari, M.K. Fuzzy Goal-Programming Model with an Artificial Immune System (AIS) Approach for a Machine Tool Selection and Operation Allocation Problem in a Flexible Manufacturing System. Int. J. Prod. Res. 2005, 43, 4147–4163. [Google Scholar] [CrossRef]
  19. Gao, B.; Hu, X.; Peng, Z.; Song, Y. Application of intelligent water drop algorithm in process planning optimization. Int. J. Adv. Manuf. Technol. 2020, 106, 5199–5211. [Google Scholar] [CrossRef]
  20. Li, X.Y.; Shao, X.Y.; Gao, L. Optimization of Flexible Process Planning by Genetic Programming. Int. J. Adv. Manuf. Technol. 2008, 38, 143–153. [Google Scholar] [CrossRef]
  21. Marinakis, Y.; Migdalas, A.; Sifaleras, A. A hybrid particle swarm optimization–variable neighborhood search algorithm for constrained shortest path problems. Eur. J. Oper. Res. 2017, 261, 819–834. [Google Scholar] [CrossRef]
  22. Cagnina, L.C.; Esquivel, S.C.; Gallard, R. Particle swarm optimization for sequencing problems: A Case Study. In Proceedings of the Congress on Evolutionary Computation, Portland, OR, USA, 19–23 June 2004; pp. 536–541. [Google Scholar]
  23. Kim, Y.K.; Park, K.; Ko, J. A Symbiotic Evolutionary Algorithm for the Integration of Process Planning and Job Shop Scheduling. Comput. Oper. Res. 2003, 30, 1151–1171. [Google Scholar] [CrossRef]
  24. Li, X. Research on the Solution Methods of Integrated Process Planning and Scheduling. Ph.D. Thesis, Huazhong University of Science and Technology, Wuhan, China, 2009. [Google Scholar]
Figure 1. An example of a product AND/OR network figure.
Figure 1. An example of a product AND/OR network figure.
Mathematics 08 01745 g001
Figure 2. The procedure of process planning activity.
Figure 2. The procedure of process planning activity.
Mathematics 08 01745 g002
Figure 3. An examples of integrated coding methods for process planning.
Figure 3. An examples of integrated coding methods for process planning.
Mathematics 08 01745 g003
Figure 4. An example of hierarchical coding method for process planning problems.
Figure 4. An example of hierarchical coding method for process planning problems.
Mathematics 08 01745 g004
Figure 5. An examples of new coding methods designed in this article.
Figure 5. An examples of new coding methods designed in this article.
Mathematics 08 01745 g005
Figure 6. The process framework of the improved hybrid particle swarm optimization (HPSO) algorithm for process planning.
Figure 6. The process framework of the improved hybrid particle swarm optimization (HPSO) algorithm for process planning.
Mathematics 08 01745 g006
Figure 7. An example of crossover for operation layer.
Figure 7. An example of crossover for operation layer.
Mathematics 08 01745 g007
Figure 8. An example of crossover for machine layer.
Figure 8. An example of crossover for machine layer.
Mathematics 08 01745 g008
Figure 9. An example of crossover for logic layer.
Figure 9. An example of crossover for logic layer.
Mathematics 08 01745 g009
Figure 10. An example of mutation for operation layer.
Figure 10. An example of mutation for operation layer.
Mathematics 08 01745 g010
Figure 11. An example of mutation for machine layer.
Figure 11. An example of mutation for machine layer.
Mathematics 08 01745 g011
Figure 12. An example of mutation for logic layer.
Figure 12. An example of mutation for logic layer.
Mathematics 08 01745 g012
Figure 13. The AND/OR network of the product in case 1.
Figure 13. The AND/OR network of the product in case 1.
Mathematics 08 01745 g013
Table 1. An example of a product process information.
Table 1. An example of a product process information.
FeatureOptional OperationOptional MachineProcess TimeSequence Constraints
F1O1M2, M3, M418, 17, 15Before ALL
F2O2M2, M4, M510, 12, 14Before F3
F3O3M1, M2, M3, M412, 15, 18, 20Before F10, F11
F4O4M3, M4, M517, 16, 19Before F10, F11
F5O5M2, M4, M618, 20, 22Before F10, F11
F6O6M1, M2, M420, 22, 18Before F10, F11
F7O7M3, M4, M5, M614, 16, 14, 18Before F8, F9
O8→O9M2, M3, M5→M4, M5, M611, 10, 9→10, 12, 8
F8O10M1, M2, M3, M625, 28, 20
F9O11M2, M4, M515, 17, 19
O12M1, M2, M3, M620, 22, 25, 18
F10O13M2, M3, M518, 15, 20
O14M3, M4, M618, 20, 15
F11O15M1, M2, M4, M65, 5, 6, 4
Table 2. The relevant parameter descriptions of the process planning.
Table 2. The relevant parameter descriptions of the process planning.
ParameterDescription
H A huge positive number;
n Total number of operations;
m Total number of processing machines;
L Total number of operation combinations;
l Alternative process combination number;
n l Total operation quantity in the l - th operation combination;
j , j 1 , j 2 , j Operation number;
k , k 1 , k 2 , k Machine number;
O l j The j - th operation in l - th optional operation combination;
O l j k Process O l j on machine k ;
S l j k Start time of O l j k ;
C Completion time of the product;
C l j k Completion time of O l j k ;
t l j k Processing time of O l j k ;
t k 1 k 2 t r a n s Transportation time of the product form machine k 1 to machine k 2 ;
X l   = { 1 0 If the l - th operation combination is selected;
Otherwise;
Y l j k   =   { 1 0 If O l j is processed on machine k ;
Otherwise;
F j 1 j 2   = { 1 0 If operation j 1 is before operation j 2 ;
Otherwise;
T ( k , k )   = { 1 0 If the machine of the next operation of O l j k is k , k k ;
Otherwise
Table 3. The process information of the product in case 1.
Table 3. The process information of the product in case 1.
FeatureOptional OperationOptional MachineProcess TimeSequence Constraints
F1O1M3, M88, 13Before F2, F3
F2O2→O3M5, M6, M8→M216, 12, 13→21Before F3
O4→O5M1, M5, M10→M913, 16, 18→17
F3O6M5, M846, 47
F4O7M3, M7, M1344, 48, 49Before F5, F6, F7
F5O8M5, M6, M1317, 14, 10Before F6, F7
O9M5, M1516, 13
F6O10M3, M11, M1528, 27, 30Before F7
F7O11M10, M1348, 50
F8O12M5, M13, M1531, 32, 36Before F9, F10, F11
F9O13M3, M6, M930, 28, 26Before F10, F11
O14→O15M2→M1, M1411→16, 18
F10O16M4, M1518, 19Before F11
F11O17M3, M10, M1436, 32,
Table 4. The transportation time of a product between different machines.
Table 4. The transportation time of a product between different machines.
MachineM1M2M3M4M5M6M7M8M9M10M11M12M13M14M15
M1057910117614131210569
M250345727647121078
M3730654372435689
M4946044674101213141516
M51055401012789101211108
M611744100445567678
M77236124056667778
M8677774504234243
M91462485640574768
M1013441095625081012147
M11127312106637807101410
M1210125131277441070101210
M13510614116727121010088
M1467815107746141412809
M15989168883871010890
Table 5. The result comparison of different algorithms in case 1.
Table 5. The result comparison of different algorithms in case 1.
AlgorithmSimple SASimple GAModified PSOHybrid PSOImprove Rate
Optimal result3773773773565.6%
Average result378.1380.2377358.54.9%
Table 6. The optimal result comparison of different algorithms in case 2.
Table 6. The optimal result comparison of different algorithms in case 2.
Product NumberOptimal ResultImproved RateComputing Time (s)
S-SAS-GAM-PSOH-PSO
13033033032923.63%11.57
23593593593512.23%17.66
35025024984891.81%18.76
4314314314349–11.15%17.74
531431431428210.19%18.65
64094094083914.17%19.14
73043043043040.00%17.72
83583583583531.40%18.69
93933923913900.26%19.23
102642642642640.00%14.64
112712712712661.85%12.75
124424424424322.26%19.15
132162162162150.46%18.19
142692692692449.29%16.12
153583573573540.84%16.83
162482482482441.61%17.98
173143143143004.46%18.62
18 361 361 3603561.11%18.44
Table 7. The average result comparison of different algorithms in case 2.
Table 7. The average result comparison of different algorithms in case 2.
Product NumberAverage ResultImproved RateComputing Time (s)
S-SAS-GAM-PSOH-PSO
13033033032923.63%10.87
2361.2360.7359352.41.84%18.06
3504.9503.6500.3492.21.62%17.58
4315.7314.8314349.4−11.27%18.69
5315.8315.131428210.19%20.28
6411.3410.3408.8392.34.04%18.32
7304.5304.23043040.00%17.21
83583583583531.40%17.75
9395.7394.1391.9390.30.41%21.43
102642642642640.00%12.22
11271.3271.12712661.85%13.67
12442.8443.1442433.51.92%18.94
13216.1216.22162150.46%19.34
14270.5269.62692449.29%15.08
15361.3359.2357354.70.64%17.97
162482482482441.61%16.50
17315.1314.8314.6302.63.81%19.25
18 363.5 363.7 361.3358.20.86%20.62
Table 8. The optimal process route plan for each product of case 2.
Table 8. The optimal process route plan for each product of case 2.
Product NumberOptimal Process Route Scheme
1 ( O 1 , M 14 ) ( O 2 , M 15 ) ( O 3 , M 15 ) ( O 5 , M 13 ) ( O 6 , M 12 ) ( O 4 , M 12 ) ( O 7 , M 11 ) ( O 8 , M 8 )
2 ( O 7 , M 6 ) ( O 8 , M 10 ) ( O 1 , M 8 ) ( O 2 , M 8 ) ( O 6 , M 12 ) ( O 12 , M 8 ) ( O 13 , M 7 ) ( O 14 , M 10 ) ( O 4 , M 9 ) ( O 3 , M 4 ) ( O 5 , M 1 ) ( O 6 , M 1 )
3 ( O 7 , M 5 ) ( O 1 , M 4 ) ( O 8 , M 1 ) ( O 9 , M 14 ) ( O 13 , M 14 ) ( O 2 , M 8 ) ( O 16 , M 10 ) ( O 17 , M 10 ) ( O 3 , M 7 ) ( O 18 , M 7 ) ( O 19 , M 3 ) ( O 10 , M 3 ) ( O 14 , M 2 ) ( O 5 , M 2 ) ( O 11 , M 2 ) ( O 6 , M 7 ) ( O 4 , M 7 ) ( O 15 , M 1 ) ( O 12 , M 1 )
4 ( O 1 , M 2 ) ( O 5 , M 3 ) ( O 6 , M 2 ) ( O 13 , M 2 ) ( O 14 , M 10 ) ( O 7 , M 10 ) ( O 8 , M 6 ) ( O 9 , M 3 ) ( O 10 , M 9 ) ( O 11 , M 7 ) ( O 16 , M 7 ) ( O 12 , M 15 )
5 ( O 1 , M 11 ) ( O 14 , M 8 ) ( O 15 , M 13 ) ( O 16 , M 13 ) ( O 10 , M 8 ) ( O 11 , M 14 ) ( O 12 , M 6 ) ( O 13 , M 6 ) ( O 17 , M 3 ) ( O 18 , M 7 )
6 ( O 15 , M 14 ) ( O 16 , M 8 ) ( O 17 , M 12 ) ( O 5 , M 3 ) ( O 6 , M 3 ) ( O 7 , M 9 ) ( O 18 , M 9 ) ( O 19 , M 12 ) ( O 10 , M 8 ) ( O 1 , M 11 ) ( O 20 , M 11 ) ( O 9 , M 11 ) ( O 14 , M 7 ) ( O 2 , M 3 ) ( O 3 , M 5 ) ( O 4 , M 5 )
7 ( O 1 , M 7 ) ( O 19 , M 2 ) ( O 7 , M 3 ) ( O 8 , M 10 ) ( O 9 , M 6 ) ( O 20 , M 6 ) ( O 10 , M 6 ) ( O 11 , M 9 ) ( O 21 , M 10 ) ( O 12 , M 8 ) ( O 13 , M 13 ) ( O 18 , M 13 )
8 ( O 1 , M 4 ) ( O 12 , M 3 ) ( O 15 , M 10 ) ( O 17 , M 10 ) ( O 13 , M 10 ) ( O 18 , M 7 ) ( O 20 , M 3 ) ( O 14 , M 14 ) ( O 16 , M 14 )
9 ( O 1 , M 12 ) ( O 2 , M 7 ) ( O 16 , M 2 ) ( O 13 , M 2 ) ( O 18 , M 2 ) ( O 4 , M 3 ) ( O 19 , M 13 ) ( O 7 , M 13 ) ( O 10 , M 8 ) ( O 11 , M 15 ) ( O 5 , M 6 ) ( O 6 , M 6 ) ( O 12 , M 6 ) ( O 20 , M 4 ) ( O 14 , M 5 ) ( O 15 , M 5 )
10 ( O 1 , M 1 ) ( O 3 , M 1 ) ( O 4 , M 13 ) ( O 5 , M 7 ) ( O 6 , M 9 ) ( O 9 , M 9 ) ( O 10 , M 3 ) ( O 11 , M 14 ) ( O 2 , M 15 )
11 ( O 1 , M 6 ) ( O 6 , M 2 ) ( O 8 , M 2 ) ( O 7 , M 1 ) ( O 2 , M 8 ) ( O 3 , M 13 ) ( O 9 , M 13 ) ( O 4 , M 6 ) ( O 5 , M 6 )
12 ( O 1 , M 11 ) ( O 13 , M 3 ) ( O 8 , M 3 ) ( O 9 , M 6 ) ( O 14 , M 8 ) ( O 2 , M 15 ) ( O 5 , M 15 ) ( O 3 , M 5 ) ( O 10 , M 4 ) ( O 6 , M 2 ) ( O 11 , M 7 ) ( O 12 , M 10 ) ( O 15 , M 9 ) ( O 18 , M 9 ) ( O 4 , M 12 ) ( O 7 , M 11 )
13 ( O 1 , M 12 ) ( O 12 , M 6 ) ( O 17 , M 8 ) ( O 13 , M 10 ) ( O 18 , M 2 ) ( O 14 , M 6 ) ( O 15 , M 6 ) ( O 16 , M 14 )
14 ( O 9 , M 12 ) ( O 1 , M 9 ) ( O 4 , M 3 ) ( O 10 , M 9 ) ( O 5 , M 4 ) ( O 6 , M 4 ) ( O 11 , M 4 ) ( O 8 , M 2 ) ( O 12 , M 10 ) ( O 13 , M 10 )
15 ( O 1 , M 11 ) ( O 3 , M 6 ) ( O 4 , M 7 ) ( O 12 , M 7 ) ( O 14 , M 3 ) ( O 7 , M 9 ) ( O 8 , M 8 ) ( O 9 , M 8 ) ( O 11 , M 8 ) ( O 13 , M 1 ) ( O 15 , M 1 ) ( O 5 , M 2 ) ( O 6 , M 5 )
16 ( O 18 , M 11 ) ( O 1 , M 11 ) ( O 2 , M 7 ) ( O 3 , M 3 ) ( O 4 , M 7 ) ( O 20 , M 14 ) ( O 21 , M 14 ) ( O 5 , M 1 )
17 ( O 1 , M 10 ) ( O 2 , M 10 ) ( O 18 , M 2 ) ( O 3 , M 4 ) ( O 13 , M 6 ) ( O 19 , M 6 ) ( O 4 , M 12 ) ( O 20 , M 9 ) ( O 14 , M 3 ) ( O 17 , M 2 ) ( O 5 , M 7 ) ( O 22 , M 11 ) ( O 7 , M 11 ) ( O 12 , M 8 )
18 ( O 7 , M 3 ) ( O 1 , M 3 ) ( O 4 , M 1 ) ( O 12 , M 13 ) ( O 8 , M 13 ) ( O 10 , M 3 ) ( O 13 , M 9 ) ( O 5 , M 9 ) ( O 16 , M 4 ) ( O 6 , M 8 ) ( O 17 , M 10 ) ( O 11 , M 10 )

Share and Cite

MDPI and ACS Style

Zhang, X.; Guo, P.; Zhang, H.; Yao, J. Hybrid Particle Swarm Optimization Algorithm for Process Planning. Mathematics 2020, 8, 1745. https://doi.org/10.3390/math8101745

AMA Style

Zhang X, Guo P, Zhang H, Yao J. Hybrid Particle Swarm Optimization Algorithm for Process Planning. Mathematics. 2020; 8(10):1745. https://doi.org/10.3390/math8101745

Chicago/Turabian Style

Zhang, Xu, Pan Guo, Hua Zhang, and Jin Yao. 2020. "Hybrid Particle Swarm Optimization Algorithm for Process Planning" Mathematics 8, no. 10: 1745. https://doi.org/10.3390/math8101745

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop