登录
首页 » Matlab » 蚁群算法-TSP旅行商问题

蚁群算法-TSP旅行商问题

于 2022-02-13 发布 文件大小:1.56 kB
0 67
下载积分: 2 下载次数: 2

代码说明:

旅行商问题 (TSp问题 )假设有个旅行商人要拜访3 1个城市,他 需要选 择所要 走 的路径 , 路径的限制是每个城市只能拜访1次 , 而且最后要回到原来出发的城市 。 路径的选择要求是所选路径的路程为所有路径之中的最小值 。全 国 3 1 个城市的坐标为 [13 0 4 2 3 12 ; 3 6 3 9 13 15 , 4 17 7 2 2 4 4 ; 3 7 12 13 9 93 4 8 8 15 3 5 ; 3 3 2 6 15 5 6 ; 3 2 3 8 12 2 9 ; 4 19 6 10 0 4 , 4 3 12 7 9 0 , 4 3 8 6 5 7 0 ; 3 0 0 7 19 7 0 ; 2 5 6 217 5 6 ; 2 7 8 8 14 9 1 , 2 3 8 1 16 7 6 ; 13 3 2 6 9 5 ; 3 7 15 16 7 8 ; 3 9 18 2 17 9 , 4 0 6 1 2 3 7 0 ; 3 7 8 02 2 12,3 6 7 6 2 5 7 8 ; 4 0 2 9 2 8 3 8 ; 4 2 6 3 2 9 3 1 ; 3 4 2 9 19 0 8 ; 3 5 0 7 2 3 6 7 ; 3 3 9 4 2 6 4 3 , 3 4 3 93 2 0 1; 2 9 3 5 3 2 4 0 ; 3 14 0 3 5 5 0 ; 2 5 4 5 2 3 5 7 ; 2 7 7 8 2 8 2 6 ; 2 3 7 0 2 9 7 5]·解 仿真过程如下( 1 ) 初始化蚂蚁个数 m = 5 0 , 信息素重要程度参数 A lp h a = 1 , 启发式因子重要程度参数 B e ta = 5 , 信息素蒸发系数 R h o = 0 1 , 最大迭代次数 G = 2 0 0 , 信息(2 ) 将 m 个蚂蚁置于 n 个城市上 , 计算待选城市的概率分布 , m 只蚂蚁按概率函数选择下 座城市 , 完成各 自的周游 。(3 ) 记 录本次迭代最佳路线 , 更新信息素 , 禁忌表清零 。(4 ) 判断是否满足终止条件 若满足 , 则结束搜索过程 , 输 出优化值 若不满足 , 则继续进行迭代优化

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

发表评论

0 个回复

  • ekf
    卡尔曼滤波MATLAB实现,已测试很好用,放心下载哈(ka er man lv bo)
    2014-08-18 18:13:18下载
    积分:1
  • face-detection
    可以从一幅含有头和肩部的图像中检测出人脸,并用矩形框框起来,将矩形框中的人脸裁剪出来并另存为80*80的图片(Can be detected an image containing a head and shoulders of a person' s face, and the frame up with a rectangle, the human face of the rectangular box to cut out and save it as 80* 80 pictures)
    2014-12-15 11:48:31下载
    积分:1
  • IFC
    matlab supporter file programming
    2012-01-26 14:15:22下载
    积分:1
  • DCTLSBDWTcode
    基于DCT,DFT,DWT等的水印算法,还有加置乱的水印算法,用于图像处理方面(Based on the DCT, DFT, DWT, such as the watermarking algorithm, as well as increase the watermark scrambling algorithm, for image processing)
    2008-05-20 17:06:38下载
    积分:1
  • randraw
    EFFICIENT RANDOM VARIATES GENERATOR (from over 50 distributions):Alpha, Anglit, Antilognormal, Arcsin, Bernoulli, Bessel, Beta, Binomial, Bradford, Burr, Cauchy, Chi, Chi-Square (Non-Central), Chi-Square (Central), Cobb-Douglas, Cosine, Double-Exponential, Erlang, Exponential, Extreme-Value, F (Central), F (Non-Central), Fisher-Tippett, Fisk, Frechet, Furry, Gamma, Generalized Inverse Gaussian, Generalized Hyperbolic, Geometric, Gompertz, Gumbel, Half-Cosine, Hyperbolic Secant, Hypergeometric, Inverse Gaussian, Laplace, Logistic, Lognormal, Lomax, Lorentz, Maxwell, Nakagami, Negative Binomial, Normal, Normal-Inverse-Gaussian (NIG), Pareto, Pareto2, Pascal, Planck, Poisson, Quadratic, Rademacher, Rayleigh, Rice, Semicircle, Skellam, Student s-t, Triangular, Truncated Normal, Tukey-Lambda, U-shape, Uniform (continuous), Von Mises, Wald, Weibull, Wigner Semicircle, Yule, Zeta,(EFFICIENT RANDOM VARIATES GENERATOR (from over 50 distributions): Alpha, Anglit, Antilognormal, Arcsin, Bernoulli, Bessel, Beta, Binomial, Bradford, Burr, Cauchy, Chi, Chi-Square (Non-Central), Chi-Square (Central), Cobb-Douglas, Cosine, Double-Exponential, Erlang, Exponential, Extreme-Value, F (Central), F (Non-Central), Fisher-Tippett, Fisk, Frechet, Furry, Gamma, Generalized Inverse Gaussian, Generalized Hyperbolic, Geometric, Gompertz, Gumbel, Half-Cosine, Hyperbolic Secant, Hypergeometric, Inverse Gaussian, Laplace, Logistic, Lognormal, Lomax, Lorentz, Maxwell, Nakagami, Negative Binomial, Normal, Normal-Inverse-Gaussian (NIG), Pareto, Pareto2, Pascal, Planck, Poisson, Quadratic, Rademacher, Rayleigh, Rice, Semicircle, Skellam, Student s-t, Triangular, Truncated Normal, Tukey-Lambda, U-shape, Uniform (continuous), Von Mises, Wald, Weibull, Wigner Sem)
    2020-12-06 23:19:22下载
    积分:1
  • Matlab 游戏 »
    Matlab 游戏 »-Matlab games>>
    2022-02-20 18:10:53下载
    积分:1
  • 维特比译码器
    非系统卷积码的维特比译码器。编码器可以设计任意通过生成矩阵和参数 k。行数生成矩阵是输出比特和科洛姆是约束长度。参数 k 是并行输入的数量。test.m 是一个主要的文件。
    2022-03-26 04:40:49下载
    积分:1
  • 一个好的支持向量机优化算法开源码
    最小均方误差(MMSE)的算法,自写曲率计算函数 ,利用自然梯度算法,基于chebyshev的水声信号分析,本科毕设要求参见标准测试模型,是路径规划的实用方法。
    2022-05-24 00:50:39下载
    积分:1
  • bianma
    在matlab环境下实现自相关与功率谱密度的计算()
    2008-05-08 10:17:34下载
    积分:1
  • BTOandUKF
    说明:  本程序是利用matlab编写的基于UKF算法的非合作无源定位的程序。(This procedure is the use of matlab prepared UKF algorithm based on non-cooperative passive positioning procedures.)
    2008-09-04 23:05:42下载
    积分:1
  • 696518资源总数
  • 105578会员总数
  • 20今日下载