amounts
1:Intitialization
Initialize food source (a set of centroids), use k-means to evaluate nectar amount of food sources; Send employed bees to the current food sources;
Iteration=0;
2: Do while (the termination criterion is not met)
3: Employed Bee’s Phase
Apply k-means and a greedy selection to evaluate new fitness values.
4: Onlooker Bee’s Phase
Evaluate probability values of food, apply k-means, and the greedy selection
5: Scout Bee’s Phase
Check the parameter “limit” amounts of food sources and produce a new food source in the search space for which exceed this parameter.
6: Memorize the best solution achieved so far
Iteration =Iteration + 1
End while
7: Output the best solution achieve