文件名称:遗传算法——旅行商问题mfc

  • 所属分类:
  • 其他小程序
  • 资源属性:
  • [Windows] [Visual.Net] [源码]
  • 上传时间:
  • 2017-07-06
  • 文件大小:
  • 88kb
  • 下载次数:
  • 0次
  • 提 供 者:
  • littl*****
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容均来自于网络,请自行研究使用

旅行商问题:一个旅行者要去很多城市,每个城市只去一次,问:该怎么走路线最短?
?
?????? 这个问题可以转化为:随机给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

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org