Research Article
Bare-Bones Teaching-Learning-Based Optimization
(1) Begin | (2) Initialize (number of learners), (number of dimensions) and hybridization factor | (3) Initialize learners and evaluate all learners | (4) while (stopping condition not met) | (5) for each learner of the class % Teaching phase | (6) | (7) Donate the and the in its neighborhood for each learner | (8) Updating each learner according (11) | (9) Accept if is better than | (10) endfor | (11) for each learner of the class % Learning phase | (12) Randomly select one learner , such that | (13) if rand(0, 1) < 0.5 | (14) Updating each learner according (3) | (15) else | (16) Donate the in its neighborhood for each learner | (17) Updating each learner according (12) | (18) endif | (19) Accept if is better than | (20) endfor | (21) endwhile | (22) end |
|