Set parameters and Initialize pheromone trails
Begin
= ;    //Take cost ;
repeat
  for each ant k do
    construct an assignment ;
    if fit( ) < fit( ) then
     ;
  endfor;
   update pheromone trails;
until the maximum evaluation number is arrived or
  the other termination condition is satisfied;
return   ;
End
Algorithm 1: ACO_Basic.