Stillorchid 发表于 2010-1-17 15:47

很不错,值得一用,谢谢了,支持楼主

Stillorchid 发表于 2010-1-17 15:48

THANK YOU VERY MUCH,HOPING YOU WILL HAVE ANOTHER ONE!

juneshumo 发表于 2010-1-20 20:00

根据上述分析,可写出用模拟退火算法求解TSP问题的伪程序:
Procedure TSPSA:
 begin
  init-of-T; { T为初始温度}
  S={1,……,n}; {S为初始值}
  termination=false;
  while termination=false
   begin
    for i=1 to L do
      begin
        generate(S′form S); { 从当前回路S产生新回路S′}
        Δt:=f(S′))-f(S);{f(S)为路径总长}
        IF(Δt<0) OR (EXP(-Δt/T)>Random-of-)
        S=S′;
        IF the-halt-condition-is-TRUE THEN
        termination=true;
      End;
    T_lower;
   End;
 End
  模拟退火算法的应用很广泛,可以较高的效率求解最大截问题(Max Cut Problem)、0-1背包问题(Zero One Knapsack Problem)、图着色问题(Graph Colouring Problem)、调度问题(Scheduling Problem)等等。

liaobin7360049 发表于 2010-1-25 20:15

呵呵,谢谢楼主共享啦.............

chenglincai 发表于 2010-1-31 11:01

刚下了一个,不能运行,不知这个????????????

david_m 发表于 2010-2-7 21:27

还是看例子比较直接一点,支持楼主。

梦游枪手 发表于 2010-2-8 21:14

先看看啊                 谢啦~~~~~~~~~~~~~~~~~~~

sea_star666 发表于 2010-2-9 01:31

好资料!谢谢共享!

tk190478 发表于 2010-2-10 22:29

谢谢LZ分享。。。。。。。。。。。

琴子 发表于 2010-3-15 15:50

谢谢楼主的好东西,下走了哈……
页: 1 2 [3] 4 5 6 7 8 9 10 11 12
查看完整版本: 模拟退火算法源代码