A Hybrid Firefly Algorithm Particle Swarm Optimization (FA–PSO) Metaheuristic for Solving the Traveling Salesman Problem (TSP)

Authors

  • Nindi Dwi Rahmadani Universitas Bung Hatta, Indonesia Author
  • Sisri Ilmi Author

Keywords:

Traveling salesman problem, firefly algorithm, particle swarm optimization, hybrid metaheuristic

Abstract

The Traveling Salesman Problem (TSP) is an NP-hard combinatorial optimization problem whose exact solution becomes impractical as the number of cities grows. This study proposes a hybrid Firefly Algorithm–Particle Swarm Optimization (FA–PSO) metaheuristic for the symmetric Euclidean TSP in which each tour is first moved toward a brighter tour through a distance-weighted swap-sequence attraction and then updated by a swap-based PSO step guided by its personal best and the global best tours. Under an identical budget of 15,000 tour evaluations, the hybrid was compared with a permutation-based genetic algorithm, a discrete PSO, and a discrete firefly algorithm on three random Euclidean instances (30, 50, and 75 cities), using 20 independent runs per method. The hybrid had the lowest mean tour length on the 75-city instance (1,237.5 vs. 1,273.2–1,385.1 units). With Holm correction over nine one-sided Mann–Whitney comparisons, only the advantage over the discrete FA on the 75-city instance remained significant at the 5% level (adjusted p = .001); differences from GA and discrete PSO were not significant after correction. A multi-start nearest-neighbour heuristic found a shorter tour than every metaheuristic run on all three instances. The results are limited to one instance per size and to a budget far from convergence, and the contribution of individual components was not isolated; ablation, additional instances, TSPLIB benchmarks, and stronger local search are needed before broader claims can be made.

References

[1] D. L. Applegate, R. E. Bixby, W. J. Cook, and V. Chvátal, The Traveling Salesman Problem: A Computational Study. Princeton, NJ, USA: Princeton University Press, 2006.

[2] J. Kennedy and R. Eberhart, “Particle swarm optimization,” in Proc. IEEE Int. Conf. Neural Networks, vol. 4, Perth, WA, Australia, 1995, pp. 1942–1948.

[3] X.-S. Yang, Nature-Inspired Metaheuristic Algorithms, 2nd ed. Frome, U.K.: Luniver Press, 2010.

[4] G. K. Jati and Suyanto, “Evolutionary discrete firefly algorithm for travelling salesman problem,” in Proc. 2nd Int. Conf. Adaptive and Intelligent Systems (ICAIS), Lecture Notes in Computer Science, vol. 6943, Klagenfurt, Austria, 2011, pp. 393–403.

[5] M. S. Qamar, Y. Tu, Z. Ali, and A. Y. U. Haq, “Improvement of traveling salesman problem solution using hybrid algorithm based on best-worst ant system and particle swarm optimization,” Applied Sciences, vol. 11, no. 11, Art. no. 4780, 2021, doi: 10.3390/app11114780.

[6] R. Nand, K. C. Chaudhary, and B. N. Sharma, “Single depot multiple travelling salesman problem solved with preference-based stepping ahead firefly algorithm,” IEEE Access, vol. 12, pp. 26655–26666, 2024, doi: 10.1109/ACCESS.2024.3366183.

[7] P. Pirozmand, A. A. R. Hosseinabadi, M. Sadeghilalimi, S. A. A. Mirkamali, and A. Abraham, “D-PFA: A discrete metaheuristic method for solving traveling salesman problem using pathfinder algorithm,” IEEE Access, vol. 11, pp. 106544–106566, 2023, doi: 10.1109/ACCESS.2023.3320562.

[8] K.-P. Wang, L. Huang, C.-G. Zhou, and W. Pang, “Particle swarm optimization for traveling salesman problem,” in Proc. Int. Conf. Machine Learning and Cybernetics, vol. 3, Xi’an, China, 2003, pp. 1583–1585.

[9] L. Teng and H. Li, “Modified discrete firefly algorithm combining genetic algorithm for traveling salesman problem,” TELKOMNIKA (Telecommunication Computing Electronics and Control), vol. 16, no. 1, pp. 424–431, 2018, doi: 10.12928/telkomnika.v16i1.4752.

[10] B. A. S. Emambocus, M. B. Jasser, A. Amphawan, and A. W. Mohamed, “An optimized discrete dragonfly algorithm tackling the low exploitation problem for solving TSP,” Mathematics, vol. 10, no. 19, Art. no. 3647, 2022, doi: 10.3390/math10193647.

[11] K. Helsgaun, “An extension of the Lin-Kernighan-Helsgaun TSP solver for constrained traveling salesman and vehicle routing problems,” Tech. Rep., Roskilde University, Roskilde, Denmark, 2017.

[12] Y. Li, S. Zhou, and J.-F. Côté, “Exact methods and a two-stage iterative heuristic for the carrier-vehicle traveling salesman problem,” INFORMS Journal on Computing, Oct. 2025, doi: 10.1287/ijoc.2025.1140.

[13] G. A. Croes, “A method for solving traveling-salesman problems,” Operations Research, vol. 6, no. 6, pp. 791–812, 1958, doi: 10.1287/opre.6.6.791.

[14] S. Lin and B. W. Kernighan, “An effective heuristic algorithm for the traveling-salesman problem,” Operations Research, vol. 21, no. 2, pp. 498–516, 1973, doi: 10.1287/opre.21.2.498.

[15] Z. Huang, D. Zhu, C. Zhou, and S. Cheng, “Matrix-based particle swarm optimization with hybrid strategy for multi-traveling salesman problem,” Evolutionary Intelligence, vol. 18, no. 5, Oct. 2025, doi: 10.1007/s12065-025-01082-2.

[16] A. R. Darmawa and Z. K. A. Baizal, “Multi-day travel route planning using the firefly algorithm for distance and transportation cost efficiency,” in Proc. Int. Conf. Data Science and Applications (ICDSA), Jakarta, Indonesia, Jul. 2025, pp. 926–931.

[17] M. Bouatouche and K. Belkadi, “A hybrid firefly algorithm for the sales representative planning problem,” Indonesian Journal of Electrical Engineering and Computer Science, 2025.

[18] T. Kumar, K. Kumar, K. Dhanuk, A. K. Bhargava, and M. K. Sharma, “Firefly algorithm driven intelligent system for multi-objective multimodal transportation optimization,” Systems and Soft Computing, 2025.

[19] M. Dorigo, V. Maniezzo, and A. Colorni, “Ant system: Optimization by a colony of cooperating agents,” IEEE Transactions on Systems, Man, and Cybernetics, Part B: Cybernetics, vol. 26, no. 1, pp. 29–41, 1996, doi: 10.1109/3477.484436.

[20] D. E. Goldberg, Genetic Algorithms in Search, Optimization, and Machine Learning. Reading, MA, USA: Addison-Wesley, 1989.

[21] C. Blum and A. Roli, “Metaheuristics in combinatorial optimization: Overview and conceptual comparison,” ACM Computing Surveys, vol. 35, no. 3, pp. 268–308, 2003, doi: 10.1145/937503.937505.

[22] M. M. Flood, “The traveling-salesman problem,” Operations Research, vol. 4, no. 1, pp. 61–75, 1956, doi: 10.1287/opre.4.1.61.

[23] G. Reinelt, “TSPLIB—A traveling salesman problem library,” ORSA Journal on Computing, vol. 3, no. 4, pp. 376–384, 1991, doi: 10.1287/ijoc.3.4.376.

[24] S. Kirkpatrick, C. D. Gelatt, and M. P. Vecchi, “Optimization by simulated annealing,” Science, vol. 220, no. 4598, pp. 671–680, 1983, doi: 10.1126/science.220.4598.671.

[25] R. Eberhart and J. Kennedy, “A new optimizer using particle swarm theory,” in Proc. 6th Int. Symp. Micro Machine and Human Science, Nagoya, Japan, 1995, pp. 39–43, doi: 10.1109/MHS.1995.494215.

[26] A. Colorni, M. Dorigo, and V. Maniezzo, “Distributed optimization by ant colonies,” in Proc. 1st European Conf. Artificial Life, Paris, France, 1991, pp. 134–142.

[27] X.-S. Yang, “Firefly algorithm, stochastic test functions and design optimisation,” International Journal of Bio-Inspired Computation, vol. 2, no. 2, pp. 78–84, 2010, doi: 10.1504/IJBIC.2010.032124.

[28] S. S. Rao, Engineering Optimization: Theory and Practice, 4th ed. Hoboken, NJ, USA: John Wiley & Sons, 2009.

[29] E. K. Burke, M. Gendreau, M. Hyde, G. Kendall, G. Ochoa, E. Özcan, and R. Qu, “Hyper-heuristics: A survey of the state of the art,” Journal of the Operational Research Society, vol. 64, no. 12, pp. 1695–1724, 2013, doi: 10.1057/jors.2013.71.

[30] C. H. Papadimitriou and K. Steiglitz, Combinatorial Optimization: Algorithms and Complexity. Englewood Cliffs, NJ, USA: Prentice-Hall, 1982.

[31] R. Y. Abdul Ameer, M. S. Salman, and A. K. Al-Mashhadani, "A hybrid algorithm to bypass some weak features in the particle swarm and firefly algorithms...with an application to the traveling salesman problem," Tikrit Journal of Administrative and Economic Sciences, vol. 18, no. 60, pt. 1, pp. 635–652, 2022, doi: 10.25130/tjaes.18.60.1.35.

Downloads

Published

2026-06-29

Issue

Section

Articles

How to Cite

A Hybrid Firefly Algorithm Particle Swarm Optimization (FA–PSO) Metaheuristic for Solving the Traveling Salesman Problem (TSP). (2026). Minang Mathematics Journal (MMJ), 1(1), 63-78. https://www.journal.pustakainspirasi.com/mmj/article/view/111

Similar Articles

You may also start an advanced similarity search for this article.