Genetic algorithm applied to TSP

バージョン 1.0.0 (1.55 KB) 作成者: CoderK
This code implements a genetic algorithm-based solver for the Traveling Salesman Problem (TSP). It starts by setting parameters such as the
ダウンロード: 47
更新 2024/7/7

ライセンスの表示

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.

引用

CoderK (2025). Genetic algorithm applied to TSP (https://www.mathworks.com/matlabcentral/fileexchange/169221-genetic-algorithm-applied-to-tsp), MATLAB Central File Exchange. に取得済み.

MATLAB リリースの互換性
作成: R2024a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
謝辞

ヒントを得たファイル: tsp with ga

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0