1 Introduction

Optimal reactive power flow (ORPF) is a nonlinear, non-convex, and high-dimensional complex optimization problem. The main aim of the ORPF is to minimize a chosen objective function via optimal adjustment of control variables such as the voltage of generation buses, reactive power of capacitor banks, tap setting of transformers, etc. while satisfying various equality and inequality constraints [1]. Active power loss, voltage deviation, and voltage stability index are widely-used objective functions in the ORPF problem. The main reason behind it is that achieving these objectives means operating the electrical networks in an economical and stable manner [2, 3].

In today's world, ORPF has become one of the most important power system problems due to its critical role in the power industry. Power system researchers have used various optimization algorithms to deal with complex constraints and obtain feasible solutions to the non-linear ORPF problem. Ayan and Kılıç [4] used the artificial bee colony (ABC) algorithm to produce high-quality solutions to the ORPF problem. The success of the ABC in minimizing active power loss was evaluated using IEEE 30- and IEEE 118-bus test systems. The numerical results demonstrated that the ABC was able to achieve effective solutions for the ORPF problem. Yalçın and Arifoğlu [5] applied the genetic algorithm (GA) to the optimization of the ORPF problem in an IEEE 14-bus power system. Given that numerical results are together, it is observed that GA was more successful in solving the ORPF problem compared to its competitors. In another study, Moghadam and Seifi [6] dedicated on optimal reactive power planning problem. In this direction, the authors utilized the teaching–learning-based optimization (TLBO) method based on fuzzy logic to minimize power loss. The IEEE 30-bus test system results showed that the proposed algorithm can be a powerful alternative for solving the ORPF problem. Sulaiman et al. [7] investigated the best settings of control variables for reactive power flow problem. The authors applied the grey wolf optimizer (GWO) to solve the regarding problem. The efficiency of the algorithm has been tested in IEEE 30- and IEEE 118-bus power systems, and the GWO has outperformed other metaheuristics in terms of convergence speed and solution accuracy. Mehdinejad et al. [8] proposed the hybrid particle swarm optimization-imperialist competitive algorithm (PSO-ICA) for effective management of reactive power. The simulation results of IEEE 57- and IEEE 118-bus power systems demonstrated that the proposed hybrid approach had the ability to produce better-quality solutions than the ICA and PSO. Lenin et al. [9] used the hybrid tabu search-simulated annealing (HTSSA) algorithm to solve the ORPF problem. The effectiveness of HTSSA was evaluated in the IEEE-30 bus test system. The simulation results demonstrated that the HTSSA significantly reduced the active power loss. Mei et al. [10] applied the moth-flame optimization (MFO) algorithm to optimize the control variables of the ORPF problem. The performance of the algorithm has been tested in large-scale power systems, and it has been observed that the solution quality is better than its competitors. Sakr et al. [11] presented the differential evolution-based optimal reactive power optimization. The authors investigated the success of the proposed modified differential evolution algorithm (MDEA) in optimizing power loss and enhancing the voltage profile. Medani et al. [12] used the whale optimization algorithm (WOA) to optimize the control variables of the ORPF problem. The numerical results of the IEEE 14-, IEEE 30-, and Algerian 114-bus test systems revealed that the WOA is an efficient and robust method for solving the power system planning problem under study. Shaheen et al. [13] developed the hybrid improved marine predators algorithm and particle swarm optimization (IMPAPSO) method for the solution of the reactive power planning problem. The effectiveness of the proposed algorithm has been tested on IEEE 30-, IEEE 57- and IEEE 118-bus test systems. From the results, it has been seen that the convergence performance of the hybrid algorithm is superior to its competitors. Fadel et al. [14] employed the backtracking search algorithm (BSA) to find a feasible solution ORPF problem incorporating DGs and HVDC transmission systems. The effectiveness of the BSA was tested on modified IEEE 30- and 57-bus test systems with different cases. The simulation results showed that the power loss achieved by BSA was lower than its competitors in all test cases.

Based on the literature review, it can be said that the studies regarding the solution to the ORPF problem are a hot topic of interest to researchers. However, most of these studies investigated the classical ORPF. Contrary to the literature, the present research has centered on solving the AC/DC-ORPF problem in power systems that are modeled closest to the real world with the integration of DGs and HVDC systems. It is clear that power system researchers have applied a huge number of optimization algorithms to solve the ORPF problem. However, the obtained results have not been of the desired quality due to the drawbacks of optimization methods such as premature convergence and getting stuck in the local optima. From this point of view, a powerful and robust optimization algorithm is needed to provide results that improve upon the preceding ones. In this direction, this paper proposes a new metaheuristic algorithm, namely fitness-distance balance-based adaptive gaining-sharing knowledge (FDBAGSK).

A comprehensive scientific study has been carried out to test and verify the effectiveness of the proposed FDBAGSK algorithm. Firstly, it has been evaluated on 39 benchmark functions from CEC 2017 and CEC 2020, two of the most up-to-date test suites in the literature. The exploration, exploitation, and balanced search capabilities of the algorithm have been investigated by using unimodal, multimodal, hybrid, and composition-type problems in the relevant test suites. The data obtained from the experimental studies have been statistically analyzed using the Friedman and Wilcoxon tests. In addition, the convergence performance of the developed FDBAGSK has been validated by examining the boxplot graphs including the solution distribution span. After that, the developed FDBAGSK algorithm has been applied to the solution of nonlinear ORPF problem incorporating DGs and HVDC systems. Simulation studies have been performed on modified IEEE 30- and IEEE 57-bus test systems for optimization of power loss, voltage deviation, and voltage stability enhancement objectives.

The main contributions of this study can be listed as follows:

  • A novel optimizer named fitness-distance balance-based adaptive gaining-sharing knowledge (FDBAGSK) is proposed.

  • The exploration, exploitation, and balanced search abilities of the proposed FDBAGSK are tested by unimodal, multimodal, hybrid, and composition-type benchmark functions on CEC 2017 and CEC 2020 test suites. Furthermore, the convergence performance of the algorithm in 30, 50, and 100-dimensional search spaces was investigated.

  • The practicability of FDBAGSK is evaluated for the optimization of the ORPF problem incorporating DGs and HVDC systems.

  • The effectiveness of the proposed algorithm has been verified by Wilcoxon and Friedman statistical tests.

The remainder of the paper is organized as follows:

  • Section  2 presents the mathematical model of the ORPF incorporating DGs and HVDC systems.

  • Section 3 was prepared to introduce the design steps of the proposed FDBAGSK algorithm. In this direction, the fitness-distance balance (FDB) selection method, the basics of the original AGSK algorithm, and the proposed FDBAGSK algorithm are given, respectively.

  • Section 4 describes the experimental settings. It gives detailed information about the standards that were considered in executing the experimental studies and the benchmark problems used to test the performance of the algorithms.

  • Section 5 gives the findings and analysis results from the experimental studies.

  • Section 6 presents the conclusions of the study.

2 Mathematical model of ORPF problem incorporating DGs and HVDC systems

The optimal reactive power flow (ORPF) is a well-known power system problem in the field of the economical and reliable operation of electrical networks. The optimization of the ORPF problem is formulated as the minimizing chosen objective function such as active power loss, voltage deviation, and voltage stability index via adjustment of the control variables subject to various equality and inequality constraints [15, 16]. The mathematical model of the ORPF optimization problem is given in Eq. (1) [14, 17].

$$ \begin{array}{*{20}c} {{\text{minimize}} \quad F_{{{\text{obj}}}} \left( {M,P} \right) } \\ {{\text{subject}}\;{\text{to}}\; g\left( {M,P} \right) = 0} \\ {h\left( {M,P} \right) \le 0} \\ \end{array} $$
(1)

where \(F_{{{\text{obj}}}}\) is the objective function, \(M\) and \(P\) represent the state and control variables, \(g\left( {M,P} \right)\) and \(h\left( {M,P} \right)\) are the equality and inequality constraints, respectively. This study has focused on the formulation and solution of the AC/DC-ORPF problem involving DGs and HVDC systems.

2.1 State variables

The state variables of the AC/DC-ORPF problem incorporating DGs and HVDC systems are given in Eq. (2) [14].

$$ \begin{aligned} M & = \left[ {M^{AC} , M^{DC} } \right] \\ M^{AC} & = \left[ {P_{{THG_{1} }} , Q_{{THG_{1} }} \ldots Q_{{THG_{NTHG} }} , V_{{L_{1} }} \ldots V_{{L_{NPQ} }} } \right] \\ M^{DC} & = \left[ {t_{r} , t_{i} , \alpha_{r } , \gamma_{i } ,v_{dr} , v_{di} } \right] \\ \end{aligned} $$
(2)

where \(Q_{{THG_{1} }}\) represents reactive power of thermal generators, \(P_{{THG_{1} }}\) is the active power of the swing generator, \(V_{L}\) shows the voltage value of the load buses. \(NTHG\) and \(NPQ\) are the number of thermal generators and load buses. \(t_{r}\) and \(t_{i}\) display the tap ratio of transformers at the rectifier and inverter sides, respectively. The excitation angle of the rectifier and inverter are symbolized by \(\alpha_{r }\) and \(\gamma_{i }\). \(v_{dr}\) and \(v_{di}\) represent the DC voltage of the rectifier and inverter terminals, respectively.

2.2 Control variables

The control variables of the ORPF problem incorporating DGs and HVDC systems can be listed as follows [14]:

$$ \begin{gathered} P = \left[ {P^{AC} , P^{DC} } \right] \hfill \\ P^{AC} = \left[ {P_{{THG_{2} }} \ldots P_{{THG_{NTHG} }} ,V_{{THG_{1} }} \ldots V_{{THG_{NTHG} }} ,}\right. \\ \left.{ T_{1} \ldots T_{NT} , P_{{DG_{1} }} \ldots P_{{DG_{NDG} }} , loc_{{DG_{1} }} \ldots loc_{{DG_{NDG} }} } \right] \hfill \\ P^{DC} = \left[ {P_{r} , P_{i} , Q_{r } , Q_{i} ,i_{d} } \right] \hfill \\ \end{gathered} $$
(3)

where \(P_{THG}\) represents the thermal generator active power (except for the swing generator), \(V_{THG}\) is the voltage value of the generator buses, and \(T\) indicates the tap ratio of transformers. \(P_{DG}\) and \( loc_{DG}\) show the active power output and location of the DG, respectively. \(NTHG\), \(NT\), and \(NDG\) represent number of thermal generators, transformers, and distributed generations, respectively. \(P_{r}\), \(P_{i}\), \(Q_{r}\), and \(Q_{i}\) are the active and reactive power output of the rectifier and inverter, and \(i_{d}\) is the direct current.

2.3 Objective functions

In this study, active power loss, voltage deviation and L-index objective functions are optimized. The mathematical model of objective functions is explained in the following subsections.

2.3.1 Active power loss

The active power loss objective function can be formulated as given in Eq. (4) [14].

$$ \begin{array}{*{20}c} {F_{obj} \left( {M, P} \right) = F_{obj1} = P_{loss} } \\ \end{array} = \mathop \sum \limits_{k = 1}^{NTHG} P_{THGk} + \mathop \sum \limits_{k = 1}^{NDG} P_{DGk} - \mathop \sum \limits_{k = 1}^{{N_{bus} }} P_{Lk} $$
(4)

where \(P_{THGk}\) is the generator active power at bus k, \(P_{DGk}\) represents the active power of the distributed generator connected to the k-th bus, \(P_{Lk}\) denotes load demand at bus k, and \(N_{bus}\) represents the total bus number.

2.3.2 Voltage deviation

In modern power systems, the bus voltage deviation is considered one of the most important security indices. Because a small change in voltage can affect the entire system and cause a power outage [18, 19]. The voltage deviation objective function can be written as follows [20]:

$$ F_{{{\text{obj}}}} \left( {M, P} \right) = F_{{{\text{obj2}}}} = {\text{VD}} = \mathop \sum \limits_{i = 1}^{NPQ} \left| {VL_{i} - 1} \right| $$
(5)

where \(VD\) represents the voltage deviation value, \(NPQ\) is the number of load buses, and \(VL_{i}\) shows i-th load bus voltage.

2.3.3 Enhancement of voltage stability

Voltage stability is a major problem in modern power systems and usually results from a change in power system configuration, increased load on the load buses, or a disturbance in the power systems. The L-index value of the load buses is a powerful indicator of voltage stability [20]. The L-index parameter is expected to take values between 0 and 1, with 0 defining a no-load case, and 1 defining voltage collapse. For modern power systems, a lower L-index value corresponds to a more stable status [21, 22].

$$ L_{j} = \left| {1 - \mathop \sum \limits_{i = 1}^{NTHG} F_{ji} \frac{{V_{i} }}{{V_{j} }}} \right|\, j = 1, 2, \ldots , NPQ $$
(6)
$$ F_{ji} = - \left[ {Y_{LL} } \right]^{ - 1} \left[ {Y_{LG} } \right] $$
(7)

where \(L_{j}\) is the L-index value of the j-th load bus, and \(Y_{LL}\) and \(Y_{LG}\) sub-matrices are calculated from the bus admittance matrix (\(Y_{BUS}\)) after separating the load and generator buses, as defined in Eq. (8) [18, 23].

$$ \left[ {\begin{array}{*{20}c} {I_{L} } \\ {I_{G} } \\ \end{array} } \right] = \left[ {Y_{BUS} } \right] \left[ {\begin{array}{*{20}c} {V_{L} } \\ {V_{G} } \\ \end{array} } \right] = \left[ {\begin{array}{*{20}c} {Y_{LL} } & {Y_{LG} } \\ {Y_{GL} } & {Y_{GG} } \\ \end{array} } \right] \left[ {\begin{array}{*{20}c} {V_{L} } \\ {V_{G} } \\ \end{array} } \right] $$
(8)

The maximum value of the L-index is defined as the objective function (Eq. 9) [20]:

$$ F_{obj} \left( {M, P} \right) = F_{obj3} = \min \left( {L_{max} } \right) = \min \left( {{\text{max}}\left( {L_{j} } \right)} \right) $$
(9)

2.4 Equality constraints

This sub-section introduces the equality constraints of the AC/DC-ORPF optimization problem.

2.4.1 AC system equality constraints

The AC bus model including DGs and HVDC systems is shown in Fig. 1. The active and reactive power equations of the k-th AC bus can be defined as follows [14]:

$$ P_{THGk} + P_{DGk} - P_{Lk} - P_{Dk} - P_{k} = 0 $$
(10)
$$ Q_{THGk} + Q_{Ck} - Q_{Lk} - Q_{Dk} - Q_{k} = 0 $$
(11)

where \(P_{THGk}\), \(P_{DGk}\), \(P_{Lk}\), \(P_{Dk}\), and \(P_{k}\) are defined as an active power of the thermal generator, distributed generation, load bus, DC link, and k-th bus; \(Q_{THGk}\), \(Q_{Ck}\), \(Q_{Lk}\), \(Q_{Dk} ,\) and \(Q_{k}\) are defined as reactive power of the thermal generator, shunt compensator, load bus, DC link, and k-th bus, respectively.

Fig. 1
figure 1

AC bus model incorporating DGs and HVDC transmission systems

The active and reactive power transferred from the k-th bus to the AC system can be defined as follows [20, 22]:

$$ P_{k} = v_{k} \mathop \sum \limits_{j = 1}^{{N_{bus} }} v_{j } \left[ {G_{kj} \cos (\delta_{k} - \delta_{j} ) + B_{kj} \sin (\delta_{k} - \delta_{j} } \right] $$
(12)
$$ Q_{k} = v_{k} \mathop \sum \limits_{j = 1}^{{N_{bus} }} v_{j } \left[ {G_{kj} \sin (\delta_{k} - \delta_{j} ) - B_{kj} \cos (\delta_{k} - \delta_{j} } \right] $$
(13)

where \(v_{k}\) and \(v_{j}\) denote the voltage magnitude at bus k and j, respectively. \(G_{kj}\) and \(B_{kj}\) are conductance and susceptance, \(\delta_{k}\) and \(\delta_{j}\) depict the voltage angle of k-th and j-th bus, respectively.

If the rectifier and inverter losses are ignored, the power equations of the rectifier and inverter attached to the AC bus can be written as follows [14, 20]:

$$ P_{Dk} = P_{r} $$
(14)
$$ Q_{Dk} = Q_{r} $$
(15)
$$ P_{Dk} = - P_{i} $$
(16)
$$ Q_{Dk} = Q_{i} $$
(17)

2.4.2 DC system equality constraints

The schematic diagram of the two-terminal HVDC transmission system is depicted in Fig. 2. In the figure, \(v_{r}\), \(v_{i}\), \(i_{r}\), and \(i_{i}\) denote the AC voltage values and currents of the rectifier and inverter, respectively. \(\delta_{r}\), \(\delta_{i}\), \(\xi_{r}\), and \(\xi_{i}\) show the phase and AC current angles at the rectifier and inverter side [20, 22]. The equations of the rectifier side can be formulated as follows [24,25,26]:

$$ v_{dor} = k t_{r} v_{r} \Rightarrow k = \frac{3\sqrt 2}{\pi } $$
(18)
$$ v_{dr} = v_{dor} cos \alpha - r_{cr} i_{d} \Rightarrow r_{cr} = \frac{{3x_{cr} }}{\pi } $$
(19)
$$ P_{r} = v_{dr} i_{d} $$
(20)
$$\upphi _{r} = \cos^{ - 1} (v_{dr} /v_{dor} ) $$
(21)
$$ Q_{r} = | P_{r} tan \upphi _{r} | $$
(22)

where \(v_{dor}\) denotes the rectifier open circuit DC voltage value. \(r_{cr}\) and \(\upphi _{r}\) are the commutating resistance and phase angle at the rectifier side, respectively.

Fig. 2
figure 2

Two-terminal HVDC transmission system

The inverter side equations can be written as follows [24,25,26]:

$$ v_{doi} = k t_{i} v_{i} \Rightarrow k = \frac{3\sqrt 2}{\pi } $$
(23)
$$ v_{di} = v_{doi} cos \gamma - r_{ci} i_{d} \Rightarrow r_{ci} = \frac{{3x_{ci} }}{\pi } $$
(24)
$$ P_{i} = v_{di} i_{d} $$
(25)
$$\upphi _{i} = \cos^{ - 1} (v_{di} /v_{doi} ) $$
(26)
$$ Q_{i} = | P_{i} tan \upphi _{i} | $$
(27)

where \(v_{doi}\) denotes the inverter open circuit DC voltage value. \(r_{ci}\) and \(\upphi _{i}\) are the commutating resistance and phase angle at the inverter side, respectively. The equivalent circuit of a two-terminal HVDC transmission system is illustrated in Fig. 3. Considering the DC-link resistance, the voltage balance of the DC system can be written as follows [14]:

$$ v_{dr} - v_{di} - r_{dc} i_{d} = 0 $$
(28)
Fig. 3
figure 3

Two-terminal HVDC system equivalent model

2.5 Inequality constraints

In this sub-section, inequality constraints of the AC/DC-ORPF problem are given.

2.5.1 AC system inequality constraints

AC system inequality constraints can be formulated by Eqs. (29-34).

$$ P_{THGi}^{min} \le P_{THGi} \le P_{THGi}^{max} \forall i \in NTHG $$
(29)
$$ P_{DGi}^{min} \le P_{DGi} \le P_{DGi}^{max} \forall i \in NDG $$
(30)
$$ Q_{THGi}^{min} \le Q_{THGi} \le Q_{THGi}^{max} \forall i \in NTHG $$
(31)
$$ V_{THGi}^{min} \le V_{THGi} \le V_{THGi}^{max} \forall i \in NTHG $$
(32)
$$ V_{Li}^{min} \le V_{Li} \le V_{Li}^{max} \forall i \in NPQ $$
(33)
$$ T_{i}^{min} \le T_{i} \le T_{i}^{max} \forall i \in NT $$
(34)

2.5.2 DC system inequality constraints

DC system inequality constraints are given in Eqs. (3541).

$$ i_{d}^{min} \le i_{d} \le i_{d}^{max} $$
(35)
$$ P_{Dk}^{min} \le P_{Dk} \le P_{Dk}^{max} k = i,r $$
(36)
$$ Q_{Dk}^{min} \le Q_{Dk} \le Q_{Dk}^{max} k = i,r $$
(37)
$$ t_{k}^{min} \le t_{k} \le t_{k}^{max} k = i,r $$
(38)
$$ v_{dk}^{min} \le v_{dk} \le v_{dk}^{max} k = i,r $$
(39)
$$ \alpha_{r}^{min} \le \alpha_{r} \le \alpha_{r}^{max} $$
(40)
$$ \gamma_{i}^{min} \le \gamma_{i} \le \gamma_{i}^{max} $$
(41)

The fitness function of the AC/DC-ORPF problem incorporating DGs and HVDC systems can be formulated as in Eq. (42). In that equation, \({F}_{obj}\left(M,P\right)\) represents the objective function that include active power loss (\(F_{obj1}\)), voltage deviation (\(F_{obj2}\)), and voltage stability enhancement (\(F_{obj3}\)).

$$ J_{fitness} = F_{obj} \left( {M,P} \right) + Penalty $$
$$\begin{aligned} Penalty & ={\uplambda }_{1} {\left({P}_{{THG}_{1}}-{{P}_{{THG}_{1}}}^{lim}\right)}^{2}\\&\quad +{\uplambda }_{2}\sum_{i=1}^{NTHG}({{Q}_{THGi}-{{Q}_{THGi}}^{lim})}^{2}\\&\quad +{\uplambda }_{3}\sum_{i=1}^{NPQ}({{V}_{Li}-{V}_{Li})}^{2}+{\uplambda }_{4} {\left({t}_{r}-{{t}_{r}}^{lim}\right)}^{2}\\&\quad +{\uplambda }_{5} {\left({t}_{i}-{{t}_{i}}^{lim}\right)}^{2}+{\uplambda }_{6} {\left({\alpha }_{r}-{{\alpha }_{r}}^{lim}\right)}^{2}\\&\quad +{\uplambda }_{7} {\left({\gamma }_{i}-{{\gamma }_{i}}^{lim}\right)}^{2}+{\uplambda }_{8} {\left({v}_{dr}-{{v}_{dr}}^{lim}\right)}^{2}\\&\quad +{\uplambda }_{9} {\left({v}_{di}-{{v}_{di}}^{lim}\right)}^{2}\end{aligned}$$
(42)

where \({\uplambda }_{1}\), \({\uplambda }_{2}\), \({\uplambda }_{3}\), \({\uplambda }_{4}\), \({\uplambda }_{5}\), \({\uplambda }_{6}\), \({\uplambda }_{7}\), \({\uplambda }_{8}\), and \({\uplambda }_{9}\) are penalty factor terms. If the value of the state variables is lower or higher than the limit values, the value of these variables is set to the limit. Constraint violation states are given in the following equations:

$$ P_{{THG_{1} }}^{lim} = \left\{ {\begin{array}{*{20}c} {P_{{THG_{1} }}^{min} } \\ {P_{{THG_{1} }}^{max} } \\ \end{array} } \right. \begin{array}{*{20}c} {if P_{{THG_{1} }} < P_{{THG_{1} }}^{min} } \\ {if P_{{THG_{1} }} > P_{{THG_{1} }}^{max} } \\ \end{array} $$
(43)
$$ Q_{THGi}^{lim} = \left\{ {\begin{array}{*{20}c} {Q_{THGi}^{min} } \\ {Q_{THGi}^{max} } \\ \end{array} } \right. \begin{array}{*{20}c} {if Q_{THGi} < Q_{THGi}^{min} } \\ {if Q_{THGi} > Q_{THGi}^{max} } \\ \end{array} $$
(44)
$$ V_{Li}^{lim} = \left\{ {\begin{array}{*{20}c} {V_{Li}^{min} } \\ {V_{Li}^{max} } \\ \end{array} } \right. \begin{array}{*{20}c} {if V_{Li} < V_{Li}^{min} } \\ {if V_{Li} > V_{Li}^{max} } \\ \end{array} $$
(45)
$$ t_{r}^{lim} = \left\{ {\begin{array}{*{20}c} {t_{r}^{min} } \\ {t_{r}^{max} } \\ \end{array} } \right. \begin{array}{*{20}c} {if t_{r} < t_{r}^{min} } \\ {if t_{r} > t_{r}^{max} } \\ \end{array} $$
(46)
$$ t_{i}^{lim} = \left\{ {\begin{array}{*{20}c} {t_{i}^{min} } \\ {t_{i}^{max} } \\ \end{array} } \right. \begin{array}{*{20}c} {if t_{r} < t_{r}^{min} } \\ {if t_{r} > t_{r}^{max} } \\ \end{array} $$
(47)
$$ \alpha_{r}^{lim} = \left\{ {\begin{array}{*{20}c} {\alpha_{r}^{min} } \\ {\alpha_{r}^{max} } \\ \end{array} } \right. \begin{array}{*{20}c} {if\quad \alpha_{r} < \alpha_{r}^{min} } \\ {if\quad \alpha_{r} > \alpha_{r}^{max} } \\ \end{array} $$
(48)
$$ \gamma_{i}^{lim} = \left\{ {\begin{array}{*{20}c} {\gamma_{i}^{min} } \\ {t_{r}^{max} } \\ \end{array} } \right. \begin{array}{*{20}c} {if \quad \gamma_{i} < \gamma_{i}^{min} } \\ {if\quad \gamma_{i} > \gamma_{i}^{max} } \\ \end{array} $$
(49)
$$ v_{dr}^{lim} = \left\{ {\begin{array}{*{20}c} {v_{dr}^{min} } \\ {v_{dr}^{max} } \\ \end{array} } \right. \begin{array}{*{20}c} {if\quad v_{dr} < v_{dr}^{min} } \\ {if \quad v_{dr} > v_{dr}^{max} } \\ \end{array} $$
(50)
$$ v_{di}^{lim} = \left\{ {\begin{array}{*{20}c} {v_{di}^{min} } \\ {t_{r}^{max} } \\ \end{array} } \right. \begin{array}{*{20}c} {if\quad v_{di} < v_{di}^{min} } \\ {if\quad v_{di} > v_{di}^{max} } \\ \end{array} $$
(51)

3 Method

Although MHS algorithms differ from each other in several ways, there are two search tasks common to all of them [27,28,29,30]. The first task is exploitation, which refers to the ability to perform a neighborhood search around a reference location. This task, also known as fine-tuning, can be easily fulfilled by MHS algorithms because there are simple and effective mathematical methods that are well known for searching around a reference location [31, 32]. The second task is exploration, which refers to the algorithm's ability to efficiently research the entire search space. In contrast to exploitation, exploration is challenging because there are an unlimited number of solutions to be investigated in search space. Exploration is a process performed to eliminate local solution traps and plays a major role in determining the algorithm search performance [33,34,35]. The existence of many local solution traps in complex search spaces causes MHS algorithms to get caught in local solution traps while performing their exploration tasks and thus leads to premature convergence [36]. To overcome these problems, the MHS algorithm must have strong exploration and balanced search capability. The present study has centered on improving the exploration and balanced search capabilities of the AGSK algorithm, which suffers from premature convergence. In this direction, the guide selection strategy of the AGSK algorithm was redesigned using the FDB selection method. Thus, the FDBAGSK algorithm, which has the ability to effectively explore the search space and converge to the global optimum successfully, was developed. The next sub-sections introduce the FDB selection method, optimization model of the AGSK, and the proposed FDBAGSK algorithm.

3.1 Fitness-distance balance (FDB) selection method

Fitness-distance balance (FDB) [37] is an effective and powerful selection method developed by Kahraman et al. in 2020. The fundamentals of FDB method are based on the selection of guides with high potential to improve the quality of the search process. Although FDB is relatively similar to the greedy selection method, the most important feature that distinguishes FDB from the greedy approach is that the solution candidates are selected according to their scores. The FDB method considers two criteria to calculate the scores of the solution candidates: the fitness value and the distance to the best solution (\(x_{best}\)) in the population [37, 38]. This ensures that the solution candidate with the high fitness value is selected and also prevents the selection of a solution candidate that is very close to the \(x_{best}\) [33]. In order to calculate the FDB scores of solution candidates in a P-population, the following steps should be applied [37, 39]:

Step 1: Assume that \(x_{i}\,(i = 1,2, \ldots ,k\)) represents individual in population P. Accordingly, the population includes k individuals (solution candidates) and each individual \(x_{i}\) is represented by \(x_{ij} = [x_{i1} ,x_{i2} , \ldots ,x_{in} ]\), where n is the design variables number and \(f_{i} (i = 1,2, \ldots ,k\)) is the fitness value. In light of these definitions, P and FV vectors are created as shown in Eq. (52).

$$ P \equiv \left[ {\begin{array}{*{20}c} {x_{11} } & \cdots & {x_{1n} } \\ \vdots & \ddots & \vdots \\ {x_{k1} } & \cdots & {x_{kn} } \\ \end{array} } \right]_{kxn} ,FV = \left[ {\begin{array}{*{20}c} {f_{1} } \\ . \\ . \\ . \\ {f_{k} } \\ \end{array} } \right]_{kx1} $$
(52)

Step 2: The Euclidean distance value between i-th individual \((x_{i} )\) and \(x_{best}\) is calculated by Eq. (53), where \(x_{best}\) refers to the individual with the best fitness value.

$$\begin{aligned}{}& {}_{i = 1}^{k} \forall { }x_{i} \ne x_{best} ,{ }D_{x,i} \\ &= { }\sqrt {\left( {x_{i\left[ 1 \right]} - x_{best\left[ 1 \right]} } \right)^{2} + { }\left( {x_{i\left[ 2 \right]} - x_{best\left[ 2 \right]} } \right)^{2} + \ldots + \left( {x_{i\left[ n \right]} - x_{best\left[ n \right]} } \right)^{2} }\end{aligned} $$
(53)

Step 3: The distance vector \(D_{x}\) is represented by Eq. (54).

$$ D_{x} \equiv \left[ {\begin{array}{*{20}c} {d_{1} } \\ . \\ . \\ . \\ {d_{k} } \\ \end{array} } \right]_{kx1} $$
(54)

Step 4: The FDB selection method evaluates individuals according to their scores. The score value is calculated using the normalized fitness value (\(normFV\)) and normalized distance value (\(normD_{x}\)) of individuals. Normalized values are used in order to prohibit the dominance of fitness and distance values in the score calculation. The weight coefficient (\(w\)) determines the effect of \(FV\) and \(D_{x}\) in the FDB score calculation of the individuals. In this study, the effects of fitness and distance values on score calculation were considered equal (\(w = 0.5\)).

$$ {}_{i = 1}^{k} \forall { }x_{i} ,{ }S_{{x_{\left[ i \right]} }} = w* normFV_{{x_{\left[ i \right]} }} + \left( {1 - w} \right)*normD_{{x_{\left[ i \right]} }} $$
(55)

Step 5: The score vector of the population P is represented by Eq. (56).

$$ S_{x} \equiv \left[ {\begin{array}{*{20}c} {s_{1} } \\ . \\ . \\ . \\ {s_{k} } \\ \end{array} } \right]_{kx1} $$
(56)

In the FDB selection method, individuals that will guide the search process are chosen based on the \({S}_{x}\) vector shown in Eq. (56). For detailed information about the FDB selection method, please review Ref. [37].

3.2 Overview of AGSK algorithm

Adaptive gaining-sharing knowledge (AGSK) [40] is a powerful metaheuristic algorithm developed by Mohamed et al. in 2020. The AGSK has been developed to provide an effective algorithm that can solve difficult optimization problems with rapid convergence and high solution accuracy by enhancing the search capability of the gaining-sharing knowledge (GSK) [41] algorithm. The strength of the AGSK is in its dynamic adaptation of the knowledge factor (\(k_{f}\)) and knowledge ratio \( (k_{r} )\). The AGSK algorithm was created by combining the GSK with the adaptive procedure. The basics of the GSK algorithm and the adaptive procedure are introduced in the following subsections.

3.2.1 Gaining-sharing knowledge algorithm

GSK is a population-based algorithm inspired by the behavior of people to acquire and share knowledge throughout their lives. It is based on two crucial stages: junior gaining-sharing knowledge and senior gaining-sharing knowledge [41].

As given in Algorithm 1 (please see lines 6–14), the GSK optimization process consists of three steps: selection, search, and update. In the selection step, the individuals who will guide the search process are identified. The GSK algorithm uses sequential, random, and greedy selection methods to identify guide solution candidates. In the second step of the search-process lifecycle, the search for a global optimum is carried out through exploration and exploitation operators. Finally, the population P is updated based on the fitness value of the individuals.

figure a

As in other metaheuristic algorithms, GSK uses the initial population P to start the optimization process. The P is created based on k solution candidates called individuals and n design parameters. The FV vector represents the fitness value of the individuals, and it is created as given in Eq. (52). For the junior and senior gaining-sharing knowledge stages, the dimension of design variables (n) is calculated by Eq. (57) [40, 41].

$$ n_{Gained\_Shared\_Junior} = n* \left( {1 - \frac{FEs}{{maxFEs}}} \right)^{K} $$
(57)
$$ n_{Gained\_Shared\_Senior} = n - n_{Gained\_Shared\_Junior} $$

where \(FEs\) and \(maxFEs\) are the current and maximum function evaluation scores, respectively. The dimension of the design parameter to be updated using the junior stage initially takes its maximum value, and over time, the number of dimensions to be updated using the senior stage increases. The speed of learning and sharing knowledge increases at some points in the human lifetime and decreases at others. This dynamic process is simulated by setting the information rate K in Eq. (57). Due to the heterogeneous distribution of the population, parameter \(K\) takes a random value in the range [0–1] for half of the population individuals and an integer value in the range [1–20] for the other half [40, 41].

In the junior gaining-sharing knowledge stage, knowledge resources are limited, so each individual tends to obtain information only from the closest family members and relatives.

Individuals are updated via the following steps [40, 41]:

Step 1: Individuals are ranked in descending order according to fitness values as shown in Eq. (58). In that equation, \(x_{best}\) and \(x_{worst}\) represent the individuals with the best and worst fitness values, respectively.

$$ P = \left[ {\begin{array}{*{20}c} {x_{{\begin{array}{*{20}c} {best} \\ \end{array} }} } \\ \vdots \\ {x_{i - 1} } \\ {x_{i} } \\ {x_{i + 1} } \\ \vdots \\ {x_{worst} } \\ \end{array} } \right]_{kxn} $$
(58)

Step 2: The \(x_{i - 1}\) (closest better) and \(x_{i + 1}\) (closest worse) are identified for each individual \(\left( {x_{i} , i = 1,2, \ldots ,k} \right){ }\) using Eq. (58). Knowledge is shared with a randomly selected individual \(x_{r}\) from the population. The pseudo-code of the junior gaining-sharing knowledge phase is given in Algorithm 2.

figure b

At the senior gaining-sharing knowledge stage, individuals have excellent capability to gain and share knowledge from their wide networks of friends, social media, and books. This stage examines the effects of individuals classified as the best and worst on the other individuals. Thus, individuals are updated via the following steps [41]:

Step 1: The population is divided into three categories considering the rank given in Eq. (58). Accordingly, the first 100p% individuals are in the best-category, the last 100p% individuals are in the worst-category, and the other individuals k−(2×100p%) are in the better/middle category.

Step 2: For each \(x_{i} , \) two random vectors (\(x_{pbest}\) and \(x_{pworst}\)) are selected for gaining knowledge. Then, \(x_{m}\) is then selected from the better/middle individual category for sharing knowledge. The percentage of the best and worst categories is determined by p, with its value in the range of [0,1]. p was considered as a 0.1. The pseudo-code of the senior gaining-sharing knowledge phase is presented in Algorithm 3.

figure c

3.2.2 Adaptive procedure

The search performance of the AGSK is directly related to the success of the junior and senior gaining-sharing knowledge stages, where exploration and exploitation tasks are fulfilled. The knowledge factor (\(k_{f}\)) and knowledge ratio \((k_{r} )\) are accountable for managing the junior and senior gaining-sharing phases during the search process. For this, the \(k_{f}\) and \(k_{r}\) parameters should be dynamically adjusted to meet the requirements of the search process. \(k_{f}\) determining the total knowledge number to be transferred from others to the i-th individual and \(k_{r}\) denoting the ratio between the present and acquired experience. The value of \(k_{f}\) is greater than 1 and that of \(k_{r}\) is between 0 and 1 [40]. The pseudo-code of the adaptation scheme is presented in Algorithm 4.

figure d

In the AGSK algorithm, an adaptive process is used to determine the ideal value of the \(k_{f}\) and \(k_{r}\) parameters. The predetermined parameter settings for the pool vectors in AGSK were \(k_{f} = \left[ {0.1\,\,1\,\,0.5\,\,1} \right]{\text{ and }}k_{r} = \left[ {0.2\,\,0.1\,\,0.9\,\,0.9} \right]\). As shown in Algorithm 4 line 5, when the condition \(FEs > 0.1{*}maxFEs\) is satisfied, the Kw_P probability parameter is updated using Eq. (61). According to the probability parameter, the \(k_{f}\) and \(k_{r}\) values are assigned from the parameter pool for each individual [41].

$$ w_{ps} = \mathop \sum \limits_{i = 1}^{p} f\left( {x_{i}^{new} } \right) - f\left( {x_{i}^{old} } \right) $$
(59)
$$ \Delta_{ps} = \max \left( {0.05, \frac{{w_{ps} }}{{sum (w_{ps} )}}} \right) $$
(60)
$$ Kw\_P_{g + 1} = \left( {1 - c} \right) Kw\_P_{g} + c \Delta_{ps} $$
(61)

where \(w_{ps}\) represents the sum of the differences between the old and new fitness values for each individual belonging to the parameter setting. \(f\) is the fitness function, \(x_{i}^{new}\) and \(x_{i}^{old}\) are defined as new and old individuals, respectively. \(p\) is the number of individuals belonging to the parameter setting. \(\Delta_{ps}\) represents the improvement rate for each parameter setting, and \(c\) is the learning rate.

The population size is updated in every generation to increase the search performance of the AGSK. The population size is reduced gradually using Eq. (62).

$$\begin{aligned}{} k_{g + 1} &= round \left[ {\left( { \frac{{popsize_{min} - popsize_{init} }}{maxFEs} } \right)FEs }\right. \\ & \quad \left.{\phantom{\left( { \frac{{popsize_{min} - popsize_{init} }}{maxFEs} } \right)}+ popsize_{init} } \right] \end{aligned}$$
(62)

where \(k_{g + 1}\) is the population size in the next generation. The initial value of the population size is \(popsize_{init} = 40*n\), and the minimum value is \(popsize_{min} = 12\) [41].

3.3 Proposed FDBAGSK algorithm

This sub-section introduces the design steps of the proposed FDBAGSK algorithm. First, the FDBAGSK variants created by applying the FDB method and their mathematical models are introduced. Subsequently, the pseudo-code of the proposed method is given.

The strength of the AGSK algorithm is that it provides adaptive settings for the knowledge factor (\({k}_{f}\)) and knowledge ratio (\({k}_{r}\)) control parameters. However, the results of experimental studies conducted in 30/50/100 dimensions using unimodal, multimodal, hybrid, and composition type problems in the CEC 2017 and CEC 2020 test suites revealed that the AGSK converged prematurely, and its exploitation-exploration balance was insufficient. The poor exploration of the algorithm was the main reason for its premature convergence, especially in multimodal-type problems containing many local solution traps. The AGSK was insufficient to provide the balance of exploration and exploitation required to successfully research the complex search spaces of hybrid and composition type problems. To eliminate these problems, we decided to strengthen the exploration and balanced search capabilities of the algorithm using the FDB selection method. To this end, the guide selection strategy in the AGSK was re-designed using the FDB selection method.

The FDBAGSK variants (Case-1,…, Case-5) created by applying the FDB-based guide mechanism are given in Table 1. In the Case-1 and Case-2 variants, the FDB method was applied to the senior gaining-sharing knowledge stage. The Case-1 variant was designed by using the \(x_{FDB}\) instead of the \(x_{m}\) solution candidate in the i-th solution candidate update equations specified in Algorithm 3, lines 5 and 7. In Case-2, the \(x_{pworst}\) solution candidate in the same equations was replaced by the \(x_{FDB}\) solution candidate determined via the FDB method. Case-3, Case-4, and Case-5 are FDBAGSK variants in which the FDB method was applied to the junior gaining-sharing knowledge stage of the AGSK algorithm. In these three variants, the solution candidate update equations given in Algorithm 2, lines 5 and 7 were revised. Case-3 was designed using \(x_{RFDB}\) instead of the solution candidate \(x_{i + 1}\), and \(x_{FDB}\) instead of the solution candidate \(x_{r}\). In Case-4, it was suggested that two different solution candidates should be selected by FDB-based methods. Here, whereas the \(x_{i - 1}\) solution candidate was selected by the FDB roulette method (\(x_{RFDB}\)), the \(x_{r}\) solution candidate was identified by the FDB (\(x_{FDB} )\). The other FDB variant (Case-5) was designed using \(x_{FDB}\) instead of \(x_{r}\) in the junior gaining-sharing knowledge phase. The above-mentioned \(x_{FDB}\) and \(x_{RFDB}\) refer to the solution candidates selected by the greedy method (i.e., the solution candidates with the highest scores) and the roulette method, according to the score value given in Eq. (56), respectively. The pseudo-code of the FDBAGSK optimization method is given in Algorithm 5.

Table 1 Mathematical model of the proposed FDBAGSK
figure e
figure f

4 Experimental settings

Comprehensive experimental studies were carried out to test and validate the search performance of the AGSK and FDBAGSK variants. Different problem types and complex search spaces were considered to scrutinize the exploitation, exploration, and balanced search capabilities of MHS algorithms. In order to objectively compare the search performance of MHS algorithms, the following conditions were applied.

  • The effectiveness of the algorithms is tested on 39 benchmark functions of CEC 2017 and CEC 2020 test suites.

  • For a fair comparison, all MHS algorithms use 1000*Dimension maximum function evaluations (maxFEs) as search process termination criteria.

  • The search performance of the algorithms was tested using different problem types: unimodal, multimodal, hybrid, and composition problems.

  • Experiments were carried out in 30, 50, and 100 dimensions to examine the behavior of the optimization algorithms in low/middle/high-dimensional search spaces.

  • 51 independent runs were conducted to obtain robust data for statistical analysis. Nonparametric pairwise Wilcoxon [42] and Friedman [43] tests were used for statistical analysis. The Wilcoxon test was done at a 5% significance level.

  • All experimental studies were done using MATLAB R2016a on an Intel(R) Core (TM) i5-1135G7 @2.40 GHz X64-processor with a 16 GB RAM computer.

Table 2 provides information about the CEC test suites used in the experimental studies.

Table 2 Benchmark suites used in the experimental studies

5 Results and analysis

This section gives the results of two experimental studies in the field of optimization. The first subsection analyses the search performance of FDBAGSK in CEC global optimization problems. The second sub-section presents the simulation results of the nonlinear ORPF optimization problem.

5.1 Determining the best FDBAGSK version on global optimization problems

This sub-section presents a comparative analysis of the original AGSK and the FDBAGSK variants on the CEC 2017 and CEC 2020 benchmark problems.

5.1.1 Statistical analysis

In the experimental studies, 39 benchmark test functions were used to test and validate the search performance of six algorithms (AGSK and five FDBAGSK variants). For detailed information on the FDBAGSK variants, please review sub-Sect. 3.3. Proposed FDBAGSK algorithm. Each test function was run 51 times in order to obtain statistically robust data. Additionally, the experiments were performed in 30, 50, and 100 dimensions to analyze the convergence performance of the algorithms depending on the dimension change. Using the nonparametric Friedman and Wilcoxon tests, 35,802 (39*6*51*3) data items were statistically analyzed.

A comparative analysis of the FDBAGSK versions (Case-1,…,Case-5) and the base AGSK was performed, and the best FDB-based version was determined by using the Friedman test. Table 3 presents the Friedman test results of the AGSK and FDBAGSK variants. In order to determine the best FDBAGSK variant, thirty-six experiments were carried out in 30, 50, and 100 dimensions. The Friedman ranking of competitive algorithms was determined based on the Mean Rank index, which considers the average of all experiments and is presented in the last column of Table 3. As can be seen clearly from the table, the FDB-based algorithms outperformed the original AGSK in all experiments. Admittedly, among the FDBAGSK variants, Case-1 is the most successful.

Table 3 Friedman test ranking of AGSK and FDBAGSK variants

Wilcoxon pairwise comparison test results for the original AGSK and the FDBAGSK variants are given in Table 4. The results showed that the FDBAGSK variants exhibited a better search performance than the AGSK algorithm for all dimensions in both benchmark test suites. The performance of the Case-1 (20/9/0) and Case-4 (20/8/1) variants on the CEC 2017 test problems for 30 dimensions was pretty close. Moreover, for the experiments in the same test suite, the search performance of Case-1 (17/11/1) and Case-2 (21/6/2) was better than their competitors in the 50 and 100 dimensions, respectively. For the experiments in the CEC2020 test suite, the performance of the Case-1 (8/2/0) in 30 and 50 dimensions and the Case-2 (8/2/0) variant in 100 dimensions was better compared to its competitors. Given that all results are together, it is observed that the FDB-based variants outperformed the original AGSK algorithm in all experiments.

Table 4 Wilcoxon pairwise comparison results for AGSK and FDBAGSK variants

Table 5 discusses the search performance of the algorithms for unimodal, multimodal, hybrid, and composition benchmark functions in both the CEC 2017 and CEC 2020 test suites. In Table 5, the best Friedman rank obtained for each experiment is marked in bold. The results given in the relevant table clearly show that the FDBAGSK variants achieved a better ranking than the basic AGSK algorithm in all experiments. A plus point is that the AGSK algorithm gave a worse search performance than its competitors in the four different problem types. This indicates that the main handicap of the AGSK algorithm is the premature convergence problem. The underlying reason behind it can be attributed to the inability of the AGSK algorithm to effectively imitate the process in nature. In order to eliminate this problem, the use of the FDB selection method is a feasible solution, as it was designed with reference to nature. The results given in Table 5, clearly show that the search performance of the FDBAGSK versions improved by the FDB method.

Table 5 Friedman ranking of AGSK and FDBAGSK variants for unimodal, multimodal, hybrid, and composition problems

Table 6 gives the error statistics for the AGSK and the FDBAGSK variants in the 30-, 50-, and 100-dimensional experiments. In the relevant table, each cell includes mean and standard deviation values, respectively. For each test function, the best value obtained in the regarding dimension is marked in bold. Additionally, the data were interpreted with the box plots prepared to facilitate an understanding of the search performance of the algorithms. The box plots show the minimum, maximum, and mean/standard deviation error values achieved by the algorithms for 51 independent runs. Figures 4 and 5 illustrate box plots in 30, 50, and 100 dimensions for unimodal, multimodal, hybrid, and composition type benchmark functions selected from the CEC 2017 and CEC 2020 test suites.

Table 6 Mean and standard deviation values obtained for CEC 2017 test functions
Fig. 4
figure 4

Box-plot graphs for unimodal, multimodal, hybrid, and composition benchmark functions of the CEC 2017 test suite

Fig. 5
figure 5

Box-plot graphs for unimodal, multimodal, hybrid, and composition benchmark functions of the CEC 2020 test suite

Figure 4 illustrates the box-plot graphs in 30/50/100 dimensions for the F1 unimodal, F5 multimodal, F18 hybrid, and F21 composition-type test functions of the CEC 2017 benchmark suite. The F1 test function box-plot graphs (Fig. 4a–c) display that the FDBAGSK variants were superior to the base algorithm in convergence to the minimum error value in all dimensions. The results clearly show the impact of the FDB method on the exploitation ability of the FDB-based AGSK variants. The box-plots in Fig. 4d–f show that Case-1 was able to conduct a stable search in all dimensions and had an overwhelming advantage over the AGSK algorithm in convergence to the minimum error value. In the F5 multimodal problem, the AGSK suffered a premature convergence. The superior performance of Case-1 proved that the FDB selection method had remarkably advanced the exploration ability of the AGSK. For hybrid and composition type problems, convergence to the minimum error value depends on the balanced search capability of the algorithm. The box-plots of the F18 and F21 box-plot problems indicate that the balanced search capability of the AGSK was insufficient. In contrast, the FDBAGSK variants showed a stable search performance for all dimensions.

Figure 5 shows box-plot graphs for different problem types selected from the CEC 2020 test suite to investigate the exploration, exploitation, and balanced search performance of the AGSK and the FDBAGSK variants. The exploitation capability of the FDBAGSK variants in the unimodal (F1) problem type, designed to test the exploitation ability of algorithms, was superior to that of the base algorithm. Solving the multimodal (F3) problem including many local solution traps requires a strong exploration ability. Accordingly, Case-1 and Case-2 variants managed to converge to the minimum error value in all dimensions with their powerful exploration capability. In hybrid (F8) and composition (F10) problem types, the convergence rate depends on the algorithm successfully balancing exploration and exploitation. The graphs in Fig. 5g–l display that the balanced search ability of the FDB-based Case-1 variant was stronger than that of its competitors.

5.1.2 Convergence analysis

In this section, the convergence performance of the AGSK and FDBAGSK variants is examined. The convergence ability of the algorithms was evaluated on the unimodal (F1), multimodal (F9), hybrid (F16), and composition (F29) type test functions of the CEC 2017 benchmark suite. Figure 6 shows the convergence curves of the algorithms for the different problem types in 30, 50, and 100 dimensions.

Fig. 6
figure 6

Convergence curves of AGSK and FDBAGSK variants for the CEC 2017 benchmark suite unimodal, multimodal, hybrid, and composition function types

The unimodal F1 function curves in Fig. 6a–c demonstrate that the algorithms were successful in solving the unimodal problem type designed to investigate the exploitation ability. The FDBAGSK variants were superior to the AGSK in fulfilling the task of exploitation. Because the multimodal F9 problem contains many local solution traps, an algorithm must have a powerful exploration ability in order to solve this problem. The convergence curves in Fig. 6d–f show that the AGSK algorithm gets stuck in the local optimum and therefore had a premature convergence problem. When the convergence curves for the F9 multimodal problem were analyzed in depth, it was observed that the FDBAGSK variants outperformed AGSK in terms of solution accuracy. This can be explained by the fact that the FDB selection method improves the exploration capability of the AGSK algorithm. Effective exploration of the search spaces in hybrid and composition type problems depends on the powerful exploration–exploitation balance. The convergence curves in Fig. 6g–l depict that the AGSK method had difficulty in achieving the exploration–exploitation balance. On the other hand, the FDB-based AGSK variants outperformed the base AGSK algorithm in optimizing F16 hybrid and F29 composition problems for 30, 50, and 100 dimensions.

As a result, the convergence graphs in Fig. 6 illustrate that the AGSK algorithm was deficient in fulfilling the exploration and exploration tasks. The AGSK could not converge to a global optimum due to the premature convergence problem. On the other hand, the convergence performance of the FDBAGSK variants was remarkable. The FDB-based AGSK variants outperformed the base algorithm in different search spaces and challenging benchmark problems. The underlying reason for the superiority of the FDBAGSK variants was the efficient design of the selection phase of the AGSK algorithm with the FDB method, thereby empowering exploration and exploitation operators.

5.1.3 Algorithm complexity

Algorithm complexity provides researchers with information about the usability and functionality of an algorithm. This subcategory presents the algorithm complexity knowledge of the FDBAGSK variants. The IEEE CEC 2014 definition document [46] was referenced to calculate algorithm complexity. Accordingly, the three parameters T0, T1, and T2 were used in the algorithm complexity calculation. T0 corresponds to the calculation time of the algorithm for a test program defined in CEC 2014. T1 signifies the time taken for the algorithm to calculate the F18 test problem once, as one of the CEC 2014 benchmark problems. T2 represents the mean time taken to calculate the same test problem five times. In light of these definitions, the algorithm complexity was calculated using the \(\left( {T2 - T1} \right)/T0\) formula.

The algorithm complexity of the AGSK and FDBAGSK variants (Case-1,…,Case-5) on 30/50/100 dimensions are presented in Table 7. As it can be seen from the table, the algorithm complexity of the AGSK and the FDBAGSK variants is very close in all dimensions. The stable performance of the FDBAGSK versions in terms of algorithm complexity, despite the increase in search space dimensions, is an indication that they could be powerful alternatives for high-dimensional optimization problems. In addition, although the FDB selection method added extra computational procedures in the search-process lifecycle, the fact that the algorithm complexity of the FDBAGSK variants had only slightly increased compared to the base algorithm was impressive.

Table 7 Algorithm complexity

Figure 7 visualizes the numerical results given in Table 7. It is clear from the figure that the FDB selection method had only slightly increased the algorithm complexity. In general, algorithm complexity was low for all algorithms. The algorithm complexity for both the AGSK and FDBAGSK variants was slightly affected by search space dimension changes.

Fig. 7
figure 7

Algorithm complexity for AGSK and FDBAGSK variants

The experimental studies in Sect. 5.1 investigated the influence of the FDB selection method on the AGSK search performance for different problem types in the CEC 2017 and CEC 2020 benchmark test suites. The results showed that the FDB-based AGSK variants were able to eliminate the premature convergence problem and yielded a better search performance compared to the AGSK algorithm. In addition, when the FDBAGSK variants were evaluated among themselves, Case-1 was determined as the most successful variant. Case-1 will be referred to as FDBAGSK in the following sections. The next sub-section is concerned with optimizing the ORPF problem.

5.2 Application of the proposed FDBAGSK algorithm to the solution of the AC/DC-ORPF problem

In this sub-section, the proposed FDBAGSK and AGSK algorithms were applied to solve the AC/DC-ORPF problem incorporating multi-DGs and HVDC systems. Power flow calculations were performed via MATPOWER 6.0. [47]. As a rule of thumb, the maximum number of iterations and population size were accepted as 200 and 30, respectively. Algorithms were run 20 times for each simulation case and the best, worst, mean, and standard deviation values were recorded.

Table 8 presents a summary of the IEEE 30- and 57-bus test system configurations including the bus, branch, generator, transformer, and shunt capacitor. The total active and reactive power load demands of the IEEE 30- bus test system were 2.834 and 1.262 p.u. at the 100 MVA base, respectively. The total active and reactive power load demands of the IEEE 57- bus test system were 12.508 and 3.364 p.u. at the 100 MVA base, respectively. Table 9 gives the limit values of the state variables for the AC/DC-ORPF problem and Table 10 presents the minimum and maximum limits of the AC and DC control variables. The schematic diagram given in Fig. 8 illustrates the implementation steps of the proposed FDBAGSK method for the AC/DC-ORPF problem.

Table 8 Configuration of the test systems
Table 9 Minimum and maximum limits of state variables [14]
Table 10 Minimum and maximum limits of control variables [14]
Fig. 8
figure 8

AC/DC-ORPF problem optimization process

The effectiveness of the proposed FDBAGSK method has been evaluated on modified IEEE 30- and 57-bus power systems incorporating DGs and HVDC systems. In this regard, twelve different test cases were optimized given in Table 11.

Table 11 Simulation test cases

5.2.1 Modified IEEE-30 bus test system

In this subcategory, seven test cases are studied to solve the ORPF problem in the modified IEEE 30-bus test system with DGs and HVDC transmission links.

5.2.1.1 Case-1: Minimization of active power loss with HVDC at (2–14)

In Case-1, the active power loss minimization has been studied with two-terminal HVDC located between buses 2 and 14 of the modified IEEE 30-bus test system. Table 12 gives the simulation results of FDBAGSK and AGSK algorithms. Accordingly, the power loss values obtained from the proposed FDBAGSK and AGSK algorithms are 11.4208 MW and 11.5165 MW respectively. The objective function value of the proposed algorithm is 0.8379% lower than that of the AGSK. Figure 9a depicts the variation of power loss with respect to the number of iterations for regarding test case. As can be seen from the figure, FDBAGSK successfully performed the exploitation task in the last stages of the optimization process and achieved a better value compared to AGSK. Figure 9b demonstrates that the load bus voltages obtained by all optimization algorithms were within acceptable limits (0.95–1.05 p.u).

Table 12 Simulation results for the IEEE 30-bus test system
Fig. 9
figure 9

Case-1: a Convergence curve of optimization algorithms, b Voltage profile of load buses

5.2.1.2 Case-2: Minimization of active power loss with HVDC at (2–16)

Case-2 optimizes the active power loss of the IEEE 30-bus test system modified with a two-terminal HVDC between buses 2 and 16. The simulation results of Case-2 are reported in Table 12. From the numerical results, it is observed that the proposed method was more successful in minimizing active power loss compared to the AGSK. To put it more clearly, the proposed FDBAGSK offered the minimum power loss value of 11.0921 MW, which is lower by 0.2248% than the AGSK simulation result. An in-depth analysis of the convergence curves given in Fig. 10a gave that although for Case-2 the algorithms yielded similar performances in terms of convergence speed, the proposed method was superior to the AGSK in terms of convergence accuracy. The graph given in Fig. 10b was drawn to visualize the voltage profile of the load buses for the present case. The relevant figure showed that all algorithms are successful in keeping the load bus voltages within acceptable limits.

Fig. 10
figure 10

Case-2: a Convergence curve of optimization algorithms, b voltage profile of load buses

5.2.1.3 Case-3: Minimization of active power loss with 3-DGs

In this case, minimization of active power loss in an IEEE 30-bus power system including three DG units are studied. Additionally, the allocations, i.e., both the location and sizing of the DG units are optimized. According to the comparative simulation results given in Table 12, the objective function values obtained by the FDBAGSK and AGSK methods are 9.2984 MW and 9.3182 MW, respectively. The simulation results indicated that the proposed FDBAGSK provided a 0.2124% decrease in active power loss compared to the AGSK. Figure 11a illustrates the convergence curves of the FDBAGSK and AGSK algorithms for Case-3. As it can be seen from the figure, FDBAGSK exhibited a robust and stable search performance. The voltage profile given in Fig. 11b shows that the voltage constraint is satisfied for all load buses.

Fig. 11
figure 11

Case-3: a Convergence curve of optimization algorithms, b voltage profile of load buses

5.2.1.4 Case-4: Minimization of active power loss with both 3-DGs and HVDC at (2–14)

The optimization algorithms have been run minimization of active power loss in a modified IEEE 30-bus test system incorporating HVDC systems and DG units. The obtained solutions are given in Table 12. From the numeric results, it can be seen that FDBAGSK achieved a lower power loss 8.7366 MW than AGSK (8.8093 MW). Quantitatively, the proposed algorithm provided a 0.8252% reduction in the objective function value. It is evident that the proposed FDBAGSK is very effective in optimizing the system. Figure 12a and b illustrates the convergence curves of the optimization algorithms for Case-4 and the voltage profile of the load buses obtained as a result of the simulation, respectively. The convergence curves show that the proposed FDBAGSK exhibited a better search performance than the AGSK in terms of convergence speed and accuracy. In addition, Fig. 12b demonstrates that the voltage values of the load buses were within the specified limits.

Fig. 12
figure 12

Case-4: a Convergence curve of optimization algorithms, b voltage profile of load buses

5.2.1.5 Case-5: Minimization of active power loss with both 3-DGs and HVDC at (2–16)

This case optimizes the active power loss in the IEEE 30-bus power system inclusion of DGs and HVDC. The size and location of DGs are considered as control variables. HVDC is integrated between buses 2 and 16 of the power system. The FDBAGSK and AGSK algorithms are applied to obtain the ORPF solutions, and the results are presented in Table 12. The simulation result obtained from the proposed algorithm is 8.2344 MW, which was 0.0570% lower than the result of the AGSK algorithm. Figure 13a shows the fitness value obtained by the algorithms depending on the number of iterations. The relevant figure shows that the proposed algorithm reaches the best value faster than the original AGSK algorithm. The voltage profile graph given in Fig. 13b confirms that the voltage value of the load buses is within the specified limits.

Fig. 13
figure 13

Case-5: a Convergence curve of optimization algorithms, b Voltage profile of load buses

5.2.1.6 Case-6: Minimization of voltage deviation with both 3-DGs and HVDC at (2–16)

In Case-6, the ORPF control variables are optimized considering the voltage deviation objective function. The present test case also handles the optimal placement of DGs. The HVDC is located between buses 2 and 16 of the IEEE-30 bus test system. From Table 12, it is seen that the voltage deviation value obtained by FDBAGSK is 0.1539 p.u. The objective function value is 0.5814% lower compared to the AGSK simulation result. The optimization results demonstrate the superiority of FDBAGSK compared to the original AGSK in terms of solution quality. The convergence performance of the algorithms is illustrated in Fig. 14a. As can be seen from the figure, the proposed algorithm has lower objective function values than AGSK at the beginning of the optimization process. Although the algorithms showed competitive performance in the between 140 and 180 iterations, FDBAGSK reached a better value at the end of the optimization process. The voltage profile in Fig. 14b demonstrates that the optimization algorithms are successful in keeping the load bus voltage magnitudes within the specified limits.

Fig. 14
figure 14

Case-6: a Convergence curve of optimization algorithms, b voltage profile of load buses

5.2.1.7 Case-7: Minimization of voltage stability index with both 3-DGs and HVDC at (2–16)

This case aims to optimize the voltage stability index (L-index). In this direction, FDBAGSK and AGSK are applied to perform the ORPF task in the modified power system including DGs and HVDC (between 2 and 16 buses). Optimized control parameters and corresponding objective function values are reported in Table 12. As can be seen from the table, the FDBAGSK result is 0.0832 p.u., which is 2.5761% lower than that of the AGSK method. Figure 15a compares the convergence curves of the optimization algorithms. As shown in the figure, the proposed algorithm converges to the optimal solution faster than AGSK. Figure 15b reveals that the voltage values of the PQ buses are within the specified limitations.

Fig. 15
figure 15

Case-7: a Convergence curves of optimization algorithms, b Voltage profile of load buses

5.2.2 Modified IEEE 57-bus test system

In this segment of the simulation, the effectiveness of the optimization algorithms is evaluated on the modified IEEE 57-bus power system for five test cases.

5.2.2.1 Case-8: Minimization of active power loss with HVDC at (8–9)

Case-8 aims to reduce the active power loss of the modified IEEE 57-bus power system. For the present case, the HVDC transmission line has been added between buses 8 and 9 of the power system. Table 13 gives the optimization results achieved by FDBAGSK and basic AGSK algorithms. Accordingly, active power loss is reduced from 14.8919 MW to 13.4340 MW by using the proposed algorithm. In other words, FDBAGSK achieved a 9.7898% lower objective function value than the AGSK algorithm. Figure 16a illustrates the convergence curves of the algorithms. It can be seen from the figure that the proposed method is superior to the original AGSK in terms of solution quality and convergence speed. Figure 16b demonstrates that the voltage values of the load buses are within the specified limits (0.94–1.06 p.u).

Table 13 Simulation results of the IEEE 57-bus test system
Fig. 16
figure 16

Case-8: a Convergence curve of optimization algorithms, b voltage profile of load buses

5.2.2.2 Case-9: Minimization of active power loss with 3-DGs

The objective function of this case is the minimization of active power loss considering DGs. In the present case, the location and rating of DGs are chosen as control variables. The optimized control parameters and the corresponding power loss values are summarized in Table 13. As it is evident, FDBAGSK can reach the objective function value of 9.5561 MW, which is lower by 7.1023% compared to that of the AGSK. From the optimization results, it is observed that the solution quality of the proposed algorithm is better than the AGSK. Figure 17a shows the evolution of the fitness value obtained by the algorithms depending on the number of iterations. We can notice from the figure, the FDBAGSK algorithm provides superiority over the basic AGSK in terms of both convergence speed and solution accuracy. As shown in Fig. 17b, all algorithms successfully satisfy the load bus voltage constraint.

Fig. 17
figure 17

Case-9: a Convergence curve of optimization algorithms, b voltage profile of load buses

5.2.2.3 Case-10: Minimization of active power loss with both 3-DGs and HVDC at (8–9)

This case aims to perform the ORPF task by minimizing active power loss. To this end, FDBAGSK and AGSK algorithms are applied to the solution of ORPF in the IEEE 57-bus test system incorporating DGs and HVDC (between buses 8 and 9). Table 13 summarizes the optimization results. As shown in Table 13, the FDBAGSK algorithm has acquired the best objective function value of 8.2632 MW, and the objective function value is 9.0513 MW in the AGSK. The proposed algorithm reduces the active power loss by 8.7070% compared to AGSK. Figure 18a displays the convergence characteristics of metaheuristic optimizers. As it can be seen from the figure, the developed FDBAGSK algorithm has a smooth curve with rapid convergence. Figure 18b shows that all load bus voltage magnitudes are within the limits at the end of the optimization process.

Fig. 18
figure 18

Case-10: a Convergence curve of optimization algorithms, b Voltage profile of load buses

5.2.2.4 Case-11: Minimization of voltage deviation with both 3 DGs and HVDC at (8–9)

The present test case has centered on the voltage deviation minimization of the modified IEEE 57-bus test system involving DGs and a two-terminal HVDC link between buses 8 and 9. The optimized control variables and attained voltage deviation results are given in Table 12. The minimum voltage deviation value achieved by FDBAGSK is 0.6006 p.u. Quantitatively, the simulation result of the proposed algorithm is lower by 21.1500% than that of the AGSK algorithm. The variations of voltage deviation values over the iterations are depicted in Fig. 19a. It is seen that the proposed algorithm is advantageous over the original AGSK algorithm with its fast convergence and solution quality. Figure 19b shows the load bus voltages corresponding to the optimized control variables. It can be seen from the figure that the load bus voltages are within the limits (0.94–1.06 p.u.). In other words, the load bus voltage inequality constraint has been successfully satisfied.

Fig. 19
figure 19

Case-11: a Convergence curve of optimization algorithms, b voltage profile of load buses

5.2.2.5 Case-12: Minimization of voltage stability index with both 3 DGs and HVDC at (2–16)

Case-12 focuses on the optimization of the voltage stability index (L-index) in a modified IEEE 57-bus power system including HVDC between buses 2 and 16. Moreover, the present test case considers the optimal allocation of DGs. The optimal settings of control variables and regardful L-index values are given in Table 13. The objective function values of the FDBAGSK and AGSK algorithms are 0.1266 p.u. and 0.1310 p.u., respectively. The result of the proposed algorithm is 3.3587% lower than that of the AGSK algorithm. From the optimization results, it is observed that the proposed algorithm attains the best competitive solution for the present case. Figure 20a depicts the convergence characteristics of the optimization algorithms. It is seen that using the proposed FDBAGSK rapid convergence performance is obtained. Figure 20b gives that the ORPF solutions obtained with the FDBAGSK and AGSK algorithms successfully met the load bus voltage constraint.

Fig. 20
figure 20

Case-12: a Convergence curves of algorithms, b voltage profile of load buses

5.2.3 Statistical analysis and literature comparison

This subcategory presents the statistical analysis results and a literature comparison. In order to obtain sufficient and robust evidence for the statistical analysis, the algorithms are run 20 times for all test cases. Table 14 presents the minimum, mean, maximum, and standard deviation values of the simulation results obtained from 20 independent runs. As it can be seen from the table, the proposed FDBAGSK algorithm achieved the best objective function value for all ORPF cases. Based on the mean value index, it can be said that the proposed algorithm exhibited a stable and robust search performance.

Table 14 Simulation results obtained from 20 independent runs

Table 15 gives the results of the optimization algorithms used in the present study and of the LP[50], GA[51], ABC[52], SGA[53], BGA[53], and BSA[14] methods recently reported in the literature. The lack of comparative results for some test cases can be explained by the fact that simulation studies are unique to this study. In the relevant table, the best result for each test case is highlighted in bold. Considering the experimental results obtained from the comparison of the proposed algorithm with state-of-the-art methods, it is seen that the developed FDBAGSK algorithm provides superior results in solution quality and robustness.

Table 15 Comparison with results in the literature

6 Conclusions

In this study, design changes were made in the search strategies of the AGSK algorithm using the FDB method and thus, the FDBAGSK was developed as a novel hybrid algorithm. The search performance of the proposed algorithm was tested by comprehensive experimental studies. In the first stage, the performance of the proposed FDBAGSK algorithm was evaluated using 39 benchmark functions in the CEC 2017 and CEC 2020 test suites. Unimodal, multimodal, hybrid, and composition type test problems were used and the convergence accuracy of the algorithm in different sized search spaces was examined. Non-parametric Friedman and Wilcoxon test methods were applied to interpret the results obtained from the experimental studies and to unequivocally reveal the search performance of the algorithms. Statistical analysis results showed that the proposed FDBAGSK algorithm exhibits a more stable and robust search performance compared to its competitors. Moreover, the computational complexity of the AGSK and FDBAGSK algorithms were highly similar and reasonable. Although the FDB selection method added new computational processes to the FDBAGSK search-process lifecycle, the reasonable complexity achieved by the proposed algorithm is an important indicator of its usability and functionality.

The second phase of experimental studies was carried out to evaluate the search performance of the FDBAGSK on constrained real-world engineering problems. In this direction, the proposed algorithm was applied to the solution of the AC/DC-ORPF problem incorporating DGs and HVDC systems. The practicability of the FDBAGSK is investigated on modified IEEE 30- and IEEE 57-bus test systems for the minimization of non-convex objective functions. The simulation results obtained from the FDBAGSK method for the different test cases were compared to the results of well-known optimization algorithms in the literature. From the numerical results, it is observed that the proposed algorithm achieved the best results for the optimization of the AC/DC-ORPF problem.

Source codes of the FDBAGSK algorithm (proposed method) can be accessed at this link: https://www.mathworks.com/matlabcentral/fileexchange/129154-fdb-agsk?s_tid=srchtitle.