文件名称:FindRouteGUI
- 所属分类:
- 人工智能/神经网络/遗传算法
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 10kb
- 下载次数:
- 0次
- 提 供 者:
- c***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
1,已完成功能
(1)距离短时大部分情况下可以选择最短路径进行移动
(2)加入了精英选择优化算法
(3)无论地图大小一定可以得出路径
(4)点击障碍物可以得出路径
3,代码改进
将原来两大类(Widget,Geno)拆分成三个类(Widget,Handle,Geno),
Widget:显示界面等可视化元素,获取最短路径并显示移动,
Handle:优化路径,得出最短路径,以后会加入通信模块
Geno:计算得出一定数量的可达路径
4,算法描述
(1)遗传算法:
根据起始点的曼哈顿距离得出染色体的大约长度,最好比曼哈顿距离稍大。
在计算过程中如果没法得出可达路径(则适应性分数不等于1)会自动加大染色体长度。
-1, has completed the function
(1) short distance in most cases you can choose the shortest path to move
(2) joined the elite selection optimization algorithm
(3) regardless of the size of the map can be drawn a certain path
(4) Click on the path obstructions can be drawn
3, code improvements
The original two categories (Widget, Geno) split into three categories (Widget, Handle, Geno),
Widget: display interface and other visual elements, to obtain the shortest path and display the movement
Handle: optimal path, draw the shortest path, the communication module will be added later
Geno: up to a certain number of calculated path
4, the algorithm described
(1) genetic algorithm:
According to arrive at the starting point of the Manhattan distance about the length of the chromosome, preferably slightly larger than the Manhattan distance.
If in the calculation process can not come up the path (if not equal to 1 adaptability scores) will automatically increase the
(1)距离短时大部分情况下可以选择最短路径进行移动
(2)加入了精英选择优化算法
(3)无论地图大小一定可以得出路径
(4)点击障碍物可以得出路径
3,代码改进
将原来两大类(Widget,Geno)拆分成三个类(Widget,Handle,Geno),
Widget:显示界面等可视化元素,获取最短路径并显示移动,
Handle:优化路径,得出最短路径,以后会加入通信模块
Geno:计算得出一定数量的可达路径
4,算法描述
(1)遗传算法:
根据起始点的曼哈顿距离得出染色体的大约长度,最好比曼哈顿距离稍大。
在计算过程中如果没法得出可达路径(则适应性分数不等于1)会自动加大染色体长度。
-1, has completed the function
(1) short distance in most cases you can choose the shortest path to move
(2) joined the elite selection optimization algorithm
(3) regardless of the size of the map can be drawn a certain path
(4) Click on the path obstructions can be drawn
3, code improvements
The original two categories (Widget, Geno) split into three categories (Widget, Handle, Geno),
Widget: display interface and other visual elements, to obtain the shortest path and display the movement
Handle: optimal path, draw the shortest path, the communication module will be added later
Geno: up to a certain number of calculated path
4, the algorithm described
(1) genetic algorithm:
According to arrive at the starting point of the Manhattan distance about the length of the chromosome, preferably slightly larger than the Manhattan distance.
If in the calculation process can not come up the path (if not equal to 1 adaptability scores) will automatically increase the
(系统自动生成,下载前可以参看下载内容)
下载文件列表
FindRouteGUI\findroutealg.h
............\FindRouteGUI.pro
............\FindRouteGUI.pro.user
............\geno.cpp
............\genome.cpp
............\handle.cpp
............\handle.h
............\main.cpp
............\route.qrc
............\routemap.cpp
............\widget.cpp
............\widget.h
............\widget.ui
FindRouteGUI
............\FindRouteGUI.pro
............\FindRouteGUI.pro.user
............\geno.cpp
............\genome.cpp
............\handle.cpp
............\handle.h
............\main.cpp
............\route.qrc
............\routemap.cpp
............\widget.cpp
............\widget.h
............\widget.ui
FindRouteGUI