One well-known example of a challenging mixed-integer nonlinear optimisation problem is the problem of optimum reactive power dispatch. The bats analyse the echo to determine the position of their prey as well as its size before continuing on their hunt. We compare the outcomes of our technique to those of other bio-inspired algorithms, like the biogeography-based optimisation (BBO) algorithm, to determine its effectiveness. The suggested strategy has the potential to be more successful than almost all of existing methods in terms of having lower minimum values and lower maximum values for the control parameters, according to comparisons of the findings. Bus no. 29 now has a solar power generation system, resulting in an additional 0.3 kW loss reduction. The simulation findings suggest that the bat optimisation algorithm (BOA) is more effective than the other algorithms tested from the research.