Introduction

During the past decades, optimization has aroused an increase due to its importance in various fields including engineering design, economics, computer science, business, operational research, etc. Besides, the most popular real word optimization problem is the optimal power flow in power system operation and planning1. The OPF is regarded as a high-dimensional, non-convex, non-linear, complex issue. Solving the OPF problem efficiently and accurately plays a vital role in power system operation and planning. By achieving an optimal dispatch of generation resources, OPF helps to improve system efficiency. Additionally, OPF enables the integration of renewable energy sources, enhances grid resilience, and facilitates the reliable and secure operation of power systems, thereby ensuring the provision of reliable and affordable electricity to consumers. Furthermore, the primary objective function is minimizing fuel cost, then the emission, voltage deviation, power loss, etc, taking into account numerous constraints on generators, bus voltage, line capacity, transformer tap, and also active and reactive power of generators, which should be satisfied. Moreover, the OPF problem can be mainly solved via two categories of optimization techniques: the first one is classical or deterministic approaches that converged to local optima and suffered from convexity. The second is the intelligent or stochastic approaches that are considered an effective methods for finding optimal solutions. In general, many scholars have been successfully applied various stochastic approaches to address the power system issues including adaptive constraint differential evolution (ACDE) algorithm2, an improved version of the coyote optimization algorithm (COA)3, teaching-learning-based optimizer (TLBO)4, adaptive multiple teams perturbation-guiding Jaya (AMTPG-Jaya)5, backtracking search algorithm (BSA)6, crisscross search based grey wolf optimizer (CS-GWO)7, ant colony optimization (ACO)8, effective whale optimization algorithm (EWOA)9, moth swarm algorithm (MSA)10, adaptive group search optimization (AGSO)11, improved colliding bodies optimization (ICBO)12, differential search algorithm (DSA)13, invasive weed optimization (IWO)14, interior search algorithm (ISA)15, robust optimization approach (Rao)16, Salp swarm algorithm (SSA)17. Stud krill herd algorithm (SKH)18, symbiotic organisms search algorithm (SOS)19, tree-seed algorithm (TSA)20, Hunter-prey optimization (HPO)21, particle swarm optimization (PSO)22, fuzzy-based improved comprehensive-learning particle swarm optimization (FBICLPSO) algorithm23, hybrid Grey wolf optimizer and particle swarm optimization (GWO-PSO)24, hybrid of the firefly and PSO algorithms (HFAPSO)25, combined genetic algorithm and particle swarm algorithm (GA-PSO)26, multi objective genetic algorithm (MOGA)27, artificial bee colony algorithm based on a non-dominated sorting genetic approach (ABC-NSGA-II)28, fitness-distance balance based-TLABC (teaching-learning-based artificial bee colony) (FDB-TLABC)29, non-dominated sorting culture differential evolution algorithm (NSCDE)30, differential evolution algorithm based on state transition of specific individuals (DE-TSA)31, multi-objective covariance matrix adaptation evolution strategy (CMA-ES)32, manta ray foraging optimization (MRFO)33,34, dragonfly algorithm (DA)35, flower pollination algorithm (FPA)36, etc.

Therefore, the aim of this current work is to improve the SDO algorithm in order to apply it to the OPF IEEE 30-bus, IEEE 57-bus, and IEEE 118-bus test power systems with and without considering hybrid Wind/Solar energy resources. Besides, the implementation of the SDO optimizer to deal with OPF issues is investigated for the first time. The SDO approach is a novel stochastic optimizer, introduced by Zhao et al. in 2019 and inspired by the supply-demand mechanism in economics37. Numerous academic researchers have employed the SDO algorithm such as, in Refs.38,39 the authors apply SDO in order to extract accurate and reliable parameters for different PV models. To design an efficient and economic hybrid energy system, the SDO optimizer was used in40. According to41, the fitness-distance balance (FDB) method was employed to effectively model the supply-demand processes in SDO. Additionally, in order to build an accurate equivalent circuit model for proton exchange membrane fuel cells, authors in42 tried to apply the SDO algorithm. As introduced in43, the authors apply the SDO in order to obtain the unknown parameters of the PIDA controller. Referring to44, Hassan et all. improve SDO with a view to enhance the population diversity, the balance between local and global search, and the premature convergence of the original supply-demand based optimization (SDO) algorithm. Their proposed approach was applied for achieving global solutions to economic load dispatch (ELD) problems in power systems. In addition, in an attempt to ameliorate the performance of the approach under study, the authors in45 present a chaotic map-based supply-demand optimization (SDO) algorithm including the fitness-distance balance (FDB) selection method to solve the Combined heat and power economic dispatch (CHPED) problem; the FDB and chaotic maps were used to increase the convergence performance of the algorithm to the global solution and to find the global solution in the solution search space. Regarding the work of Zhao et al.46, an enhanced fitness-distance balance (EFDB) and the Levy flight are added to the SDO original version to avoid premature convergence and improve solution diversity; besides, a mutation mechanism is introduced into the algorithm to improve search efficiency; and to enhance the convergence accuracy, an adaptive local search strategy (ALS) is integrated, and so on. According to these literature reviews, the supply-demand-based optimization algorithm requires an adjustment in terms of the exploration behavior to fit the current problem. This has motivated us to suggest the leader supply-demand-based optimization approach (LSDO). Thus, during each SDO’ generation a leader-based mutation selection adaptively perched over the exploration phase.

The contributions of this paper are:

  • The proposed LSDO algorithm is evaluated by testing it on various benchmark functions. It is compared against established algorithms such as Social Network Search (SNS), Gray Wolf Optimizer (GWO), Tunicate Swarm Algorithm (TSA), and the original SDO algorithm. This evaluation helps assess the performance and effectiveness of the LSDO algorithm.

  • The LSDO algorithm is implemented to solve the Optimal Power Flow (OPF) problem on three well-known standard systems: IEEE 30-bus, IEEE 57-bus, and IEEE 118-bus test systems considering Wind and Solar powers. These systems have different numbers of control variables (24, 33, and 130, respectively). By considering these standard systems, the paper ensures a comprehensive evaluation of the LSDO algorithm’s capabilities.

  • Comparative studies are conducted between the proposed LSDO technique and the original SDO technique for solving the OPF problem. By comparing these two approaches, the paper aims to highlight the advantages and improvements achieved by the LSDO algorithm.

  • The OPF problem is solved using both the proposed LSDO and the original SDO techniques in eight different cases with single objectives. These objectives include total cost minimization, total emission minimization, active power loss minimization, and voltage deviation minimization. By addressing these different objectives, the paper demonstrates the versatility and applicability of the LSDO algorithm in tackling various aspects of the OPF problem.

  • Through comparative analysis, the paper shows that the proposed LSDO technique exhibits high robustness and outperforms the conventional SDO algorithm and other recent techniques in addressing the OPF problem. This analysis highlights the superior performance of the LSDO algorithm and its potential as a powerful optimization tool.

Overall, the paper contributes to the field by evaluating the performance of the LSDO algorithm, demonstrating its effectiveness in solving the OPF problem incorporating wind/solar powers, and showcasing its robustness and improved performance compared to existing techniques.

The following sections of this paper are organized as follows: In The proposed optimization methodology section, you will find a detailed explanation of the original SDO, and its improved variant LSDO, besides a brief introduction of the constraint handling strategy SF. Problem Formulation Methodology section introduces the formulation of the OPF problem considering renewable energy resources. Simulation Results and Discussion section of this paper delves into a comprehensive numerical statistical analysis and discussions. Ultimately, the paper concludes with a summary of the findings.

The proposed optimization methodology

In this section, the supply-demand-based optimization (SDO) algorithm is briefly explained then the process of the leader SDO (LSDO) algorithm is described.

The supply-demand-based optimization (SDO) algorithm

According to the SDO algorithm proposed in37, it is presumed that there exist multiple markets for commodities, each with a consistent quantity and cost for every product. The cost of each commodity and the corresponding market volume is presented as follows:

$$\begin{aligned} X= & {} \left[ \begin{array}{c} x_{1} \\ x_{2} \\ \cdot \\ \cdot \\ \cdot \\ x_{n} \end{array}\right] =\left[ \begin{array}{ccccc} x_{1}^{1} &{}\quad x_{1}^{2} &{}\quad \cdots &{}\quad \cdots &{}\quad x_{1}^{d} \\ x_{2}^{1} &{}\quad x_{2}^{2} &{}\quad \cdots &{}\quad \cdots &{} x_{2}^{d} \\ \vdots &{}\quad \vdots &{}\quad \vdots &{}\quad \vdots &{}\quad \vdots \\ \vdots &{}\quad \vdots &{}\quad \vdots &{}\quad \vdots &{}\quad \vdots \\ x_{n}^{1} &{}\quad x_{n}^{2} &{}\quad \cdots &{}\quad \cdots &{}\quad x_{n}^{d} \end{array}\right] \end{aligned}$$
(1)
$$\begin{aligned} Y= & {} \left[ \begin{array}{c} y_{1} \\ y_{2} \\ \cdot \\ \cdot \\ \cdot \\ y_{n} \end{array}\right] =\left[ \begin{array}{ccccc} y_{1}^{1} &{}\quad y_{1}^{2} &{}\quad \cdots &{}\quad \cdots &{}\quad y_{1}^{d} \\ y_{2}^{1} &{}\quad y_{2}^{2} &{}\quad \cdots &{}\quad \cdots &{}\quad y_{2}^{d} \\ \vdots &{}\quad \vdots &{}\quad \vdots &{}\quad \vdots &{}\quad \vdots \\ \vdots &{}\quad \vdots &{}\quad \vdots &{}\quad \vdots &{}\quad \vdots \\ y_{n}^{1} &{}\quad y_{n}^{2} &{}\quad \cdots &{}\quad \cdots &{}\quad y_{n}^{d} \end{array}\right] \end{aligned}$$
(2)

where d refers to the commodity prices number while n denotes the markets number. Moreover, \(x_{i}^{j}(i=1,\ldots ,n; j=1,\ldots ,d)\) represents the jth commodity cost in the \(i{\text {th}}\) market and \(x_i(i=1,\ldots ,n)\) refers to the \(i{\text {th}}\) the vector of commodity cost. \(y_{i}^{j}(i=1,\ldots ,n; j=1,\ldots ,d)\) represents the jth commodity quantity in the ith market. \(y_{i}(i=1,\ldots ,n)\) denotes the ith the vector of the commodity quantity.

The values of the decision variable in the fitness function are determined by the cost and quantity of commodities for each market, which are evaluated as follows:

$$\begin{aligned} \left[ \begin{array}{l} F_{x} \\ F_{y} \end{array}\right] =\left[ \begin{array}{llll} F_{x 1} &{}\quad F_{x 2} &{}\quad \ldots &{} F_{x n} \\ F_{y 1} &{}\quad F_{y 2} &{}\quad \ldots &{} F_{y n} \end{array}\right] ^{T} \end{aligned}$$
(3)

where T denotes the transpose of the matrix.

To prevent the SDO algorithm from becoming trapped in local optima, the balance costs \(y_{0}\) and balance volume vector \(x_{0}\) are chosen randomly, with a probability distribution determined by their likelihood of being successful.

$$\begin{aligned} N_{i}= & {} \left\| F_{y i}-\frac{1}{n} \sum _{i=1}^{n} F_{y i}\right\| \end{aligned}$$
(4)
$$\begin{aligned} Q= & {} \frac{N_{i}}{\sum \limits _{i=1}^{n} N_{i}} \end{aligned}$$
(5)
$$\begin{aligned} M_{i}= & {} \left\| F_{x i}-\frac{1}{n} \sum _{i=1}^{n} F_{x i}\right\| \end{aligned}$$
(6)
$$\begin{aligned} P= & {} \frac{M_{i}}{\sum \limits _{i=1}^{n} M_{i}} \end{aligned}$$
(7)
$$\begin{aligned} x_{o}= & {} {\left\{ \begin{array}{ll}r_{1} \sum _{1}^{n} \frac{x_{i}}{n} &{} \text{ if } \text{ rand } <0.5 \\ x_{k}, \,\,k= \text{ Roulette } \text{ wheel } \text{ selection } (FP) &{} \text{ if } \text{ rand } \ge 0.5\end{array}\right. } \end{aligned}$$
(8)

The quantities and costs of the product presented below are adjusted using the supply-factor \(\alpha\) and demand-factor \(\beta\), which are determined based on the equilibrium cost and balance quantity:

$$\begin{aligned} y_{i}(t+1)= & {} y_{o}+\alpha \cdot \left( x_{i}(t)-x_{0}\right) \end{aligned}$$
(9)
$$\begin{aligned} x_{i}(t+1)= & {} x_{o}+\beta \cdot \left( y_{i}(t)-y_{0}\right) \end{aligned}$$
(10)

During the ith iteration, \(x_{i}(t)\) and \(y_{i}(t)\) represent the ith cost and total quantity of a given product. The cost of the commodity can be expressed as:

$$\begin{aligned} x_{i}(t+1)=x_{o}+ L \cdot \left( x_{i}(t)-x_{0}\right) \end{aligned}$$
(11)

In order to balance exploration and exploitation, alpha and beta are denoted as:

$$\begin{aligned} \alpha= & {} \frac{2(T-t+1)}{T} \sin (2 \pi r) \end{aligned}$$
(12)
$$\begin{aligned} \beta= & {} 2 \cos (2 \pi r) \end{aligned}$$
(13)

here t refers to the current iteration, r is a random vector, and T denotes the total number of iterations.

To facilitate an efficient transition between exploration and exploitation within the SDO technique, a novel variable L is formulated as follows:

$$\begin{aligned} L=\alpha \beta =\frac{2(T-t+1)}{T} \sin (2 \pi r) \cos (2 \pi r) \end{aligned}$$
(14)

The cost of each demand varies between the balance cost when \(|L|>1\), and the converged balance cost when \(|L|<1\).

The proposed leader supply-demand-based optimization (LSDO) algorithm

The proposed technique is called Leader-based mutation-selection47. Its purpose is to address the possibility of the optimal value falling into local optima. This approach involves using the best location vector \(x_{best}^{t}\), the second-best location vector \(x_{(best-1)}^{t}\), and the third-best location vector \(x_{(best-2)}^{t}\) based on the objective function value of the new location vector \(x_{i}(new)\) relative to the population size. The new mutation position vector \(x_{i}(mut)\) is then calculated as:

$$\begin{aligned} \begin{aligned} x_{i}(mut)=&x_{i}(new)+2 \left( 1-\frac{t}{Max_it}\right) (2 rand -1)\left( 2 x_{best}^{t}-\left( x_{best-1}^{t}+x_{best-2}^{t}\right) \right) \\&+(2 \times rand -1)\left( x_{best}^{t}-x_{i}(new)\right) \end{aligned} \end{aligned}$$
(15)

Then, the next location is updated using the following equation48:

$$\begin{aligned} x_{i}(t+1)= {\left\{ \begin{array}{ll}x_{i}( \text{ mut } ) &{} f\left( x_{i}( \text{ mut } )\right) <f\left( x_{i}( \text{ new } )\right) \\ x_{i}( \text{ new } ) &{} f\left( x_{i}( \text{ mut } )\right) \ge f\left( x_{i}( \text{ new } )\right) \end{array}\right. } \end{aligned}$$
(16)

Finally, the optimal solution can be updated as follows49:

$$\begin{aligned} x_{\text{ best } }= {\left\{ \begin{array}{ll}x_{i}( \text{ mut } ) &{} f\left( x_{i}( \text{ mut } )\right)<f\left( x_{\text{ best } }\right) \\ x_{i}( \text{ new } ) &{} f\left( x_{i}( \text{ new } )\right) <f\left( x_{\text{ best } }\right) \end{array}\right. } \end{aligned}$$
(17)

The diagram in Fig. 1 illustrates the flowchart of the Leader supply-demand-based optimization (LSDO) algorithm. It also depicts the position of Leader-based mutation selection in the algorithm. This modification has been incorporated to improve the exploration capability of the LSDO algorithm by performing simultaneous crossover and mutation using the three best leaders.

Figure 1
figure 1

Flowchart of the proposed LSDO algorithm.

Constraint handling superiority of feasible solutions (SF)

It is worth noting that the majority of optimization problems have both equality and inequality constraints that must be handled. However, almost all stochastic algorithms are unconstrained approaches. thereby, researchers process by employing the well-known static penalty strategy that is not reliable and requires control parameter settings. Along these lines, a superiority of feasible solutions (SF) constraint handling method is integrated into this study to deal with the constraints on state variables. Deb50 proposed the use of the Dominance-based approach for handling constraints, known as the SF strategy. This strategy is based on the concept of a dominant relationship, which gives priority to feasible solutions over infeasible ones. According to this strategy, a feasible candidate can always dominate an infeasible one, and a candidate with a smaller violation degree dominates the one with a higher violation value. The SF strategy employs a tournament selection operator, where two solutions are compared at a time. The solution \(X_i\) is considered superior to \(X_j\) if:

  • An infeasible solution \(X_j\) is dominated by a feasible one \(X_i\)

  • if both \(X_i\), \(X_j\) are feasible, but \(X_j\) is worst than \(X_i\)

  • if both \(X_i\), \(X_j\) are infeasible, and \(X_j\) has the greatest constraint violation.

The equality constraints are transformed into inequality constraints, resulting in the introduction of a total constraint as:

$$\begin{aligned} H_{i}(X)=\left\{ \begin{array}{l} \max \left( h_{i}(X), 0\right) \\ \max \left( |g_{i}(X) |-\delta , 0\right) \end{array}\right. \end{aligned}$$
(18)

where \(\delta\) is a tolerance parameter for the equality constraints, \(H_{i}(X)\) represents the inequality constraints. The expression of the constraint violation for an infeasible solution can be represented as:

$$\begin{aligned} V(X)=\frac{\sum \limits _{i=1}^{g} w_{i}\left( H_{i}(X)\right) }{\sum \limits _{i=1}^{g} w_{i}},\,\,\,\,\,\,w_{i} = \frac{1}{H_{max,i}} \end{aligned}$$
(19)

where \(w_{i}\) is a weight factor, \(H_{max,i}\) is the maximum value for violation of constraint.

Problem formulation methodology

Renewable energy model

Presently, the integration of renewable energy resources (RESs) into power systems is rapidly advancing, with particular focus on wind and PV power. These RESs play a pivotal role in reducing CO2 emissions and bolstering the power system’s overall quality and reliability. To model solar irradiance and wind distribution, Lognormal and Weibull probability density functions are respectively utilized51. Through 8000 iterations of the Monte Carlo simulation, the Lognormal fitting of solar irradiance, Weibull fitting of wind speed, and Frequency distribution are obtained and visualized in Figs. 2, 352. Each of these resources is associated with three cost components: direct cost, penalty cost, and reserve cost51. Table 1 provides a comprehensive description of all the parameters related to solar and wind energy sources.

Figure 2
figure 2

Distribution of wind speed for wind generators.

Figure 3
figure 3

Distribution of solar irradiance for solar generator at 13th buses.

Table 1 Characteristic details of wind-solar generators.

Wind power

The variability of wind flow is modeled using a Weibull probability distribution function53.

$$\begin{aligned} f(v)=\left( \frac{k}{c}\right) \left( \frac{v}{c}\right) ^{(k-1)} \exp \left[ -\left( \frac{v}{c}\right) ^{k}\right] , \quad v \ge 0 \end{aligned}$$
(20)

where the parameters k and c represent the shape and scale factors of the Weibull distribution, respectively.

The wind generator’s output power is determined by the stochastic wind speed and can be expressed as follows53:

$$\begin{aligned} \begin{array}{l} {p_{w}(v)=\left\{ \begin{array}{ll} {0} &{} {v<v_{\text{ in } } \text{ and } v>v_{\text{ out } }} \\ {p_{wr}\left( \frac{v-v_{\text{ in } }}{v_{r}-v_{\text{ in } }}\right) } &{} { v_{\text{ in } } \le v \le v_{r}} \\ {p_{wr}} &{} {v_{r}<v \le v_{\text{ out } }} \end{array}\right. } \end{array} \end{aligned}$$
(21)

where \(v_{out}\), \(v_{in}\), \(v_{r}\), v and \(p_{wr}\) are cut-out wind speed, cut-in wind speed, rated wind speed, actual wind speed, and rated output power, respectively.

The total cost of wind energy encompasses the following components51: direct Cost associated with the scheduled power generated by the wind turbine, penalty Cost of Underestimation, and reserve Cost for Overestimation. These factors together contribute to determining the overall cost associated with wind energy generation as represented below:

$$\begin{aligned} C_{T w, i w}=C_{d w, i w}+C_{u e w, i w}+C_{o e w, i w} \end{aligned}$$
(22)

with,

$$\begin{aligned} C_{d w, i}= & {} d_{w, i} P_{w s, i} \end{aligned}$$
(23)
$$\begin{aligned} C_{u e w, i}= & {} K_{u e w, i} \int \limits _{P_{w s, i}}^{P_{w r, i}}\left( p_{w, i}-P_{w s, i}\right) f_{w}\left( p_{w, i}\right) d p_{w, i} \end{aligned}$$
(24)
$$\begin{aligned} C_{o e w, i}= & {} K_{o e w, i} \int \limits _{0}^{P_{w s, i}}\left( P_{w s, i}-p_{w, i}\right) f_{w}\left( p_{w, i}\right) d p_{w, i} \end{aligned}$$
(25)

where \(d_{w, i}\) is the coefficient of direct cost of ith wind generator. \(K_{o e w, i}\) and \(K_{u e w, i}\) are the over and under estimation cost coefficients pertaining to ith wind power plant. \(p_{ws,i}\) is the scheduled power. \(f_{w}\left( p_{w, i}\right)\) is the probability density function of ith wind power plant.

Solar power

The lognormal distribution is employed as the probability distribution function to calculate the PV output power, as illustrated below53:

$$\begin{aligned} f(G)=\frac{1}{G \sigma \sqrt{2 \pi }} \exp \left[ \frac{-(\ln x-\mu )^{2}}{2 \sigma ^{2}}\right] , \quad G \succ 0 \end{aligned}$$
(26)

The available power \(P_s(G)\) of solar irradiation G is calculated in the following manner, as shown in53:

$$\begin{aligned} P_{s}(G)=\left\{ \begin{aligned} P_{s r}\left( \frac{G^{2}}{G_{std} R_{c}}\right)&0 \prec G \prec R_{c} \\ P_{s r}\left( \frac{G}{G_{s t d}}\right)&R_{c} \le G \end{aligned}\right. \end{aligned}$$
(27)

where \(P_{s r}\), \(G_{std}\), G, and \(R_{c}\) are the rated output power of solar PV, solar irradiation in standard environment, forecasted solar irradiation, and certain irradiance point, respectively.

The PVs total cost is formulated as follows51:

$$\begin{aligned} C_{T s, i s}=C_{d s, i s}+C_{u e s, i s}+C_{o e s, i s} \end{aligned}$$
(28)

with,

$$\begin{aligned} C_{d s, i}= & {} d_{s, i} P_{s s, i} \end{aligned}$$
(29)
$$\begin{aligned} C_{u e s, i}= & {} K_{u e s, i} \int _{P_{s s, i}}^{P_{s r, i}}\left( p_{s, i}-P_{s s, i}\right) f_{s}\left( p_{s, i}\right) d p_{s, i} \end{aligned}$$
(30)
$$\begin{aligned} C_{o e s, i}= & {} K_{o e s, i} \int _{0}^{P_{s s, i}}\left( P_{s s, i}-p_{s, i}\right) f_{s}\left( p_{s, i}\right) d p_{s, i} \end{aligned}$$
(31)

where \(d_{s, i}\) is the coefficient of direct cost of ith wind generator. \(P_{s s, i}\) is the scheduled power. \(K_{o e s, i}\) and \(K_{u e s, i}\) are the over and under estimation cost coefficients of solar power plant. \(f_{s}\left( p_{s, i}\right)\) is the probability density function of the ith solar power plant.

Optimal power flow model

Generally speaking, OPF is considered a complex, non-convex, non-linear in power system optimization problem. The purpose of OPF is to minimize various competing objective functions subject to diverse control and state variables, as well as power flow equations and unit operating limits as equality and inequality constraints, respectively.

Objective functions

In this work, six competing objective functions will be outlined.

Fuel cost

The total fuel cost of the network’s generators is modeled as a quadratic function, expressed as follows51:

$$\begin{aligned} F_{1}= F_{c}(s,c)=min\left\{ \begin{array}{ll} \sum _{i=1}^{Ng}a_i+b_iP_{gi}+c_iP_{gi}^2 \\ \end{array} \right. \end{aligned}$$
(32)

where \(a_i\), \(b_i\) and \(c_i\) are the cost coefficients of the conventional units.

Emission

The emission function is represented using an exponential function that is formulated based on the previous quadratic function as follows51:

$$\begin{aligned} F_{2}= E(s,c)=min\left\{ \sum _{i=1}^{N g} 10^{-2} \left( \alpha _{i}+\beta _{i} P_{g i}+\gamma _{i} P_{g i}^{2}\right) +\xi _{i} \exp \left( \lambda _{i} P_{g i} \right) \right. \end{aligned}$$
(33)

where \(\alpha _{i}\), \(\beta _{i}\), \(\gamma _{i}\), \(\xi _{i}\), and \(\lambda _{i}\) are the emission coefficients of the power plant.

Voltage deviation

The load bus voltages are set to 1.0 per unit to ensure a desirable voltage profile. The voltage deviation is defined as follows54:

$$\begin{aligned} F_{3}= VD(s,c) =min\left\{ \begin{array}{ll} \sum \limits _{i=1}^{Npq}|V_{Li}-1.0|\\ \end{array} \right. \end{aligned}$$
(34)
Power loss

The transmission system experiences power losses due to the inherent resistance of the transmission lines. This can be mathematically modeled using the following expression54:

$$\begin{aligned} F_{4}= P_{loss}(s,c) = min\left\{ \begin{array}{ll} \sum \limits _{l=1}^{N_{l}}G_{l(i,j)}(V_i^2+V_j^2-2V_iV_jcos(\delta _{ij})) \end{array} \right. \end{aligned}$$
(35)

where, \(G_{l(i,j)}\) represents the conductance of line l. \(\delta _{ij} = \delta _i - \delta _j\) represents the voltage angle difference between bus i and bus j.

Cost considering renewable energy powers

The total cost of the network, considering the combined contributions of wind, solar, and thermal powers, is expressed as follows51.

$$\begin{aligned} F_{5}= F_T(s,c) = min\left\{ F_{c} + C_{Tw} + C_{Ts} \right. \end{aligned}$$
(36)

where \(F_{c}\), \(C_{Tw}\), and \(C_{Ts}\) are fuel cost, wind’s total cost, and PV’s total cost, respectively.

Cost considering renewable energy powers with the carbon tax

Over the past decade, numerous countries have responded to global environmental concerns by introducing carbon taxes as a measure to mitigate carbon emissions into the environment. The calculation of emissions cost ($/ton) involves the application of a carbon tax (\(C_{Tax}\)) on emitted pollutants51:

$$\begin{aligned} F_{6} = min\left\{ F_{T} + E_{c} \right. \end{aligned}$$
(37)

avec

$$\begin{aligned} E_{c} = C_{Tax} \cdot E \end{aligned}$$
(38)

where E presents the emission, and \(C_{Tax}=20\).

Variables

The set of state variables s can be defined as51:

$$\begin{aligned} s=[P_{g1},V_{L1},...,V_{LNpq},Q_{g1},...,Q_{gNg},S_{l1},...,S_{lNl}] \end{aligned}$$
(39)

where, \(P_{g1}\) is the active power output at the slack bus. \(V_L\) is the voltage magnitude at PQ buses. \(Q_g\) is the reactive power output of all generator units. \(S_l\) is the transmission line loading (line flow). \(N_{pq}\), \(N_g\), and \(N_l\) denote the number of load buses, number of generating units, and number of transmission lines, respectively.

The set of control variables c can be expressed as51:

$$\begin{aligned} c=[P_{g2},...,P_{gNg},V_{g1},...,V_{gNg},Q_{c1},...,Q_{cNc},T_1,...,T_{NT}] \end{aligned}$$
(40)

The expression represents the modeling of transmission system power losses, which occur due to the resistance of lines. The active power generation at the PV buses, except the slack bus, is denoted by \(P_g\), and \(V_g\) represents the voltage magnitude at PV buses. The transformer tap settings are represented by T, and \(Q_c\) is the shunt VAR compensation. \(N_g\), \(N_c\), and \(N_T\) are the number of generators, regulating transformers, and VAR compensators (shunt), respectively.

Constraints

As previously mentioned, the OPF problem comprises both equality and inequality constraints, which are crucial in optimal power flow investigations as they represent the physical limitations of the equipment. The constraints are modeled as follows:

Equality constraints The power flow equations are assumed as equality constraints that are represented by:

$$\begin{aligned} \left\{ \begin{array}{l} P_{gi}-P_{di}-|V_i|\sum _{j=1}^{Nb}|V_j|[G_{ij}cos(\theta _{ij})+B_{ij}sin(\theta _{ij})]=0 \\ Q_{gi}-Q_{di}-|V_i|\sum _{j=1}^{Nb}|V_j|[G_{ij}sin(\theta _{ij}){-}B_{ij}cos(\theta _{ij})]=0 \end{array}\right. \end{aligned}$$
(41)

The number of buses in the system is denoted by Nb. The active and reactive power generated at bus i are represented by \(P_{gi}\) and \(Q_{gi}\), respectively, while the active and reactive power demand at bus i are represented by \(P_{di}\) and \(Q_{di}\), respectively. The admittance matrix components are denoted by \(G_{ij}\) and \(B_{ij}\). \(Y_{ij}=G_{ij}+jB_{ij}\) named the conductance and susceptance.

Inequality constraints The inequality constraints are given below:

  • Generator constraints:

$$\begin{aligned}{} & {} V_{gi}^{min}\le V_{gi}\le V_{gi}^{max}\,\,\,\,\,\,\,\,\,\,\,\,\,i=1,...,Ng \end{aligned}$$
(42)
$$\begin{aligned}{} & {} P_{gi}^{min}\le P_{gi}\le P_{gi}^{max}\,\,\,\,\,\,\,\,\,\,\,\,\,\,i=1,...,Ng \end{aligned}$$
(43)
$$\begin{aligned}{} & {} P_{ws,i}^{min}\le P_{ws,i}\le P_{ws,i}^{max}\,\,\,\,\,\,\,\,\,\,\,\,\,\,i=1,...,Nwg \end{aligned}$$
(44)
$$\begin{aligned}{} & {} P_{ss,i}^{min}\le P_{ss,i}\le P_{ss,i}^{max}\,\,\,\,\,\,\,\,\,\,\,\,\,\,i=1,...,Nsg \end{aligned}$$
(45)
$$\begin{aligned}{} & {} Q_{gi}^{min}\le Q_{gi}\le Q_{gi}^{max}\,\,\,\,\,\,\,\,\,\,\,\,i=1,...,Ng \end{aligned}$$
(46)
$$\begin{aligned}{} & {} Q_{ws,i}^{min}\le Q_{ws,i}\le Q_{ws,i}^{max}\,\,\,\,\,\,\,\,\,\,\,\,i=1,...,Nwg \end{aligned}$$
(47)
$$\begin{aligned}{} & {} Q_{ss,i}^{min}\le Q_{ss,i}\le Q_{ss,i}^{max}\,\,\,\,\,\,\,\,\,\,\,\,i=1,...,Nsg \end{aligned}$$
(48)

where \(V_i^{min}\) and \(V_i^{max}\) indicate the minimum and maximum bounds of the bus voltage. \(P_{gi}^{min}\) and \(P_{gi}^{max}\) represent the lower and upper bounds of active power generators. \(Q_{gi}^{min}\) and \(Q_{gi}^{max}\) are the minimum and maximum reactive power bounds of the generator. \(P_{ws,i}^{min}\), \(P_{ws,i}^{max}\), \(P_{ss,i}^{min}\), \(P_{ss,i}^{max}\), \(Q_{ws,i}^{min}\), \(Q_{ws,i}^{max}\), \(Q_{ss,i}^{min}\), and \(Q_{ss,i}^{max}\) are the bounds of energy resources. Ng, Nwg, and Nsg are the number of generation, wind, and solar, respectively.

  • Transformer constraints:

$$\begin{aligned} T_i^{min}\le T_i\le T_i^{max}\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,i=1,...,N_T \end{aligned}$$
(49)

where, \(N_T\) is the number of tap changer transformers. \(T_i^{min}\) and \(T_i^{max}\) represent the minimum and maximum limits of the transformer, respectively.

  • Shunt VAR compensators constraints:

$$\begin{aligned} Q_{ci}^{min}\le Q_{ci}\le Q_{ci}^{max}\,\,\,\,\,\,\,\,\,\,\,\,\,\,i=1,...,Nc \end{aligned}$$
(50)

where, Nc is the number of capacitor components. \(Q_{c,i}^{min}\) and \(Q_{c,i}^{max}\) are the minimum and maximum limits of the shunt compensators.

  • Security constraints:

$$\begin{aligned}{} & {} V_{Li}^{min}\le V_{Li}\le V_{Li}^{max}\,\,\,\,\,\,\,\,\,\,\,\,\,i=1,...,Npq \end{aligned}$$
(51)
$$\begin{aligned}{} & {} S_{li}\le S_{li}^{max}\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,i=1,...,Nl \end{aligned}$$
(52)

where, Nl is the number of transmission lines. \(S_{li}\) and \(S_{li}^{max}\) indicate the maximum limit of the transmission line.

Simulation results and discussion

This section demonstrates the superiority of the proposed LSDO algorithm through experimentation with 23 benchmark functions. All 23 experiments were conducted using MATLAB (R2020a) on a computer with an Intel(R) Core(TM) i5-9400F CPU running at 2.90 GHz and 8GB of RAM.

Simulation results of benchmark functions

In this subsection, the effectiveness and accuracy of the LSDO technique are evaluated using 23 benchmark functions55. These functions are divided into three categories: uni-modal functions (F1–F7), multi-modal functions (F8–F14), and fixed-dimension multi-modal functions. Table 2 provides the definitions of these functions, with D, UM, and MM representing the dimension, uni-modal functions, and multi-modal functions, respectively. The performance of the original SDO technique and three well-known optimization algorithms, namely social network search (SNS)56, gray wolf optimizer (GWO)57, and tunicate swarm algorithm (TSA)58, are also compared. The evaluation metrics include the best, mean, median, worst values, and standard deviation (std) of the solutions obtained by each algorithm. Table 3 presents the results, where all algorithms were run with a population size of 50 and a maximum of 200 iterations for 20 independent runs. As shown, the proposed LSDO technique achieves the best values for most benchmark functions.

Table 2 Definition of 23 benchmark functions.
Table 3 Statistical results of 23 benchmark functions by the proposed LSDO technique and other recent algorithms.

In addition, qualitative metrics of the proposed LSDO technique for nine benchmark functions are shown in Fig. 4, including 2D views of the functions, search history, average fitness history, and convergence curves. The convergence curves for all algorithms and benchmark functions are illustrated in Fig. 5, while the boxplots are displayed in Fig. 6. The LSDO algorithm is observed to reach a stable point for all functions, and its boxplots are narrower than the other techniques for many functions.

Figure 4
figure 4figure 4

Qualitative metrics of nine benchmark functions: 2D views of the functions, search history, average fitness history, and convergence curve using the proposed LSDO technique.

Figure 5
figure 5

The convergence curves of studied algorithms for 23 benchmark functions.

Figure 6
figure 6

Boxplots of studied algorithms for 23 benchmark functions.

The LSDO technique’s performance is compared to other recent algorithms including the original SDO technique and six well-known optimization algorithms, namely SNS, GWO, TSA, differential evolution (DE)59, particle swarm optimizer (PSO)60, and artificial bee colony (ABC)61 on 13 benchmark functions with a dimension of 100. The results are presented in Table 4. For Function 1, the proposed LSDO technique achieved significantly better results with a minimum value of 1.7E−145, outperforming other algorithms. Function 2 also demonstrated the superiority of the LSDO technique, as it obtained a minimum value of 3.77E−68, notably better than the other algorithms. The LSDO technique performed exceptionally well on Function 3, achieving a minimum value of 6.97E−143, which significantly outperformed other algorithms. Function 4 also showed the superiority of the LSDO technique with a minimum value of 2.06E−73, outclassing other algorithms in this benchmark. For Function 5, the LSDO technique yielded promising results with a minimum value of 96.87, while maintaining competitive performance with the other algorithms. Function 6 showcased the strength of the LSDO technique with a minimum value of 6.7327, outperforming other algorithms. In Function 7, the LSDO technique obtained an impressively low minimum value of 2.91E−06, significantly improving compared to other algorithms. The LSDO technique demonstrated its effectiveness in Function 8, achieving a minimum value of −4014.5, which is significantly better than the results obtained by other algorithms. Function 9 showcased the superiority of the LSDO technique, as it achieved a minimum value of 0, outperforming other algorithms. Function 10 also displayed the strength of the LSDO technique with a minimum value of 8.88E−16, demonstrating superior performance compared to other algorithms. The LSDO technique excelled in Function 11, achieving a minimum value of 0, and outperforming other algorithms. Function 12 showcased the effectiveness of the LSDO technique with a minimum value of 0.04123, displaying better results compared to other algorithms. In Function 13, the LSDO technique achieved an excellent minimum value of 5.7551, outclassing other algorithms. Overall, the LSDO technique consistently displayed superior performance in multiple benchmark functions, achieving the best results in most cases. These findings indicate the potential effectiveness and competitiveness of the proposed LSDO technique for solving optimization problems.

Table 4 Statistical results of 13 benchmark functions (Dim = 100) by the proposed LSDO technique and other recent algorithms.

Simulation results of optimal power flow

In this section, the detail of the simulation results will be discussed. To authenticate the performance of the LSDO approach, three well-known standard systems were considered as IEEE 30-bus, IEEE 57-bus, and IEEE 118-bus test systems considering two types of renewable energies, which have 24, 33, and 130 control variables, respectively. The main descriptions of these selected grids are tabulated in Table 5. Furthermore, these considered test systems are executed via ten case studies as described in Table 6. The obtained results are compared with the classical version SDO and some state-of-the-art stochastic approaches. The optimal findings are shown in bold text. All the experiment studies are averaged over 30 independent runs, they have been done by using MATLAB R2020a, under Microsoft Windows 10 operating system, and carried out on a personal computer core i5 with 4GB-RAM Processor @1.8GHz. As mentioned before, the power systems under consideration are analyzed through ten distinct case studies, which are defined as follows:

  • Cases 1, 2, 3, 4, 7, 8, 9, and 12: Without renewable energy resources

These cases represent the primary scenarios focused on reducing fuel costs, power loss, voltage deviation, and emission.

Table 5 The basic specifications of the IEEE test systems.
Table 6 Different case studies.
  • Cases 5, 6, 10 and 11: With renewable energy resources

These cases are computed based on Eqs. 36 and 37. They are characterized by considering both wind and PV power sources. They depict the core scenario centered on the primary objective of diminishing fuel costs, while accounting for emission, power loss and voltage deviation.

IEEE 30-bus test system

The IEEE 30-bus network is the small power system considered in this study. It contains 6 generating units which bus 1 is chosen as the slack bus, 41 branches, 9 shunt reactive power injections, and 4 transformers. The line and bus data are taken from62. Additionally, its active and reactive power demands are 283.4MW and 126.2MVAR, respectively. The voltage limits for all buses are taken between 0.95 and 1.05 p.u. Also, the least as well as greater tap setting for tap changing transformers are 0.9 p.u. and 1.1 p.u., respectively. Moreover, The limits of VAR compensators are assumed to vary between 0 and 5 p.u. The comparison of the obtained results between LSDO and its first version SDO is presented in Table 7. Furthermore, the optimal control variables are displayed in the same tables. As previously illustrated, two scenarios were considered: the first without taking into account renewable energy sources (RESs) whereas the second achieve a reduction in the total fuel cost through the integration of RESs. Specifically, wind power generators have replaced conventional generators at buses 5 and 11, with these wind turbines totaling 25 and 20 units, respectively. Additionally, a PV generator has been introduced to replace the generator at bus 13. The integration and placement of these RESs within the grid are determined based on the methodology outlined in the study by Biswas et al.51.

The first case attempted to optimize the quadratic fuel cost. The fitness rates attained are \(800.42 \)/h and \(800.4223 \)/h for LSDO and SDO, respectively. The objective function considering the minimization of total emission is taken as the second case, its best fitness values achieved are 0.20483 ton/h and 0.20484 ton/h. The obtained optimum voltage deviation (VD) for both approaches are 0.09152 p.u. and 0.09249 p.u., respectively. Regarding the power loss minimization, its fitness values recorded 3.0902(MW) and 3.0908(MW) as demonstrated in the same table. Remarkably, the outcomes reveal that the approach under study produces better solutions compared to its initial version. Additionally, in terms of the convergence characteristics, it can be seen from the evolution curves depicted in Fig. 7 that LSDO converges faster in comparison with SDO. Furthermore, according to the constraints satisfaction, Fig. 8 proves the effectiveness of LSDO-based SF in answering all system constraints. On the other hand, some of the published results are competitive with those generated by the LSDO technique, they offered better solutions as listed in Table 8 However, it can be observed carefully that certain of their voltage load buses are violated. Otherwise, the highest voltage deviation value that must be produced is 1.2p.u. of all PQ buses. More precisely, the infeasibility solutions footnoted in Table 8 can be explained in the following lines. For case 1 and as reported in9, the EWOA voltage deviation value is higher than 1.2p.u., in which all load buses exceed the maximum bound except buses 26 and 30. Ref.12 reports a VD value of 1.9652p.u. and a violation of all load voltage. The DSA approach13 has one bus violation at bus number 3. The optimum result taken from15 is an infeasible solution due to the violation in nodes 3, 4, 6, 7, 12, 14, 15, 16, 23, 25, 27, 28, 29, and 30. Referring to16, the best results stated for all Rao variants are also infeasible, there are voltage loads violations in buses 3, 4, 10, and 12 for Rao-1, and in buses 3, 4, 6, 10, 12, 14, 15, 16, 17, 20, 21, 22, 23, and 27 for Rao-2, and also in the buses 3, 4, 6, 10, 12, 14, 15, 16, 17, 20, 21, 22, 23, 27, and 29 for Rao-3. Additionally, the minimum fitness value reported in MSA Ref.10 for the emission case is too an infeasible solution owing to nodes 3 and 12.

Table 7 The obtained results of the proposed LSDO as well as the original SDO techniques for IEEE 30-bus.
Figure 7
figure 7

Characteristics of convergence of the proposed LSDO vs SDO for IEEE 30-bus system.

Figure 8
figure 8

Voltage profiles of PQ buses using the proposed LSDO algorithm for IEEE 30-bus system.

Table 8 Comparison of the LSDO and SDO algorithms and previous studies for IEEE 30-bus system.

Regarding the RESs scenario, the results obtained from the proposed LSDO approach are compared with those from the SDO method, as well as four re-implemented techniques, namely: artificial ecosystem optimization (AEO)69, particle swarm optimization (PSO)60, artificial bee colony (ABC)61, and deferential evolution (DE)59. Simulation results were generated using 50 populations, and their convergence was assessed by analyzing the plots obtained from each case over 500 iterations. To ensure statistical reliability, a total of 30 independent runs were conducted for each scenario. The comparative analysis of numerical outcomes across 30 runs for all competing methods is provided in Tables 9, 10. These tables encompass the optimal configurations of control variables, their allowable ranges, and the corresponding numerical best outcomes for each objective. As observed in these presented tables, the LSDO approach showcases a commendable ability to produce competitive results in comparison to both its initial version and other contemporary techniques across case studies. Figure 9 displays the convergence characteristics and distribution runs obtained for each case study of LSDO and the competitor algorithms. This figure illustrates the performance and behavior of the algorithms during the optimization process for the respective scenarios. The convergence curves clearly demonstrate that the LSDO algorithm outperforms its competitors by converging more rapidly towards the optimal solution. This ability to converge faster highlights the efficiency and effectiveness of the LSDO approach in finding high-quality solutions within a shorter number of iterations compared to other competing methods. Furthermore, the obtained optimal PQ voltage profile is depicted in Fig. 10. These visualizations demonstrate that all voltage profile constraints are satisfied, affirming that the feasibility is rigorously examined without any violations of constraints.

Table 9 Achieved solutions of the proposed LSDO and its competitors for case 5.
Figure 9
figure 9

Comparison of convergence and run of LSDO vs state-of-the-art algorithms for cases 5 and 6.

Figure 10
figure 10

Voltage profile of PQ buses for IEEE-30 REs cases.

Table 10 Achieved solutions of the proposed LSDO and its competitors for case 6.

IEEE 57-bus test system

To check the scalability of the algorithm under study, the medium IEEE 57-bus test system is examined. This network contains seven generators and the slack generator is at bus 1, 80 branches, 50 load buses, three shunt reactive power injections, and 15 transformers. Its active and reactive power demands are 1250.8 MW and 336.4 MVAR, respectively. This system has total of 33 control variables for the OPF problem, their bounds and the achieved optimized values for the three objective functions are listed in Table 11. The obtained fitness values from the LSDO and SDO algorithms for fuel cost, voltage deviation, and power loss are (\(41667.7190 \)/h–\(41668.7587 \)/h), (0.62165–0.63354 p.u.), and (10.2332–10.4552 MW), respectively. Based on these outcomes, it is obvious that the modified approach LSDO provides the optimum fitness value of all objective functions as compared to its classical version SDO. Figure 11 illustrates the convergence of the functions evolution of both algorithms. Based on these curves, it is clearly seen that the LSDO has a steady and speed convergence acceleration toward the global optimum than SDO. Table 8 gives a comparative study with other stochastic approaches stated in the literature, the listed best value for this system stated in11 case 1, is an infeasible solution, it knows a load voltage violations at buses 7, 18, 25, 29, 41, and 45. For the voltage deviation case, the Rao-316 seems to converge to the optimum solution than the suggested LSDO optimizer. However, after careful observation, node 25 violates the constraints with voltage values of 1.06687p.u.. In addition, the optimum value of DE algorithm65 is due to higher limits for the shunt compensators. Nevertheless, the optimizer under study LSDO gives a better solution without any constraint violation, as shown in Fig. 12 The voltage of the 50 loads buses (PQ bus) are satisfying all system constraints for all cases, which proves that all system constraints are checked.

Table 11 The obtained results of the proposed LSDO as well as the original SDO techniques for IEEE 57-bus.
Figure 11
figure 11

Characteristics of convergence of the proposed LSDO vs SDO for IEEE 57-bus system.

Figure 12
figure 12

Voltage profiles of PQ buses using the proposed LSDO for IEEE 57-bus system.

Table 12 Achieved solutions of the proposed LSDO and its competitors for case 10.

In the context of the renewable energy sources (RESs), the outcomes achieved using the proposed LSDO approach are compared with those obtained from the SDO method, AEO69, PSO60, ABC61, and DE59 approaches. This comparison assesses the performance and efficacy of the LSDO approach in optimizing the RESs integration and addressing the associated objectives. The comparative analysis of numerical outcomes from the 30 independent runs for all competing methods is provided in Tables 12, 13. These tables present the optimal configurations of allowable ranges, control variables, and the corresponding best numerical outcomes achieved for each objective. The data in these tables offer valuable insights into the performance and effectiveness of each method in solving the optimization problems in the given scenario. Figure 13 presents the convergence characteristics and distribution runs obtained for each case study of the LSDO approach and the competitor algorithms. This figure indicates that the LSDO algorithm outperforms its competitors by converging more rapidly towards the optimal solution. The figure emphasizes the robustness and competitiveness of the LSDO approach in addressing the optimization challenges in this considered system. Additionally, the obtained optimal PQ voltage profile is illustrated in Fig. 14. These visualizations effectively demonstrate that all voltage profile constraints are met, thereby confirming that the feasibility of the solutions is thoroughly verified without any violations of constraints. The optimal PQ voltage profile adheres to the operational limits, ensuring a stable and reliable performance of the power system. These qualitative and quantitative results illustrate that the LSDO approach exhibits a commendable capability to generate competitive solutions, performing favorably in comparison to both its initial version and other contemporary techniques across the different IEEE-57 case studies.

Table 13 Achieved solutions of the proposed LSDO and its competitors for case 11.
Figure 13
figure 13

Comparison of convergence and run of LSDO vs state-of-the-art algorithms for cases 5 and 6.

Figure 14
figure 14

Voltage profile of PQ buses for IEEE-57 REs cases.

IEEE 118-bus test system

In this part, The LSDO approach has been demonstrated on the IEEE 118-bus test system as a large scale problem in order to affirm the robustness of this suggested technique. The system active and reactive power demands are 4242 MW and 1439 MVAr, respectively. This network contains 118 nods, 54 generators in which the slack generator is at node 69, 186 branches, 14 shunt elements, 9 transformers tap, and 130 control variables. Voltage, shunt capacitors, and transformers tap limits are considered in the range of [0.95–1.1 p.u.], [0–25 p.u.] p.u., and [0.9–1.1 p.u.], respectively. Table 14 outlines the optimal values of the objective functions and their optimal control variables for both SDO and its LSDO variant. The total generation fuel cost for both LSDO and SDO are \(137105.9933 \) /h and \(139923.6969 \) /h, respectively. From these results, we note a decrease in the objective function for the improved approach. Besides, according to comparison results described in Table 8, it is apparent that the proposed approach gives a better solution compared to the other meta-heuristic algorithms stated in Some of the recent literature. Moreover, in the field of convergence characteristics, the graphical comparisons between SDO and LSDO of the fuel cost function are illustrated in Fig. 15a. The convergence and rapid speed are marked for the enhanced method LSDO, in which it converges more steadily toward the optimum solution. Similar to the aforementioned systems, all constraints are diligently satisfied using the superiority of feasible solution SF constraint handling technique. As depicted in Fig. 15b. it is obvious that the 64 load voltage buses are within the specified limits values of the load buses, and no bus experienced an overvoltage.

Table 14 The obtained results of the proposed LSDO as well as the original SDO techniques for IEEE 118-bus.
Figure 15
figure 15

Convergences and voltage profiles of PQ buses for IEEE 118-bus system.

Statistical results

Table 15 summarizes the statistical comparison of 30 independent runs between SDO and its improved variant corresponding to their min, mean, max, and standard deviation (SD) of fitness values. As mentioned before, the optimal objective function value achieved in each cases by LSDO optimizer outperforms the SDO solutions. Additionally, the mean, min, and SD are as well better in almost cases. Additionally, the statistical summary presented in Table 16 comprises the min, mean, max, and SD objective values obtained from 30 independent runs. This summary clearly demonstrates that the LSDO algorithm surpasses all other re-implemented algorithms in terms of performance. Remarkably, the worst fitness values achieved by LSDO are better than the best fitness values attained by the competing algorithms (i.e. ABC and DE in all cases, AEO in cases 5 and 6, PSO in all cases except case 10). This indicates that the LSDO algorithm consistently provides superior optimization outcomes across the considered scenarios, showcasing its effectiveness and robustness.

Table 15 Statistical results of the proposed LSDO and original SDO algorithms for case studies without RESs.

After a meticulous examination of the results obtained from evaluating different aspects and objectives across 23 benchmark functions and three distinct test networks, it has been established that the LSDO algorithm excels in effectively addressing the OPF problems compared to other alternative methods. Worth noting is that the considered cases represent diverse scenarios and conditions in power system, encompassing a wide range of complexities. Despite the varying characteristics of cases, the LSDO consistently exhibited superior performance in terms of convergence and attaining optimal solutions. The comparison was based on various metrics, including fitness values, convergence rates, and constraint satisfaction, all of which further support the robustness and effectiveness of the LSDO algorithm in solving the optimization challenges in the power systems domain.

Table 16 Statistical results of the proposed LSDO and its competitors for case studies with RESs.

Conclusion

This paper presents an ameliorate SDO algorithm for solving one of the power system issues considering renewable energy powers. In order to confirm the effectiveness of this algorithm, a set of test functions have been employed to benchmark the performance of the LSDO approach from different perspectives; then, three power system models and different case studies were investigated. The improved algorithm LSDO-based SF constraint handling method has been accomplished successfully and proves the utility of the SF strategy in dealing with the systems’ constraints. Accordingly, the obtained statistical results confirm the efficiency and capability of the LSDO in getting the best solutions, as it outstripped the standard version SDO and the well-known approaches TSA, GWO, SNS, ABC, DE, AEO, and PSO. Along these lines, this proposed LSDO algorithm has the ability to handle the various drawbacks of its basic algorithm, in terms of balancing between the exploration and exploitation processes. Furthermore, the LSDO convergence feature appears to have improved and shows a reasonable convergence speed to the fitness value than its initial version. In addition, the comparative study of LSDO, SDO and competitor algorithms affirms the potential of LSDO in finding accurate solutions notably for large-scale power systems and solving constrained non-linear complex real-world problems. In accordance with these remarkable outcomes, the authors recommend an LSDO-based SF strategy to handle the OPF issue for a realistic and higher dimension as considered in this present research.