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
다운로드 수: 85
업데이트 날짜: 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 (2026). Genetic algorithm applied to TSP (https://kr.mathworks.com/matlabcentral/fileexchange/169221-genetic-algorithm-applied-to-tsp), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2024a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
도움

도움 받은 파일: tsp with ga

버전 게시됨 릴리스 정보
1.0.0