(1) op: Operators, : Conformations
(2) opR: Operator selection probabilities
(3) curP, newP: Current and new populations
(4) rwT: Number of non-improving generations before random walk
(5) //======================
(6) initPopulation( )
(7) foreach   until   do
(8)   selectOperator( , )
(9)   if mutation( ) then
(10)    foreach   do
(11)      newP.add(mutConf( ))
(12)   else
(13)     while     full( ) do
(14)      randomConfs( )
(15)      newP.add(crossConf( ))
(16)   if   improved( , )  then
(17)      randomWalk( )
(18)   
(19) return  bestConformation( )
Algorithm 2: The pseudocode of GA framework: geneticAlgorithm( ).