# Ant Colony System
This is a simple console implementation of the Ant Colony System algorithm by Dorigo & Gambardella as described in: *Dorigo, Marco, and Luca Maria Gambardella. "Ant colony system: a cooperative learning approach to the traveling salesman problem." IEEE Transactions on evolutionary computation 1.1 (1997): 53-66.*
It is written in **C# (build with .NET Core 2.0)**
# Running
Create TSP directory inside project folder and put there some `.tsp` file from TSPLIB repository.
By default it tries to load `kroA100.tsp` file. You can change load path in `Program.cs` file.
# Parameters
Default parameters (file `Parameters.cs`):
* Beta = 2
* Global Pheromone Evaporation Rate = 0.1
* Local Pheromone Evaporation Rate = 0.01
* Q0 = 0.9
* Ant Count = 20
* Iterations = 10000
# License
MIT License
Copyright (c) 2018 mbalchanowski
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
没有合适的资源?快使用搜索试试~ 我知道了~
蚁群系统 (ACS)算法 的简单控制台实现_C#_代码_下载
共16个文件
cs:12个
gitignore:1个
license:1个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 181 浏览量
2022-06-22
02:15:35
上传
评论 1
收藏 12KB ZIP 举报
温馨提示
在项目文件夹中创建 TSP 目录并将.tspTSPLIB 存储库中的一些文件放在那里。 默认情况下,它会尝试加载kroA100.tsp文件。您可以更改Program.cs文件中的加载路径。 参数 默认参数(文件Parameters.cs): 贝塔 = 2 全球信息素蒸发率 = 0.1 局部信息素蒸发率 = 0.01 Q0 = 0.9 蚂蚁数 = 20 迭代次数 = 10000 更多详情、使用方法,请下载后阅读README.md文件
资源推荐
资源详情
资源评论
收起资源包目录
Ant-Colony-System-master (1).zip (16个子文件)
Ant-Colony-System
ACS
Solver.cs 4KB
Ant.cs 3KB
Parameters.cs 2KB
AntColonySystem.csproj 526B
Program.cs 1KB
Helpers
GreedyAlgorithm.cs 3KB
Distance.cs 273B
Helper.cs 1KB
RandomGenerator.cs 819B
TspFileReader.cs 1KB
LICENSE 1KB
.gitignore 37B
README.md 2KB
Graph
Graph.cs 3KB
Edge.cs 492B
Point.cs 418B
共 16 条
- 1
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9149
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功