(1)
(2) random initial point in variable space
(3) LOCALSEARCH ( )
(4) while  STOP not satisfied  do
(5)   PERTURB ( )
(6)   LOCALSEARCH ( )
(7)   if     then
(8)   
Algorithm 1: Basic BH framework in pseudocode.