Research Article

Optimal Pipe Size Design for Looped Irrigation Water Supply System Using Harmony Search: Saemangeum Project Area

Pseudocode 1

Pseudocode of HS.
Begin
Objective function ,
Generate initial harmonics (Define Harmony Memory and Size, HM & HMS)
Define pitch adjusting rate (PAR), pitch limits and bandwidth (BW)
Define harmony memory considering rate (HMCR)
while ( number of iterations)
Generate new harmonics by accepting best harmonics
Adjust pitch to get new harmonics (solutions)
if ( ), choose an existing harmonic randomly
else if ( ), adjust the pitch randomly within limits
else generate new harmonics via randomization
end if
Accept the new harmonics (solutions) if better
end while
Find the current best solutions
End