Keywords

1 Introduction

Highly efficient technique in searching the best possible results in the benchmark and practical applications is the global optimization method [1]. In optimization, only a few results are compared the best one which is known as the goal. Classical optimization approaches have some deficiencies of finding the optimal global solutions of optimization problems [2]. These shortcomings are primarily interdependent on their original search systems. These conventional algorithms are strongly under effects of choosing proper types of variables, objectives and constraints functions. They also do not grant a universal solution method that can be applied to find the global optimal solution of the duties were several types of constrained functions, variables, and objective are used [3]. For covering these deficiencies, a new technique with the name of metaheuristics was originated, which is mainly developed from artificial intelligence research that originated by scientists or researchers. Nature-inspired methods are developed for solving the several types of hard global optimization functions without having to the full accommodate to each function.

Recently, scientists and scholars have developed several numbers of metaheuristics in order to find the best global optimal solution of benchmark and real-life applications. The nature-inspired techniques have been originated, some of them are Particle Swarm Optimization (PSO) [4], Genetic Algorithm (GA) [5], Grey Wolf Optimization (GWO) [6], Flower Pollination Algorithm (FPA) [7], Bat Algorithm (BA) [8]. Moreover, in the case of the hybrid convergence, nature-inspired algorithm hybridizations using batch modeling are combinations amid evolutionary techniques and methods of neighborhood or course [9].

This paper introduces a new hybrid model combining Grey Wolf Optimizer (GWO) and Flower Pollination Algorithm (FPA) named GWOFPA. The proposed algorithm comprises of best characteristics of both GWO and FPA. The performance of the proposed variant is tested on six standard benchmarks. The solutions are compared relying on the metaheuristics reported in the review of the literature.

The rest of paper is organized as follows. Sections 2 and 3 review the GWO and FPA respectively. Section 4 presents the proposed GWOFPA approach. Section 5 discusses the simulation results. Section 6 gives the conclusion.

2 Grey Wolf Optimizer (GWO)

A new population-based nature-inspired algorithm called Grey Wolf Optimization (GWO) was developed by Mirjalili et al. [6]. GWO approach mimics the hunting behavior and social leadership of grey wolves in nature. Four types of grey wolves such as alpha, beta, delta, and omega are employed for simulating the command hierarchy. The first three best position (fittest) wolves are indicated as \( \alpha ,\beta \) and \( \delta \) who guide the other wolves (\( \omega \)) of the groups toward promising areas of the search space. The position of each wolf of the group is updated using the following mathematical equations:

The encircling behavior of each agent of the crowd is calculated by the following mathematical equations:

$$ \vec{d} = \left| {c \cdot \vec{x}_{p}^{t} - \vec{x}^{t} } \right| $$
(1)
$$ \vec{x}^{t + 1} = \vec{x}_{p}^{t} - \vec{a} \cdot \vec{d} $$
(2)

The vectors \( a \) and \( c \) are formulate as below:

$$ \vec{a} = 2l \cdot r_{1} $$
(3)
$$ \vec{c} = 2 \cdot r_{2} $$
(4)

Hunting: In order to mathematically simulate the hunting behavior, we suppose that the alpha, beta and delta have better knowledge about the potential location of prey. The following equations are developed in this regard.

$$ \vec{d}_{\alpha } = \left| {\vec{c}_{1} \cdot \vec{x}_{\alpha } - \vec{x}} \right|,\,\,\vec{d}_{\beta } = \left| {\vec{c}_{2} \cdot \vec{x}_{\beta } - \vec{x}} \right|,\,\,\vec{d}_{\delta } = \left| {\vec{c}_{3} \cdot \vec{x}_{\delta } - \vec{x}} \right| $$
(5)
$$ \vec{x}_{1} = \vec{x}_{\alpha } - \vec{a}_{1} \cdot (\vec{d}_{\alpha } ),\,\,\vec{x}_{2} = \vec{x}_{\beta } - \vec{a}_{2} \cdot (\vec{d}_{\beta } ),\quad \vec{x}_{3} = \vec{x}_{{_{\delta } }} - \vec{a}_{3} \cdot (\vec{d}_{\delta } )\, $$
(6)
$$ \vec{x}^{t + 1} = \frac{{\vec{x}_{{_{1} }} + \vec{x}_{{_{2} }} + \vec{x}_{{_{3} }} }}{3} $$
(7)

Search for prey and attacking prey:

The \( \vec{a} \) is random value in the gap \( [ - 2a,2a] \). When random value \( \left| {\vec{a}} \right| < 1 \) the wolves are forced to attack the prey. Searching for prey is the exploration ability and attacking the prey is the exploitation ability. The arbitrary values of \( \vec{a} \) are utilized to force the search to move away from the prey. When \( \left| {\vec{a}} \right| > 1 \), the members of the population are enforced to diverge from the prey.

3 Flower Pollination Algorithm (FPA)

The biological flower pollination inspires a new population-based algorithm called FPA [7]. The pollination rules state in FPA as follows. The global pollination considered cross-pollination that pollinators obey Lévy flights. The local pollination is known as self-pollination. The reproduction probability recognized flower constancy which is proportional to the resemblance of the two flowers in concerned. FPA used a switching probability p ∈ [0, 1] to control between the local and global pollination. Assumed, FPA considered as global and local pollination. Thus the local pollination is modeled as follows.

$$ \vec{x}_{ij}^{t + 1} = \vec{x}_{ij}^{t} + u \times \left( {\vec{x}_{ih}^{t} - \vec{x}_{ik}^{t} } \right) $$
(8)

where \( \vec{x}_{ih}^{t} \), \( \vec{x}_{ik}^{t} \) are pollen of different flowers but they are in the same plant species. \( u \) is generated from the uniform distribution [0, 1]. A random walk for local process if \( x_{ih}^{t} \) and \( x_{ik}^{t} \) come from the same species or selected from the same population of plants.

Pollens of the flowers in the global pollination are moved by pollinators e.g. insects, and pollens can be carried for a long distances. This process guarantees pollination and reproduction of the fittest solution represented as. The flower constancy is expressed mathematically as:

$$ \vec{x}_{ij}^{t + 1} = \vec{x}_{ij}^{t} + \gamma \times L\left( \lambda \right) \times \left( {\vec{x}_{ij}^{t} - g^{\text{ * }} } \right) $$
(9)

where \( x_{i} \) is solution vector at iteration t, and γ is a scaling factor to control the step size. Lévy flight can be used to mimic the characteristic transporting of insects over a long distance with various length steps, thus, L > 0.

$$ L = \frac{{\lambda\Gamma \left( \lambda \right) \times { \sin }\left( {\frac{\pi \lambda }{2}} \right)}}{{\pi \times s^{i + \lambda } }}, \left( {s \gg s_{0} } \right) $$
(10)

where Γ(λ) is the standard gamma function, and this distribution is valid for large steps s > 0. A variable p is switching probability or the proximity probability that can be used to change the global pollination to intensive local pollination and reverse.

4 Hybrid Grey Wolf Optimizer-Flower Pollination Algorithm (GWOFPA)

This section presents the implementation of the low-level coevolutionary to hybridize GWO and FPA by merging the functionality of both approaches. Two different techniques including exploitation and exploration are involved in generating final optimal solution to the optimization problem. By this modification, we extend the performance of exploitation in GWO with the fulfillment of the exploration in FPA to produce both approaches’ strength. However, FPA applies the exploration phase to updating positions.

$$ \vec{d}_{\alpha } = \left\{ {\begin{array}{*{20}c} {u \times \left( {\left| {\vec{c}_{1} \times \vec{x}_{\alpha } - \vec{x}} \right|} \right),\;\;\;\;\;\;\;\;\;\;\;\;rand() < 0.5} \\ {\gamma \times L\left( \lambda \right) \times \left( {\left| {\vec{c}_{1} \times \vec{x}_{\alpha } - \vec{x}} \right|} \right),\,\, rand() \ge 0.5} \\ \end{array} } \right. $$
(11)

where \( \vec{d}_{\alpha } \) is a modified dominance coefficient from Eq. (1) is to exploit diversity search agent for the proposed algorithm. The same done with the alpha, beta, and omega are applied in Eq. (5). New agent position can be mathematically simulated as follows.

$$ \vec{x}_{1} = \vec{x}_{\alpha } - \vec{a}_{1} \times \left( {\vec{d}_{\alpha } } \right) $$
(12)

where \( \vec{x}_{1} \) is done first agent position. Do the same for the second and third locations (\( \vec{x}_{2} \; and\; \vec{x}_{3} \) from Eq. (5). Figure 1 shows the pseudocode of the GWOFPA algorithm.

Fig. 1.
figure 1

Pseudo code of the GWOFPA algorithm

5 Experimental Results

In this section, we evaluate the proposed GWOFPA approach performance quality by executing a set of benchmark problems to test the solution quality, solution stability, convergence speed and ability to find the global optimum. Twenty runs of the testing functions in the experiments outcome values are averaged with different random seeds.

Table 1 lists the initialization for a set of the trial functions [10]. Maxgen column in Table 1 is a maximum number of iterations (it can be set to 500, 1000, 1500,.., 10000).

Table 1. Initialization for dimensions, max generations, and boundaries of the testing functions

Let X = {x i1 , x i2 ,…, x im } be the real value vectors of m-dimensional for GWOFPA. We set the population size N (N can be set to 10, 20,.., 100) for the algorithms of GWOFPA, GWO, FPA, and PSO to 40 for all runs in the experiments. Table 2 displays the outcome of implement for testing problems in Table 1 for the optimization is to maximize and minimize the results.

Table 2. The obtained results of proposed GWOFPA, GWO, and FPA for the benchmark functions

We tested each benchmark function with 2000 iterations per a run. We also compare the simulation results of the proposed method with those obtained results of the previous algorithms such as the GWO, FPA, and PSO as shown in Tables 3 and 4. For further parameters setting could be found in [6, 7] with the initial range, the dimension and total iterations for all test functions in Table 1 for GWO, FPA, and PSO.

Table 3. Comparison of the the proposed GWOFPA with GWO, and FPA, with for solving the testing problems in term of the quality performance evaluation
Table 4. Comparison of the proposed algorithm quality performance with PSO for testing problems

Figures 2 and 3 show the experimental results for the first two benchmark functions over 20 times output obtained from the proposed GWOFPA, FPA, GWO, and PSO methods with the same iteration of 2000. Appearly, these figures show all of the cases of testing functions in the GWOFPA have performance quality higher the other algorithm regarding the accuracy and convergence rate.

Fig. 2.
figure 2

Comparison the experimental result curves of the proposed GWOFPA with PSO, FPA, and GWO for the testing function f1

Fig. 3.
figure 3

Comparison the experimental result curves of the proposed GWOFPA with PSO, FPA, and GWO for the testing function f2

Table 3 displays the performance of the proposed GWOFPA in comparison with the algorithms of GWO, FPA for the testing functions. The result of the proposed algorithm on all of these cases of testing shows that the proposed algorithm provides 27% and 30% higher than those obtained from primary methods of GWO and FPA respectively. However, the figure for the minimum cases is only the increase 9% and 14% than the GWO and FPA respectively for a set of testing functions. In general, the proposed GWOFPA increases the average values of the cases 16% and 19% than obtained from the GWO and FPA methods are respectively for testing problems in terms of the convergence rates.

Table 4 displays the performing quality and running time comparison of the proposed GWOFPA with PSO method for the testing problems. The columns of correlation times and conditions are calculated as absolute of the obtained from GWOFPA minus that got from PSO then divided the received value of the GWOFPA method. The results of the proposed method on all of these cases of testing multimodal benchmark problems show that GWOFPA process almost increases higher quality and shorter running time than those obtained from PSO method. In general, the proposed algorithm achieved the standard cases of various tests for the convergence, and accuracy increased more than those obtained from the PSO method is 18%, and for the speed faster than that got from PSO method is 2% average respectively.

6 Conclusion

In this paper, we presented a novel hybrid approach for the optimization applications based on a combination of Grey Wolf Optimizer (GWO) and Flower Pollination Algorithm (PFA), namely GWOFPA. We use the location update equation of FPA for updating the positions of the grey wolves in GWO to explore and exploit the diversity of the algorithm efficiently. In the simulation, a set of functions are applied to verify the accuracy, convergent behavior, best global optimal solution of the newly developed approach. Results reveal that the proposed approach provides highly competitive solutions as compared to other algorithms.