Professional Documents
Culture Documents
Harmony Search Algorithm
Harmony Search Algorithm
---------------------------------------------------------------------------------------
---------
for ( = 1; HMS; ++)
for ( = 1; ; ++)
Randomly initialize in HM;
end for
end for
Repeat
for ( = 1; ; ++)
if (rand(0, 1) < HMCR)
Let in x be the jth dimension of a randomly selected HM
member;
end if
else
Let in x be a random value;
end if
end for
Evaluate the fitness of x: (x);
if ( (x) is better than the fitness of the worst HM member)
Replace the worst HM member with x;
else
Disregard x;
end if
Until a preset termination criterion is met;
---------------------------------------------------------------------------------------
---------