Research Article

A Novel Harmony Search Algorithm Based on Teaching-Learning Strategies for 0-1 Knapsack Problems

Algorithm 3

The improvisation procedure of new harmony by ITHS.
For i= 1to Ddo
   If  rand() < HMCR
          
   If  rand() < PAR
       If   //Group  A
         If  rand() < 0.5
         
         Else
           
         Endif
       Else   //Group  B
         
         
       Endif
       
     Endif
  Else
     
   Endif
EndFor