很不错,值得一用,谢谢了,支持楼主
THANK YOU VERY MUCH,HOPING YOU WILL HAVE ANOTHER ONE!
根据上述分析,可写出用模拟退火算法求解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)等等。
呵呵,谢谢楼主共享啦.............
刚下了一个,不能运行,不知这个????????????
还是看例子比较直接一点,支持楼主。
先看看啊 谢啦~~~~~~~~~~~~~~~~~~~
好资料!谢谢共享!
谢谢LZ分享。。。。。。。。。。。
谢谢楼主的好东西,下走了哈……