Research Article

An Enhanced Artificial Bee Colony-Based Support Vector Machine for Image-Based Fault Detection

Algorithm 1

The pseudocode of ABC algorithm.
The operation procedure of ABC algorithm
  - - Initialization phase - -
(1) Initialize the population of solutions and assign the population to employed bees
(2) while (cycle = MAXcycles) do
  - - Employed bee phase - -
(3)   for   to SN  do
(4)   Produce a new solution for employed bees and calculate its fitness value
(5)   Apply the greedy selection mechanism between and , select the better one
(6)   If the solution does not update, the non-updated number ; otherwise
(7)   end for
  - - Onlooker bee phase - -
(8)   Calculate the selection probability
(9)   ,
(10)   while () do
(11)   if random <   then
(12)     
(13)      Produce a new solution for onlooker bee of the solution and calculate its fitness value
(14)      Apply the greedy selection mechanism between and , select the better one
(15)      If the solution does not update, ; otherwise
(16)   end if
(17)   
(18)    If ,
(19)   end while ()
  - - Scout bee phase - -
(20)   if    then
(21)    Replace with a new random solution
(22)   end if
(23)   Memorize the current optimal solution
(24)   cycle = cycle + 1
(25) end while (cycle = MAXcycles)