DOI:
https://doi.org/10.14483/22487638.21052Publicado:
30-06-2025Número:
Vol. 29 Núm. 84 (2025): Abril - JunioSección:
InvestigaciónSolución al Problema del Agente Viajero usando un algoritmo de colonia de abejas
Solution to the TSP Problem Using an Algorithm Bee Colony
Palabras clave:
2-opt, Bee colony, Heuristic, Metaheuristic, Traveling Salesman Problem (en).Palabras clave:
2-opt, Colonia de Abejas, Heurística, Metaheurística, Problema del Agente Viajero, TSP (es).Descargas
Resumen (es)
El Problema del Agente Viajero, o TSP por sus siglas en inglés (Travelman Salesman Problem), es un problema de optimización que consiste en hallar la ruta mínima para recorrer n ciudades, partiendo desde la ciudad de origen o nodo cero, visitando todas las ciudades y retornando nuevamente al punto o ciudad de origen. Este artículo expone una solución al problema utilizando la heurística exacta 2-opt, en combinación con una metaheurística de Colonia de Abejas, con el fin de obtener soluciones de buena calidad.
Objetivo: usar la heurística 2-opt y la metaheurística algoritmo Colonia de Abejas para encontrar soluciones cercanas al óptimo, o incluso iguales, para el problema del agente viajero.
Metodología: se emplearon las heurísticas MTZ y 2-opt para obtener soluciones iniciales de buena calidad, de tal forma que, al combinarlas con el algoritmo de Colonia de Abejas, estas pudieran mejorarse y tener valores cercanos o mejores que el óptimo reportado en la literatura.
Resultados: Entre los resultados obtenidos para las instancias de TSPLIB, donde se agrupan casos conocidos como att48, berlin52, dantzig42, datasahara, oliver30, entre otras, la aplicación la metaheurística de colonia de abejas se llegó a resultados por encima del 10 por ciento del óptimo, valor que no era adecuado, posteriormente al combinarse con la heurística 2-opt se mejoró dicha solución alcanzándose valores cercanos al óptimo en instancias como oliver30, dantzig42 y datashara.
Conclusiones: aunque el modelo MTZ es una heurística que, por su modelo matemático, ayuda a romper subtours y a encontrar buenas soluciones iniciales, presenta el inconveniente de que, a medida que se aumenta el número de ciudades, su complejidad polinómica hace difícil que se tenga un buen punto de partida para la solución final. Por esta razón, optamos por usar una heurística 2-opt que hace cambios en la misma ruta, logrando romper los subtours y encontrando soluciones de buena calidad mejoradas con la metaheurística Colonia de Abejas.
Resumen (en)
The Traveling Salesman Problem (TSP) is an optimization problem that seeks the shortest possible route for a tour of n cities, starting from an origin city (node zero), visiting each city, and returning to the city of departure. This article present a solution to the Traveling Salesman Problem is presented using an exact heuristic called 2-opt combined with a bee colony metaheuristic. This combination allows for finding high-quality solutions.
Objective: To use the 2-opt heuristic and the Bee Colony metaheuristic algorithm to find solutions close to or equal to the optimum for the Traveling Salesman Problem.
Methodology: The MTZ and 2-opt heuristics were employed to generate good-quality initial solutions, which were subsequently refined through the Bee Colony algorithm to improve performance and approach optimal results.
Results: Among the results obtained for the instances from TSPLIB, which include some well-known ones such as att48, berlin52, dantzig42, datasahara, oliver30, among others, when applying the Bee Colony metaheuristic.
Results above 10 percent of the optimum were obtained, which was not satisfactory. However, by combining it with the 2-opt heuristic, the solution was improved, reaching values close to the optimum in instances such asoliver30, dantzig42, and datashara
Conclusions: Although the MTZ model is a heuristic that, due to its mathematical formulation, helps break subtours and find good initial solutions, it has the drawback that as the number of cities increases, its polynomial complexity makes it difficult to obtain a good starting point for the final solution. For this reason, we opted to use a 2-opt heuristic, which makes changes to the same route, successfully breaking subtours and finding good-quality solutions that are further improved with the Bee Colony metaheuristic.
Referencias
I. Hincapie, C. Rios, y R. Gallego, "Técnicas Heurísticas Aplicadas al Cartero Viajante (TSP)", Revista Scientia et Technica, n.º 24, mzo. 2004. [En línea]. Disponible: https://revistas.utp.edu.co/index.php/revistaciencia/article/view/7279
H. Röglin, y B. Vöcking, "Worst Case and Probabilistic Analysis of the 2-Opt Algorithm for the TSP", Algorithmica, n.º 68, pp. 190-264, ene. 2014. DOI: https://doi.org/10.1007/s00453-013-9801-4
J. Velasquez, Sistemas de Transporte: Modelado y Optimización, 2013.
J. Velasquez, R. Linfati, y W. Adarme, "Problema de Localización y Ruteo con Restricciones de Capacidad: Revisión de la Literatura", Revista Facultad de Ingeniería, vol. 24, n.º 39, 2015. [En línea]. Disponible: https://www.redalyc.org/articulo.oa?id=413940776008
L. Rocha, C. González, y J. Orjuela, "Una revisión al estado del arte del problema de ruteo de vehículos: Evolución histórica y Métodos de Solución", Revista Facultad de Ingeniería, vol. 16, n.º 2, pp. 35-55, 2011. DOI: https://doi.org/10.1007/s10898-007-9149-x
D. Karaboga, y B. Basturk, "A powerful and efficient algorithm for numerical function optimization: artificial bee colony (ABC) algorithm", Journal of Global Optimization, vol. 39, pp. 459-471, 2007. DOI: https://doi.org/10.1007/s10898-007-9149-x
J. A. Villegas, C. J. Grisales, y G. Gatica, "Una aplicación del método MTZ a la solución del problema del agente viajero", Revista Scientia Et Technica, vol. 22, n.º 4, pp. 341-344, dic. 2017. DOI: https://doi.org/10.22517/23447214.12751
A. Pavez, y H. Almonacid, "Un Algoritmo ACS con Selección Dinámica de Movimiento y Operador 2-Opt", Ingeniería Informática, n.º 8, 2002. [En línea]. Disponible: http://inf.udec.cl/~revista/ediciones/edicion8/Acs.pdf
M. S. Cisneros Perez, J. P. Sanchez Solis, G. Rivera Zarate, V. Garcia Jimenez, y R. Florencia Juarez, "Algoritmo de colonia de hormigas para abordar el problema de order picking", Memorias del Congreso Internacional de Investigación Academia Journals Hidalgo 2020, vol. 12, n.º 7, pp. 387-392, 2020. [En línea]. Disponible: http://cathi.uacj.mx/bitstream/handle/20.500.11961/16411/Memoria%20ACO.pdf?sequence=1&isAllowed=y
W.-C. Yeh, J. C. P. Su, S.-J. Hsieh, M. Chih, y S.-L. Liu, "Approximate Reliability Function Based on Wavelet Latin Hypercube Sampling and Bee Recurrent Neural Network", IEEE Transactions on Reliability, vol. 60, n.º 2, pp. 404-414, 2011. DOI: https://doi.org/10.1109/TR.2011.2134190
L. C. Augusto, G. Andrade, y C. B. Cunha, "An ABC heuristic for optimizing moveable ambulance station location and vehicle repositioning for the city of São Paulo", International Transactions in Operational Research, vol. 22, n.º 3, pp. 473-501, 2015. DOI: https://doi.org/10.1111/itor.12160
K. Ihsan, y L. Mostarda, "Novel Concave Hull-Based Heuristic Algorithm For TSP", Operations Research Forum, vol. 3, n.º 25, 2022. DOI: https://doi.org/10.1007/s43069-022-00137-9
A. C. Borges, R. Padilha, A. Rangel, y Y. Iano, "The fundamentals and potential of heuristics and metaheuristics for multiobjective combinatorial optimization problems and solution methods", Academic Press, pp. 9-29, 2022. DOI: https://doi.org/10.1016/B978-0-12-823799-1.00002-4
M. A. Moroyoqui Olan, U. Orozco Rosas, y K. Picos, "Implementación de un Algoritmo Genético Modificado para la solución al Problema del Agente Viajero", vol. 8, n.º 17, 2022. [En línea]. Disponible: https://repositorio.cetys.mx/handle/60000/1426
Cómo citar
APA
ACM
ACS
ABNT
Chicago
Harvard
IEEE
MLA
Turabian
Vancouver
Descargar cita
Licencia
Derechos de autor 2025 Jairo Alberto Villegas Flórez, Ángel Augusto Agudelo Zapata, John Andrés Muñoz Guevara

Esta obra está bajo una licencia internacional Creative Commons Atribución-CompartirIgual 4.0.
Esta licencia permite a otros remezclar, adaptar y desarrollar su trabajo incluso con fines comerciales, siempre que le den crédito y concedan licencias para sus nuevas creaciones bajo los mismos términos. Esta licencia a menudo se compara con las licencias de software libre y de código abierto “copyleft”. Todos los trabajos nuevos basados en el tuyo tendrán la misma licencia, por lo que cualquier derivado también permitirá el uso comercial. Esta es la licencia utilizada por Wikipedia y se recomienda para materiales que se beneficiarían al incorporar contenido de Wikipedia y proyectos con licencias similares.
