Description: 利用蚁群算法求解tsp问题的源代码,这个模板能够运行。
如果你想带入自己的数据只需要修改城市的坐标矩阵(也就是C)和蚂蚁数量、迭代次数就能很好的运行并得到结果了。
希望对你学习蚁群算法有所帮助。-Using the ant colony algorithm to solve the tsp problem source code, this template can run.
If you want to bring your own data only need to modify the city s coordinate matrix (that is, C) and the number of ants, the number of iterations can run well and get the results.
Hope to help you learn ant colony algorithm. Platform: |
Size: 5120 |
Author:雷磊 |
Hits: