摘要:Modern electrical power systems are becoming increasingly complex and are expanding at an accelerating pace. The power system’s transmission lines are under more strain than ever before. As a result, the power system is experiencing a wide range of issues, including rising power losses, voltage instability, line overloads, and so on. Losses can be minimized and the voltage profile can be improved when energy resources are installed on appropriate buses to optimize real and reactive power. This is especially true in densely congested networks. Optimal power flow (OPF) is a basic tool for the secure and economic operation of power systems. It is a mathematical tool used to find the instantaneous optimal operation of a power system under constraints meeting operation feasibility and security. In this study, a new application algorithm named white shark optimizer (WSO) is proposed to solve the optimal power flow (OPF) problems based on a single objective and considering the minimization of the generation cost. The WSO is used to find the optimal solution for an upgraded power system that includes both traditional thermal power units (TPG) and renewable energy units, including wind (WPG) and solar photovoltaic generators (SPG). Although renewable energy sources such as wind and solar energy represent environmentally friendly sources in line with the United Nations sustainable development goals (UN SDG), they appear as a major challenge for power flow systems due to the problems of discontinuous energy production. For overcoming this problem, probability density functions of Weibull and Lognormal (PDF) have been used to aid in forecasting uncertain output powers from WPG and SPG, respectively. Testing on modified IEEE-30 buses’ systems is used to evaluate the proposed method’s performance. The results of the suggested WSO algorithm are compared to the results of the Northern Goshawk Optimizer (NGO) and two other optimization methods to investigate its effectiveness. The simulation results reveal that WSO is more effective at finding the best solution to the OPF problem when considering total power cost minimization and solution convergence. Moreover, the results of the proposed technique are compared to the other existing method described in the literature, with the results indicating that the suggested method can find better optimal solutions, employ less generated solutions, and save computation time.