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


function next_city=acs_next_tour(pres_city,city_num,choice_info,tempant) 
%使用确定行搜索规则选择下一访问城市 
next_city=0; 
temp_info=0; 
for i=1:city_num 
    if (tempant.visited(i)~=1)&&(temp_info<choice_info(pres_city,i)) 
        next_city=i; 
        temp_info=choice_info(pres_city,i); 
    end 
end