Research Article

An Improved Teaching-Learning-Based Optimization with the Social Character of PSO for Global Optimization

Algorithm 2

TLBO().
Initialize (number of learners) and (number of dimensions)
Initialize learners and evaluate all learners
Donate the best learner as and the mean of all learners as
while (stopping condition not met)
for each learner of the class % Teaching phase
    = round(1 + rand())
   
   Accept if is better than
endfor
for each learner of the class % Learning phase
   Randomly select one learner , such that
   if better
      
   else
      
   endif
   Accept if is better than
endfor
Update and
endwhile