gusucode.com > 十大算法matlab程序说明 > 十大算法matlab程序说明/图论/哈密尔顿回路/TSP模拟退火/accept.m

    function y=accept(t,df)
y=(df<0)|(((df/t)<88)&(exp(-df/t)>rand(1,1)));