Research Article
Parameter Determination of Milling Process Using a Novel Teaching-Learning-Based Optimization Algorithm
Pseudocode 5
The pseudocode of DATLBO algorithm.
Input: , , , , , , FESMAX; ; ; ; | = 2.5; = 0.25 = 0.001; = 0.9; = 0.1; = 2; = 3; | (1) ; | (2) Generate an initial population: ; | (3) FES = ; ; | (4) While FES <= FESMAX | (6) Evaluate the objective function values: ; | (7) [, ] = min(fitness); | (7) Find the best learner: ; | (8) = mean(); | (9) For | (10) = round(1 + rand); | (11) For | (12) ; | (13) If | (14) | (15) End If | (16) If | (17) ; | (18) End If | (19) End For | (20) End For | (21) sf = ; [pp, mm] = sort(fitness); fitness = pp; (mm,:) | (22) For | (23) For to do | (24) If | (25) ; | (26) Else | (27) ; | (28) End If | (29) End For | (30) End For | (31) index1 = roulette wheel 1 (fitness, , ); | (32) For | (33) For to do | (34) ; | (35) End For | (36) ; | (37) If | (38) ; | (39) End If | (40) End For | (41) index2 = roulette wheel 2 (fitness, , , ); | (42) For | (43) For to do | (44) For | (45) For to do | (46) ; | (47) End For | (48) End For | (49) ; | (50) ; | (51) If | (52) ; | (53) End If | (54) End For | (55) End For | End |
|