Research Article
Flame Image Segmentation Based on the Bee Colony Algorithm with Characteristics of Levy Flights
Pseudocode 1
The pseudocode of LFABC algorithm.
Begin | Step 1. Initialized population parameters. | Step 2. discard solution, upper limit of the iterations MSN. | Step 3. Evaluating (), Cycle = 0, limit = 0. | Step 4. Repeat | /honey-gathering bees/ | Step 5. For to SN then do | Equation (6) is used to generate the new solution , Evaluate . | If ( was superior to ) | replace by . | else | limit++. | End If | Step 6. End For | Step 7. Memorize the best solution . | /observation bees/ | Step 8. For to SN | If (rand < pro[]) | Equation (8) is used to generate the new solution , Evaluate . | If ( was superior to ) | replace by . | else | limit++. | End If | Step 9. End For | /scout bees/ | Step 10. For to SN | If (limit ≥ MSN) | Discard solution, (9) is used to obtain the new solution. | End If | Step 11. End For | Step 12. Memorize the best solution till now, Cycle = Cycle + 1. | Step 13. Until (Cycle = maximum cycle number) | End. |
|