Research Article

Application of Artificial Bee Colony Algorithm to Portfolio Adjustment Problem with Transaction Costs

Algorithm 4

Modified artificial bee colony algorithm.
(1) Set population size SN, the number of maximum cycles MCN and the control parameter
(2) Perform Algorithm 2 to fulfill the chaotic initialization of population , and calculate
  their objective function values and fitness value values. Set and
(3) while  iteration   do
  // The employed bees phase
(4) for   to SN  do
(5)   Produce a new candidate food source corresponding to food source using (24)
(6)  if   ( )   Then  
(7)  else  
(8)  end if
(9) end for
(10) Calculate the fitness values of all food sources and the probability values by using (15)
  // The onlooker bees phase
(11) Set
(12) while     do
(13)  if     then
(14)   Set
(15)   Produce a new candidate food source for the onlooker bee corresponding to food source using (24)
(16)   if     then
(17)    
(18)   else  
(19)   end if
(20)  end if
(21)  Set
(22) if     then  
(23) end if
(24) end while
  //The scout bees phase
(25) for   to SN  do
(26)  if     then
(27)    Perform Algorithm 3 to implement chaotic search
(28)  end if
(29) end for
(30) Set
(31) end while