Research Article

Parameter Determination of Milling Process Using a Novel Teaching-Learning-Based Optimization Algorithm

Pseudocode 4

The pseudocode of dynamic assignment learning strategy.
Begin
Set: sf = ; [pp, mm] = sort(fitness); fitness = pp; = (mm,:);
(1) For  
(2)  For   to do
(3)  If  
(4)  ;
(5)  Else
(6)  ;
(7)  End If
(8)  End For
(9) End For
(10) index1 = roulette wheel 1 (fitness, , );
(11)  For  
(12)  For   to do
(13)   ;
(14)  End For
(15) ;
(16)   If  
(17)   ;
(18)   End If
(19) End For
(20) index2 = roulette wheel 2 (fitness, , , );
(21)  For  
(22)  For   to do
(23)   For  
(24)    For   to do
(25)    ;
(26)    End For
(27)   End For
(28)  ;
(29)  ;
(30)   If  
(31)   ;
(32)   End If
(33)  End For
(34) End For
End