文件名称:遗传算法——旅行商问题mfc
-
所属分类:
- 标签属性:
- 上传时间:2017-07-06
-
文件大小:88kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
旅行商问题:一个旅行者要去很多城市,每个城市只去一次,问:该怎么走路线最短?
?
?????? 这个问题可以转化为:随机给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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.