Research Article
Adaptive Rat Swarm Optimization for Optimum Tuning of SVC and PSS in a Power System
Algorithm 2
Adaptive rat swarm optimization.
| Define algorithm parameters: N, | | For i = 1 to N//generate initial population | | Initialize the rats’ position, , using equation (7) | | Evaluate opposite of rats’ position, , based on equation (13) | | If | | Replace with | | End if | | End for//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 | | Change the worst agent with a new one using equation (14) | | Update best agent | | t = t + 1 | | End while |
|