An Improved Hybrid Bat Algorithm For Traveling Salesman Problem
An Improved Hybrid Bat Algorithm For Traveling Salesman Problem
1 Introduction
c Springer Nature Singapore Pte Ltd. 2016
M. Gong et al. (Eds.): BIC-TA 2016, Part I, CCIS 681, pp. 504–511, 2016.
DOI: 10.1007/978-981-10-3611-8 47
[email protected]
Improved Hybrid Bat Algorithm for TSP 505
its advantages of simplicity, easy implementation and its higher stability mecha-
nism, BA has the ability of dealing with non-linear, multi-modal and large scale
optimization problems. However, BA still has some limitations. (i) It may suffer
from stagnation in the early stages when Ai and ri vary too quickly. (ii) BA
also loses its exploration as the iterations flow since ri exponentially increased;
hence, its condition becomes less probable to be satisfied. (iii) BA may not be
able to perform global search because it suffers from premature convergence in
some cases and may be trapped into local optima.
To enhance the performance of basic BA [6], several hybrid variants were
proposed to solve both continuous and combinatorial optimization problems such
as in [7–18]. It is worthy to note that the enhancement of BA by hybridization to
solve combinatorial problems has not been explored enough. To address TSP, two
papers were introduced. Yassine Saji et al. [19] proposed a discrete version of BA.
Then, Eneko Osaba et al. also introduced an improved discrete bat algorithm
for both symmetric and asymmetric TSP called IBA [20].
In this paper, we proposed an improved hybrid discrete BA variant to solve
TSP problem to solve the premature convergence, stagnation problem and speed
up the convergence.
2 Background
In the following subsections, we briefly review the bat algorithm and its IBA
discrete variant.
Bat algorithm was initiated by Yang 2010 [6] as a relatively new meta-heuristic
to solve hard optimization problems. An overview of BA, its inspiration idea, its
variants and application domains is shown in [5]. BA was inspired by micro-bats
behavior when they search for prey. The three idealization rules of bat-inspired
algorithm can be summarized as follows: (i) all bats sense their direction and
the distance of obstacles/prey using echolocation; (ii) each bat i flies randomly
with velocity vi at position (solution) xi with a fixed frequency fmin , varying
wavelength λ and loudness A0 . Bats can adjust the frequency of their emitted
pulses rate in the range of r ∈ [0, 1] when searching for prey depending on the
proximity of their target; and (iii) the loudness can vary in many ways; it was
assumed that it varies from a large positive A0 to a minimum constant value
Amin . The main steps of BA are illustrated as follows:
Step1 (Initialization): an initial population X = [x1 , x2 , . . . , xn ] of n bats is
generated randomly. Each bat i in the population represents a potential location
(solution of the problem under consideration) with random rate of pulse ri ,
random loudness Ai and initial frequency fi ; each of which is evaluated using
fitness function.
[email protected]
506 W. Al-sorori et al.
Step5 (Finding the global best solution ): Finally, rank the solutions and
find the current global best solution(s). Steps 2–5 continue until the termination
condition is satisfied.
[email protected]
Improved Hybrid Bat Algorithm for TSP 507
4 Experimental Results
In order to test the performance of IHDBA, it was initialized with a population
of 50 bats with initial random values in the range 0.7–0.1 and 0.0–0.4 for the
loudness and pulse parameters respectively. Alpha and gamma were set to 0.98
and the maximum number of iterations was 1000.
[email protected]
508 W. Al-sorori et al.
Table 1. Computational results using BA-opt, BA-xover and IHDBA. All of the results
are taken from 10 runs. The best results are given in bold.
Table 2 shows the comparison results between IBA and IHDBA with respect
to best solution, average solution, percentage deviations of the average solu-
tion P Davg to the best known solution shown in the TSPLIB web site and the
[email protected]
Improved Hybrid Bat Algorithm for TSP 509
percentage deviations of best solution P Dbest to the best known solution shown
in the TSPLIB.
In summary, numerical results show that IHDBA is able to solve small and
large size problems better than IBA. It is worthy to mention that incorporation
of the evolutionary operators, crossover and mutation, and the local search tech-
niques, 2-opt and 3-opt, to BA improves the results significantly which means
that combining these operators into BA is effective, feasible and promising.
Table 2. Computational results of IHDBA in comparison with IBA. All of the results
for IHDBA are taken from 10 runs. The best results are given in bold.
5 Conclusion
In this paper, we have introduced a hybrid variant of bat algorithm combined
with two evolutionary operators (crossover and mutation) and two local search
strategies (2-opt and 3-opt). The evolutionary operators strike a balance between
diversification and intensification and enable algorithm to escape from local
optima. The local search strategies (2-opt and 3-opt) speed up the BA conver-
gence. IHDBA is applied to solve the traveling salesman problem. Experiments
[email protected]
510 W. Al-sorori et al.
conducted using twenty instances obtained from the TSPLIB The results show
that IHDBA outperformed the recent BA variant i.e. IBA with respect to average
and best solution and is able to obtain the optimal solution for most instances.
References
1. Stutzle, T., Hoos, H.: Stochastic Local Search: Foundations and Applications
(2005)
2. Laporte, G.: The traveling salesman problem: an overview of exact and approxi-
mate algorithms. Eur. J. Oper. Res. 59(2), 231–247 (1992)
3. Lenstra, J.K., Kan, A.R.: Some simple applications of the travelling salesman
problem. Oper. Res. Q. (1970–1977) 26(4), 717–733 (1975). http://www.jstor.org/
stable/3008306
4. Reinelt, G.: The Traveling Salesman: Computational Solutions for TSP Applica-
tions. Springer, Heidelberg (1994)
5. Yang, X.-S., He, X.: Bat algorithm: literature review and applications. Int. J. Bio-
Inspired Comput. 5(3), 141–149 (2013)
6. Yang, X.-S.: A new metaheuristic bat-inspired algorithm. In: González, J.R.,
Pelta, D.A., Cruz, C., Terrazas, G., Krasnogor, N. (eds.) Nature inspired coop-
erative strategies for optimization (NICSO 2010). Studies in Computational Intel-
ligence, vol. 284, pp. 65–74. Springer, Heidelberg (2010)
7. Wang, G., Guo, L.: A novel hybrid bat algorithm with harmony search for global
numerical optimization. J. Appl. Math. 2013, 21 (2013)
8. Pan, J-S., Dao, T.-K., Kuo, M.-Y., Horng, M.-F., et al.: Hybrid bat algorithm
with artificial bee colony. In: Pan, J.-S., Snasel, V., Corchado, E.S., Abraham, A.,
Wang, S.-L. (eds.) Intelligent Data analysis and its Applications, Volume II, vol.
298, pp. 45–55. Springer, Heidelberg (2014)
9. Pan, T.S., Dao, T.-K., Chu, S.-C., et al.: Hybrid particle swarm optimization
with bat algorithm. In: Sun, H., Yang, C.-Y., Lin, C.-W., Pan, J.-S., Snasel, V.,
Abraham, A. (eds.) Genetic and Evolutionary Computing. Advances in Intelligent
Systems and Computing, vol. 329. Springer, Heidelberg (2015)
10. Meng, X., Gao, X., Liu, Y.: A novel hybrid bat algorithm with differential evolution
strategy for constrained optimization. Int. J. Hybrid Inf. Technol. 8(1), 383–396
(2015)
11. Wang, G., Guo, L., Duan, H., Liu, L., Wang, H.: A bat algorithm with mutation
for UCAV path planning. Sci. World J. 2012, 15 (2012)
12. Zhang, J.W., Wang, G.G.: Image matching using a bat algorithm with mutation.
In: Applied Mechanics and Materials, vol. 203, pp. 88–93. Trans Tech Publications
(2012)
13. Fister Jr., I., Fister, D., Yang, X.-S.: A hybrid bat algorithm, ArXiv e-prints, March
2013
14. Perez, J., Valdez, F., Castillo, O.: Modification of the bat algorithm using fuzzy
logic for dynamical parameter adaptation. In: 2015 IEEE Congress on Evolutionary
Computation (CEC), pp. 464–471, May 2015
15. Lin, J.-H., Chou, C.-W., Yang, C.-H., Tsai, H.-L., et al.: A chaotic levy flight
bat algorithm for parameter estimation in nonlinear dynamic biological systems.
Comput. Inf. Technol. 2(2), 56–63 (2012)
16. Abdel-Raouf, O., Abdel-Baset, M., El-Henawy, I.: An improved chaotic bat algo-
rithm for solving integer programming problems. Int. J. Mod. Educ. Comput. Sci.
(IJMECS) 6(8), 18 (2014)
[email protected]
Improved Hybrid Bat Algorithm for TSP 511
17. Gandomi, A.H., Yang, X.-S.: Chaotic bat algorithm. J. Comput. Sci. 5(2), 224–232
(2014)
18. Khan, K., Nikov, A., Sahai, A.: A fuzzy bat clustering method for ergonomic
screening of office workplaces. Third International Conference on Software, Services
and Semantic Technologies S3T. Advances in Intelligent and Soft Computing, vol.
101, pp. 59–66. Springer, Heidelberg (2011)
19. Saji, Y., Riffi, M.E., Ahiod, B.: Discrete bat-inspired algorithm for travelling sales-
man problem. In: Second World Conference on Complex Systems (WCCS), pp.
28–31. IEEE (2014)
20. Osaba, E., Yang, X.-S., Diaz, F., Lopez-Garcia, P., Carballedo, R.: An improved
discrete bat algorithm for symmetric and asymmetric traveling salesman problems.
Engineering Applications of Artificial Intelligence 48, 59–71 (2016)