Abstract
Computer-aided process planning is an important component for linking design and manufacturing in computer-aided design/computer-aided process planning/computer-aided manufacturing integrated manufacturing systems. Operation sequencing in computer-aided process planning is one of the most essential tasks. To solve the problem and acquire optimal process plans, operation sequencing is modeled as a combinatorial optimization problem with various constraints, and a novel modified ant colony optimization algorithm is developed to solve it. To ensure the feasibility of process plans, constrained relationships considered among operations are classified into two categories called precedence constraint relationships and clustering constraint relationships. Operation precedence graph based on constrained relationships is formed to get visual representation. To ensure good manufacturing economy, in the mathematical model for optimization, total weighted production cost or weighted resource transformation time related to machine changes, setup changes, tool changes, machines and tools is utilized as the evaluation criterion. To avoid local optimum and enhance global search ability, adaptive updating method and local search mechanism are embedded into the optimization algorithm. Case studies of three parts are carried out to demonstrate the feasibility and robustness of the modified ant colony optimization algorithm, and some comparisons between the modified ant colony optimization algorithm and previous genetic algorithm, simulated annealing algorithm, tabu search and particle swarm optimization algorithm are discussed. The results show that the modified ant colony optimization algorithm performs well in the operation sequencing problem.
Keywords
Introduction
Computer-aided process planning (CAPP) is the bridge connecting computer-aided design (CAD) with computer-aided manufacturing (CAM). Process planning determines how to produce the designed products using available manufacturing resources economically and thus plays a major part in determining the cost of products and affects all factory activities. 1 In order to obtain the process planning, the process planner derives some appropriate information from a design model such as the design profile, accuracy, surface roughness, material, and all of those information are defined as manufacturing features.2,3 Based on the information, an instruction set should be prepared in the form of process plan, which includes the sequence, machines as well as tools to be used; cutting conditions for the individual processes and so on.4–6 For a part with complex structures and numerous features, process planning is well known as a complicated decision-making process involving selecting machining operations for every feature and sequencing the aggregate of all the operations considering precedence constraints, choosing available manufacturing resources, determining setup plans, machining parameters and so on.7–9 All the activities should be considered comprehensively to get an optimal plan so that total machining time or production cost could be sharply decreased and manufacturing efficiency could be greatly increased.
In the past few decades, two basic categories of CAPP called variant and generative have received a lot of attention. The basic principle of variant systems is to take advantage of the similarities between parts. Process planning of a new part is conducted by retrieving an existing plan belonging to a similar part stored in the system and then making some modifications. Generative systems are creating process automatically for a new part based on process knowledge databases and decision logics. As there are disadvantages in generating a plan for new features and influencing the process quality due to knowledge background in variant system,10–12 a lot of generative systems have been developed to overcome these defects. In any CAPP system, selection of the operation sequence is a vital activity to make the machining economical, and in this article, we deal with process planning problem in generative systems.
To solve the problem of operation sequencing, lots of optimization algorithms have been developed and widely applied to determine the optimal sequences with good manufacturing practice and consistency of the desired functional specifications. These algorithms can be categorized as genetic algorithm (GA),8,13–17 tabu search (TS),18,19 simulated annealing (SA),20–22 particle swarm optimization (PSO)23,24 and ant colony optimization (ACO).25,26
Kafashi 13 presented a generative system and GA approach to plan the given part. In their studies, the optimization methodology analysis constraints were tool approach direction (TAD), tolerance relation between features and feature precedence relations, and machining cost was used to measure the quality of a process plan quantitatively. Huang et al. 8 developed a hybrid graph and GA approach for process planning optimization. In their research, activities such as sequencing operations, selecting manufacturing resources and determining setup plans were considered to achieve the global optimal objective, and the total production cost was the evaluation criterion. Hua et al. 14 proposed a GA-based synthesis approach for machining scheme selection and operation sequencing optimization, and the fuzzy logic neural network, which contained the membership function of each machining operation to batch size, was presented to determine the priorities of alternative machining operations. Salehi and Tavakkoli-Moghaddam 15 generated the feasible sequences of operations based on the analysis of constraints, and using a GA, the optimized operation sequence and the optimized selection of the machine, cutting tool and TAD for each operation were obtained. Li et al. 16 developed a hybrid GA and SA, and in their research, the evaluation criterion of machining cost came from the combined strengths of machine costs (MCs), cutting tool costs (TCs), machine changes, tool changes and setup changes. Reddy 17 used GAs as a global search technique for a quick identification of optimal or near-optimal operation sequences in a dynamic planning environment. In the study, the sum of relative costs caused by machining parameter change, tool change, setup change and machine change was considered as the evaluation criterion. A precedence cost matrix was generated then for that application.
Lian et al. 18 proposed an optimization strategy of multi-dimensional tabu search (MDTS) algorithm for process planning; their research considered four dimensions of a process plan in parallel, namely, operation sequence, machine sequence, tool sequence and TAD sequence, and the total weighted cost was used as the evaluation criterion. Li et al. 19 took the problem as a constraint-based optimization problem; a TS-based approach was proposed to solve it effectively; in the optimization model, costs of the utilized machines and cutting tools, machine changes, tool changes, setups and departure from good manufacturing practices (penalty function) were the optimization evaluation criteria. Pandey et al. 20 attempted to address the sequencing problem to an extent by developing operation sequencing rating index, which was the weighted sum of four indices: setup changeover index, tool changeover index, motion continuity index and loose precedence index. And the SA-based algorithm has been employed to determine the optimal or near-optimal operation sequence. Nallakumarasamy et al.21,22 developed an intelligent CAPP system, and feasible sequences of operations are generated based on the precedence cost matrix and reward–penalty matrix using SA technique or super-hybrid GAs and SA technique. They considered relative costs caused by machine change, tool change, setup change and machining parameter change.
Guo et al.23,24 developed the problem as a combinatorial optimization, and a modern evolutionary algorithm called the PSO algorithm has been employed and modified to solve it effectively, and the total cost or processing time was the evaluation criterion. Krishna and Rao 25 presented the ant colony algorithm as a global search technique for the quick identification of the optimal operation sequence, and cost matrix composed of the various attributes such as machining parameter change, cutting tool change, setup change and machine tool change was taken into consideration. Liu et al. 26 used ACO algorithm to deal with process planning; they took the problem as a Traveling Salesman Problem (TSP) problem; the costs for machining processes (including MC and TC) were converted to the weights of the cities; the costs for preparing processes (including machine changing, tool changing and setup changing) were converted to the “distance” between cities.
By reviewing the literatures listed above, a conclusion can be drawn: in acquiring optimal operation sequence by different algorithms, an operation with alternative machines, TADs and cutting tools should be treated as a basic element, and the production cost is considered frequently as the evaluation criteria. However, these can bring some problems:
An operation along with its accessories is an element; the search space will be very large, and the proposed algorithms may not find optimal solutions effectively. Meanwhile, the initial population of some algorithms such as GA and PSO is random and traditional ACO may come across local optimum, so it is necessary to design some operators to get global optimal solution.
Most of the proposed methods take the production costs related to machines, setups and cutting tools as evaluation criteria, so that the presupposition of optimizing the process is to get cost index or cost matrix. However, in a limited machining environment when all these are uncertain, some operators should be done to meet the practical workshop situations.
The main purpose of this study is to propose a method to solve the problems, which can be used to get feasible optimal solutions in operation sequencing. A modified ACO algorithm is used to get global optimal result and adapt to uncertain complex manufacturing environment. This article is organized into five sections. In the next section, the operation sequencing problem is represented, containing the analysis of constrained relationships among different operations, precedence relationships modeling and expression as well as the mathematical model for operation sequencing optimization. In the third section, details of the proposed sequencing algorithm based on modified ACO are described and a flowchart based on the algorithm is illustrated for application guidance. In the fourth section, three cases of getting optimal sequences are demonstrated and some comparisons between the results of the proposed algorithm and GA, SA, TS and PSO algorithms are presented. Finally, conclusions and further recommendations are pointed out in the last section.
Operation sequencing problem representation
Given a CAD part, to do process planning, the product geometric and manufacturing process information should be integrated by manufacturing features such as planes, pockets, holes and steps. Following that, the selection of machining operations, machines, TADs, cutting tools and cutting parameters needs to be done. Figure 1 shows representation of process planning of a part with m features. Each feature can be manufactured by one or more machining operations (n operations in total for machining the part). Each operation can be executed by several alternative plans because different candidates of machines, cutting tools and TADs can be chosen for this operation. The combination of different candidates for an operation can be a set; if opi is the ith operation of the part, the combination plans belonging to opi can be described as
where opij is the jth plan for opi, 0 ⩽ j ⩽ ni and ni is the number of combination plans of opi. For operation opi, there are ni plans to be selected in real machining, but only one plan opij of the alternatives can be selected, and the machine, cutting tool and TAD of opij can be defined as
where M ij is the machine selected by opij, T ij is the cutting tool selected by opij and TAD ij is the TAD selected by opij.

Representation of process planning.
From the analysis above, process planning for a part is a comprehensive and combinatorial problem. In this research, a process plan for a part is built up based on the following aspects:
The optimized sequence of the operations for the part.
The optimized selection of the machine, TAD and cutting tool for every operation.
The two aspects should be performed simultaneously.
To use the proposed ACO algorithm, as shown in Figure 1, each operation is defined as a set of applicable machines, TADs and tools, by which the operation can be performed; the details are listed in Table 1.
Class definition of an operation.
TAD: tool approach direction.
Constrained relationships analysis in operation sequencing
Constrained relationships first should be precedence constraint relationships. A feasible operation sequence must comply with precedence constraints that come from geometrical and technological considerations.23,24,27 The constraints imply precedence relationships to determine in what order to perform a set of selected operations. 8 In this research, the precedence constraints between operations are classified into eight types.
Datum constraint relationship
Datum faces as reference planes should be machined primarily to locate a part. If there are multiple finishing datums, they should be arranged based on the principles such as datum transformation sequence and gradual improvement of the machining accuracy.
Primary and secondary constraint relationship
It is suitable for the main features of the part such as faces and holes to be machined first in roughing and semi-finishing stage. Generally, minor features such as chamfer and keyway can be arranged between semi-finishing and finishing stages of main features.
Face and hole constraint relationship
Face should be machined prior to hole for some parts because the face can easily be the reference plane for machining the hole.
Processing stage constraint relationship
For the parts with high technical requirements, the surfaces should be machined from rough machining, semi-finishing to finish machining in order to achieve high machining quality.
Feature priorities constraint relationship
Feature priorities constraint relationship (FPCR) restrains the machining sequence of features. Child features such as some grooves and chamfers should be machined after parent features. When a face is not perpendicular to the axis of the hole, the hole feature should be machined first for convenient location.
Thin-wall constraint relationship
For some thin-wall components, to control deformation and ensure machining accuracy, thin-wall constraint relationship (TWCR) should be considered.
Fixed order constraint relationship of machining operation
Fixed order constraint relationships (FOCR) is usually determined by the fixed order of operations. For example, a typical sequence of machining a hole is drilling-boring and reaming. 24
Material-removal constraint relationship
A material-removal constraint occurs when different material-removal sequences of features affect the cost or the quality of machining. For example, a step should be machined prior to the hole on it for achieving high machining efficiency (milling is faster than drilling) and surface quality.19,24 In addition to precedence constraint relationships, to ensure machining accuracy and improve processing efficiency of parts, the process plan also needs some clustering constraints as follows:
Process centralization and decentralization constraint relationship
The process centralization and decentralization constraint relationship (PCDCR) influences the complexity of the process and affects resource utilization of machines, tools and setups in the machining. For the workpiece with large size and weight, the process should be arranged centrally considering difficult installation and transportation. Under PCDCR, processing activities under same resources should be centralized together to reduce the cost.
Tool approach direction constraint relationship
TAD is an important parameter to describe features, which directly influences the clamping results. TAD is a direction that cutting tools can reach without interference. For three-axis machine, there are six TADs: x, −x, y, −y, z and −z. In some cases, features such as slopes and inclined holes can define new TADs based on actual demand. When operations have not only one TAD to perform it, in operation sequencing, according to the type of the machines and the impact of TAD on the clamping, the operations with same TAD can be grouped together for good manufacturability.
Same datum constraint relationship
For two features with position accuracy requirements, if they both adopt another surface as the datum reference, to ensure higher position accuracy, they should be machined in a same setup. In operation sequencing, according to the datum relationship among features, operations with same datum should be arranged together and be machined in same setup.
In conclusion, precedence constraints are mandatory and must be met; clustering constraints generally do not need to be satisfied absolutely but violation of this kind of constraint will cost more and the concrete implementation can be guaranteed by the designed optimization goal. The mapping relations between an operation and constrained relationships containing precedence constraints and clustering constraints affecting operation sequencing are shown in Figure 2. For example, in determining primary and secondary constraint relationship, the attributes of feature such as accuracy class and surface roughness should be considered. In determining same datum constraint relationship, the attributes of feature such as feature type and datum information should be considered. When determining sequences between two operations, constraint relationships are converting into the corresponding attribute information. And by comparing with the two relevant attributes, the relationship between operations can be determined.

Mapping relations between an operation and constrained relationships.
Precedence relationships modeling and expression
For precedence relations between operations, the directed graph is used for visual representation, which is described as operation precedence graph (OPG).
Definition 1
OPG is a directed graph; Gopg = (OP, A, OPT); OP = {op1,op2,…, opn} is a set of nodes between different operations of parts;
where n is the total number of operations of the part;
Following the characteristics of
Definition 2
The sum of elements in each row of the matrix is defined as the number of constraint condition, which can be expressed as
Definition 3
The sum of elements in each column of the matrix is defined as the number of restrained condition, which can be expressed as
From equations (4) and (5), we can get the following conclusions:
For operation opi, if
For operation opi, if
For operation opi, if
In all, OPG and precedence relation matrix are used to describe the precedence relations between opi and opi′; if opi is prior to opi′, then for
Mathematical model for operation sequencing optimization
In operation sequencing, the machining sequences should be adjusted as far as possible not only to meet the constraints of precedence relations but also to meet the clustering constraints. In this article, production cost is used to measure the quality of a process plan. Production cost is composed of MCs, TCs, machine change costs (MCCs), setup change costs (SCCs) and tool change costs (TCCs).8,19,24 If opij, opi′j′ (i ≠ i′) are the choices of combination plans belonging to two adjacent operations opi, opi′ respectively, then the costs from machine changes, setup changes, tool changes, machines and tools are defined as follows.
MCC
When the machines for executing opij, opi′j′ are different, which means the machine change between opi and opi′ has happened, MCC between opi and opi′ can be calculated as
where M
ij
_ID|opi, Mi′j′_ID|opi′ represent machine ID to perform two adjacent operations, Cmiji′j′ is the number of machine changes between opi and opi′, MCCI is the MCC index and
SCC
Setup changes are related to TADs and machines; when any one of TADs or machines for executing opij, opi′j′ is changed, which means the setup change between opi and opi′ has happened, SCC between opi and opi′ can be calculated as
where TAD
ij
_ID|opi, TAD
ij
_ID|opi′ represent TAD ID of two adjacent operations, Csiji′j′ is the number of setup change between opi and opi′, SCCI is the SCC index and
TCC
Tool changes are related to tools and machines; when any one of tools or machines for executing opij, opi′j′ is changed, which means the tool change between opi and opi′ has happened, TCC between opi and opi′ can be calculated as
where T
ij
_ID|opi, T
ij
_ID|opi′ represent tool ID of two adjacent operations, Ctiji′j′ is the number of setup changes between opi and opi′, TCCI is the TCC index and
MC
M ij is the machine selected to perform the opij, so MC of opi can be calculated as
where
TC
T ij is the cutting tool selected to perform the opij, so TC of opi can be calculated as
where
Based on the definition above, the mathematical model for operation sequencing optimization is constructed, and the objective function in this article is defined as
In order to simplify the description, the objective function can be defined as
where TWPC represents the total weighted production cost; Cm, Cs and Ct represent the total number of machine changes, setup changes and tool changes, respectively; TMCC, TSCC, TTCC, MC and TC represent total machine change cost, total setup change cost, total tool change cost, machine cost and tool cost, respectively; w1–w5 are weights valued 0 or 1 corresponding to TMCC, TSCC, TTCC, MC and TC; they are defined as selectivity coefficients for users to decide the cost factors to be considered. When wj(1 ⩽ j ⩽ 5) is set as 0, it means the cost factor j is not considered, or else the factor should be a prior consideration when wj is 1.
The objective function is subject to the following restrictions:
There are n operations to be executed in the whole process of a part
Only one plan is selected for an operation from its combination plans
There are n − 1 change costs between n operations added into TWPC
Each operation has at most one adjacent operation prior to it in final process result, and each operation has at most one adjacent operation after it in final process result
When
In fact, considering that the number of machine changes, setup changes and tool changes can not only influence the cost but also affect the machining time, so in the limited situations especially when the cost index is uncertain, the total number of machine changes, setup changes and tool changes can be the main factors, then w1 = w2 = w3 = 1, w4 = w5 = 0; MCCI, SCCI and TCCI now become the weights corresponding to the total number of machine changes, setup changes and tool changes, respectively; thus, the TWPC is changed to weighted resource transformation time (WRTT), and the objective function can be defined as
where MCCI + SCCI + TCCI = 1.
Operation sequencing algorithm based on modified ACO
ACO proposed by Dorigo et al. 28 is an algorithm with strong parallelism, which is a combination of distributed computing, positive feedback mechanism and greedy search algorithms. One of the underlying ideas of ACO is to use the equivalent of the pheromone trail used by the real ants as the medium for cooperation and communication among a colony of artificial ants. 29 It has been applied successfully to solve different combinatorial problems.25,26,30–33 It has powerful ability of global searching for the optimal solution, but at the same time it can easily fall into local optimal solution and has poor local search ability, so in this article the traditional ant colony algorithm is improved to adapt to the operation sequencing.
According to the description of operation sequencing problems, to apply the ACO algorithm in the process plan optimization problem, some assumptions have to be done first.
The trajectory connecting the ant from the nest to the food source is a feasible process to the part, and the movement order of each ant should meet the precedence relations. The task of each ant is to produce a feasible process by adding a new operation to the current one at a time until all operations are selected.
Each ant from the nest corresponds to the first selected operations in OPG, and for these operations,
The length of every trajectory from the ant’s nest to food source corresponds to the TWPC or resource transformation time.
Tabu criteria of ACO
The ant needs to determine whether related operations already exist in tabu list before its movement, and the operations belong to those which have already been processed. In each iteration, every operation can just be visited once and the moving process must comply with OPG and precedence relation matrix P. If tabuk is the tabu list of ant k, after transition of ant k from one operation to another, the tabuk will be updated, and the new visited operation should be deposited to its own tabu list; Figure 3(a)–(g) shows a sample of ant transition and update of tabu list. At the same time, the precedence relation constraint matrix is updated, and the corresponding row elements pii′(1 ⩽ j ⩽ n) are set to 0, which means the new visited operation has been executed and do not restrain the remaining operations.

Transition of ant k and update of tabuk sample: (a) tabu list update after the ant passes 1st operation, (b) tabu list update after the ant passes 2st operaion, (c) tabu list update after the ant passes 3rd operation, (d) tabu list update after the ant passes 6th operation, (e) tabu list update after the ant passes 5th operation, (f) tabu list update after the ant passes 4th operation and (g) tabu list update after the ant passes all operations.
Priorities of operation selection
As an ant chooses the next operation, the ant will iterate over all the alternative operations being filtered by tabu criteria. Before the selection, priorities between operations related to machines, setups and tools should be defined first; in the article,
The smaller the
Modified transition probability
After the ant judges its tabu list and pheromone distribution, it will transfer to the next operation with a certain probability known as transition probability. Modified transition probability is based on pseudorandom proportional rules, and the transition probability of ant k movement from opij to opi′j′ is expressed as
where q is a random variable evenly distributed in the interval [0, 1] and
where Ek is an operation set that ant k can visit and
In the modified ant colony algorithm, adjustment of q0 can prompt the algorithm to explore new paths and make the algorithm search areas around optimal path so far, so modified transition probability is a much more positive selection rule, which can have better development and utilization of the experience in ant searching.
Modified adaptive method of updating pheromone
All the artificial ants in ant colony algorithm have certain memories, and the residual pheromone value in the path will be evaporated gradually during iterations. In the modified ant colony algorithm, only an ant (the optimal ant up to now) is allowed to release the pheromone after each iteration, and global updating rule is as follows
where
In addition to the global pheromone updating rule, the modified algorithm also adopts a kind of local updating rule. After each ant passes one operation, the pheromone will be updated by applying the rule
where
Local search mechanism
During iterations, if the operation with the most transition probability is always selected, the algorithm will lose randomness and be caught into local optimum. To solve this problem, many ant systems are hybrid algorithms employing some kind of local optimization techniques such as 2-opt technique, TS and SA. 25 In this research, local search mechanism of the roulette wheel approach (RWA) is adopted to select a machine, TAD and tool for each operation; the process is composed of the following steps:
Step 1: generate a random number r,
Step 2: if sp ⩾ r, then turn to Step 4.
Step 3: if k = k + 1, sp = sp + s, then turn to Step 2.
Step 4: output the result and stop search.
Through RWA, M ij , T ij and TAD ij for executing opi can be selected, and then a set of operations will be exported to the ACO for operation sequencing optimization.
Flowchart based on the modified ant colony algorithm
Using the modified ant colony algorithm based on precedence constraint matrix and evaluation criterions, the optimal solution can be selected from different combination schemes; a flowchart of proposed approach based on modified ant colony algorithm is shown in Figure 4; the specific steps of the algorithm are as follows:
Step 1: according to the constraints among operations, construct and input precedence relation matrix P; information of operations such as M_list, TAD_list and T_list are defined in Table 1. And set the number of ants m, initialize the number of iterations N = 0 and set the maximum number of iterations Nmax, tabuk, α, β, q0, ρ, ξ and so on. The initial tabu list tabuk is set null.
Step 2: determine the initial operations according to constraint matrix and put the ants into the positions satisfying
Step 3: determine the alternative operations that the ants can move according to their tabu lists and precedence relation matrix P. Then calculate transition probability based on the pseudorandom proportional rule defined in equation (22) and select the operations including machines, TADs and tools by the local search mechanism of RWA and update tabu list.
Step 4: update local pheromone by applying the rule defined in equation (25).
Step 5: following the movement of the ants among operations, judge the tabu list; if it is full, turn to Step 6, or else turn to Step 3.
Step 6: update local pheromone of all paths and update global pheromone of the current optimal result by equation (24).
Step 7: calculate the TWPC or WRTT according to equations (6)–(20) and then update the current optimal sequencing result.
Step 8: judge termination conditions; if satisfied, output global optimal process plan, or else, release tabu list and turn to Step 3.

Flowchart of modified ant colony algorithm.
Case studies
To illustrate the proposed algorithm, three cases will be conducted. In the first case, the process plan is in a limited machining environment, the cost index is uncertain, the key parameters of the modified ACO are determined and the results between the modified ACO and traditional ACO are compared. The second and third cases are used to compare this method with GA, SA, PSO and TS to demonstrate the validity.
Case study 1
The first part (part 1, shown in Figure 5(a)) consists of 15 manufacturing features, which can be machined with 23 operations. The information of features, operations and applicable machines, TADs and tools are shown in Table 2; considering that machine tables can be rotated in the existing milling environment of the part, features of f6, f8, f9 and f10 can equivalently share the same TAD −a, and features of f3 and f4 can equivalently share the TAD −b. Precedence relations between the operations are shown in Table 3, and OPG of the part based on the precedence relations’ description in Table 3 is shown in Figure 5(b). Because it is in a limited machining environment, WRTT is the evaluation criterion; then w1 = w2 = w3 = 1, w4 = w5 = 0; to do operation sequencing, if all the machines and tools are available, we set MCCI = 0.5, SCI = 0.3 and TCCI = 0.2.

Case information and OPG of part 1: (a) a sample part with 15 machining features and (b) OPG of the part.
Features, operations and candidates’ information of part 1.
TAD: tool approach direction.
Precedence relations between operations of part 1.
To determine key parameters of the modified ACO and verify the effectiveness of the proposed approach, the experiments are designed as follows.
Comparison of the two different approaches
In operation sequencing, the modified and traditional ACO are used, respectively, and the local search mechanism of them is RWA. Figure 6(a) shows the relations between running-time and execution-time/WRTT; when running 10 times in the same parameter settings, the execution times do not appear to be much different, but WRTT results show that the modified ACO has good performance. Meanwhile, Figure 6(b) shows the similar conclusion.

Comparisons between modified and traditional ACO: (a) relations between running-time and execution-time/WRTT and (b) relations between iterations and WRTT.
How q0, ξ and ρ influence the results
In the modified ACO, q0, ξ and ρ play an important role for high-performance solution. To study their influences, other parameters are keep constant; set

Results in different parameter settings: (a)
Obtaining the optimal process plans
The modified ACO has better performance than the traditional ACO; in the situation
Two optimal process plans of part 1.
TAD: tool approach direction; WRTT: weighted resource transformation time.
Case study 2
The second part (part 2, shown in Figure 8(a)) taken from Guo et al. 24 consists of 11 manufacturing features, which can be machined with 14 operations. The relevant information of features, operations and applicable machines, TADs and tools are shown in Tables 5 and 6; precedence relations between the operations are shown in Table 7 and OPG of the part based on precedence relation description in Table 7 is shown in Figure 8(b). In this case, all the machines and tools are available, and w1 = w2 = w3 = w4 = w5 = 1; TWPC is the evaluation criterion.

Case information and OPG of part 2: (a) a sample part with 11 machining features and (b) OPG of the part.
Features, operations and candidates’ information of part 2.
TAD: tool approach direction.
Available machining resources and costs for part 2.
MCI: machine cost index; CNC: computer numerical control; TCI: tool cost index; MCCI: machine change cost index; SCCI: setup change cost index; TCCI: tool change cost index.
Precedence relations between operations of part 2.
In this case, the program will be repeatedly run for 10 times. Table 8 shows the optimal plan of part 2 with TWPC 1357, and the optimal process plan in the same condition for the same part reported in the work of Guo et al. 24 is with the total production cost 1361. Table 9 shows the results’ comparison of the modified ACO, GA, SA and PSO of case 2; it can be seen that the proposed ACO is better than GA, SA and PSO in both best and mean TWPC.
An optimal process plan of part 2.
TAD: tool approach direction; TMCC: total machine change cost; TSCC: total setup change cost; TTCC: total tool change cost; MC: machine cost; TC: tool cost; TWPC: total weighted production cost.
Result comparison of modified ACO, GA, SA and PSO of case 2.
ACO: ant colony optimization; GA: genetic algorithm; SA: simulated annealing; PSO: particle swarm optimization; TWPC: total weighted production cost.
Case study 3
To test the robustness of the algorithm, case study 3 (part 3, shown in Figure 9(a)) is taken from Guo et al. 24 The part consists of 14 manufacturing features, which can be machined with 20 operations. The relevant information of features, operations and applicable machines, TADs and tools are shown in Tables 10 and 11; precedence relations between operations are shown in Table 12, and OPG of the part based on precedence relation description in Table 12 is shown in Figure 9(b). In this case, the results under two different conditions are studied: (1) all the machines and tools are available, w1 = w2 = w3 = w4 = w5 = 1 and TWPC is the evaluation criterion. (2) All the machines and tools are available, and the MC, TSCC and TMCC are the main factors; w3 = w5 = 0, w1 = w2 = w4 = 1; TWPC is the evaluation criterion.

Case information and OPG of part 3: (a) a sample part with 14 machining features and (b) OPG of the part.
Features, operations and candidates’ information of part 3.
TAD: tool approach direction.
Available machining resources and costs for part 3.
MCI: machine cost index; CNC: computer numerical control; TCI: tool cost index; MCCI: machine change cost index; SCCI: setup change cost index; TCCI: tool change cost index.
Precedence relations between operations of part 3.
In condition 1, the program will be repeatedly run 10 times. Table 13 shows two optimal plans of part 3 with TWPC 2530, and the optimal process plan in the same condition for the same part reported in the work of Guo et al. 24 with the total production cost 2535 is shown in Table 14. Table 15 shows an optimal plan in condition 2 of part 3 with TWPC 2090, and an optimal process plan in the same condition for the same part reported in the work of Huang et al. 8 with the total production cost 2120 is shown in Table 16. It can be seen that the proposed ACO can find better solutions.
Two optimal process plans of part 3 in condition 1.
TAD: tool approach direction; TMCC: total machine change cost; TSCC: total setup change cost; TTCC: total tool change cost; MC: machine cost; TC: tool cost; TWPC: total weighted production cost.
Optimal process plan of part 3 in condition 1 reported in Guo et al. 24
TAD: tool approach direction; TMCC: total machine change cost; TSCC: total setup change cost; TTCC: total tool change cost; MC: machine cost; TC: tool cost; TWPC: total weighted production cost.
Optimal process plan of part 3 in condition 2.
TAD: tool approach direction; TMCC: total machine change cost; TSCC: total setup change cost; MC: machine cost; TWPC: total weighted production cost.
Optimal process plan of part 3 in condition 2 reported in Huang et al. 8
TAD: tool approach direction; TMCC: total machine change cost; TSCC: total setup change cost; MC: machine cost; TWPC: total weighted production cost.
Under conditions (1) and (2), Table 17 lists the best and mean TWPC achieved from 10 trials for part 3 by modified ACO, GA, SA, PSO and TS. It can be seen that the optimal process plan based on the modified ACO obtains lower best and mean TWPC than the results acquired by GA, SA, PSO and TS reported in the work of Li et al. 19 and Guo et al. 24 Figure 10 shows optimization process based on 4000 iterations in condition 1 of the GA, SA, PSO and modified ACO for part 3; in the initial stage of the algorithms, the TWPC of GA falls faster than the SA, PSO and modified ACO. In the middle stage, GA converges while the TWPC of SA, PSO and modified ACO continue declining to get better solutions. And in the last stage, the modified ACO gets better result, which means the modified ACO are more robust to get optimal process plan.
Result comparison of modified ACO, GA, SA, PSO and TS of case 3.
ACO: ant colony optimization; GA: genetic algorithm; SA: simulated annealing; PSO: particle swarm optimization; TS: tabu search; TWPC: total weighted production cost.

Comparisons of the PSO, GA, SA and modified ACO for part 3.
Conclusion
In this article, an ACO-based approach for solving operation sequencing problem in CAPP has been developed. In order to obtain the optimal process plans, machining resources, constrained relationships among operations, setup plans determining and operation sequencing have been considered. The advantages of the proposed approach can be summarized as follows: (1) the approach can always acquire optimal or near-optimal process plans based on the TWPC. Through comparisons with other four algorithms, the proposed algorithm can get better results, and advantages of the approach are highlighted. (2) In condition of a limited machining environment especially when the cost index is uncertain, TWPC can be changed to WRTT, which can provide flexible optimization selection in practical workshop.
This article optimizes the sequences of operations limited to the considerations of machine changes, setup changes, tool changes, machines and tools. In the future, more research considering the optimization of the cutting parameters for each operation should be carried out in operation sequencing optimization. Meanwhile, the results of the proposed algorithm are related to key parameter settings of modified ACO, so at this point the conclusions are limited by computational experience, and more theoretical analysis should to be made. Regarding more complex parts, the features and constrained relationships are more complicated, which will greatly increase search space and computation time. Therefore, it should also be included in the future work to employ more efficient algorithm combined with ACO to improve operational efficiency and performance for more complex problems.
Footnotes
Declaration of Conflicting Interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship and/or publication of this article.
Funding
The author(s) disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This work was supported by the National Hi-Tech R&D Program (863 Program) (Grant 2015AA042101) and Beijing Municipal Education Commission (build a project). The authors would like to express their appreciation to the agency.
