Journal of Control Science and Engineering / 2020 / Article / Alg 1

Research Article

An Enhanced Grasshopper Optimization Algorithm to the Bin Packing Problem

Algorithm 1

Enhanced grasshopper optimization algorithm.
Initialize the swarm position and the parameters
Initialize , , and as the maximum number of iterations
Calculate the fitness of each search agent and let T represent the best fitness
while do
 Calculate f using equation (6)
for i = 1 : N do
   Update using equation (3)
   Calculate the fitness
   if current fitness is worse than target fitness then
    conducts BHC Using equations (10) and (11)
  end if
  Bring the current search agent back if it travels outside the boundaries
end for
X conducts niche mechanism using equation (9)
 Update T and position
end while
Return the target fitness and target position

Article of the Year Award: Outstanding research contributions of 2020, as selected by our Chief Editors. Read the winning articles.