Research Article
Teaching-Learning-Based Optimization with Learning Enthusiasm Mechanism and Its Application in Chemical Engineering
(1) Begin | (2)Initialize NP (number of learners) and D (dimension); | (3)Initialize learners and evaluate them; | (4)while stopping condition is not met | (5)Choose the best learner as ; | (6)Calculate the mean of all learners; | (7)for each learner | (8)// Teacher phase // | (9)TF = round(1 + rand); | (10)Update the learner according to Eq. (1); | (11)Evaluate the new learner ; | (12)Accept if it is better than the old one | (13)// Learner phase // | (14)Randomly select another learner which is different from ; | (15)Update the learner according to Eq. (2); | (16)Evaluate the new learner ; | (17)Accept if it is better than the old one ; | (18)end for | (19)end while | (20) end |
|