Skip to main content
. 2020 Aug 19;20(17):4657. doi: 10.3390/s20174657
Algorithm 1. The pseudo code of ABC
1. Intialization stage: Initialize the population
Repeat
2. Employed bee stage: Each employed bee to search new food sources in neighborhood.
3. Onlooker bee stage: Each onlooker bee to search new food sources by the probability Pi.
4. Scout bee stage: Each scout bee to search new food sources randomly.
5. Record the best solution: Record the best solution found by all current bees.
Until (stop conditions are met)