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

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

于 2023-05-19 发布 文件大小:2.76 kB
0 217
下载积分: 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 个回复

  • 正整数x 的约数是能整除x 的正整数。正整数x 的约数个数记为div(x)。例如,1,2,5,10 都是正整数10 的约数,且div(10)=4。设a 和b 是...
    正整数x 的约数是能整除x 的正整数。正整数x 的约数个数记为div(x)。例如,1,2,5,10 都是正整数10 的约数,且div(10)=4。设a 和b 是2 个正整数,a≤b,找出a 和b之间约数个数最多的数x。 对于给定的2 个正整数a≤b,编程计算a 和b 之间约数个数最多的数。 数据输入 输入数据由文件名为input.txt的文本文件提供。文件的第1 行有2 个正整数a和b。 结果输出 程序运行结束时,若找到的a 和b 之间约数个数最多的数是x,将div(x)输出到文件output.txt中。 输入文件示例 输出文件示例 input.txt output.txt 1 36 9 -Positive integer x can be about a few of the positive integer x divisible. Positive integer x the approximate number recorded as the number of div (x). For example, 1,2,5,10 are about 10 positive integer number, and div (10) = 4. Set a and b are two positive integers, a ≤ b, to find a and b between about a few number of the largest number of x. For a given two positive integers a ≤ b, Programming calculated a and b between about a few number of the largest number. Data entry input data from the document text file named input.txt provide. File line 1 has two positive integers a and b. The results run the end of the output, if found between a and b of about a few number o
    2023-04-13 05:20:03下载
    积分:1
  • 遗传
    应用背景用于智能计算,分析调度等。最典型的就是解决tsp问题和背包问题。算法已经很成熟了,请大家放心使用,此代码只用于学习,不能用于商业用途,如果要用于商业用途请于作者联系。谢谢使用。关键技术 遗传算法模拟生物进化论来实现算法的优化。如,算法要随机的产生种群,然后种群就会像生物一样繁衍,它要进行遗传,自然选择,基因突变等方式产生更优秀的下一代种群。为了防止算法陷入局部最优解,所以算法要进行变异操作。详情可以联系我。希望大家可以多多交流。
    2023-03-17 00:10:04下载
    积分:1
  • 并行随机数生成方
    本程序利用mpi并行生成随机数,此方法利用线性同余算法,是一个主从模式的线性同余方法,可以并行生成多个随机数,程序可在Linux下运行。
    2023-08-08 19:05:04下载
    积分:1
  • C++作业,实现vector
    C++作业,实现vector-C operations and achieve vector
    2022-08-21 18:39:09下载
    积分:1
  • 通用图灵机
    应用背景通用图灵机是计算机的基础,曾获诺贝尔奖关键技术利用C语言模拟通用图灵机,通过不断地动态开辟来发现通用图灵机规律
    2022-02-02 11:56:45下载
    积分:1
  • Fuzzylogic is programmed by VB,simple,but the algorithm of it is deserved to hav...
    模糊逻辑的VB实现,简单,但是算法的生成很值得看看,在Diablo,halflife等都能见到它的身影,希望对此研究的有用-Fuzzylogic is programmed by VB,simple,but the algorithm of it is deserved to have a look,in Diablo, halflife you,etc. you could its use, so maybe it will what you want
    2022-08-07 07:40:40下载
    积分:1
  • Local K
    Local K-means Algorithm for Colour Image Quantization
    2022-06-11 17:22:15下载
    积分:1
  • loki 程序库
    loki 程序库-loki library
    2022-07-26 04:02:17下载
    积分:1
  • use c code function in matlab
    use c code function in matlab
    2022-07-25 21:45:42下载
    积分:1
  • 这是我用verilog hdl语言写的浮点乘器,用的是基4的booth,对于部分积使用了5...
    这是我用verilog hdl语言写的浮点乘法器,用的是基4的booth算法,对于部分积使用了5-2压缩和3-2压缩,欢迎大家指点,也欢迎大家把它改成流水线以提高速度.-This is my verilog hdl language used to write floating-point multiplier, using a Radix-4 algorithm for the booth for part of the plot using the 5-2 and 3-2 compression compression, welcomed everyone pointing, also welcomed the U.S. put it into a pipeline to improve speed.
    2022-08-14 05:45:48下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载