Professional Documents
Culture Documents
Abstract
In a distributed manufacturing environment, factories possessing various machines and tools at different geographical locations
are often combined to achieve the highest production efciency. When jobs requiring several operations are received, feasible
process plans are produced by those factories available. These process plans may vary due to different resource constraints.
Therefore, obtaining an optimal or near-optimal process plan becomes important. This paper presents a genetic algorithm (GA),
which, according to prescribed criteria such as minimizing processing time, could swiftly search for the optimal process plan for a
single manufacturing system as well as distributed manufacturing systems. By applying the GA, the computer-aided process
planning (CAPP) system can generate optimal or near-optimal process plans based on the criterion chosen. Case studies are included
to demonstrate the feasibility and robustness of the approach. The main contribution of this work lies with the application of GA to
CAPP in both a single and distributed manufacturing system. It is shown from the case study that the approach is comparative or
better than the conventional single-factory CAPP.
r 2005 Elsevier Ltd. All rights reserved.
Keywords: Computer-aided process planning; Distributed manufacturing system; Multiple factories; Genetic algorithm
0736-5845/$ - see front matter r 2005 Elsevier Ltd. All rights reserved.
doi:10.1016/j.rcim.2004.12.003
ARTICLE IN PRESS
L. Li et al. / Robotics and Computer-Integrated Manufacturing 21 (2005) 568578 569
distributed manufacturing environment, is the main tools are at different geographical locations, and
objective of the present study. different manufacturing capabilities are often selected
Manufacturing systems are complex in nature and to achieve the highest production efciency. When jobs
difcult to optimize using conventional techniques. requiring several operations are received, feasible
Evolutionary algorithms, which mimic living organisms process plans are produced by available factories
in achieving optimal survival solutions, can often out- according to the precedence relationships of those
perform conventional optimization methods. In the past operations. Manufacturing operations can be performed
two decades, GA has been widely applied to solve by different machines and tools located at different
optimization problems. The rst application of GA goes locations. The nal optimal or near-optimal process
back to the 1960s, but only by the end of the 1980s, due plan will emerge after comparison of all the feasible
largely to Goldbergs [8] studies, its application became process plans.
prominent in the engineering community. Since then, GA
has become an optimization technique for solving 2.2. Representation of process plans
complex manufacturing problems, such as job shop
scheduling and process planning. Because process plan- When dealing with a distributed manufacturing
ning is a NP-hard problem [9], some global search system, a chromosome not only represents the sequence
techniques must be applied. In this research, GA is of the operations but also indicates which factory
chosen for solving this optimization problem. Auto- this process plan comes from. Therefore, the identity
mated processing planning based on GA and/or simu- number of the factory will be placed as the rst gene
lated annealing have been reported in [1012]. However, of each chromosome no matter how the other genes
most of the reported work and case studies dealt with the are randomly arranged. Every other gene comprises
process planning of a single factory that manufactures operation ID and corresponding machine, tool and
the components under the same environment. tool access direction (TAD), which will be used to
accomplish this operation. As a result, a process plan
will be represented by a random combination of genes.
2. Genetic algorithm Fig. 2 shows the representation of a six-operation
process plan. 001 is the factory ID, Op4 represents
2.1. Distributed manufacturing systems operation 4; M-02, T-04 and +x in the second row
represent the machine, tool and TAD, respectively,
As depicted in Fig. 1, in a distributed manufacturing that will be used to perform operation 4, so are the
environment, factories possessing various machines and other columns.
F1,op4(m4,t2,+z),op11(m3,t1,-x)opj(m2,t3,-y)
Factory 1
m1, m2,m3, m4
t1, t2, t3 F1,op4(m1,t2,+y),op10(m3,t1,z)opj(m2,t3,+x)
F1,op6(m4,t2,+z),op14(m2,t1,-y)...opj(m1,t1,+x)
f1(op1),
f 2(op2,op3) ,f 3(op4), Factory 2 F2,op4(m4,t2,+y),op10(m1,t1,-z)...opj(m2,t3,+y)
. m1, m2, m3
fi(opj) t1, t2, t3 F2,op6(m2,t2,+x),op2(m3,t1,-y)opj(m1,t3,+x)
Fn,op4(m1,t2,+z),op9(m2,t1,-y).opj(m2,t1,-z)
Factory n
m1, m2,
t1, t2 Fn,op6(m1,t2,+y),op10(m1,t1,-x).. opj(m2,t1,-z)
2.3. Population initialization over operator, mutation operator and inversion opera-
tor. In the proposed GA, mutation and crossover
The generation of the initial population in GA is operators are used for gene recombination, which is
usually done randomly, however, the initial population also called offspring generation.
must consist of strings of valid sequences, satisfying all
precedence relations. Once the number of initialized 2.4.1. Crossover
chromosomes is prescribed, the procedures of initializa- In this work, a crossover operator described by
tion are given as follows: Bhashara et al. [13] is adopted. This is designed by
modifying Goldberg and Lingles partially matched
(1) Randomly select one factory ID number from the crossover (PMX) operator [14] to ensure the local
available factory list. precedence of operations is met and a feasible offspring
(2) Randomly select one operation among those, which is generated. The procedure of the crossover operation is
have no predecessors. described as follows (see Fig. 3):
(3) Among the remaining operations, randomly select
one which has no predecessors or which either (1) Randomly choose two chromosomes as parent
predecessors all have already been selected. chromosomes.
(4) Repeat step (3) until each operation has been (2) Based on the chromosome length, two crossover
selected for only once. points are randomly generated to select a segment in
(5) Revisit the rst selected operation. one parent. Each string is then divided into three
(6) Randomly select machines and tools from the parts, the left side, the middle segment and the right
selected factory that can be used for manufacturing side according to the cutting points.
the operation. (3) Copy the left side and right side of parent 1 to form
(7) Randomly select one amongst all possible TADs for the left side and right side of child 1. According to
the operation. the order of operations in parent 2, the operator
(8) Repeat steps (6) and (7), until each operation has constructs the middle segment of child 1 with
been assigned a machine, tool and TAD. operations of parent 2, whose IDs are the same as
(9) Repeat steps (1)(8) until the number of prescribed operations of the middle segment in parent 1.
chromosome is reached. (4) The role of these parents will then be exchanged in
order to generate another offspring child 2.
(5) Re-assign machines and tools to the operations in
2.4. Reproduction
the middle segment to legalize the offspring chromo-
somes according to the factory ID.
A genetic search starts with a randomly generated
initial population; further generations are created by
applying GA operators. This eventually leads to a 2.4.2. Mutation
generation of high performing individuals. There are A mutation operator acts as a background operator,
usually three operators in a typical GA, namely cross- which is used to investigate some of the unvisited points
Parent 1 4 1 6 2 5 3
003 m-06 m-06 m-07 m-08 m-08 m-07
t-09 t-10 t-10 t-12 t-14 t-13
Patent 2 2 6 1 3 4 5
005 m-16 m-15 m-17 m-17 m-16 m-18
t-22 t-22 t-20 t-23 t-21 t-21
Child1 4 2 6 1 5 3
(after exchange) 003 m-06 m-16 m-15 m-17 m-08 m-07
t-09 t-22 t-22 t-20 t-14 t-13
Child2 2 1 6 3 4 5
(after exchange) 005 m-16 m-06 m-07 m-07 m-16 m-18
t-22 t-10 t-10 t-13 t-21 t-21
Child1 4 2 6 1 5 3
(after legalization) 003 m-06 m-08 m-08 m-07 m-08 m-07
t-09 t-11 t-12 t-10 t-14 t-13
Child2 2 1 6 3 4 5
(after legalization) 005 m-16 m-16 m-16 m-17 m-16 m-18
t-22 t-23 t-21 t-22 t-21 t-21
in the search space and also to avoid pre-mature if j less than (number of genes 1)
convergence of the entire feasible space caused by some mj1
super chromosomes. repeat
A typical GA mutation makes changes by simply if m less than (number of genes 1)
exchanging the positions of some randomly selected i0
genes. However, for the distributed manufacturing repeat
system, mutation once is not enough to explore all the if i less than number of successors of
feasible operation sequences, as well as compare the chromosome(m)
different selected factory combination. In the proposed if chromosome (j) equal to successor (i) of
GA, mutation happens to the chromosomes twice, one is chromosome(m)
for selected factory (mutation 1) and the other is for the exchange chromosome (j) and chromo-
operations (mutation 2). some (m)
The procedure of mutation 1 is described as follows: i++
m++
(1) Randomly select a factory ID from the factory ID j++
list, which is different from the current one. End
(2) In order to legalize the chromosome, machines and
tools will be re-assigned for all the operations In practice, machine-change is an important factor in
according to the new factory-ID. calculating processing time and production cost. The
frequency of machine-change increases time and cost for
The procedure of mutation 2 is depicted as follows: accomplishing a job. In general, an experienced process
planner will attempt to assign the same machine to as
(1) Randomly choose a chromosome. many operations of a job as possible. This research
(2) Choose several pairs of genes stochastically and proposes an approach by modifying the algorithm used
permute their positions. by Rocha et al. [15] for minimizing changeovers, which
will be used after mutations. The pseudocodes are:
Example of mutation 1 and mutation 2 operations are
shown in Fig. 4. Begin
Although mutation may introduce some genetic i0
diversity and avoid being trapped at a local optimum, repeat
the newly generated chromosome may be invalid if operation (i+1) has, as an alternative, the same
because of the violation of precedence relations, thus machine as operation (i), then assign current
an algorithm will be applied to the mutated chromo- machine to operation (i+1)
some to guarantee its feasibility. The pseudocodes of the if the operation (i+1) has, as an alternative, the
algorithm are: same tool as operation (i), then assign current
tool to operation (i+1)
Begin if the operation (i+1) has, as an alternative, the
j1 same TAD as operation (i), then assign current
repeat TAD to operation (i+1)
Chromosome 1 2 6 4 5 3
(before mutation1) 003 m-06 m-06 m-07 m-08 m-08 m-07
t-09 t-10 t-10 t-12 t-14 t-13
Chromosome 1 2 6 4 5 3
(after mutation1) 005 m-06 m-06 m-07 m-08 m-08 m-07
t-09 t-10 t-10 t-12 t-14 t-13
Chromosome 1 2 6 4 5 3
(after legalize) 005 m-16 m-16 m-18 m-18 m-17 m-18
t-25 t-22 t-23 t-22 t-24 t-21
Chromosome 1 2 6 4 5 3
(before mutation 2) 005 m-16 m-16 m-18 m-18 m-17 m-18
t-25 t-22 t-23 t-22 t-24 t-21
Chromosome 4 2 6 1 5 3
(after mutation 2) 005 m-18 m-16 m-18 m-16 m-17 m-18
t-22 t-22 t-23 t-25 t-24 t-21
Table 1
Operation information table [16]
Table 3
The precedence matrix (PM) for the case in [16]
Op 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
4 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
5 0 0 0 1 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1
6 0 0 0 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1
7 0 0 0 0 0 0 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0
8 0 0 0 0 0 0 0 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0
9 0 0 0 0 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0
10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
11 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0
12 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0
13 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0
14 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1
15 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0
16 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
17 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
18 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0
19 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
20 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
21 1 1 1 0 0 0 1 1 1 1 1 1 1 0 0 0 1 1 1 0 1 1
22 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
23 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1745
in [19].
In this case, it is assumed that each feature can be
1742
nished in one operation, and the TADs of each feature
are listed as follows:
1739
F1y; F2y; F3z; F4x; x; F5x,
F6x; x; F7x.
1 2 3 4 5 6 7 8 9 10
trials It is also assumed that there are three factories, 001,
Fig. 6. The variation of production costs generated from different
002 and 003, possessing different machines and tools
runs. and having different manufacturing capabilities in the
distributed manufacturing system. Table 6 gives the cost
indices of machine, tool and set-up changes (MCCI,
the traditional CAPP optimization but also the dis- TCCI and SCCI), and the time indices of machine, tool
tributed CAPP problem, which will be demonstrated in and set-up changes (MCTI, TCTI, SCTI) in each
the next section. factory. All available manufacturing resources in the
three factories are shown in Table 7, and values in
3.2. Distributed CAPP parentheses are the cost indices of machines and tools.
In order to make the case study easily understandable,
In this case, a more complex prismatic part shown in the cost or time indices in some factories are purposely
Fig. 7 was used to evaluate the capability of the GA. set higher or lower than the others. From Tables 6 and
The part was used by Chi-Cheng and Rajit [19] to test a 7, it can be seen that factory 001 has higher time
rule-based approach to minimize the set-up time, in indices but lower cost indices than the other two
which RS1RS6 represent the envelope surfaces of the factories, and factory 002 has higher cost indices
raw stock. The precedence relationships of the part are but lower time indices than factories 001 and 003.
shown in Table 5 where column 2 displays the However, cost and time indices in factory 003 are
operations that must be nished before performing the both lower than the other two factories. Therefore, a
ARTICLE IN PRESS
L. Li et al. / Robotics and Computer-Integrated Manufacturing 21 (2005) 568578 575
Table 4
The process plan of case study 1
Order 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
Op-ID 14 5 6 4 21 22 23 20 1 18 15 16 19 2 17 7 8 3 9 11 12 13 10
M-ID 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 03 03 03 03 03
T-ID 05 05 05 05 05 01 01 01 01 01 01 01 01 01 07 02 03 08 04 02 03 04 01
TAD x y y y y y y z z z z z z z z z z z z z z z z
Number of machine changes: 1 Number of tool changes: 9 Number of set-up changes: 3
The total production cost is 1742
Table 5 Table 6
The precedence relations for the case study [19] Cost and time indices in the three factories
Operation ID Predecessor Successor Factory-ID MCCI TCCI SCCI MCTI TCTI SCTI
Table 7
Manufacturing resources in the three factories
Table 8 001 with the lowest cost index for this job instead of
Description of the 7-operation job factories 002 and 003, which indicates that the
Feature-ID Operation- Operation Removed Machining proposed GA can choose the most suitable factory for
ID type volume time index generating an optimal or near-optimal process plan
based on the lowest cost.
F1 Op1 Milling 4 3
F2 Op2 Milling 7 3
F3 Op3 Milling 6 3 3.3.2. Criterion 2: Minimum processing time
F4 Op4 Milling 9 3
Table 11 gives the nal process plan based on
F5 Op5 Drilling 4 5
F6 Op6 Milling 6 3 criterion-2, and it can be seen that factory 002 is
F7 Op7 Drilling 4 5 chosen for this job because its time index is the lowest
in the three factories. The processing time is much
lower than that of the process plan-1, however, its
production cost is much higher because of its high
feature, and MTI of each operation is shown in cost index and more machine changes. This process
column 5. plan may seem somewhat of little use in practice, but it
As shown in Table 9, columns 2 and 3 contain shows that the proposed GA can respond to a change
machine and tool candidates for each operation, in of criterion.
which machines (tools) from different factories are From the results discussed above, it can be concluded
separated by columns, for example: M-02 M-03|M-05 that the proposed GA is also capable of dealing with
M-06|M-08 M-10 are different machines from factory different criteria, and providing an optimal or near-
001, 002 and 003 respectively. optimal process plan according to the selected criteria
In this case, minimum production cost and minimum for a distributed manufacturing system effectively and
processing time will be separately selected as the efciently.
optimization objective, which is used to test if the
proposed CAPP system can identify the most suitable
factory for the specied job, and produce an optimal or 4. Conclusions
near-optimal process plan according to the different
objectives chosen. The optimal process plans can be The novelty of this GA approach and application is
obtained as discussed in the following section. its successful application to CAPP in the traditional as
well as distributed manufacturing (i.e. a multi-factory
3.3. Evaluations environment). The GA approach for CAPP in distrib-
uted manufacturing systems based on geographically
3.3.1. Criterion 1: Minimum production cost dispersed machines and tools was developed. It can
The nal process plan is shown in Table 10 with its produce an optimal or near-optimal process plan
total production cost, processing time, and number of compared to other approaches mainly for the single
machine, tool and set-up changes, in which the manufacturing system. The most suitable manufacturing
precedence relationships shown in Table 5 are main- factory can be found when handling distributed
tained. From Table 9, it can be seen that all the manufacturing problems. Furthermore, it is capable of
operations can be accomplished on M-02 or M-03, performing multi-objective optimization based on mini-
however, the cost indices of M-03 is a little lower, so it is mum production cost or minimum processing time.
chosen instead of M-02. By using Eqs. (A.1)(A.5) (see Based on the objective selected, near-optimal solutions
Appendix A), the total production cost and processing can be obtained using the GA. From the performance
time of the process plans can be worked out. test shown, the developed technique is comparative or
Since production cost is chosen as the optimization better in dealing with the CAPP in a single manufactur-
objective, the distributed CAPP system chooses factory ing system or factory.
ARTICLE IN PRESS
L. Li et al. / Robotics and Computer-Integrated Manufacturing 21 (2005) 568578 577
Table 9
Available resources for the machining operations
Op1 M-02 M-03 M-04 M-05 M-08 M-10 T-03 T-05 T-07 T-09 T-12
Op2 M-02 M-03 M-04 M-05 M-08 M-10 T-03 T-04 T-07 T-09 T-10 T-12 T-13
Op3 M-02 M-03 M-04 M-05 M-08 M-10 T-03 T-07 T-09 T-12 T-13
Op4 M-02 M-03 M-04 M-05 M-08 M-10 T-01 T-03 T-07 T-10 T-12 T-15
Op5 M-01 M-02 M-03 M-04 M-07 M-08 M-09 M-10 T-02 T-06 T-08 T-11 T-14
Op6 M-02 M-03 M-05 M-06 M-08 M-10 T-01 T-03 T-09 T-10 T-12 T-13
Op7 M-01 M-02 M-03 M-04 M-07 M-08 M-09 M-10 T-02 T-06 T-08 T-11 T-14
Table 10
The process plan-1 against criterion-1 (minimum production cost)
Factory-ID: 001
Table 11
The process plan-2 against criterion-2 (minimum processing time)
Factory-id: 002
time index, [3] Ueda K. A concept for bionic manufacturing systems based on
( DNA-type information. Proceedings of the eighth international
1 if M i aM j ; prolomat conference, Tokyo, 1992. p. 53864.1.
OM i M j . [4] Yoshikawa H. Intelligent manufacturing systems program (IMS).
0 if M i M j :
technical cooperation that transcends cultural differences. Tokyo:
University of Tokyo; 1992.
[5] Peklenik J. FMSA complex object of control. Proceedings
Total tool change time (TCT)
of the eighth international prolomat conference, Tokyo, 1992.
X
n1 p. 125.
TCT TCTI 1 OM i1 M i [6] Rosenau MD. The PDMA handbook of new product develop-
i1 ment. New York: Wiley; 1996.
[7] Wang B. Integrated product, process and enterprise design.
OT i1 T i , A:3 London: Chapman & Hall; 1997.
where T i is the ID of the tool used to perform [8] Goldberg DE. Genetic algorithms in search, optimization, and
machine learning. Reading, MA: Addison-Wesley; 1989.
operation i and TCTI i the tool change time index. [9] Gupta S, Nau D. Optimal blocks world solutions are N-p.
Total set-up change time (SCT) Technical report, Computer Science Department, University of
Maryland, 1990.
X
n1
SCT SCTI 1 OM i1 M i [10] Ma GH, Zhang F, Zhang YF, Nee AYC. An automated process
planning system based on genetic algorithm and simulated
i1
annealing. Proceedings of the ASME design engineering technical
OTADi1 TADi , A:4 conference, vol. 3. 2002. p. 5763
[11] Li WD, Ong SK, Nee AYC. Hybrid generic algorithm and
where TADi is the ID of the TAD used to perform simulated approach for the optimization of process plans for
operation i and SCTI i the set-up change time prismatic parts. Int J Prod Res 2003;4(8):1899922.
index. [12] Alam MR, Lee KS, Rahman M, Zhang YF. Process planning
Total processing time (PT) optimization for the manufacture of injection moulds using a
generic algorithm. Int J Comput Integr Manuf 2003;16(3):18191.
PT MT MCT TCT SCT (A.5) [13] Bhashara RSV, Shunmugam MS, Narendran TT. Operation
sequencing in CAPP using genetic algorithms. Int J Prod Res
1999;37(5):106374.
Total production cost (PC) [14] Reeves CR. Genetic algorithms. In: Reeves CR, editor. Modern
PC MC TC MCC TCC SCC, (A.6) heuristic techniques for combinatorial problems. Orient Long-
man; 1993. p. 15188 [chapter 4].
where MC is the machine cost, TC is tool cost, MCC [15] Joao Rocha, Carlos Ramos, Zita Vale. Process planning using a
the machine change cost, TCC the tool change cost, genetic algorithm approach. Proceedings of the 1999 IEEE
and SCC the set-up change cost. international symposium on assembly and task planning, Porto,
Portugal, 1999. p. 33844.
[16] Zhang F. Genetic algorithm in computer-aided process planning.
MEng thesis, National University of Singapore, 1997.
[17] Zhang F, Zhang YF, Nee AYC. Using genetic algorithms in
process planning for job shop machining. IEEE Trans Evol
References Comput 1997;1(4):27889.
[18] Jim S. Evolutionary computation. Tutorial, Intelligent Computer
[1] Alojzij S, Peter B, Goran B. A multi-agent approach to process Systems Centre, Faculty of Computing, Engineering and Math-
planning and fabrication in distributed manufacturing. Comput ematical Sciences, University of West of England, 2001.
Ind Eng 1998;35:4558. [19] Chi-Cheng PC, Rajit G. Feature-based approach for set-up
[2] Warnecke HJ. Die Fraktale Fabrik, Revolution der Unterneh- minimization of process design from product design. Comput
menskultur. Berlin: Springer; 1993. Aided Des 1996;28(5):32132.