Abstract
One of the most complex and motivating issues in power system is optimal power flow (OPF), which is a constrained optimization problem characterized by non-linearity and non-convexity. From these specifications, researchers competed in the past decades to find optimal solutions to OPF problem while keeping system stability. This paper presents an efficient optimization approach to deal with OPF problem in the hybrid renewable energy systems involving wind turbines, solar photovoltaic and small hydropower plant using optimization method depends on weighted mean of vectors INFO. Total generation cost, active power losses, and combined cost and emission are the principle goal, taking into account both reserve and penalty cost appropriate to over and under estimation respectively in the generation cost model. To evaluate the performance of INFO in solving OPF problem, modified IEEE 30-bus and IEEE 57-bus test systems will be utilized. The obtained results are compared with several algorithms such as Gorilla troop optimizer GTO, artificial ecosystem-based optimization AEO, Barnacles Mating Optimizer BMO for the same test systems keeping the same conditions. Simulation results have indicated the superiority of INFO while respecting all constraints. INFO can minimize total generation cost to 788.9417 $/h for IEEE 30-bus and 5259.2040 $/h for IEEE 57-bus. The results demonstrate clearly that the INFO is a highly efficient algorithm that is an encouraging tool for solving OPF problem. The promising findings highlight the potential of the INFO algorithm to smoothest the integration of RES, and its role in promoting sustainable energy solutions. Furthermore, the one-way analysis of variance (ANOVA) test, a statistical approach, was employed to evaluate the superiority of the proposed algorithm and to highlight a certain level of confidence to our study.
Keywords
Introduction
Optimal power flow (OPF) is one of the major subjects in power systems since its appearance. The primary objective of OPF is to minimize the generation cost by finding the best operating point with regard to control variables (Avvari and Kumar, 2023). Active power of generators and generator bus voltages represent control variables.
The increasing consumption of energy and the high price of its production through thermal generators led the world to the inevitability of energy transition through the inclusion of renewable energies in the electric grid, which in turn is considered clean, environmentally friendly and inexpensive (Hannan et al., 2020). The integration of renewable energies into the electrical network has increased the complexity of studying the OPF problem because of the intermittence nature of these sources (Riaz et al., 2021). The main objective behind integration of renewable generators (wind turbines, solar photovoltaic, small hydro-power) in the grids is to minimize the generation fuel cost, decrease the power losses and reduce environmental pollution (Rawa et al., 2021).
Many methods and various algorithms have been used to solve the OPF problem in the power system using traditional mathematical algorithms or metaheuristic approaches. Among the classical optimization techniques are Newton method (Bjelogrlic et al., 1990), non-linear programing (Habibollahzadeh et al., 1989) and interior point methods (Capitanescu and Wehenkel, 2013). It is undeniable that some of the aforementioned algorithms have strengths such as excellent convergence and have many uses in industrial applications. However, it shows weaknesses that cannot be overlooked because it leads to a reduction in its efficiency.
In the meantime, metaheuristic processes have become more and more used, specifically to fix the OPF problem. That is because of their reliance on easy principles that imitate from nature, which make them get away from the local optimality (Sulaiman and Mustaffa, 2020). Several metaheuristic optimization techniques have been used to solve classical OPF problem such as improved version of PSO (Singh et al., 2016), Moth Swarm Optimization (MSO) (Mohamed et al., 2017), backtracking-search algorithm (BSA) (Chaib et al., 2016), Glowworm Swarm Optimization (GSO) (Surender Reddy and Srinivasa Rathnam, 2016), artificial bee colony (ABC) (Armaghani et al., 2015; Rezaei Adaryani and Karami, 2013), and stud krill herd (SKH) (Pulluri et al., 2017, 2018). Despite this, the use of the mentioned algorithms were limited in the classical power systems that contain only thermal power generators.
In recent years, some studies have been carried out in order to solve OPF problem in hybrid power systems, which are formed from classical and renewable energy sources like wind, solar and hydropower (Khan et al., 2020). Researchers utilized probability density functions (PDF) such as Weibull and lognormal to predict wind speed and solar irradiance. Evolutionary particle swarm optimization (EPSO) was implanted to solve OPF problem taking into consideration wind generation (Chang et al., 2014). Among these recent studies proposed: Modified cuckoo search optimization (Mishra et al., 2015), Modified bacteria foraging algorithm (MBFA) (Panda et al., 2020), Barnacles mating optimization (Sulaiman and Mustaffa, 2021), hybrid of differential evolution (DE), and particle swarm optimization (PSO) (Duman et al., 2020).
In this paper, IEEE 30-bus and IEEE 57-bus test systems are modified in order to integrate solar, wind and small-hydro power generators with a limited number of thermal generators. The uncertainties of wind speed, solar irradiance and river flow are treated in detail and are modeled by probability density functions: Weibull, lognormal and Gumbel respectively (Zobaa and Aleem, 2021). In this work, two different scenarios are considered to manipulate the intermittence of sources: overestimation and underestimation by inserting both reserve cost and penalty cost in the generation cost.
Based on what has been mentioned from earlier studies, it is noted that the application of metaheuristic algorithms in finding optimal solutions to OPF problem with presence of renewable energy sources (RES) is very motivating to contribute to this field. Hence, this study presents an application of recent population-based optimization algorithm namely the INFO algorithm, which depends on the weighted mean of vectors (Ahmadianfar et al., 2022).
INFO uses three major operators in order to swap the location of population, modernizing rule step, vector combining, and finally a local search operator in the search space (Ahmadianfar et al., 2022). Wavelet function was used to compute the weight of vectors. The results obtained indicate clearly the high efficiency of the proposed algorithm regarding exploitation and exploration behavior, getting away local optimum and convergence speed. The contributions of this work are summarized as below
To the authors’ best knowledge, this is the first attempt to apply this optimizer to such a problem, that is, application of INFO algorithm in solving OPF problem taking into consideration the incorporation of wind, solar and small hydropower generators.
INFO was applied to resolve stochastic-OPF constrained problem applied on modified IEEE 30 and IEEE 57 test systems.
To authenticate the proficiency of the proposed INFO algorithm, achieved results were compared with other contemporary optimizers. It was observed that the proposed method for different objective functions provides better optimal cost, compared with other optimizers.
The optimal generation of multiples energy resources (MERs) and less consumption of fuel also play role in environmental features and regulatory institutions of emission as a result protecting environment.
Besides, a statistical study of different algorithms using standard approaches such ANOVA has been conducted for both test systems (IEEE 30-bus and IEEE 57-bus).
The structure of the paper is as follows: problem formulation is described in section 2. Section 3 explains the INFO algorithm. In section 4, we have presented a detail discussion concerning the treated cases and obtained results. Finally, section 5 expresses the conclusion of this paper.
Problem formulation
Optimal power flow model
The important goal of solving OPF problems is to determine the optimal values of control variables so that minimizing a certain objective function while respecting all the physical and security constraints. Mathematically, the OPF problem is expressed as follows:
where:
Objective functions
In this study, three objective functions are proposed, minimization of total generation cost, total active power loss, and cost with emission effect.
Generation cost of thermal generators considering the valve point effect is given as follows:
Where
where
where
System constraints
While solving OPF objectives, different equality and inequality constraints are to be respected. These constraints are expressed as follow:
Equality constraints
where
Inequality constraints
Generator constraints
Prohibited operating zones POZs
Security constraints
Modeling the uncertainty of renewable energy generators
Due to stochastic nature of RES, it is required to present the model uncertainty adopted in this study in terms of operation and planning of power systems. The wind speed is a random variable, wind uncertainty is modeled using the Probability Density Function (PDF) is to obtain its distribution employing shape factor (k) and scale factor (c). Mathematically can be written as:
The wind power model
The output wind-power according to wind speed, is expressed as:
With
Wind power probability for different wind-speeds
The equation (22) states that, when
Outside to the discrete zones, the output of wind power is remain continuous for the condition of
As well, the solar-irradiance to energy conversion for the PV generator is modeled as follow:
The direct-cost function of wind and solar generators are given by (Sulaiman and Mustaffa, 2020):
where
The direct cost function for the combination of solar photovoltaic and small hydro generation plant is given by (Sulaiman and Mustaffa, 2020):
where
Due to stochastic nature of renewable energy sources, there are two possibilities tendencies which is, overestimation and underestimation. First case, when the actual power generated by renewable generators (PV, or combined PV and hydropower) less than the estimated-quantity in term of power, called overestimation. Second case is underestimation realized when estimated-quantity power is less than actual power. The reserve cost caused with overestimation is presented as follows:
where
The underestimation of power is related to the penalty terms which defined by second case. Mathematically, can be expressed as follows:
where
INFO proposed algorithm
Weighted mean concept
The proposed algorithm presented in this paper depends on a weighted mean that illustrates a special position in a system or an object (Ahmadianfar et al., 2022). The detailed definition of this conception is introduced in this part.
Mathematical interpretation of weighted men
For a group of vectors, the mean is defined as the average of their locations
Where

Weighted mean for a set of solutions.
The weight of any vector was calculated by using wavelet function (WF) (Ahmadianfar et al., 2022) which is used to generate efficient fluctuations throughout the optimization procedure. Figure 2 shows the mother wavelet, which is presented by the following equation:
where:

Mother wavelet.
Figure 3(a) and (b) show three vectors and Figure 3(c) depicts the differences between them.

Weighted mean for three vectors.
The WM of vectors is calculated by the following equation:
in which:
where:
INFO algorithm: Weighted mean of vectors
The Vectors Weighted Mean algorithm (INFO) is a population-based optimization method that computes the weighted average of an ensemble of vectors in the search-area. In the proposed algorithm, the population consists of an ensemble of vectors that reflect candidate solutions to a given problem. This optimizer finds the optimal solution after several consecutive generations.
In each generation, three operators are responsible for updating the position of the vector:
Updating rule step
Vector combination step
Local search step
The initialization step
The INFO algorithm is formed of a population of
Updating rule step
The updating rule operator rises the diversity of population in the search process. In fact, this operator is specific to this algorithm and makes it distinct from the rest of the algorithms and it comprises two parts. Firstly, a mean-based rule is taken from the WM for a group of random vectors. Secondly, convergence acceleration increases convergence speed, in reinforcing the convergence speed which leading to avoid falling into the local optima.
Raising the diversity of population is considered the MeanRule, which depends on the worst, better and the best solutions. The MeanRule is presented by the following equation:
where
The WFs are utilized to vary the MeanRule space based on the theory of wavelet, as follows:
In (40), δ denotes the scale factor, while the parameter β is considered as an exponential function. Also, the maximum number of generations is denoted as
The convergence acceleration can be formulated by this equation:
where
The proposed updating rule is presented by the following scheme:
where
Note that the parameter c and d are assume as 2 and 4 respectively.
Vector combining step
To improve the diversity of population in INFO,
where
Local search step
To avoid falling into the local optimal solutions, the proposed algorithm resorts to the effective local search capacity. The local operator employed the global position
in which
where
where
Numerical results and analysis
In the first part, three scenarios were considered on the modified IEEE 30-bus test system by MATLAB. The modification is to insert wind generator, solar generator and combined solar PV and small hydropower at bus 5, 11, and 13, respectively. Table 1 indicates the characteristics of the modified IEEE 30-bus and IEEE 57-bus test systems.
➢ In scenario I, total generation cost is minimized.
➢ In second scenario II, total active power loss minimization is considered.
➢ In the last one, both of generation cost and pollution were minimized while respecting all imposed constraints.
Characteristics of the modified test systems.
The proposed INFO is executed to solve the three cases, and some other algorithms are chosen to compare with INFO to further indicate its performance. Tables 2 and 3 present the coefficients of thermal generators and limitations of both soft and hard-variables.
Thermal generators cost and emission coefficients for test system I.
a ($/h); b ($/MWh); c ($/MW2h); d ($/h); e (MW−1); α (t/h); β (t/p.u.MWh); γ (t/p.u. MW2h); δ (t/h); ε (p.u.MW−1).
Upper and lower bounds of control and state variables for test system I.
POZ of PTG2 (MW): [30–40]; [55–65].
All algorithms have been coded and simulated in Matlab R2013b platform, and run on an Intel (R) Pentium (R) CPU B950 @2.10 GHz 2.00 GB RAM personal computer. After an empirical study on size of population, that is, (30, 40, 60, and 100), we found the chosen of 30 individuals gives better results. Consequently, the population size for all case studies have been fixed of 30 individuals’ and the maxima number of iterations approved for showing the convergence curve, is 300. Moreover, to demonstrate the consistency and robustness of INFO, 30 independent runs were conducted for each case study and the best value of the objective function obtain with corresponding decision-variables are registered.
Case 1: Total generation cost minimization
In the first case, the primary goal is to minimize the total generation cost considering wind, solar and combined solar and small hydro generators. Obtained results are based on the Weibull, lognormal and Gumbel PDF parameters. Table 4 indicates PDF parameters of renewable energy sources that have been presented in Sulaiman and Mustaffa (2020). Weibull fitting and wind speed frequency distributions are presented in Figure 4 reached from the simulation of 8000 Monte Carlo scenarios. Figure 5 presents the lognormal fitting and solar irradiance frequency distributions obtained from the simulation of 8000 sample size of Monte Carlo. Figure 6 presents active power distribution of solar PV generator at bus 11.
PDF parameters of renewable energy sources.

Wind speed distribution at bus 5.

Solar irradiance for PV generator at bus 11.

Active power distribution of solar PV generator at bus 11.
In this study, combined solar PV with small hydro generator is used in place of thermal generator at bus 13. Figure 7 indicates the lognormal fitting and solar irradiance accessible of solar PV generator at the same bus. while Figure 8 indicates Gumbel fitting and river flow rate frequency distribution from small hydro generator. Like last time, diagrams are generated after the simulation of 8000 Monte Carlo scenarios. The capacity of solar PV generator is 45 MW while for small hydropower is 5 MW. Figures 9 and 10 present the histograms of both available solar power and hydropower for the site and from the solar PV generator and small hydro generator respectively at bus 13. Table 5 indicates direct, penalty and reserve cost coefficients of renewable energy sources.

Solar irradiance for solar PV generator at bus 13.

River flow rate for small hydro generator at bus 13.

Available solar power for the site and from the solar PV generator at bus 13.

Available hydropower for the site and from the small hydro generator at bus 13.
The different cost coefficients of renewable energy sources.
Table 6 compares the statistical results based on the minimum, average, maximum and standard deviation of the total generation cost obtained by INFO with the chosen algorithms: Black Widow Optimization Algorithm (BWOA), PSO, Gravitational Search Algorithm (GSA), Moth Flame Optimization (MFO), Harmony Search (HS), and BMO given in ref (Sulaiman and Mustaffa, 2020). as well as with implemented GTO and AEO. Through this comparison, it is clear that INFO outperformed the rest of the algorithms in all statistical results within 30 independent runs of simulation. The minimum value of total generation cost obtained by INFO is 788.9417 $/h. The proposed algorithm exceeds all optimization techniques, BWOA (791.4748), PSO (789.4849 $/h), GSA (790.3496 $/h), MFO (789.5271 $/h), HS (800.5362 $/h), BMO (789.1248 $/h), GTO (789.2231 $/h) and AEO (789.3185 $/h). The difference between the value obtained by INFO and the worst value obtained by HS is 11.5945 $/h which is very important around 278.268 $ cost saving per day and 101,567.82 $ cost saving per year.
Comparison of statistical results of case 1 for different algorithms.
Table 7 presents optimal results of objective function as well as the optimal results of control and state variables related to case 1 obtained by different algorithms. It is clear that these last optimal values obtained by INFO, AEO and GTO are all within the permissible range as mentioned in Table 3. Figure 11 shows voltage profile of PQ buses for different algorithms related to case 1. It clearly appears that the voltages are within the allowed limits. The convergence curve of total generation cost utilizing the proposed INFO and the two other optimization techniques is depicted in Figure 12.
Optimal results obtained of case 1 for different algorithms.
PTGi (MW), Vi (p.u.), and Qgi (MVAr).

Voltage profiles in PQ buses of different algorithms for case 1.

Convergence curve of different algorithms for case 1.
Case 2: Total Active Power Loss Minimization (TAPLM)
The minimization of total active power loss is the secondary aim in the OPF problem. Again, the comparison of statistical results of INFO with other different algorithms are illustrated in Table 8. Based on the results presented in this table, the minimum power loss of 2.0938 MW is obtained via INFO. The proposed algorithm exceeds all optimization techniques, AEO (2.1244 MW), BMO (2.1669 MW), MFO (2.1669 MW), PSO (2.1868 MW), BWOA (2.1876 MW), GTO (2.2212 MW), HS (2.5114 MW), and GSA (2.8962 MW).
Comparison of statistical results of case 2 for different algorithms.
Table 9 presents optimal results of objective function as well as the optimal results of control and state variables related to case 2 obtained by different algorithms while satisfying all constraints. The convergence curve of total active power loss is depicted in Figure 13.
Optimal results obtained of case 2 for different algorithms.

Convergence curve of different algorithms for case 2.
Case 3: Generation cost with emission minimization
Minimizing the generation cost taking into account the emission effect is the focus of attention. As previously mentioned, reducing greenhouse gas emissions resulting from classical energy sources is a challenge. For this reason, the imposition of a carbon tax was resorted to as a penalty. Table 10 compares statistical results related to this case for different algorithms. Based on these results, the minimum value obtained by INFO is 820.5593 $/h which is close to the minimum value obtained by BMO 820.4852 $/h as the difference is negligible 0.0741 $/h. However, the proposed algorithm outperformed BMO in average, maximum and standard deviation.
Comparison of statistical results of case 3 for different algorithms.
Renewable energy sources are clean, so it makes that electric power generation from these sources will increase due to the inclusion of a carbon tax. In the first case, the active power produced from the solar generator was 40.09 MW. While in the third case, when the carbon tax was imposed, the active power produced from the solar generator amounted to 45.52 MW with a significant increase of about 5.43 MW.
Table 11 presents optimal results related to case 3 obtained by different algorithms. The convergence curve of generation cost and emission is depicted in Figure 14.
Optimal results obtained of case 3 for different algorithms.

Convergence curve of different algorithms for case 3.
The rest of study tested the performance of INFO again, but with the modified IEEE 57-bus test system. The results obtained by the proposed algorithm were compared again with AEO and GTO, while BMO, MFO, and PSO were selected from the rest of algorithms due to their efficiency. Combined solar PV and small hydro power generator are located at bus 6, while solar generator and wind generator are located at bus 9 and 12, respectively. The number of control variables to be minimized is 14 as mentioned in Table 1. Upper and lower bounds of control and state variables for modified IEEE 57-bus test system can be found in MATPOWER package.
Case 4: Total generation cost minimization
Table 12 presents the optimal results obtained by INFO and different algorithms. The minimum value of total generation cost obtained by INFO is 5259.2040 $/h. it is noticeable that the proposed algorithm outperforms all other algorithms GTO (5260.0009 $/h), AEO (5260.2497 $/h), BMO (5300.457 $/h), MFO (5316.14 $/h), and PSO (5417.538 $/h). The difference between the value obtained by INFO and the worst value obtained by PSO is 158.334 $/h which is very important around 3800.016 $ cost saving per day and 1,387,005.84 $ cost saving per year. It should be noted that GTO and AEO achieve results close to INFO, however, the difference between INFO and GTO is 0.7969 $/h that is, 6980.844 $/year. Figure 15 shows voltage profile of PQ buses for different algorithms related to case 4. Again, it clearly appears that the voltages are within the allowed limits. Figure 16 presents the convergence curve related to this case.
Optimal results obtained of case 4 for different algorithms.

Voltage profiles in PQ buses of different algorithms for case 4.

Convergence curve of different algorithms for case 4.
Case 5: Total active power loss minimization
The minimization of total active power loss is the secondary aim in the OPF problem using modified IEEE 57-bus test system. Again, the comparison of optimal results of INFO with other different algorithms are illustrated in Table 13. Based on the results presented in this table, the minimum power loss of 19.7040 MW is obtained via INFO. The proposed algorithm exceeds all optimization techniques, AEO (19.7633 MW), GTO (19.7703 MW), BMO (20.785 MW), MFO (21.3031 MW), and PSO (21.3621 MW). The convergence curve of total active power loss is depicted in Figure 17.
Optimal results obtained of case 5 for different algorithms.

Convergence curve of different algorithms for case 5.
Case 6: Generation cost with emission minimization
In the last case, minimizing the generation cost considering the emission effect is the target. Table 14 presents optimal results related to this case for different algorithms. Based on these results, the minimum value obtained by INFO is 5295.8597 $/h. The proposed algorithm outperforms all optimization algorithms, AEO (5298.1921 /h), GTO (5299.6942 $/h), BMO (5320.851 $/h), PSO (5332.054 $/h), and MFO (5332.379 $/h). The difference between the value obtained by INFO and the worst value obtained by MFO is 36.5193 $/h which is very important around 876.4632 $ cost saving per day and 319,909.068 $ cost saving per year. It should be noted that AEO and GTO achieve results close to INFO, however, the difference between INFO and AEO is 2.3324 $/h that is, 20,431.824 $ /year. Figure 18 presents the convergence curve related to this case.
Optimal results obtained of case 6 for different algorithms.

Convergence curve of different algorithms for case 6.
Statistical study analysis
Since the nature of stochastic algorithms, the algorithm must be executing numerous times on the same treated problem to get result values, because the results may vary from run to another. To make a fair comparison, a statistical tool based on a one-way analysis of variance (ANOVA) test was used to evaluate the superiority of the proposed algorithm as well as to highlight a certain level of confidence to our study. In short, to assess the mean of different implemented algorithms in which there is a significant difference. This test is necessary to assess the mean of different implemented algorithms in which there is a significant difference. In this study, the significance level is set to
Statistical results of ANOVA test, for IEEE 30 bus.
Statistical results of ANOVA test, for IEEE 57 bus.
Conclusion
This paper presents a recent population-based algorithm called INFO for solving stochastic OPF problem in the hybrid power system. To verify the consistency of the suggested algorithm to find near-optimal solution of OPF problem, three single objective-functions were examined. The main target is to minimize the total generation cost, total active power loss and generation cost considering emission effect on two modified test systems while satisfying equality and inequality constraints. The obtained results demonstrate the superior capability of INFO in all cases compared to other algorithms, such as AEO, BMO, GTO, MFO, and PSO. The total generation cost obtained via INFO is 788.9417 $/h for IEEE 30-bus test system and 5259.2040 $/h for IEEE 57-bus test system. This means a cost reduction of 1.47% and 3.01% per hour as compared to the worst results obtained by HS and PSO respectively. The results proved that the proposed algorithm outperformed all the compared algorithms while ensuring the feasibility of solutions.
Footnotes
Acknowledgements
I would like to thank very much the Laboratory of Engineering Materials, Energy Systems, Renew-able Energies and Energy-Management (LMSEERGE) in Laghouat, and Special thanks to Bouira University of represented by the Department of Electrical Engineering where the work was fully achieved under supervision of Prof. S, MOUASSA.
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.
