Research Article
Dual Strategy of Reconfiguration with Capacitor Placement for Improvement Reliability and Power Quality in Distribution System
Algorithm 1
 The main steps of binary salp swarm algorithm (BSSA) [
43].
| (1) | Initialize the search agents, maximum number of iterations, and salp population with considering of the binary bound of dimension |  | (2) | Retain the search agents that satisfies all the constraints |  | (3) | Run the load flow and evaluate the objective function using equation (7) |  | (4) | Calculate the reliability indices of each bus |  | (5) | Obtain the best salp position or leader salp position using equation (22) |  | (6) | Update the value of  using equation (23) |  | (7) | Update the location of the leader using equation (22) |  | (8) | Calculate the probabilities using equation (25) which take the output of equation (22) as an input to equation (26) |  | (9) | Update the followers using equation (24) |  | (10) | Check the program stopping condition, if , go to step 6, otherwise go to step 11 |  | (11) | Print the optimal results |  | (12) | End |  
  |