ratio (Ababneh and Bataineh, 2008).
In literature, different metaheuristics have been
used to optimal design digital FIR filters, such as
Particle Swarm Optimization (PSO) (Mandal et al.,
2012a; Mandal et al., 2012b; Saha et al., 2013), Ge-
netic Algorithms (GA) (Najjarzadeh and Ayatollahi,
2008; Ababneh and Bataineh, 2008), Gravitational
Search Algorithm (GSA) (Saha et al., 2012), Cuckoo
Search Algorithm (CSA) (Singh and Josan, 2014).
Among the different metaheuristics, PSO and Bat Al-
gorithm (BA) stand out for their simplicity of imple-
mentation and the low number of parameters that con-
trol their performance and convergence.
The PSO was proposed by Kennedy and Eberhart
(Kennedy and Eberhart, 1995). It is based on sim-
ulating the social behavior of swarm of bird flock-
ing, bees, and fish shooling (Ababneh and Bataineh,
2008). The BA was proposed by Yang (Yang, 2010),
based on the echolocation behavior of bats. Due to
the echolocation, the microbats can find their prey
and discriminate different types of insects even in
complete darkness. Both of these nature inspired
metaheuristics are able to solve multi-dimensional
and multi-modal optimization problems, overcoming
some drawbacks of optimization gradient based meth-
ods.
In this work, the BA and PSO metaheuristics are
employed to optimal design digital low pass (LP) Fi-
nite Impulse Response filters of order 20 and 24. The
performance of these algorithms are compared with
the Parks and McClellan filter design method. The
stop band and pass band ripples, the transition width
and statistical information are evaluated in this com-
parison. The simulation results demonstrated that in
general BA presented the best performance in this
specific study. It is noteworthy that according to the
No Free Lunch Theorem of optimization affirms that
a general purpose universal optimization strategy is
impossible, and the only one strategy can outperform
another is if it is specialized to the structure of the
specific problem under consideration (Ho, 2001).
The remainder of this paper is organized as fol-
lows. Next section presents some basical concepts of
the FIR filter and the objective function used by PSO
and BA. Section 3 briefly describes the mechanisms
of traditional PSO and BA metaheuristics. In Sec-
tion 4, the obtained LP FIR filters are presented and
the filter design approaches are compared. Finally, in
Section 5 concluding remarks are given.
2 FIR FILTER DESIGN
Depending on what criteria are used, filters can be
classified in several different ways. The two major
types of digital filters are Finite Impulse Response
(FIR) and Infinite Impulse Response (IIR) filters. The
digital FIR filter, that is the focus of this study, can be
mathematically described as follows:
H(z) =
N
∑
n=0
h(n)z
−1
(1)
where N is the FIR filter order with (N + 1) coeffi-
cients to be set. Once the designed filters in this paper
are positive and features even symmetry, N is an even
number and only (N/2+ 1) coefficients of h(n) need
to be designed. After the optimization they are con-
catenated to obtain all the (N + 1) low pass FIR filters
coefficients. In this work, the PSO and BA are used
to find these coefficients. Therefore, each individual
(particle and bat) of these metaheuristics corresponds
to a coefficient vector {h(0),h(1),.. ., h(N/2)}.
The frequency response of a FIR filter can be de-
fined as follows:
H
e
jω
k
=
N
∑
n=0
h(n)e
− jω
k
n
(2)
where ω
k
=
2πk
N
and H
e
jω
k
is the complex vector of
the Fourier transform, which provides the FIR filter
frequency response. The frequency is sampled from
0 to π with N samples. The PM algorithm for filter
design uses the approximate error presented in (3).
E(ω) = G(ω)
H
d
(e
jw
) − H
i
(e
jw
)
(3)
where H
d
(e
jw
) is the frequency response of the de-
signed filter and H
i
(e
jw
) is the frequency response of
the ideal filter. G(ω) is the weighting function that
provides the suitable weights for E(ω) in its different
frequency bands. The H
i
(e
jw
) of an ideal filter can be
expressed by the following relation:
H
i
(e
jw
) =
(
1, 0 ≤ ω ≤ ω
c
0, otherwise
(4)
where ω
c
is the edge frequency. The fixed ratio be-
tween the pass band (δ
p
) and stop band (δ
s
) ripples,
presented by δ
p
/δ
s
is the major drawback of the PM
algorithm. In order to obtain more flexibility in the
optimization of the error function, allowing to specify
the desired levels of δ
p
and δ
s
, equation (5) has been
used to design digital filters (Ababneh and Bataineh,
2008; Mandal et al., 2012b; Singh and Josan, 2014).
The cost function J used by the metaheuristics evalu-
ated in this paper is given by (5).
J = max
ω≤ω
p
(|E(ω) − δ
p
|) + max
ω≥ω
s
(|E(ω) − δ
s
|) (5)
ICINCO2015-12thInternationalConferenceonInformaticsinControl,AutomationandRobotics
208