Shortest Route Optimization with Genetic Algorithm Implementation in JavaScript.

Farid Fitriyadi(1*)


(1) Universitas Sahid Surakarta
(*) Corresponding Author

Abstract


Shortest route optimization is a classic problem in the field of combinatorial optimization with wide applications in various domains, such as transportation, logistics, and path planning. This research aims to solve the shortest route optimization problem using a genetic algorithm implemented in the JavaScript programming language. Genetic algorithms are metaheuristic methods inspired by the principles of biological evolution, such as natural selection, crossover, and mutation. In this study, the representation of individuals in the genetic algorithm is the sequence of cities visited, and the fitness function is based on the total distance traveled. The initial population is randomly generated, and the evolution of the population occurs through a series of generations by applying genetic operators. The experimental results show that after 200 generations, the genetic algorithm successfully finds a route with a total distance of 26.540475042607596, which is close to the optimal solution. The implementation of the genetic algorithm in JavaScript demonstrates its potential as an effective tool for solving the shortest route optimization problem. However, several suggestions for further development are also discussed, including parameter tuning, alternative selection strategies, variations of genetic operators, hybridization with other algorithms, and visualization of results. This research provides insights into the application of genetic algorithms in shortest route optimization and demonstrates how this technique can be implemented using JavaScript as a popular programming language.


Keywords


Genetic Algorithm, JavaScript, Shortest Route

References


References

N. F. Lakutu, S. L. Mahmud, M. R. Katili, and N. I. Yahya, “Dijkstra and Greedy Algorithms for Route Optimization in Gorontalo Post Office,” Euler: Jurnal Ilmiah Matematika, Sains dan Teknologi, vol. 11, no. 1, pp. 55–65, 2023.

S. E. Ramadhania and S. Rani, “Implementation of Genetic Algorithm and Tabu Search Combination for Solving the Traveling Salesman Problem,” Automata, vol. 2, no. 1, 2021.

M. I. Hanafi, B. C. Junior, and Y. D. Rosita, “Route Optimization for Brochure Distribution Using Genetic Algorithm,” Jurnal Informatika Teknologi dan Sains (Jinteks), vol. 5, no. 2, pp. 265–270, 2023.

D. R. Anamisa and F. A. Mufarroha, Basic Web Programming Theory and Implementation: HTML, CSS, Javascript, Bootstrap, CodeIgniter. Media Nusa Creative (MNC Publishing), 2022.

A. Y. Mubarok and U. Chotijah, “Application of Genetic Algorithm for Optimizing Shortest Path Combination in Traveling Salesman Problem,” Jurnal Teknologi Terpadu, vol. 7, no. 2, pp. 77–82, 2021.


Article Metrics

Abstract view : 25 times


DOI: https://doi.org/10.26714/jichi.v6i1.15777

Refbacks

  • There are currently no refbacks.


____________________________________________________________________________
Journal of Intelligent Computing and Health Informatics (JICHI)
ISSN 2715-6923 (print) | 2721-9186 (online)
Organized by
Department of Informatics
Faculty of Engineering
Universitas Muhammadiyah Semarang

W : https://jurnal.unimus.ac.id/index.php/ICHI
E : jichi.informatika@unimus.ac.id, ahmadilham@unimus.ac.id

View My Stats