www.pudn.com > anttsp.rar > acs_glob_pher_update.m, change:2008-04-20,size:338b


function pher=acs_glob_pher_update(glob_best,pher_evap_rate,city_num,pher) 
%ACS全局信息素更新 
for i=1:city_num 
    m=glob_best.tour(i); 
    n=glob_best.tour(i+1); 
    pher(m,n)=(1-pher_evap_rate)*pher(m,n)+pher_evap_rate/glob_best.length; 
    pher(n,m)=pher(m,n);                           %since the pher matrix is symmetrical 
end