Research Article

Bare-Bones Teaching-Learning-Based Optimization

Algorithm 1

TLBO( ).
(1) Begin
(2)    Initialize (number of learners) and (number of dimensions)
(3)    Initialize learners and evaluate all learners
(4)   Donate the best learner as Teacher and the mean of all learners as Mean
(5)    while (stopping condition not met)
(6)       for each learner of the class % Teaching phase
(7)      
(8)      for    : 
(9)          
(10)      endfor
(11)      Accept if   is better than
(12)     endfor
(13)     for each learner of the class % Learning phase
(14)       Randomly select one learner , such that
(15)        if   better
(16)           for    : 
(17)           
(18)           endfor
(19)        else
(20)           for    : 
(21)           
(22)           endfor
(23)        endif
(24)        Accept if   is better than
(25)     endfor
(26)     Update the Teacher and the Mean
(27)  endwhile
(28) end