The goal of electrical distribution networks is to restore electricity with as little resistance as possible over the network's architecture. This article went through many revisions before being accepted on February 22, 2019. The most likely strategy for doing this is to restructure artificial ant colonies. Quickly restoring full service is essential. Once the malfunctioning part is removed, the system may function normally again. Power outages are a certainty if something occurs. To provide continuous power, these loads must be supplied by nearby healthy feeders via reconfiguration without affecting routine, load balancing, or other needs. There is a 30%-40% Holmic loss that is taken into account by the manner of distribution. A power flow study should be performed to determine the bus voltages, branch currents, and power losses in the system before any changes are made to reduce these losses (i.e., real or Holmic or copper loss and reactive power loss). The suggested research employs a direct load flow analysis to get to the bottom of problems. The IEEE 33 bus and IEEE 69 bus testing systems help minimize harmonic losses, while the IEEE four feeder testing system facilitates power restoration in the event of a blackout..