文件名称:遗传算法——旅行商问题mfc
- 所属分类:
- 其他小程序
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2017-07-06
- 文件大小:
- 88kb
- 下载次数:
- 0次
- 提 供 者:
- littl*****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
下载
别用迅雷、360浏览器下载。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
介绍说明--下载内容均来自于网络,请自行研究使用
旅行商问题:一个旅行者要去很多城市,每个城市只去一次,问:该怎么走路线最短?
?
?????? 这个问题可以转化为:随机给n个点,如何连线这n个点,使得连线最短?
?
?????? 这个问题是遗传算法的经典问题~哈哈~~我试着写了一个程序来解决。
?
?????? 采用的策略是:
1.?????? 精英主义:每次有2个最优解直接进入下一代。
2.?????? 轮盘赌选择生育:每次对每一代的个体进行一次轮询,如果不适应度<某个随机数,那么选择这个个体进行生育。
3.?????? 单性繁殖:因为基因组的基因是互斥的且有序的,所以不适合两性繁殖。
4.?????? 交换变异:变异的方式为——随机选择两个不同位置的基因,交换位置。(Traveling salesman problem: a traveler is going to many cities, each city only once, ask: how to go, the shortest route?
This problem can be transformed into random to n points, how to connect the n points, the shortest line?
This problem is a classic problem of genetic algorithm ~ ha ha ~ ~ I try to write a program to solve.
Strategy is used:
1. elitism: every time there are 2 optimal solution directly into the next generation.
2. Roulette: every time a family of polling each generation of individuals, if not to "a random number, then the individual choice of fertility.
3. parthenogenesis: because genes are mutually exclusive and orderly, so it is not suitable for sexual reproduction.
4. exchange variation way -- random selection of two different positions of the gene exchange position.)
?
?????? 这个问题可以转化为:随机给n个点,如何连线这n个点,使得连线最短?
?
?????? 这个问题是遗传算法的经典问题~哈哈~~我试着写了一个程序来解决。
?
?????? 采用的策略是:
1.?????? 精英主义:每次有2个最优解直接进入下一代。
2.?????? 轮盘赌选择生育:每次对每一代的个体进行一次轮询,如果不适应度<某个随机数,那么选择这个个体进行生育。
3.?????? 单性繁殖:因为基因组的基因是互斥的且有序的,所以不适合两性繁殖。
4.?????? 交换变异:变异的方式为——随机选择两个不同位置的基因,交换位置。(Traveling salesman problem: a traveler is going to many cities, each city only once, ask: how to go, the shortest route?
This problem can be transformed into random to n points, how to connect the n points, the shortest line?
This problem is a classic problem of genetic algorithm ~ ha ha ~ ~ I try to write a program to solve.
Strategy is used:
1. elitism: every time there are 2 optimal solution directly into the next generation.
2. Roulette: every time a family of polling each generation of individuals, if not to "a random number, then the individual choice of fertility.
3. parthenogenesis: because genes are mutually exclusive and orderly, so it is not suitable for sexual reproduction.
4. exchange variation way -- random selection of two different positions of the gene exchange position.)
相关搜索: 旅行商问题
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Genetic\bin\Genetic.exe
Genetic\Genetic\GAMachine.cpp
Genetic\Genetic\GAMachine.h
Genetic\Genetic\Gene.cpp
Genetic\Genetic\Gene.h
Genetic\Genetic\Genetic.aps
Genetic\Genetic\Genetic.cpp
Genetic\Genetic\Genetic.h
Genetic\Genetic\Genetic.rc
Genetic\Genetic\Genetic.vcproj
Genetic\Genetic\Genetic.vcproj.WIN-UVKUUTKWBIF.Administrator.user
Genetic\Genetic\GeneticDlg.cpp
Genetic\Genetic\GeneticDlg.h
Genetic\Genetic\Genome.cpp
Genetic\Genetic\Genome.h
Genetic\Genetic\ReadMe.txt
Genetic\Genetic\res\Genetic.ico
Genetic\Genetic\res\Genetic.rc2
Genetic\Genetic\resource.h
Genetic\Genetic\stdafx.cpp
Genetic\Genetic\stdafx.h
Genetic\Genetic\targetver.h
Genetic\Genetic.sln
Genetic\Genetic\res
Genetic\bin
Genetic\Genetic
Genetic
Genetic\Genetic\GAMachine.cpp
Genetic\Genetic\GAMachine.h
Genetic\Genetic\Gene.cpp
Genetic\Genetic\Gene.h
Genetic\Genetic\Genetic.aps
Genetic\Genetic\Genetic.cpp
Genetic\Genetic\Genetic.h
Genetic\Genetic\Genetic.rc
Genetic\Genetic\Genetic.vcproj
Genetic\Genetic\Genetic.vcproj.WIN-UVKUUTKWBIF.Administrator.user
Genetic\Genetic\GeneticDlg.cpp
Genetic\Genetic\GeneticDlg.h
Genetic\Genetic\Genome.cpp
Genetic\Genetic\Genome.h
Genetic\Genetic\ReadMe.txt
Genetic\Genetic\res\Genetic.ico
Genetic\Genetic\res\Genetic.rc2
Genetic\Genetic\resource.h
Genetic\Genetic\stdafx.cpp
Genetic\Genetic\stdafx.h
Genetic\Genetic\targetver.h
Genetic\Genetic.sln
Genetic\Genetic\res
Genetic\bin
Genetic\Genetic
Genetic