Abstract
Incorporating renewable energy sources (RESs) introduces a notable amount of uncertainty in the optimal planning and operation of electrical power grids. Under these circumstances, this paper proposes the application of a recently introduced metaheuristic optimization technique to solve the stochastic optimal power flow (OPF) problem involving wind and solar power sources. The self-adaptive bonobo optimizer (SaBO) is used to minimize three distinct objective functions: (i) Total generation cost (TGC) minimization, including both thermal and wind/solar generation costs, (ii) Power loss minimization, (iii) Combined generation cost and emissions effect minimization. The costs associated with the stochastic generation of wind and solar power included direct costs, reserves and penalty costs from the overestimation and underestimation of available wind and solar power, respectively. The performance of the proposed algorithm is evaluated on two power systems: the modified IEEE 30-bus and the Algerian DZA 114-bus test systems. To demonstrate the efficacy of the SaBO, the obtained results have been compared with those obtained from the Kepler optimization algorithm (KOA) and other recently published optimizers under the same case studies and constraints. The comparative results clearly show the superiority of the SaBO algorithm over all other well-known optimization algorithms provided in the literature for solving the OPF problem. This is evidenced by minimizing total generation costs of 781.2363 $/h for the modified IEEE 30-bus and 16,706.1630 $/h for the Algerian DZA-114-bus system. Furthermore, the integration of RES led to a notable 2.33% and 11.67% reduction in total generation cost for the IEEE 30-bus and Algerian DZA 114-bus systems, respectively, compared to their initial configurations without RESs. The promising findings highlight the powerful of the optimizer to solve non-linear and complex optimization problems in power systems.
Keywords
Introduction
Carpentier (1962) introduced the Optimal Power Flow (OPF), as an efficient and essential tool for the control and operational planning of electric power systems. The OPF has been widely applied in power systems and can be characterized as a large-scale optimization problem that involves non-linear objective functions and constraints. The OPF process aims to find the optimal solution that minimizes a desired objective function. This involves adjusting the control variables to meet diverse power flow constraints, including both equality and inequality constraints (Kouadri et al., 2020a).
Typically, various objective functions associated with the electrical power system are employed as the optimization objective. The most common objective functions include minimizing fuel cost, power transmission loss, gas emissions effect, voltage stability index, and voltage deviation, … etc. (Ali et al., 2022; Huy et al., 2022; Mouassa et al., 2022),. In this context, the adjustable control variables for achieving the desired system operation include the active power output of generators, generators voltage, transformers’ tap setting, and the reactive power output from compensators as well as FACTS devices (Ali et al., 2022; Mouassa et al., 2022).
The study of classical OPF problems focuses on conventional thermal generators powered by fossil fuels. However, given the significant growth of RESs, the OPF analysis becomes necessary to solve the complexities of the power system network caused by the intermittence and uncertainty associated with RESs (Biswas et al., 2017). In this context, the OPF problem’s computational complexity increases considerably and becomes more challenging (Li et al., 2020). To address these complexities, it is essential to formulate the problem that incorporating stochastic RESs like wind turbines (WT) and photovoltaic (PV) into the optimization process for the effective planning and operation of power systems. Several metaheuristic optimization techniques designed recently to effectively address this stochastic problem. These methods are widely used to overcome the limitations of conventional techniques, including aspects, such as robustness, accuracy, and performance convergence (Sulaiman and Mustaffa, 2021). Recently, there has been a notable increase in the attention given by researchers to the use of metaheuristic methods to solve issues related to the integration of stochastic RESs.
In the literature, Ali et al. (2022) proposed a white shark optimizer (WSO) algorithm to solve the OPF problem incorporating conventional thermal power generators (TPGs) and renewable energy generators (REGs). These later include solar power generators (SPGs) and wind power generators (WPGs). In this research work, the authors utilized lognormal and Weibull probability distribution functions (PDFs) to predict the output power of solar PV and wind generators. The results clearly show that WSO outperforms the Northern Goshawk Optimizer (NGO), Smell Agent Optimizer (SAO) and the Pelican Optimization Algorithm (POA). Moreover, the application of the suggested model on a large-scale system has not been carried out yet. The authors of Li et al. (2022) examined the multi-objective optimization problem considering stochastic solar and wind power in the modified IEEE 30-bus and IEEE 57-bus systems. In this context, two multi-objective algorithms called adaptive crossover non-dominated sorting differential evolution (ACNSDE) and non-dominated sorting genetic algorithm (NSGA-II) have been proposed to address this issue. Results from simulations suggest that NSGA-II outperforms ACNSDE in terms of performance when considering four different optimization objectives: namely generation cost, active power transmission loss, deviation of voltage, and emissions effects. In Sulaiman and Mustaffa (2023), a technique based on the improved salp swarm algorithm (iSSA) was proposed to address the OPF issues in a solar-thermal power system. The simulation was conducted on the IEEE 30-bus system, evaluating three different objectives: (1) Minimize power transmission loss, (2) Minimize generation cost, and (3) Minimize of combined generation cost considering emission effects. The proposed iSSA algorithm demonstrated remarkable efficiency compared to SSA and the different existing algorithms outlined in the literature. Mouassa et al. (2022) proposed the application of the slime mold algorithm (SMA) to solve a large-scale constrained optimization problem considering the stochastic behavior of solar and wind sources. The effectiveness of the SMA was evaluated through testing on modified IEEE 30-bus and real Algerian DZA 114-bus systems. The numerical results clearly show that the suggested SMA outperforms various other techniques available in the literature for addressing this problem involving renewable energy integration. In attempting the same issue, Nguyen et al. (2022) introduced a novel approach to solving the OPF problem with considering both solar and wind power, by employing an improved equilibrium optimizer (IEO) algorithm. The IEO approach proved its effectiveness in both small and large-scale systems against other existing techniques mentioned in this research.
Other notable uses of metaheuristic techniques for OPF problems with uncertain RESs include a Multi-Objective Search Group Algorithm (MOSGA) (Huy et al., 2022), Modified JAYA Algorithm (Elattar and ElSayed, 2019), Grey Wolf Optimization (GWO) (Khan et al., 2020), Multi-Objective Evolutionary Algorithm (MOEA) (Avvari and D. M, 2022), Modified Moth Swarm Algorithm (MMSA) (Elattar, 2019), Multi-Objective Horse Herd Optimization (MOHHO) (Ida Evangeline and Rathika, 2022), Flow Direction Algorithm (FDA) (Maheshwari et al., 2023), Gaussian bare-bones Levy-flight firefly algorithm (GBLFA) (Alghamdi, 2022), Jellyfish Search Optimizer (JS) (Farhat et al., 2021), Bird Swarm Algorithm (BSA) (Ahmad et al., 2021), Slime Mold Algorithm (SMA) (Kouadri et al., 2020b), Kepler Optimization Algorithm (KOA) (Abid et al., 2024), Adaptive Lightning Attachment Procedure Optimizer (ALAPO) (Adhikari et al., 2023), Circle search algorithm (CSA) (Shaheen et al., 2022), Equilibrium optimization (EO) (Amroune, 2022), Chaotic African Vultures Optimization Algorithm (CAVOA) (Mohamed et al., 2024), and Moth Flame Optimization (MFO) (Pandya and Jariwala, 2022).
The following summarizes the contribution and organization of the paper:
To the best of the authors’ knowledge, there is no existing documentation in the literature on the application of the self-adaptive bonobo optimizer (SaBO) to address the OPF problem under the uncertain power outputs from wind and solar generators.
In this paper, a novel physics-based metaheuristic optimization SaBO algorithm was designed to tackle the stochastic OPF problem incorporating wind and solar power generators. This algorithm was developed in 2023 by Das et al. (2023). The uncertainties associated with wind speed and solar irradiance are modeled using lognormal and Weibull probability distribution functions (PDFs), respectively.
To evaluate the proposed SaBO, four case studies are conducted on the modified IEEE 30-bus and practical Algerian 114-bus power systems connected to wind and power generators. The achieved results from the proposed algorithm are compared with other well-known optimization algorithms in the literature. Through these comparisons, the efficiency and performance of SaBO in addressing the stochastic OPF problem in these diverse power systems considering stochastic wind and solar power are thoroughly evaluated.
The simulation results show that SaBO can achieve a better fitness value in optimizing the different OPF objective functions involving minimization of the total generation cost, power loss and combined generation cost and emissions effect. In addition, a statistical analysis of SaBO and KOA algorithms using a diagram known as a boxplot has been performed for both power systems.
The remaining sections of the paper are structured as follows: Section 2 presents the formulation of the stochastic OPF model including wind and solar power. In Section 3, the paper provides a comprehensive explanation of the SaBO. Section 4 is dedicated to discussing the various numerical results. The obtained solutions from applying the SaBO to solve the stochastic optimization problem are presented and critically examined. The conclusion of this work is presented in Section 5.
Problem formulation
The OPF aims to minimize the specified power system objective functions while respecting several optimization constraints. The different objective functions that are to be optimized in this work are detailed in the following section:
Cost for thermal power units
The cost associated with conventional TPGs may be calculated using the formula below:
where ai, bi, and ci denote the cost coefficients of the i-th conventional TPGs. NThG is the total number of conventional TPGs-producing power output PThG.
This study incorporates the valve-point loading effect for more precise and realistic modeling of the function of fuel cost. Equation (2) represents the modified cost function with valve-point loading.
where d and e denote the cost coefficients of the ith TPG under the loading effect.
Cost of wind and solar PV power
The cost associated with power generation from both wind and solar photovoltaic (PV) sources includes the following different components: the direct cost related to the scheduled output power, the penalty cost associated with underestimation of output power, and the reserve cost associated with overestimation.
Direct cost of wind and solar photovoltaic power
The direct costs related with jth wind and kth solar PV plants in terms of the scheduled output power are expressed as follows (Biswas et al., 2017):
where dw and ds represent the direct cost coefficients attached to jth wind and kth solar power generators, respectively. Pws and Pss denote the planned power output from these respective generators.
Uncertainty cost evaluation of wind power
Considering uncertainties, the following two scenarios are possible:
(1) In the case where the actual output of WPG power is lower than the initial estimate value, the operator must maintain a spinning reserve to ensure a steady electricity supply to consumers. This case is referred to as the overestimation. The cost associated with maintaining a spinning reserve is referred to as reserve cost (Panda and Tripathy, 2015), and can be expressed as follows (Biswas et al., 2017):
where KRw presents the coefficient of reserve cost associated with jth WPGs, Pwav is the actual wind power output from the same generators and fw (Pw) denotes the wind power PDF for jth WPGs.
(2) Contrary to the first case, when the actual power output of WPGs surpasses the initial estimate value, the excess power becomes unusable and is wasted. This situation is termed the underestimation of output power, necessitating the independent system operator (ISO) to pay a penalty cost against each surplus amount of power. This cost can be expressed as follows (Biswas et al., 2017).
where KPw presents the coefficient of penalty cost associated with jth WPGs and Pwr denotes the rated power generated by WPGs.
The total wind power cost can be given as:
Uncertainty cost evaluation of solar power
Similarly, to the wind power plant, the solar PV plant also experiences intermittent and uncertain variations in its power output. The method employed to handle both overestimation and underestimation of solar power output aligns with that applied for wind output power. To simplify the calculation process, the model of reserve and penalty cost for solar PV power is formulated based on the concept introduced in Shi et al. (2012). This approach is adopted due to the distinct nature of solar radiation, which follows a lognormal PDF (Chang, 2010).
(1) Reserve cost for the kth solar PV power generators is given by (Biswas et al., 2017):
where KRs presents the coefficient of reserve cost attached with kth SPGs, and Psav is the actual available solar power output. fs(Psav,k < Pss,k) signifies the probability of experiencing a shortage in solar PV power compared to the scheduled power Pss,k, while E(Psav,k < Pss,k) represents the expected occurrence of solar power below Pss,k.
(2) Penalty cost for the kth solar PV power generators is given by (Biswas et al., 2017):
where KPs presents the coefficient of penalty cost attached with kth SPGs. fs(Psav,k > Pss,k) is the probability of excess solar PV power, while E(Psav,k > Pss,k) represents the expected occurrence of solar power exceeding the scheduled power.
The total solar power cost can be given as:
Objective function
Three OPF objective functions in this work are formulated with incorporating of RESs into the conventional power grid. These optimization objectives can be presented as:
where CThPG is the function of conventional TPG cost. Cwind and Csolar represent the functions of wind and solar power costs, respectively.
where Gi,j is is the transfer conductance and δi,j = δi − δj signifies the difference in voltage angles between buses i and j.
where Ctax denote the carbon tax, with a specified value set at 20 ($/h) and E represents the emission, calculated according to the following equation:
here αi, βi, γi, wi, and μi denote the emission coefficients of the ith TPG.
Constraints
The active power constraints of ThPGs, WPGs, and SPGs are represented, respectively, by equations (17)–(19). As well, the reactive power constraints of the same generators and shunt reactive power sources are represented by equations (20)–(23). NG being the number of generators, while NC is the number of shunt capacitors. Equation (24) is the voltage constraint of generator buses. The security constraints involve limitations on both load bus voltages (PQ) and transmission line capacity, as expressed in equations (25) and (26), respectively. Furthermore, the limitation imposed on tap-changing transformers is given by equation (27). NLB is the number of load busses, Nline is the number of transmission lines, as well as NT denotes the number of transformers.
Stochastic wind/solar power and uncertainty models
The following sections present a detailed description of stochastic wind and solar power modeling.
Wind and solar power models
Due to the stochastic nature of wind speed, its probability distribution is determined using the Weibull PDF, mathematically expressed as (Biswas et al., 2017):
where v represents the speed of wind (m/s). c and k are the scale and shape factors, respectively
The mean of Weibull distribution is given by:
The gamma function Γ is expressed as follows:
The output wind power of WPGs can be represented in four regions based on the corresponding wind speeds, as indicated in the following equation (6):
where vin corresponds to the speed of wind at which the wind turbine commences to produce power, vout corresponds to the speed of wind at which the wind turbine disconnects, and vrated denotes the speed of wind at which the output mechanical power reaches the rated power. Pwr represents the rated output power of the wind generator.
The solar PV generator’s output is influenced by the distribution of solar irradiance (G). The probability distribution of G following lognormal PDF, which is expressed as follows:
here, σ denotes the standard deviation, and µ stands for the mean of the lognormal PDF, which is given as follows:
Based on G, the solar PV-generated power could be expressed as follows:
Here, Psr represents the rated power generated by the solar PV plants, GS denotes the standard solar irradiance (STC), and RC signifies a specific irradiance point.
Wind power probability model
The variability of wind, characterized by its intermittent and uncertain nature, leads to a discrete availability of wind power output, as illustrated in equation (31). According to this equation, it can be noted that the available wind power output is variable in some regions of wind speed.
The first condition involves the turbine power generated being zero when the speed of wind (v) is below the cut-in speed (vin) or exceeds the cut-out speed (vout). Whereas the turbine produces rated power Pwr when v is between rated wind speed (vrated) and vout. The probabilities of wind power generated for each discrete zone are expressed as follows (Biswas et al., 2017):
However, the power generated by the wind turbine in the continuous portion is between the vin and vrated of wind, which can be explained as follows:
Self-adaptive bonobo optimizer (SaBO)
Recently, a new stochastic optimization technique named Self-adaptive Bonobo Optimizer (SaBO) was developed in 2023 by Das et al. (2023). It draws inspiration from both the mating strategies and social behavior of bonobos. The main feature of SaBO is the ability to update its search parameters based on the repulsion-based learning method. It has four fundamental mating strategies: consortship mating, extra-group mating, promiscuous mating, and restricted mating, similar to the Bonobo Optimizer. Nevertheless, the proposed SaBO introduces various modifications aimed at enhancing its performance. In addition to the existing population, SaBO incorporates three extra-memorized populations, with their members actively contributing to the maturation process, producing new bonobos. SaBO autonomously adjusts the primary controlling parameters, namely phase probability (PP) and sharing coefficient (SC), by implementing repulsion-based learning for iterative updates. This learning method depends entirely on feedback obtained from the search process. The two main controlling parameters, PP and SC, can vary in value in the range of [0-1]. In every iteration, N values of PP or SC are assigned to N solutions within the current population, with the expectation that these parameter values are different from one another. First, a normal distribution with a mean of 0.5 and a standard deviation of σ is used to generate N number of parameters. The parameter σ is subject to variation within its minimum and maximum values, with the initial value fixed at its maximum value. The fundamental process of updating PP through the repulsion technique according to equation (38) is detailed in Das et al. (2023) as well as depicted in Figure 1.

Updating the PP through repulsion-based learning.
Mating strategies
The SaBO algorithm utilizes four distinct mating strategies, incorporating concepts from both the positive phase (PP) and negative phase (NP), to generate new bonobos. During each iteration, the solutions are updated, with the selection between PP or NP determined by the probability associated with the PP. Moreover, when a mating strategy, either its restrictive or promiscuous, is applied with a probability of 0.5, new bonobos are generated through the PP. On the other hand, In NP, a new bonobo is generated by either following the extra-group or the consortship mating strategy. Thus, the mating strategy of bonobos is determined by the PP parameter, initially set at 0.5 and changing with each iteration based on the new values obtained from equation (38). Detailed explanations of various mating strategies employed to generate new bonobos are presented in the following section:
Promiscuous and restrictive mating strategies
During the positive phase (NP), the generation of the new bonobo through promiscuous and restrictive mating strategies follows equations (39) and (40), respectively.
Here, new_bonoboi represents the ith-new solution, while, bonoboi, bonobop, bonobok1 bonobok2 respectively denote the ith, pth, k1th and k2th-solutions of the current population. oldpopk2 and oldpopk3 are the k2th and k3th-solutions of oldpop population, respectively. Similarly, badpopk4 denotes the k4th-solution of badpop population. The parameter of sci is the ith-sharing coefficient. The different numbers k1, k2, k3, and k4 are randomly selected from the range (1, N), and they are not equal to either i or p.
Extra-group and consortship mating strategies
On the contrary to PP, the search process in the NP focuses on exploring previously undiscovered regions. This exploration is accomplished by implementing either the extra-group or consortship mating strategies.
In the extra-group mating strategy, the solution is updated if the generated random number is equal to or below the value of extra-group mating occurrence probability (Pxgm), following equations (41)–(43). The parameter Pxgm is variable and ranges from
where I2 is an intermediate parameter, while r1 and r2 represent two randomly chosen numbers from the range (0, 1). The variables new_bonoboij and bonoboij respectively refer to the jth-variables of the generated solution and the ith-bonobo of the existing population.
In the consortship mating strategy, the solution is updated if the generated random number r2 is larger than the value of Pxgm, following equations (44)–(50).
Where; I3, I4, and I5 represent the three intermediate parameters, respectively. The parameter tsgsmax denotes the upper limit for the size of the temporary sub-group.
Modified boundary handling techniques
If the newly generated bonobo exceeds the maximum limit of variables, it is given the maximum limit with a 0.5 probability of occurrence; otherwise, it undergoes an update using either equation (51) or (52) with a 0.5 probability. Likewise, if the newly generated bonobo exceeds the lower variable limit, its value is set to the lower limit; otherwise, it is modified using equations (51) and (52).
where r5 represents a randomly generated number from the range of between 0 and 1.
The flowchart and pseudo-code of the provided SaBO algorithm for addressing the OPF problem are shown in Figure 2 and Table 1, respectively.

Flowchart of SaBO.
The pseudo-code of SaBO.
Simulation and results
This study suggests using the SaBO algorithm to address stochastic OPF problems involving the integration of WPGs and SPGs plants. The SaBO algorithm was implemented on both the modified IEEE 30-bus and the Algerian electricity DZA 114-bus power systems. In this context, several case studies based on objective functions are performed. The simulations are executed using the MATLAB R2021a programing language on a personal computer equipped with an Intel® Core™ i5-7300U CPU @ 2.60GHz and 8 GB of RAM. To establish the superiority of the proposed algorithm and KOA, several defining characteristics are considered:
Application on modified IEEE 30-bus test system
The application of the suggested SaBO in the first part is applied on the modified IEEE 30-bus power. Three distinct cases are examined in order to verify the effectiveness of both the SaBO and the selected KOA algorithm. This modified system consists of three conventional ThPGs located at buses No. 1, 2, and 8, two WPG farms at buses No. 5 and 11, and one SPG plant at bus No. 13. All Comprehensive details regarding this power system can be found in Sulaiman and Mustaffa (2021) and Table 2. Table 3 provides all PDF parameters and details for both wind and solar power plants. In addition, the coefficients of direct cost for wind and solar power are dw,1 = 1.6, dw,2 = 1.75, and ds,1 = 1.6, respectively. The penalty cost coefficients associated with underutilizing the excess of wind and solar power available are KPw,1 = 1.5, KPw,2 = 1.5, and KPs,1 = 1.5, respectively. As well as, the reserve cost coefficients due to the overestimation of the same sources are assumed KRw,1 = 3, KRw,2 = 3, and KRs,1 = 3, respectively.
Thermal generator coefficients of the modified IEEE 30-bus system.
PDF parameters of two WPG farms and one SPG plant.
Three different case studies are conducted on the modified IEEE-30 bus system. In the first case, the primary objective is to minimize the total generation cost, followed by the second case, which is dedicated to reducing the active power transmission loss. The last case is focuses on optimizing the combined generation cost with the inclusion of a carbon-emission tax. The results obtained for each case are presented and discussed in the following section.
Case 1: Minimization of total generation cost
In the first case, SaBO is applied to minimize the first objective function that includes the TGC. The comparison of results involving the proposed algorithm and the KOA algorithm is presented in Table 4. Figures 3–5 illustrate the best Weibull fitting and wind output distribution achieved at buses 5 and 11 through 8000 scenarios of Monte Carlo. The Weibull and lognormal PDF parameters utilized in the simulation are the same as mentioned in Table 3. Additionally, Figure 6 illustrates the solar power output distribution at bus No. 13.
Optimal results via SaBO and KOA for modified IEEE 30-bus system: Cases 1–3.

Wind speed distribution for WPG 1 located at bus 5.

Wind speed distribution for WPG 2 located at bus 11.

Solar irradiance distribution for SPG located at bus 13.

Active power distribution of SPG located at bus 13.
Table 4 provides the control variables’ bounds and the comprehensive optimal results achieved through the SaBO and KOA algorithms for the three case studies in a 40-time simulation run. In the first case, this table reveals that the outcomes for reactive power generated and control variables obtained via both algorithms are within their limits. Moreover, it can also be seen that the SaBO achieved the lowest generation cost, emission, power loss, and deviation of voltage (VD) with values of 781.2363 $/h, 1.76195 t/h, 5.6908 MW, and 0.47550 p.u., respectively. The TGC of 781.2363 $/h using SaBO include a thermal generation cost of 442.3943 $/h, wind generation cost of 247.9813 $/h and solar generation cost of 90.8606 $/h. The simulation results indicate that the proposed algorithm outperformed the KOA algorithm for the OPF solution. Moreover, the incorporation of wind and solar power generators led to a notable decrease in the TGC to 781.2363 $/h, representing a reduction in the cost of approximately 18.66 $/h (2.33%) compared to the total cost without these sources, which was estimated at 799.8975 $/h. Figure 7 illustrates the convergence curve of generation cost minimization (case 1) through both SaBO and KOA over iterations. The illustration shows the notable superiority and robustness of the SaBO algorithm in achieving a faster convergence rate toward the global optimum compared to KOA.

Convergence curve of SaBO and KOA for case 1.
Table 5 shows a comparison of OPF solutions for case 1 in the modified IEEE 30-bus system with the integration of RESs. Notably, SaBO exhibits superior performance, outperforming all other published algorithms in the literature, except for SMA and DMO algorithms, which achieved a generation cost of 781.0786 and 780.989 $/h, respectively. Additionally, SaBO demonstrates its superiority with a total power loss value of 5.6908 MW, outperforming both SMA (5.7502 MW) and DMO (5.7209 MW) algorithms. The pollutant gas emission in the first case using the SaBO is 1.76195 t/h which is less when contrasted with the outcomes obtained from different optimization techniques. The complete terms corresponding to all the abbreviations are indicated in the table of the appendix.
Comparison of OPF solutions for case 1.
Case 2: Minimization of total active power loss
Reducing the active power transmission loss is the objective function in the second case. The optimal results for this case after 30 independent runs are tabulated in Table 4. From this table, the optimization outcomes reveal that using the SaBO algorithm results in a power loss of 1.9958 MW and a generation cost of 879.7964 $/h without any violation of the constraints. These optimal values are notably lower than those achieved by the KOA algorithm, which recorded 1.9963 MW for power loss and 880.2709 $/h for generation cost. Furthermore, the integration of renewable sources resulted in a significant reduction in total power loss to 1.9963 MW when using SaBO. This reflects a decrease in power loss of approximately 31.16% compared to the reference power loss without these sources, which was estimated at 2.9 MW.
The convergence curve for case 2 is depicted in Figure 8. This figure indicates that SaBO rapidly reached convergence, achieving the minimum active power loss after only 70 iterations. In contrast, the KOA algorithm required 200 iterations to reach the optimum.

Convergence curve of SaBO and KOA for case 2.
Table 6 displays the statistical comparison results between SaBO and various algorithms from the literature. It made sense that the proposed SaBO algorithm gives the best value compared to those found by KOA (1.9963 MW), EJADE (2.0478 MW), BMO (2.0646 MW), GWO (2.0616 MW), IEO (2.2211 MW), EKOA (1.9962 MW), GBLCSBO (2.0741 MW), and SAWGA (2.1037 MW). The comparison results prove that the SaBO outperforms all other available algorithms that mentioned in this table.
Comparison of OPF solutions for case 2.
Case 3: Minimization of combined generation cost and emission (CGCE)
The combined generation cost with carbon-emission tax is used as the OPF objective function in the third case. The detailed optimal results applied to SaBO and KOA for case 3 are listed in Table 4. The results from this table indicate that the CGCE using SaBO led to 809.7452 $/h with a low computational time of 144.051 seconds, which is less compared to the KOA with the value of 810.0663 $/h. The convergence curve of the CGCE with SaBO and KOA over iterations is depicted in Figure 9. It is worth highlighting that the SaBO achieves convergence to the optimal value in just 50 iterations, demonstrating a notably faster convergence compared to KOA, which necessitates 90 iterations to reach the global optimal fitness.

Convergence curve of SaBO and KOA for case 3.
Table 7 reveals comparison results of OPF solutions using SaBO and different existing techniques in order to minimize the CGCE. This table displays that the optimum value of the CGCE is obtained by SaBO (809.7452 $/h) followed by GWO (809.93 $/h), KOA (810.0663 $/h), … etc. These results make clear that the SaBO outperforms all other published algorithms that are applied to minimize the CGCE for the IEEE 30-bus system.
Comparison of OPF solutions for case 3.
Figure 10 illustrates the load buses voltage magnitude using SaBO for each of the three cases investigated. Notably, the figure demonstrates that the voltage magnitudes for three cases range within acceptable limits, between a lower and upper limit of 0.95 and 1.05 p.u., respectively.

Voltage profiles of load bus PQ using SaBO algorithm for cases 1–3.
Table 8 presents the statistical results of SaBO and KOA for three case studies within 30 independent runs of the simulation. The table reveals that SaBO outperformed the KOA algorithm in terms of the minimum, maximum and average results of three different objective functions. As well as the best standard deviation of fitness is given by SaBO compared to KOA.
Statistical results of SaBO and KOA for cases 1–3.
The boxplot of three cases using SaBO and KOA for 40 times run are shown in Figure 11. This boxplot shows that SaBO achieved the lowest values for minimum, maximum, and average fitness, outperforming KOA, which exhibited the worst fitness in the three cases. Therefore, SaBO demonstrates superior and robust performance when solving the OPF problem considering stochastic RESs compared to the KOA.

Boxplot of the different fitness for cases 1–3 in 40 times run.
Application on modified Algerian power system DZA 114-bus
To demonstrate the effectiveness of SaBO in a practical power system incorporating RESs, the study focuses on the Algerian DZA 114-bus power system. This system includes the integration of two wind generators at buses number 52 and 83. Additionally, a solar plant is integrated into the system at bus No. 109. These locations of RESs are selected as in Mouassa et al. (2022), to compare the results obtained from this configuration with those documented in the same reference. Figure 12 displays the schematic representation of the Algerian electric power system, which consists of 15 generators and 175 transmission lines, including 16 transformers tap ratios positioned between line 160 and line 175. This electrical system supplies 99 loads of 3727 MW + j 2070 MVar. The upper and lower bounds of the 30 control variables that are to be minimized for the Algerian DZA 114 bus system are shown in the results table.

Algerian electric power system map.
Case 4: Minimization of total generation cost for Algerian DZA 114-bus system
The last case investigated was minimizing the TGC for the Algerian DZA 114-bus power system. The control variables in this case include 30 settings, that is, 15 for active power-generating outputs and 15 for generator voltages. The detailed optimal results achieved in this case using the SaBO and KOA are summarized in Table 9. In this table, all control variables are within acceptable limits. Furthermore, the SaBO algorithm yields better values for total fuel cost, emissions, and active power losses, specifically 16,706.1630 t/h, 1.41045 t/h, and 67.2569 MW, respectively, compared to the optimal solution obtained by the KOA algorithm (16,734.5378 t/h, 1.41337 t/h, and 70.5113 MW). These results suggest that the proposed algorithm is more effective than KOA in addressing the OPF problem including stochastic RESs in real and practical power system. In addition, the integration of wind and solar generators in the Algerian power system significantly reduced the total generation cost to 16,706.1630 $/h compared to the initial cost without these sources of 18,914.105 $/h that was obtained by Kouadri et al. (2020b). This represents a significant cost reduction of approximately 2,207,942 $/h (11.67%).
Comparison of OPF solutions for case 4 in Algerian DZA 114-bus system.
The convergence curves of both SaBO and KOA algorithms are illustrated in Figure 13. It is clear from this figure that the SaBO rapidly converges to the optimal solution within the first quarter of iterations, whereas the KOA algorithm reaches convergence toward the optimal solution at iteration 260.

Convergence curve of SaBO and KOA for case 4.
Table 9 summarizes the comparison results for generation cost, power transmission loss, deviation of voltage, and emission obtained by SaBO and other recently developed algorithms in the literature to illustrate the performance of the SaBO to solve the OPF problem in a larger dimension. From this table, SaBO achieves a minimum TGC of 16,706.1630 $/h. As a result, SaBO outperforms all algorithms that mentioned in Table 10, except the SMA and EKOA algorithms, which have a value of 16,693.11 and 16,701.77 $/h, respectively. Furthermore, SaBO stands out with its superior total power loss value (67.2569 MW) compared to both SMA (68.5089 MW) and EKOA (69.4451 MW) algorithms. The difference between the value yielded by SaBO and the worst value achieved by OPA stands at 105.007 $/h, a significant differential that equates to notable cost savings of around 2520.168 $/day and 919,861.32 $/year.
Optimal results via SaBO and KOA for Algerian DZA 114-bus system: Case 4.
Table 11 presents the minimum, maximum, and average results of the objective function obtained by SaBO and KOA for case 4 from a 30-time run. Notably, the table indicates that SaBO consistently outperformed the KOA algorithm in all obtained results.
Statistical results of SaBO and KOA for Algerian DZA 114-bus system: Case 4.
In Figure 14, the boxplot illustrates the generation cost obtained from 30 runs using SaBO and KOA. The illustration indicates that SaBO consistently achieves lower values for minimum, maximum, and average fitness results in comparison to the KOA algorithm. Furthermore, it can also be seen that SaBO exhibits robust performance and superior accuracy in OPF solutions compared to the KOA.

Boxplot of the objective function for case 4 in 30 times run.
Conclusion
This paper investigates a recently developed metaheuristic optimization algorithm named self-adaptive bonobo optimizer (SaBO) to address the OPF problem in electric power systems that include thermal, wind and solar power generators. The inherent variability of wind and solar power outputs has been characterized by modeling their uncertainties using the Weibull and lognormal PDFs, respectively. To evaluate the efficacy of the SaBO to solve this stochastic problem on both the modified IEEE 30-bus and Algerian DZA 114-bus power, three OPF objective functions have been examined that is, the minimizations of total generation cost, active power transmission loss, as well as combined generation cost and emission effect. The generation cost function included the thermal fuel cost, the direct costs associated with wind and solar generators, as well as the reserve and penalty costs due to the overestimation and underestimation of available wind and solar power, respectively. The optimal minimization of these objective functions involves adjusting the real output power and voltage magnitudes of different types of power generators. The simulation outcomes of the SaBO are compared with those obtained from the KOA algorithm, as well as with the findings of other state-of-the-art optimization techniques provided in the literature. The comparisons result clearly show that the suggested SaBO outperformed the performance of both the KOA and the majority of the algorithms found in the literature for all case studies. Thus, the SaBO algorithm demonstrates its effectiveness in successfully solving more complex and stochastic optimization problems, even in practical electrical network cases, all the while maintaining the feasibility of the solutions obtained.
Footnotes
Appendix
| Abbreviations | |
|---|---|
| ACNSDE | Adaptive Crossover Non-Dominated Sorting Differential Evolution |
| ARO | Artificial Rabbits Optimization |
| I. Artificial Rabbits Optimization | |
| II. Artificial Rabbits Optimization | |
| BMO | Barnacles Mating Optimizer (BMO) |
| CGCE | Combined Generation Cost and Emissions |
| DMO | Dwarf Mongoose Optimizer |
| GBLCSBO | Gaussian bare-bones Levy circulatory system-based optimization |
| IEO | Improved Equilibrium Optimizer |
| ISO | Independent System Operator |
| ISSA | Improved Salp Swarm Algorithm |
| KOA | Kepler optimization algorithm |
| NGO | Northern Goshawk Optimizer |
| NSGA-II | Non-dominated Sorting Genetic Algorithm |
| OPF | Optimal Power Flow |
| PDFs | Probability Distribution Functions |
| POA | Pelican Optimization Algorithm |
| PV | Photovoltaic |
| RESs | Renewable Energy Sources |
| SaBO | Self-adaptive bonobo optimizer |
| SAO | Smell Agent Optimization |
| SMA | Slime Mould Algorithm |
| SPGs | Solar Power Generators |
| TGC | Total Generation Cost |
| TPGs | Thermal Power Generators |
| WPGs | Wind Power Generators |
| WSO | White Shark Optimizer |
| WT | Wind Turbines |
Acknowledgements
The authors deeply appreciate the support of the “Electric Operator System” of Algeria for providing access to the Algerian power system data. I would like to thank Dr. Souhil Mouassa from electrical engineering departement, university of bouira , for his significant contribution, which greatly aided in the completion of this work.
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) received no financial support for the research, authorship, and/or publication of this article.
