Research Article

Artificial Bee Colony Algorithm Merged with Pheromone Communication Mechanism for the 0-1 Multidimensional Knapsack Problem

Algorithm 1

ABC.
1. Initialization: Initialize parameters K, N, Limit, ( , K ;
2. Initial solutions: Randomly generated K food sources , K};
3. Loop:
For to N do:
 {
  (1) For to K do: (employed bees select food sources and perform local searches respectively)
   {Associate each employed bee with a food source and compute its nectar amount;
   Find a new in the neighborhood of and compute its nectar amount;
   Take the better one in , as a new location of the employed bee;}
  (2) For to K do: (onlooker bees help employed bees to perform further local searches)
   {Select a food source from for every onlooker bee;
   Find a new in the neighborhood of and compute its nectar amount;
   Take the better one in , as a new location of the corresponding bees;}
  (3) Exploiting new food sources (scout bees randomly carry out global searches)
  For to K do: (food sources)
   {If then ;
    If = Limit then
     {Abandon the and the associated employed bee becomes a scout;
     Randomly generate a new and the scout becomes an employed bee again;
      ;}}
  (4) Memorize the best food source found so far;
   ;
 }
4. Output: Return while the predefined end condition is met.