Genetic algorithm applied to TSP

Version 1.0.0 (1,55 ko) par CoderK
This code implements a genetic algorithm-based solver for the Traveling Salesman Problem (TSP). It starts by setting parameters such as the
85 téléchargements
Mise à jour 7 juil. 2024

Afficher la licence

This code implements a genetic algorithm-based solver for the Traveling Salesman Problem (TSP). It starts by setting parameters such as the number of cities, the number of generations, population size, mutation rate, and crossover rate. Then, it generates initial city coordinates and population. In each generation, it calculates the fitness of the population, selects the best route, performs selection, crossover, and mutation operations, and updates the population. Finally, it plots the best route. The entire process iteratively optimizes through a genetic algorithm to find the shortest path.

Citation pour cette source

CoderK (2025). Genetic algorithm applied to TSP (https://fr.mathworks.com/matlabcentral/fileexchange/169221-genetic-algorithm-applied-to-tsp), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R2024a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Remerciements

Inspiré par : tsp with ga

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Publié le Notes de version
1.0.0