1. Introduction
The optimal power flow (OPF) problem is classified as a nonlinear optimization problem, and it can be used as a power system tool that aims to determine the best possible values for the decision variables corresponding to the objective functions, satisfying the system constraints [
1,
2]. In the last decade, several approaches to solutions have been presented in the literature to solve the OPF problem, as reviewed in detail in [
3,
4]. In the same vein, different objective functions are studied by the researchers, such as the minimization of the generators’ real power costs, daily operational costs, production emission rate, and power losses [
5,
6]. However, an optimal decision for the dispatchable distributed generation units has not yet been achieved [
7]. Previously, deterministic approaches were used to solve the classical OPF problem without integrating renewable energy sources (RESs) [
8]. Motivated by the ambitious new climate change policies and regulatory schemes that encourage the diversification of energy sources for energy security and carbon emission mitigation purposes, the high penetration of RESs into grids has been promoted [
9,
10]. However, this results in uncertainties and parameters’ statistical changes [
11,
12]. Consequently, the probabilistic power flow (PPF) [
13,
14] or probabilistic OPF (POPF) problems should be solved from a probabilistic point of view rather than the traditional deterministic approaches, as reviewed in detail by Ramadhani et al. [
15] and Prusty and Jena [
16,
17]. The stochastic variations in wind speed and solar irradiance are the motivation for researchers to seek sophisticated statistical models for simulating solar and wind power generation.
The major classifications of PPF problem solution methods are subject to the analytical, approximate, numerical, and heuristic methods classified in the large reviews [
18,
19]. In the analytical method, the equation is obtained between the input and the output and then calculated directly from the input variables. For example, [
20] proposed a data-driven approach for probabilistic forecasts of the distribution grid state and PPF solution. Ref. [
21] developed a fast-specialized point estimate method compared to the Monte Carlo simulation (MCS) approach to solve the POPF considering the IEEE-69 bus distribution system with the presence of RESs. Ref. [
22] presented a clustering-based analytical method for PPF and interval power flow, in which the uncertainties of load demands and wind power outputs were adequately handled. Ref. [
23] introduced a new framework based on the relevance vector machine (RVM) compared to the Newton–Raphson method in order to calculate the PPF and the multivariate distribution of wind speed considering uncertainties associated with multi-dimensional wind turbine (WT) farms studying the correlation between wind speed in different regions. The linearization in the analytical method makes the power flow calculations simpler; however, the accuracy of the PPF problem solution is poor. The approximate method computes the moments of the output using the PDF of the input variables. Despite successfully solving the PPF problem without large-scale computations, the computation burden increases as the number of stochastic variables increases. The third type, the MCS, is a frequently utilized numerical method for the solution of the PPF problem [
24]. The MCS is a more reliable method to solve the PPF problem. According to the recent review by Skolfield and Escobedo [
19], the advancements in metaheuristic algorithms for power system applications have proven to have superior advantages compared to methods in solving the classical and stochastic OPF [
18].
Considering the scope of the current study, the review analysis only focuses on the most recent studies on PPF or POPF. For example, [
25] presented differential evolutionary particle swarm optimization to solve the multiple objectives (fuel cost, emission, and prohibited operating zones of thermal generators) POPF problem, in which the uncertain solar irradiance and wind speed were simulated via log-normal and Rayleigh probability distributions validated for IEEE 30, 57, and 118 test systems. Ref. [
26] proposed a novel barnacles mating optimizer (BMO) to solve the POPF with stochastic solar power to minimize either the generation cost, power loss, voltage deviation, emission minimization, or combined cost and emission of power generations of the IEEE-30 bus system. Similarly, the BMO algorithm was used by [
27], while the study incorporated the stochastic small hydro power generator plus wind and solar. Ref. [
28] developed a hybrid algorithm that combines the Moth Swarm Algorithm (MSA) and the Gravitational Search Algorithm (GSA) with the Weibull Distribution Function (WDF) used to demonstrate the alternating nature of wind farms integrated with the studied power systems. Moreover, [
29] introduced a hybrid methodology based on the differential evolution (AGDE) algorithm and the Fitness–Distance Balance (FDB) method to solve the POPF involving wind and solar energy systems with the IEEE 30-bus test system. Ref. [
30] developed a combination of phasor particle swarm optimization and a gravitational search algorithm—namely, a hybrid PPSOGSA algorithm—to calculate the POPF in the case of the IEEE 30-bus system, considering the forecasted WT and PV power generation as uncertain variables. Most recently, Ref. [
31] came up with a novel algorithm called the Heap Optimization Algorithm (HEAP) for OPF solutions when solar and wind generators are added. The method was validated with three standard systems (IEEE 30, 57, and 118) and compared with a genetic algorithm. Ref. [
32] solved the POPF problem for the modified IEEE-39 bus system while incorporating the uncertainty-related expense incurred due to the stochastic behavior of PV and WT generation, in which the solar radiation and wind speed are modelled using WPD and normal distributions and the uncertainty is simulated using the MCS method. Ref. [
33] employed a hybrid Point Estimate Method (PEM)/Ant Lion Optimization (MALO) approach for handling loads, wind, and solar uncertainties and solving the POPF with multiple objectives in the case of a modified IEEE 33-bus islanded micro-grid system. Ref. [
34] developed a general computationally efficient copula-polynomial chaos expansion to solve PPF, including both linear and nonlinear relations of stochastic wind and PV power generation. Rosenblatt transformation is employed to convert the correlated variables and obtain independent variables, keeping in mind the dependence structure. The systems used are the IEEE 57- and 118-bus systems. Ref. [
35] presents the PPF problem solution based on a scaled unscented transformation. The PPF problem is applied on AC/DC networks. It is applied on the modified IEEE 1354-bus (PEGASE) system. Ref. [
36] introduces a PPF problem solution including hundreds of uncertain variables. The Zhao’s point estimate technique is used when solving the PPF problem. As the number of PPF problem inputs increases, the computational burden increases linearly. The studied cases are investigated on a modified IEEE 118-bus system. Ref. [
37] presents a comparative analysis of Monte Carlo simulation with the Latin Hypercube sampling method and Unscented transformation methods. The comparisons are with the results achieved by the classical Monte Carlo simulation method. The test systems used are the IEEE 14- and 30- bus systems. The results confirm the superiority of the unscented transformation method in terms of speed and reliability over the other two methods.
Table 1 summarizes the optimization methods used in this literature.
This paper introduces a new hybridization of the self-organizing maps (SOM) machine learning technique and the transient search optimization (TSO) algorithm. The ML provides the systems with the ability to understand themselves and then estimate unknown outputs [
38,
39]. The SOM technique is considered one of the important artificial neural network (ANN) architectures and features the ability for data visualization processing. It is classified as an unsupervised ANN and is utilized for knowledge extraction in order to determine the best areas with the objective of reducing the exploration field. The TSO algorithm was first proposed in 2020 by Qais, Hasanien, and Alghuwainem [
38,
40] and was inspired by the transient behavior of the first- and second-order circuits, which include energy storage elements (e.g., inductors and/or capacitors). Using the ML-TSO in optimization, one reaches the global solution efficiently without being stuck in a local solution. The main contributions of this paper are as follows:
Proposing a novel hybrid optimization approach based on the ML technique and TSO algorithm—namely, ML-TSO—for the optimal solution of classic OPF and POPF problems.
Formulating the ML-TSO algorithm to consider the integration of both conventional generators, renewable sources (PV panels and WTs), and time-varying load profiles.
Introducing the statistical models for the PV panels and WTs using the Beta and Weibull distribution functions based on real-time historical data. This allows us to calculate the generated electrical power RESs accurately while solving the PPF problem.
Validating the robustness of the proposed hybrid algorithm, built in MATLAB software, on the IEEE 57-and 118-bus test systems, with comparative analysis with the most recent literature.
The rest of the paper is organized in the following sections as follows: the problem formulation is illustrated in
Section 2; the modeling of WT and PV generation systems is presented in
Section 3;
Section 4 describes the proposed hybrid ML-TSO algorithm. The simulation results are demonstrated in
Section 5; and, finally, the paper is concluded in
Section 6.
5. Results and Discussion
In this section, the results and discussion of the main findings are comprehensively demonstrated by dividing them into three subsections. The first subsection presents the classical OPF problem. This subsection aims to examine, analyze, and evaluate the performance of the newly developed hybrid ML-TSO optimization method in solving the OPF problem compared to other methods in the existing literature. Furthermore, this subsection shows how applicable the ML-TSO method is in further optimization problems in the field of power systems. The test validation systems adopted in this study are the standard IEEE-57 bus and IEEE 118-bus test systems. The second subsection presents the simulation results of the POPF problem after integrating the RESs of PV and/or WT. The uncertainties caused by the random variability of the load demand and the stochastic behavior of the solar and wind power were adequately handled and modelled. This subsection also shows the effect of the RESs’ integration on the overall operating costs of the power system. The final subsection provides a statistical analysis of the numerical optimization results obtained for OPF in the case of the 57- and 118-bus systems. The main specifications of the adopted test systems are listed in
Table 2. The data include the number of buses in each system, the number of generators, the number of branches, the number and capacity of the connected loads, and the systems’ losses.
The hyper parameters of the machine learning code are the number of neurons and the number of sampling neurons. In the IEEE 57-bus system case, they are set to 10. Meanwhile, in the 118-bus system case, they are set to 5. These values are selected by trial and error.
The conventional GA is the type of GA used in this study. The mutation operator is set to 10% of the population size. The crossover operator is set to 65% of the population size. The selection process depends on the uniform distribution function. The following
Table 3 summarizes the selected type and parameters of the GA used in this study.
Regarding the PSO algorithm, the used PSO is the global best PSO. The inertia coefficient is set to 1, the damping ratio of the inertia coefficient is set to 0.99, and the personal and social acceleration coefficients are set to 2. The swarm size is set to 15.
The following
Table 4 summarizes the selected type and parameters of the PSO used in this study.
5.1. Classical Optimal Power Flow (Base Case)
The results obtained by ML-TSO are compared with the solutions achieved by other single optimization algorithms such as GA and PSO. The stopping criterion for the runs of all algorithms is the number of iterations, which is set to 600. The comparisons shown in
Table 5 and
Table 6 depict the values of the design variables, which are the output power needed from each conventional generating unit in each system to meet the demand of the network. Additionally, the fuel cost in each system needed to operate the generators can be seen. Furthermore,
Figure 6 and
Figure 7 show the convergence performance of the proposed hybrid algorithm in comparison to other methods while solving the PPF problem; clearly, the optimal results obtained by the proposed hybrid ML-TSO in both applied cases can be seen.
In the case of the IEE 57-bus system, the PSO reached the worst result after 600 iterations. The GA and the proposed ML-TSO methods reached close results, but the proposed ML-TSO method’s result is better. The ML-TSO reached better results than the GA by 0.0441% and better results than the PSO by 0.93%. It can be argued that the ML-TSO convergence performance is better, as it needed about 100 iterations to settle. Meanwhile, the GA needed about 450 iterations.
With respect to the IEEE 118-bus system, the GA reached the worst result after 600 iterations. The proposed ML-TSO method reached the best result. The ML-TSO result is better than that of the GA by 6.4% and better than that of the PSO by 2.56%. Hence, the ML-TSO convergence performance is better, as it needed about 300 iterations to settle. In general, the convergence of the cost function curves in the two standard systems using the ML-TSO method is fast and smooth.
5.2. Probabilistic OPF with RESs Uncertainties and Time-Varying Loads
The proposed hybrid ML-TSO algorithm has been applied to solve POPF for the modified IEEE 57- and 118 bus test systems. The RESs (PV and/or WT) are integrated on certain buses in the two test systems, as given in
Table 7. Meanwhile, the hourly load demand variation using typical day forecasting is taken into account. The hourly active and reactive power demand variations are given in
Figure 8 and
Figure 9 for the 57- and 118-bus systems, respectively.
The active output power of the PV and WT generators varies through the day according to the irradiance and the wind speed profiles [
53,
54]. So, in this study, the uncertainties of renewable energy resources [
55] are considered when forecasting the hourly active output power of the solar and wind systems. Different cases of POPF are evaluated in this scenario. In the first case, the OPF solution has only been evaluated with the hourly variable load consideration and with no RESs integrated. In second and third cases, the OPF solution is performed with the integration of either PV or WT. Finally, the proposed hybrid ML-TSO was implemented for the POPF solution, including both the PV and WT to the studied test systems.
The nominal, cut-in, and cutoff wind speeds are assumed to be 10 m/s, 2.7 m/s, and 25 m/s. The generated active power from the PV system is calculated using (15). At the standard condition of irradiance (Sstc), the solar irradiance is assumed to be 1000 W/m
2. Additionally, the certain irradiance point (Rc) is assumed to be 120 W/m
2. This part of the research investigates the uncertainty of the RESs and the effect of their variable active power generation on the power generation of the conventional generators, which reflects on the total fuel cost, correspondingly. In this study, it is assumed that renewable energy sources were already installed when defining the cost function. The POPF is performed sequentially through a whole day divided into preset time intervals of 1 h each. The wind speed data were taken in Zafarana in Egypt on 25 November 2014. The solar irradiance data have been obtained from the Natural Energy Laboratory of Hawaii Authority (NELHA) on 3 January 2022.
Figure 10 and
Figure 11 show the variation of the wind speeds and the solar irradiance throughout a day.
According to the measured data, the PDFs of the wind speeds and the solar irradiance are determined, and a sample of these PDFs, at hour 17, is illustrated in
Figure 12 and
Figure 13. The forecasted generated active powers from the wind turbine and the PV panel are then calculated using Equations (15) and (19).
Implementing the proposed methodology on the IEEE 57 bus system, the obtained results in
Figure 14 show the hourly cost of four investigated scenarios. The investigated scenarios include the system without RES, the system with only PV or WT energy sources, and both types of RESs integration. It is noted that a reduced cost was obtained when the PV panel was contributing between hours 9 and 18, as it is the duration when the solar irradiance is beneficial to generating maximum power. In contrast, the effect of the wind turbine in the system can be noticed during the entire time slot. However, the maximum cost reduction is recorded between hours 10 and 17. Similarly, the comparison of hourly costs for the four scenarios in the case of the 118-bus system is shown in
Figure 15. It can be seen that the proposed hybrid ML-TSO method provides the best optimal solutions for the PPF problem, and the illustrated results show the impact of renewable energy integration subject to fuel cost reduction.
5.3. Statistical Analysis of the Classical OPF Results
In order to examine and verify the performance of the proposed hybrid ML-TSO optimization approach, the simulations are repeated for the three optimization methods (ML-TSO, PSO, and GA) using the investigated test system, i.e., the IEEE 57- and 118-bus systems. The performed statistical analysis shows valuable insights regarding the best value, worst value, mean value, median value, and standard deviation.
Table 8 and
Table 9 show the statistical indicators for the two investigated test systems, where the statistic obtained by the proposed ML-TSO method outperforms the other techniques. For instance, using the optimization parameters, the standard deviation calculated by the ML-TSO method is the lowest in both investigated systems. The obtained results prove the consistency, relevance and robustness of the proposed optimization method.
The meta-heuristic techniques are known for their uncertainty in results over the repetition of the runs of the simulation. One of the tests used to verify how robust the metaheuristic algorithm is is Wilcoxon’s rank-sum test. This test provides a fair comparison among the introduced ML-TSO method and the PSO and GA optimization methods. Twenty independent runs are implemented in the test. The selected level of significance is 5%. The p-values determined by Wilcoxon’s rank-sum test are shown in
Table 10. The h-values obtained from the test is ‘1′, which means that the null hypothesis is rejected among the optimization algorithms. It can be concluded from the test results that the ML-TSO is superior to the PSO and the GA optimization methods when applied to solve the OPF and PPF problems under the different scenarios stated previously in the problem formulation.