登录
首页 » 算法 » 98年全国大学生数学建模竞赛B题“水灾巡视问题”,是一个推销员问题,本题有53个点,所有可能性大约为exp(53),目前没有好方法求出精确解,既然求不出精确解,...

98年全国大学生数学建模竞赛B题“水灾巡视问题”,是一个推销员问题,本题有53个点,所有可能性大约为exp(53),目前没有好方法求出精确解,既然求不出精确解,...

于 2023-05-19 发布 文件大小:2.76 kB
0 208
下载积分: 2 下载次数: 1

代码说明:

98年全国大学生数学建模竞赛B题“水灾巡视问题”,是一个推销员问题,本题有53个点,所有可能性大约为exp(53),目前没有好方法求出精确解,既然求不出精确解,我们使用模拟退火法求出一个较优解,将所有结点编号为1到53,1到53的排列就是系统的结构,结构的变化规则是:从1到53的排列中随机选取一个子排列,将其反转或将其移至另一处,能量E自然是路径总长度。具体算法描述如下:步1: 设定初始温度T,给定一个初始的巡视路线。步2 :步3 --8循环K次步3:步 4--7循环M次步4:随机选择路线的一段步5:随机确定将选定的路线反转或移动,即两种调整方式:反转、移动。步6:计算代价D,即调整前后的总路程的长度之差步7:按照如下规则确定是否做调整:如果D0,则按照EXP(-D/T)的概率进行调整步8:T*0.9-->T,降温-98 National Mathematical Contest in Modeling B and that the "flood inspections", is a salesman problem, and that is 53 points, all possibilities about exp (53), there is no good way to get accurate solutions, since no exact solution for, we used simulated annealing France obtained an optimum solution to all nodes to a number of 53 to 53.1 is with the system structure, changes in the structure of the rules is : from 1-53 with a randomly selected with a son, to reverse or to move it to another, the energy E is the natural path length. The specific algorithm is described as follows : Step 1 : The initial set temperature T,

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

发表评论

0 个回复

  • 低于平均分的学生人数
    计算score中m个人的平均成绩aver,将低于aver的成绩放在below中,通过函数名返回人数。例如,当score={10,20,30,40,50,60,70,80,90},m=9时,函数返回的人数应该是4,below={10,20,30,40}
    2022-01-26 02:30:57下载
    积分:1
  • vc++ commonly used numerical algorithm set: contains: interpolation, integration...
    vc++常用的数值算法集:包含:插值,积分,逼近,排序等等常用的数值算法,其中包含都包含代码-vc++ commonly used numerical algorithm set: contains: interpolation, integration, approximation, and so commonly used to sort numerical algorithm, which includes both contain code
    2022-03-25 03:27:17下载
    积分:1
  • //最小二乘直线拟合 m_FoldList为关键点(x,y)的链表 拟合直线方程(Y=kX+b)...
    //最小二乘法直线拟合 m_FoldList为关键点(x,y)的链表 拟合直线方程(Y=kX+b) -//linear least squares fitting m_FoldList as the key point (x, y) of Chain fitting linear equation (Y = C/56 b)
    2022-06-12 06:09:24下载
    积分:1
  • 模拟退火介绍,来自某一论坛,既有简介又有不同人的讨论,值得仔细揣摩、...
    模拟退火算法介绍,来自某一论坛,既有简介又有不同人的讨论,值得仔细揣摩、-Simulated annealing algorithm introduction, from a forum for both brief and the discussion of different people, it is worth carefully try to figure out,
    2022-08-17 06:03:06下载
    积分:1
  • 本程序实现了列主元高斯消去,程序层次清晰,界面详细
    本程序实现了列主元高斯消去法,程序层次清晰,界面详细-this program out of the main yuan Gaussian elimination method, procedure levels clear and detailed interface
    2022-11-15 13:35:04下载
    积分:1
  • 8051 串口 循环缓冲区
    串口C程序 , STC mcu ,循环缓冲区, 解决串口丢数据问题, 实际工程中很稳定, 接收时, 在中断中接收, 写入循环缓冲区, 主程序去循环缓冲区中取数据。 
    2022-02-11 15:18:41下载
    积分:1
  • 图像的二值化,采用最大类间方差otsu实现,自己写的c程序,可以直接运行
    本人用c自己实现的otsu二值化程序,绝对原创,可以直接运行,是linux版本的,对于window而言,稍作修改即可运行。这里对rgb图像进行处理,可以看到运行之后的效果。
    2023-07-17 03:25:04下载
    积分:1
  • 本程序包括5种数字滤波
    本程序包括5种数字滤波算法。-this program includes five digital filtering algorithms.
    2023-01-03 11:10:04下载
    积分:1
  • 最小生成树的Kruskal
    C语言算法编程。最小生成树的Kruskal算法 。求加权连通图的最小生成树的算法。kruskal算法总共选择n- 1条边,(共n个点)所使用的贪心准则是:从剩下的边中选择一条不会产生环路的具有最小耗费的边加入已选择的边的集合中。注意到所选取的边若产生环路则不可能形成一棵生成树。kruskal算法分e 步,其中e 是网络中边的数目。按耗费递增的顺序来考虑这e 条边,每次考虑一条边。当考虑某条边时,若将其加入到已选边的集合中会出现环路,则将其抛弃,否则,将它选入。
    2022-01-30 15:28:05下载
    积分:1
  • Based on M/G/K multi
    基于M/G/K 多类别共用一个资源的最优化分配问题程序 主要以系统总等待时间为目标函数-Based on M/G/K multi-class share an optimization of resources allocation process is essentially the system as the objective function the total waiting time
    2022-03-04 17:10:15下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载