Optimizing the Traveling Salesman Problem Using Machine Learning and Predictive Algorithms

Authors

  • Asiyah Ahmad Mojatecs IT Solutions

DOI:

https://doi.org/10.70356/josapen.v3i1.46

Keywords:

Optimizing, Traveling Salesman Problem, Machine Learning, Predictive Algoritms

Abstract

The Traveling Salesman Problem (TSP) is a foundational challenge in optimization, with applications in logistics, routing, and scheduling. Traditional algorithms such as dynamic programming and brute-force search guarantee optimal solutions but become computationally expensive as the number of cities grow, hindering scalability. Consequently, research has shifted towards machine learning (ML) and predictive algorithms, which show promise in approximating optimal solutions more efficiently. This study aims to optimize TSP using ML models, specifically focusing on enhancing scalability and minimizing computational overhead. The approach incorporates techniques like reinforcement learning (RL) and graph neural networks (GNNs), leveraging their ability to learn and generalize from smaller problem instances. The primary contribution of this work is an ML-driven framework for TSP, which demonstrates improved efficiency and adaptability compared to traditional algorithms. Evaluation metrics, including total path length, convergence time, and optimality gap, validate the model's effectiveness, achieving optimal paths with reduced execution time. This research offers a practical ML-based solution for TSP that balances accuracy with computational speed, providing a feasible alternative for large-scale and dynamic real-world applications.

Downloads

Download data is not yet available.

References

A. Formella, “Quasi-linear time heuristic to solve the Euclidean traveling salesman problem with low gap,” J. Comput. Sci., vol. 82, no. December 2023, p. 102424, 2024, doi: 10.1016/j.jocs.2024.102424.

S. Linganathan and P. Singamsetty, “Genetic algorithm to the bi-objective multiple travelling salesman problem,” Alexandria Eng. J., vol. 90, no. September 2023, pp. 98–111, 2024, doi: 10.1016/j.aej.2024.01.048.

K. García-Vasquez, R. Linfati, and J. W. Escobar, “A three-phase algorithm for the pollution traveling Salesman problem,” Heliyon, vol. 10, no. 9, p. e29958, 2024, doi: 10.1016/j.heliyon.2024.e29958.

H. Liang, S. Wang, H. Li, L. Zhou, X. Zhang, and S. Wang, “BiGNN: Bipartite graph neural network with attention mechanism for solving multiple traveling salesman problems in urban logistics,” Int. J. Appl. Earth Obs. Geoinf., vol. 129, no. January, p. 103863, 2024, doi: 10.1016/j.jag.2024.103863.

S. Sun, Y. Tong, B. Qi, Z. Wang, and X. Wang, “Hybrid particle swarm optimization algorithm for traveling salesman problem based on ternary optical computer,” Procedia Comput. Sci., vol. 243, pp. 1280–1287, 2024, doi: 10.1016/j.procs.2024.09.151.

M. Scianna, “The AddACO: A bio-inspired modified version of the ant colony optimization algorithm to solve travel salesman problems,” Math. Comput. Simul., vol. 218, no. November 2023, pp. 357–382, 2024, doi: 10.1016/j.matcom.2023.12.003.

S. Chowdhury, M. Marufuzzaman, H. Tunc, L. Bian, and W. Bullington, “A modified Ant Colony Optimization algorithm to solve a dynamic traveling salesman problem: A case study with drones for wildlife surveillance,” J. Comput. Des. Eng., vol. 6, no. 3, pp. 368–386, 2019, doi: 10.1016/j.jcde.2018.10.004.

Q. Li et al., “Transportation and production collaborative scheduling optimization with multi-layer coding genetic algorithm for non-pipelined wells,” Heliyon, vol. 11, no. 1, p. e41307, 2025, doi: 10.1016/j.heliyon.2024.e41307.

H. Nematzadeh, J. García-Nieto, S. Hurtado, J. F. Aldana-Montes, and I. Navas-Delgado, “Model-agnostic local explanation: Multi-objective genetic algorithm explainer,” Eng. Appl. Artif. Intell., vol. 139, no. PB, p. 109628, 2025, doi: 10.1016/j.engappai.2024.109628.

P. Torabi, A. Hemmati, A. Oleynik, and G. Alendal, “A deep reinforcement learning hyperheuristic for the covering tour problem with varying coverage,” Comput. Oper. Res., vol. 174, no. October 2024, p. 106881, 2025, doi: 10.1016/j.cor.2024.106881.

R. Dhanalakshmi, P. Parthiban, and N. Anbuchezhian, “Optimisation of multiple travelling salesman problem using metaheuristic methods,” Int. J. Enterp. Netw. Manag., vol. 13, no. 3, pp. 199–215, 2022, doi: 10.1504/ijenm.2022.125803.

O. I. R. Farisi, B. Setiyono, and R. Imbang Danandjojo, “A hybrid approach to multi-depot multiple traveling salesman problem based on firefly algorithm and ant colony optimization,” IAES Int. J. Artif. Intell., vol. 10, no. 4, pp. 910–918, 2021, doi: 10.11591/IJAI.V10.I4.PP910-918.

Z. Ling, Y. Zhou, and Y. Zhang, “Solving multiple travelling salesman problem through deep convolutional neural network,” IET Cyber-systems Robot., vol. 5, no. 1, 2023, doi: 10.1049/csy2.12084.

S. Linganathan and P. Singamsetty, “Genetic algorithm to the bi-objective multiple travelling salesman problem,” Alexandria Eng. J., vol. 90, no. September 2023, pp. 98–111, 2024, doi: 10.1016/j.aej.2024.01.048.

A. Hamza, A. Haj Darwish, and O. Rihawi, “A new local search for the bees algorithm to optimize multiple traveling salesman problem,” Intell. Syst. with Appl., vol. 18, no. April, p. 200242, 2023, doi: 10.1016/j.iswa.2023.200242.

Published

2025-01-02

How to Cite

Ahmad, A. (2025). Optimizing the Traveling Salesman Problem Using Machine Learning and Predictive Algorithms. Journal of Computer Science Application and Engineering (JOSAPEN), 3(1), 1–5. https://doi.org/10.70356/josapen.v3i1.46