This work presents an optimal methodology based on an augmented, improved, subtraction-average-based technique (ASABT) which is developed to minimize the energy-dissipated losses that occur during electrical power supply. It includes a way of collaborative learning that utilizes the most effective response with the goal of improving the ability to search. Two different scenarios are investigated. First, the suggested ASABT is used considering the shunt capacitors only to minimize the power losses. Second, simultaneous placement and sizing of both PV units and capacitors are handled. Applications of the suggested ASAB methodology are performed on two distribution systems. First, a practical Egyptian distribution system is considered. The results of the simulation show that the suggested ASABT has a significant 56.4% decrease in power losses over the original scenario using the capacitors only. By incorporating PV units in addition to the capacitors, the energy losses are reduced from 26,227.31 to 10,554 kW/day with a high reduction of 59.75% and 4.26% compared to the initial case and the SABT alone, respectively. Also, the emissions produced from the substation are greatly reduced from 110,823.88 kgCO2 to 79,189 kgCO2, with a reduction of 28.54% compared to the initial case. Second, the standard IEEE 69-node system is added to the application. Comparable results indicate that ASABT significantly reduces power losses (5.61%) as compared to SABT and enhances the minimum voltage (2.38%) with a substantial reduction in energy losses (64.07%) compared to the initial case. For both investigated systems, the proposed ASABT outcomes are compared with the Coati optimization algorithm, the Osprey optimization algorithm (OOA), the dragonfly algorithm (DA), and SABT methods; the proposed ASABT shows superior outcomes, especially in the standard deviation of the obtained losses.