Research Article

Adaptive Rat Swarm Optimization for Optimum Tuning of SVC and PSS in a Power System

Algorithm 1

Rat swarm optimization.
Define algorithm parameters: N,
For i = 1 to N//generate initial population
  Initialize the rats’ position, , using equation (7)//algorithm process
 Initialize parameters A, C, and R
 Calculate the fitness value of each search agent
←best search agent
While x < //rats’ movement
 For i = 1 to N
  Update parameters A and C by equations (10) and (11)
  Update the positions of search agents using equation (8)
  Calculate the fitness value of each search agent
  If the search agent goes beyond the boundary limits adjust it
End for
  Update best agent
t = t + 1
End while