Research Article

Modified Whale Optimization Algorithm for Solar Cell and PV Module Parameter Identification

Algorithm 1

MWOA.
Initialize the whale’s population X;
Calculate the fitness of each search agent;
Leader_pos = the best search agent;
while (t < maximum number of iterations)
  for each search agent
   Update a, A, C, l and ;
   if ()
    if (|A| < 1)
     Update the position of the current search agent by equation (10);
  else if (|A| ≥ 1)
   Update the position of the current agent by equation (16);
end if
else if ()
   Update the position of the current search agent by equation (14);
  end if
  Carry on the Levy flight for each agents using equation (25);
end for
 Using pattern search to the best agent Leader_pos;
 Check if any search agent goes beyond the search space and amend it;
 Calculate the fitness of each search agent;
 Update Leader_pos if there is a better solution;
t = t + 1;
end while
return Leader_pos;