Research Article

A Hybrid Genetic-Simulated Annealing Algorithm for the Location-Inventory-Routing Problem Considering Returns under E-Supply Chain Environment

Pseudocode 1

Pseudocode of the proposed HGSAA.
Procedure: HGSAA for LIRP
Input: coordinates of nodes, demands and returns of DPs, MC parameters, vehicle capacity,
  HGSAA parameters
Output: the best solution (include routes, MCs locations, order times and order size)
Begin
Take pop
for to pop_size
    Calculate individual fitness value
  end
    
while  
    select operator
       if then
         crossover operator
       end
       if then
        mutation operator
       end
     newpop
         for   to newpop_size
           Calculate individual fitness value
         end
     
     
            if then
               
               
               pop(best,:) = newpop(newbest,:)
            elseif
                 
            else
                 
               
               
                  if then
                    
                    pop(best,:) = newpop(newbest,:)
               end
            
               end
     newpop(worst,:) = pop(best,:)
     pop = newpop
     
end
output the best solution
end