登录
首页 » Matlab » 蚁群算法求解TSP

蚁群算法求解TSP

于 2022-04-25 发布 文件大小:2.58 kB
0 166
下载积分: 2 下载次数: 2

代码说明:

%蚁群算法求解TSP问题的matlab程序 clear all close all clc %初始化蚁群 m=31;%蚁群中蚂蚁的数量,当m接近或等于城市个数n时,本算法可以在最少的迭代次数内找到最优解 C=[1304 2312;3639 1315;4177 2244;3712 1399;3488 1535;3326 1556;3238 1229;4196 1004;    4312 790;4386 570;3007 1970;2562 1756;2788 1491;2381 1676;1332 695;3715 1678;    3918 2179;4061 2370;3780 2212;3676 2578;4029 2838;4263 2931;3429 1908;3507 2367;    3394 2643;3439 3201;2935 3240;3140 3550;2545 2357;2778 2826;2370 2975];%城市的坐标矩阵 Nc_max=200;%最大循环次数,即算法迭代的次数,亦即蚂蚁出动的拨数(每拨蚂蚁的数量当然都是m) alpha=1;%蚂蚁在运动过程中所积累信息(即信息素)在蚂蚁选择路径时的相对重要程度,alpha过大时,算法迭代到一定代数后将出现停滞现象 beta=5;%启发式因子在蚂蚁选择路径时的相对重要程度 rho=0.5;%0

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • prml-web-sol
    经典的国外bitshop关于机器学习和模式识别教程,全是英文,内容详细(Classic foreign bitshop tutorial on machine learning and pattern recognition, all in English, detailed)
    2010-06-12 13:28:58下载
    积分:1
  • ThinPlateSpline_MatlabCode
    说明:  一个薄板样条模型(thin plate spline)matlab源代码(A thin plate spline model (thin plate spline) matlab source code)
    2008-09-17 18:31:18下载
    积分:1
  • HIAT2.0
    高光谱分析工具包 用于matlab环境中 可以比较省事实力的对高光普图像分析 很实用(hyperspectral analysis)
    2011-10-19 11:14:38下载
    积分:1
  • 仿真 matlabsAZ
    一个有趣的结果,在这次比赛是去年的冠军团队 最小 modi 正离子和完工大约在宇空实验室与竞争 积分榜。因此,没有证据作为一个整体,条目的坡是很多 比前一年更强: 大约一半的队能打败前 冠军
    2022-03-15 14:34:22下载
    积分:1
  • LDPC
    LDPC(低密度奇偶校验码)中和积译码的算法的matlab仿真。(LDPC (low density parity check codes), and plot decoding algorithm matlab simulation.)
    2012-09-01 14:19:12下载
    积分:1
  • ARspectram-analysis
    该程序的主要功能是对心音信号进行AR功率谱分析,同时带有去噪功能。(The program' s main function is to heart sound signals AR power spectrum analysis, and with denoising function.)
    2011-11-27 10:00:31下载
    积分:1
  • bbbcfv1
    BBBCF 宇宙大爆炸优化算法的matlab源码,一种相对来说比较新的优化方法,用于求解最优解问题(BBBCF iterates one iteration a population according to the rules of Big-Bang Big Crunch method. It overwrites new population over the previous one. As the number of iterations grow, it searches new candidates in alimited search space.)
    2014-02-25 10:32:55下载
    积分:1
  • code
    this code is in Matlab.and this code od for Speaker recognitoin system.
    2009-03-14 03:15:55下载
    积分:1
  • MAT_PD_MATPGM-1
    MTI AND PD RADAR USE MATLAB 书中的源代码,不是最全的,但是最新的。 新买的原版书附件,第一次放在网上,其他应该地方下不到。(MTI AND PD RADAR USE MATLAB code of the book)
    2013-08-02 07:47:34下载
    积分:1
  • Engine_Simulink
    一个简单的发动机模型,大家可以互相学习,这个模型是别人做建立的(A simple engine simulink model )
    2012-04-15 13:16:45下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载