Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
201
A Binary Particle Swarm Optimization Approach Ior Routing
in PCB Holes Drilling Process
Mohd HaIiz Othman
1,2
, Amar Faiz Zainal Abidin
2
, Asrul Adam
2
,
Zulkili Md YusoI
2
, Zuwairie Ibrahim
2
, Seri Mastura Mustaza
2
, Lai Yee Yang
2
1
Faculty oI Electrical & Automation Engineering Technology,TATI University College
Jalan Panchor, Telok Kalong, Kemaman 24000 Terengganu, Malaysia
2
Faculty oI Electrical Engineering, Universiti Teknologi Malaysia
81310 UTM Johor, Malaysia
(1)
where is the number oI holes required.
is the
decision variable related to the assignment oI hole
to hole . II there is movement oI the drill bit Irom
hole to hole ,
. Otherwise,
is
the cost which is the distance between hole and hole
. This can be calculate using Eq.(2).
(2)
where the coordinates oI hole is (
and hole
is (
. The
total cost is the sum oI all hole to hole costs:
(3)
(4)
The optimal solution oI the case study can be either; 2
3 4 7 8 13 14 10 11 12 9 6 5 1
or 1 5 6 9 12 11 10 14 13 8 7 4
3 2 due to the symetry property it has. The cost oI
the optimal solution is 280mm.
BPSO IN PCB HOLE DRILLING ROUTE
PROBLEM
BinaryParticleSwarmOptimi:ation(BPSO)
The nature oI the original PSO is more suited Ior
continuous-valued problem. As more discrete-valued
optimization problems are introduced, the need oI a
discretevalued PSO is highly demanded. Noticing
this need, James Kennedy and Russell Eberhart have
introduced BPSO Ior binary-valued and discrete-
valued domains which introduce the concept oI
change oI change`|12|. This means that the Iunction
oI a particle`s bit velocity is no longer Iunction as the
rate oI change` oI the particle`s position, instead as
the chance to change` oI the particle`s position.
BeIore going into the particle position and
particle velocity equations, do take note that in BPSO,
each oI the bit () oI the
particle position (
)
Ior the next iteration ( ) is updated using
mathematical Iormula shown in Equation (5).
nternational Con
if
otheiwise
where
is a random number be
particle velocity (
) Ior
( ) is updated using Eq.(6).
(6)
where,
Based on Eq.(6),
represe
memory oI its previous velocity,
weight, dictates the tendency oI t
on its previous velocity as the base
In this paper, linear decreasing iner
as it promotes a balance oI
exploitation oI the particles. This
inertia weight can be mathematicall
|13|.
is the representation oI th
value oI inertia weight, respectively
MoaelingPCBHoleDrillingRoute
For PCB hole drilling rout
particle represents a possible solutio
The particle`s position) stores the
holes locations need to be visited b
matrix Iorm. The particle position c
to
Each hole location is represented b
Figure 2 Iurther illustrates the
representation in a binary string.
stands Ior most signiIicant bit an
least signiIicant bit.
Figure 3 shows the Ilo
application oI BPSO in PCB holes
In robotic drill route problem, the
starts by loading the holes location
Fig. 2
nference on Robotic Automation 8ystem {CORA8
203
(5)
etween |0, 1| and
y. Meanwhile, the
the next iteration
and
.
ents the particle`s
,
The inertia
the particle to rely
Ior the next Ilight.
rtia weight is used
exploration and
linear decreasing
y written as Eq.(7)
(7)
eration.
and
he initial and Iinal
y.
ProbleminBPSO
te problem, each
on oI the problem.
e sequence oI the
by the drill bit in a
can be generalized
by its binary value.
particle position
. Note that MSB
nd LSB stands Ior
ow chart oI the
s drilling problem.
e BPSO algorithm
ns to the program.
Then, the program initializes
particles` positions (random
velocities (set to 0).
Given a 3 holes problem
the particle suggests a solutio
5(a). In its binary representatio
rewritten as
hole #1 01, hole #210 and ho
The particle position can
represented using a radar dia
drilling route problem, the dim
( ) is equal to the product
required ( and number oI bi
the hole location ( like Eq.(8)
Fig. 3. Flow chart oI the pro
2011}
the PSO parameters,
mly) and particles`
as shown in Fig. 4, iI
on oI 1-2-3 (reIer Fig.
on, the solution can be
(where hole #000,
ole #311).
n be also graphically
gram. For PCB holes
mension oI search space
t oI number oI holes
t required to represent
).
(8)
oposed approached
e selected holes
0 0
,0-0, ,0-0, 0 0 0
0 1
,0-3, ,0-3, 6 0 0
0 2
,0-7, ,0-6, 13 0 0
0 3
,0-8, ,0-2, 10 0 0
1 0
,3-0, ,3-0, 6 0 0
1 1
,3-3, ,3-3, 0 0 0
1 2
,3-7, ,3-6, 7 1 7
1 3
,3-8, ,3-2, 6 0 0
2 0
,7-0, ,6-0, 13 0 0
2 1
,7-3, ,6-3, 7 0 0
2 2
,7-7, ,6-6, 0 0 0
2 3
,7-8, ,6-2, 5 1 5
3 0
,8-0, ,2-0, 10 0 0
3 1
,8-3, ,2-3, 6 0 0
3 2
,8-7, ,2-6, 5 0 0
3 3
,8-8, ,2-2, 0 0 0
12
nternational Conference on Robotic Automation 8ystem {CORA8 2011}
205
Table 2. Comparison oI PSO parameters employed in the proposed algorithm and by Zhu et al. |10|
Zhu`s This paper
Number oI particles, 100 50
Number oI iterations, 10000 2500
Number oI computations 50 50
Inertia weight, 0.0, 0.5, 1.0
0.9 0.4
Cognitive component,
and