| Algorithm 1 Rat optimization algorithm without Levy flight strategy |
|
Begin Step 1. Set the initial position of the rat swarm Step 2. Determine all the search agents’ fitness = the best search agent Step 3. while () do for each search agent Update , , , , r, and if 1 if 2 Update the location of the current search agent employing Equation (2) else if 2 Randomly choose a search agent Update the location of the current search agent employing Equation (5) end if 2 else if 1 Update the location of the current search agent employing Equation (7) end if 1 end for Verify whether any search agents cross the search space and make the necessary changes Determine all the search agents’ fitness If a better solution exists, update end while return End |