masx200 / ant_system_optimization-for-tsp

Ant_system_optimization for tsp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ant_system_optimization for tsp

介绍

Ant_system_optimization for tsp

软件架构

软件架构说明

安装教程

  1. xxxx
  2. xxxx
  3. xxxx

使用说明

python Untitled-1.py

结果

lengthbest [8516.95849437 8516.95849437 8516.95849437 8516.95849437 8516.95849437
 8516.95849437 8516.95849437 8516.95849437 8516.95849437 8338.15941822
 8338.15941822 8338.15941822 8338.15941822 8338.15941822 8338.15941822
 8338.15941822 8338.15941822 8321.31140255 8321.31140255 8321.31140255
 8321.31140255 8321.31140255 8321.31140255 8321.31140255 8321.31140255
 8310.07887022 8310.07887022 8310.07887022 8007.14265245 8007.14265245
 8007.14265245 8007.14265245 8007.14265245 8007.14265245 8007.14265245
 8007.14265245 8007.14265245 8007.14265245 8007.14265245 8007.14265245
 8007.14265245 8007.14265245 7870.67893195 7870.67893195 7870.67893195
 7870.67893195 7870.67893195 7870.67893195 7870.67893195 7870.67893195
 7870.67893195 7870.67893195 7799.59580044 7799.59580044 7799.59580044
 7799.59580044 7791.3756341  7791.3756341  7791.3756341  7791.3756341
 7791.3756341  7791.3756341  7791.3756341  7791.3756341  7677.66084431
 7677.66084431 7677.66084431 7677.66084431 7677.66084431 7677.66084431
 7677.66084431 7677.66084431 7677.66084431 7677.66084431 7677.66084431
 7677.66084431 7677.66084431 7677.66084431 7677.66084431 7677.66084431
 7677.66084431 7677.66084431 7677.66084431 7677.66084431 7677.66084431
 7677.66084431 7677.66084431 7677.66084431 7677.66084431 7677.66084431
 7677.66084431 7677.66084431 7677.66084431 7677.66084431 7677.66084431
 7677.66084431 7677.66084431 7677.66084431 7677.66084431 7677.66084431
 7677.66084431 7677.66084431 7677.66084431 7677.66084431 7663.5851285
 7663.5851285  7663.5851285  7663.5851285  7663.5851285  7663.5851285
 7663.5851285  7663.5851285  7663.5851285  7663.5851285  7663.5851285
 7663.5851285  7663.5851285  7663.5851285  7663.5851285  7663.5851285
 7663.5851285  7663.5851285  7663.5851285  7663.5851285  7663.5851285
 7663.5851285  7663.5851285  7663.5851285  7663.5851285  7663.5851285
 7663.5851285  7663.5851285  7663.5851285  7663.5851285  7663.5851285
 7663.5851285  7663.5851285  7663.5851285  7663.5851285  7663.5851285
 7663.5851285  7663.5851285  7663.5851285  7663.5851285  7663.5851285
 7663.5851285  7663.5851285  7663.5851285  7663.5851285  7663.5851285 ]
bestpath [22. 19. 49. 15. 45. 43. 33. 34. 35. 38. 39. 37. 36. 47. 23.  4. 14.  5.
  3. 24. 11. 27. 26. 25. 46. 12. 13. 51. 10. 50. 32. 42.  9.  8.  7. 40.
 18. 44. 31. 48.  0. 21. 30. 17.  2. 16. 20. 41.  6.  1. 29. 28.]

参考资料:

https://www.zhangshengrong.com/p/4yNqQMYONA/

About

Ant_system_optimization for tsp

License:Other


Languages

Language:Python 100.0%