1 Introduction

The search for optimal solutions is one of the most challenging topics in Artificial Intelligence (Abualigah et al. 2021). Industry, businesses, and all types of service providers are keen to find optimal solutions for their processes, maintaining the quality and the high performance of their standards. Machine learning, features extraction, regression, and classification operations are built on optimum parameters selection (Burke et al. 2013). Recently, hybrid techniques that are meta-heuristic-based are showing great success in different applications (Hussain et al. 2019). They are iterative techniques with several parameters that can be tuned to fuel their search engine and span the search spaces locally, globally, and collectively (Osman and Laporte 1996).

There are many types of metaheuristic search techniques (Blum and Roli 2003): nature/inspired vs. non/nature-inspired, single vs. various neighborhood structures, and memory usage vs. memory-less, single objective vs. multiple objective-based techniques, stochastic vs. deterministic, discrete vs. continuous, population-based vs. single point search techniques, dynamic vs. static objective functions, and so many. Recently, nature-inspired algorithms are classified into several categories such as evolutionary algorithms (EAs), swarm intelligence, physical-based, chemical-based, Local Search Algorithms (LSA), and human-based algorithms (Fausto et al. 2020; Meraihi et al. 2020), and many other application customized algorithms such as feature extraction-GWO (Alomari et al. 2021), COVID 19-optimization (Dalbah et al. 2021), JAYA-machine learning (Zitar et al. 2021), load dispatch-salp swarm (Alkoffash et al. 2021), and mathematical optimization (Al-Muhammed and Zitar 2018). Neural based techniques also are extensively used in optimization and machine learning (Ren et al. 2020). Other techniques that are norm based such as in Yan et al. (2020), where Linear Discriminant Analysis (LDA’s) with edge classes that are based on norm maximization is investigated. It also proved to be an efficient algorithm for classification and optimizing distances between classes.

The paper is arranged as follows: the inspiration and the description of the RDA is described in Sect. 2, including theoretical analysis and mathematical modeling. In Sect. 3, all the applications available in literature regarding the RDA were presented including all the variants and the hybridisations used. In Sect. 4, comparative studies are shown covering comprehensive testing suite of mathematical functions for the RDA and a group of the most popular metaheuristic algorithms. In Sect. 5, the outcomes of the paper are summarized with recommendations for future work and invitations for researchers to invest in this recently proposed algorithm.

2 Basic concepts of RD algorithm

2.1 Inspiration of RD algorithm

The inspiration of this algorithm started by observing the mating activities of the red deer species that live in Britain. A harem will be formed when a male succeeds in absorbing a group of hinds. The strongest male will be the commander of the harem. Commanders protect their territories and the harem. The roaring is implemented during the mating season, which is mostly Autumn. Only the strongest male after a fierce fight with the other males will be the commander of the harem. It is the only one allowed to mate with the females. The roaring could be followed by an approacher (another male) coming to the roaring male. A fight could be ignited, and the winner will take over the harem.

2.2 Procedural steps of RD algorithm

The RDA, like other meta-heuristics, begins with a random population, which is the RDs’ counterpart. The best RDs in the population are chosen and dubbed the “male RD”, while the remainder is dubbed the “hinds”. First and foremost, the male RD must roar to be classified. They are classified into two groups based on the strength of a roaring phase (i.e., commanders and stags). After then, each harem’s commander and stags fight it out to own their harem. Commanders subsequently form the harems. The quantity of hinds in harems is proportional to the leaders’ roaring and fighting ability. As a result, commanders in harems mate with a large number of hinds. The other males (i.e., stags) mate with the nearest hind without regard for the harem’s limitations. As a result, the RDA’s stages, by mating with nearest hinds, are participating in the exploitation and exploration phases. All the previous steps are employed in a flowchart and mathematical model as shown next.

Figure 1 depicts the RDA’s flowchart (Fathollahi-Fard et al. 2021) showing the flow of the RDA steps. The iterative behavior of the algorithm is presented in the flowchart. The initial and random population provides rich field for initial solutions. A random guided selection for the highest roaring males is done next. The winner between the commander and the stags get to form the harems. Mating with own harem and another harem provides a production phase for more innovative solutions. The stag is allowed to mate with nearest hind for more richness and unexpected good solutions.

The steps of the algorithm are mathematically described based on the models offered by Fathollahi-Fard et al. (2021). The steps are shown briefly since the goal here is to present some revisions.

To mathematically model the RDA we start by Eq. (1) in which an initial population for the RDs is created:

$$\begin{aligned} RD= X1,X2,X3,\ldots ,X_{Nvar} \end{aligned}$$
(1)

Then the fitness of every member in the population is calculated according to Eq. (2):

$$\begin{aligned} Value=f(RD)=f(X1,X2,X3,\ldots ,X_{Nvar}) \end{aligned}$$
(2)

Male RDs are attempting to boost their grace by roaring in this step. As a result, the roaring process may succeed or fail, just as it does in nature. Notably, in this algorithm, male RDs are the best options. In terms of the solution space, we look for the neighbors of the solution. If the objective functions of the neighbors are male RD, it is replaced by the preceding if it is better than the previous male RD. The following information is provided to keep males up to speed on their status. The following equation is proposed:

$$\begin{aligned} male_{new} = {\left\{ \begin{array}{ll} male_{old}+a_{1}(UB-LB)*a_{2}+LB), \text {if } a_3 \ge 0.5\\ male_{old}-a_{1}((UB-LB)*a_{2}+LB), \text {if } a_3 <0.5\text { is less than 0} \end{array}\right. } \end{aligned}$$
(3)

UB and LB limit the search space in order to develop a suitable male neighborhood solution. They are, respectively, the top and lower boundaries of search space. Note that the present position of male RD is \(male_{old}\), and its next position is \(male_{new}\). In terms of randomization; a1, a2, and a3 are the three stages of the roaring process in nature derived at random from a uniform distribution between zero and one.

The number of male commanders is computed as follows:

$$\begin{aligned} N_{C}=round(\gamma . \, N_{male}) \end{aligned}$$
(4)

where \(N_{C}\) is the number of commanders that are naturally males, \(\gamma \) is a random number between 0 and 1, and \(N_{male}\) is the number of total males. It’s worth noting that \(\gamma \) is the algorithm model’s beginning value. It has a value range of zero to one. Finally, the number of stags is estimated using the following formula:

$$\begin{aligned} N_{s}= N_{male}-N_{C} \end{aligned}$$
(5)

The fighting process are modeled by the following two mathematical formulas:

$$\begin{aligned} new_{1}&= (C+S)/2+b_{1}((UB-LB)*b_{2}+LB) \end{aligned}$$
(6)
$$\begin{aligned} new_{2}&=(C+S)/2-b_{1}((UB-LB)*b_{2}+LB) \end{aligned}$$
(7)

The two new solutions developed by the fighting process are \(new_{1}\) and \(new_{2}\). The symbols for commanders and stags, respectively, are C and S. UB and LB the set upper limits on the feasibility of the new solutions. The search space’s upper and lower bounds \(b_{1}\) and \(b_{2}\) are formed as a result of the randomization of the fighting process between zero and one using a uniform distribution function. Considering four options: C, S, \(new_{1}\) and \(new_{2}\), only the best one in terms of the OF will be chosen (see below).

To form harems groups, we split hinds among commanders to construct harems, in proportion to:

$$\begin{aligned} V_{n}=v_{n}-\max {v_{i}} \end{aligned}$$
(8)

where \(V_{n}\) is the normalized value of the \(n_{th}\) commander’s power (i.e., its OF), and \(v_{n}\) is the power of the \(n_{th}\) commander (i.e., its OF). The following equation can be used to calculate commanders’ normalized power.

$$\begin{aligned} P_{n}={\bigg |\frac{V_{n}}{\sum _{i=1}^{a_i} V_{i}}\bigg |} \end{aligned}$$
(9)

The number of hinds of a harem can be calculated as follows:

$$\begin{aligned} N.harem_{n}=round(P_{n}\cdot N_{hind}) \end{aligned}$$
(10)

where \(N_{hind}\) is the total number of hinds.

This deer mating action is carried out by a commander with a percentage of hinds in his harem.

$$\begin{aligned} N.harem^{mate}_{n}= round(\alpha \cdot N.harem_{n}) \end{aligned}$$
(11)

The number of hinds in the \(n_{th}\) harem that mate with their leader is \(N.harem^{mate}_{n}\). In terms of the solution space, we choose \(N.harem^{mate}_{n}\) of the\(N.harem_{k}\) at random. In general, the mating process is described as follows:

$$\begin{aligned} \text {offs}= \frac{C+Hind}{2}+(UB-LB)\quad {}\text {x}\quad {c} \end{aligned}$$
(12)

We pick a harem at random (call it k) and allow the male commander to mate with \(\beta \) percent of the harem’s hinds. In fact, in order to expand his area, the commander can launch an attack on other harems. Assume \(\beta \) is the algorithm model’s initial parameter value with range of values between zero and one. The number of hinds in the harem that mate with the commander is calculated using the following formula:

$$\begin{aligned} N.harem^{mate}_{k}= round(\beta \cdot N.harem_{k}) \end{aligned}$$
(13)

where \(N.harem^{mate}_{k}\)is the number of hinds in the \(k_{th}\) harem that mate with the commander. It’s worth noting that the mating procedure is carried out using Eq. (12). The distance between a stag and all hinds in \(J-dimension\) space should be computed as follows:

$$\begin{aligned} d_{i}=\bigg \{\sum _{j\epsilon {J}}(stag_j-hind^i_j)^2\bigg \}^{1/2} \end{aligned}$$
(14)

where \(d_{i}\) is the distance between the \(i_{th}\) hind and a stag. As a result, the hind picked is represented by the minimum value in this matrix. The mating process begins after a hind is chosen. In this calculation, a stag is considered instead of a commander.

Fig. 1
figure 1

The flowchart of the RD algorithm (Fathollahi-Fard et al. 2021)

3 Applications of RD algorithms

Authors in Fard and Hajiaghaei-Keshteli (2016) compared the RDA with 12 standard algorithms using a set of real-world engineering applications and multi-objective optimization problems such as SMSP, TSP, FCTP, and VRP. A multi-objective NRP evaluated four assessment metrics to analyze Pareto optimal sets. They concluded that the RDA was more accessible to tune than other algorithms, and the interactions between intensification and diversification phases can be easily employed. In Fazli et al. (2019) the RDA was used to solve the Coordinated Quay Crane Scheduling and Assignment Problem (CQCSAP). The verification was conducted through eight numerical instances in small and large sizes. The range of the parameters used in the tests was based on Lourenço et al. (2003). A comparison was made between RDA and Genetic Algorithm (GA). The results in Fazli et al. (2019) exhibited the high performance of RDA. In Dey et al. (2021), authors proposed Modified Red Deer Algorithm (MRDA) to find optimum thresholds of publicly available grayscale images. The performance of the MRDA was compared with RDA and classical Particle Swarm Optimization (PSO). Experiments were conducted using two publicly accessible real-world benchmark images. The results exhibited that MRDA outperformed both RDA and PSO. Moreover, in De et al. (2020), MRDA has been compared with RDA and Classical Genetic Algorithm (CGA). Experiments in De et al. (2020) were conducted on real-life gray-scale images. Both the t-test and Friedman Test were used to check which algorithm is the best. MRDA outperformed both RDA and GA and achieved competitive results.Authors in Brammya et al. (2019), introduced a meta-heuristic algorithm named DHOA, slightly different from RDA. It is based on the hunting behavior of humans toward deer. In DHOA, the hunters behave differently from DRA, where the two hunters move their best positions, termed as leader and successor. The experiments on DHOA show competitive results compared to other algorithms such as GWO, WOA, FF, PSO, etc. The hybrid model referred to Red Deer Adopted Wolf Algorithm (RDAWA) was introduced in Alotaibi (2021). The authors assess the potential movement of the financial exchange’s stock value using the RDAWA. The RDAWA is a hybrid optimization model of two standard optimization models: RDA and GWO, respectively. The proposed stock market prediction model with three phases: feature extraction, optimal, feature selection, and prediction. The RDAWA model exhibited better results than other FF + Ensemble Classifiers and GWOC Ensemble Classifier approaches. The authors of Dogani et al. (2020) proposed a hybrid meta-heuristic algorithm RDA-SA, which is a combination of the Red Deer Algorithm) and Simulated Annealing. They analyzed the uncertain parameters in the water supply system remodeling and restoration. They found that the RDA-SA algorithm outperformed NSGA-II through different criteria and analyses. The red deer algorithm was also used to solve the real-world size case of truck scheduling problems in cross-docking with product time window (Zhou and Zong 2021). The lower bound of the problem is based on both the Lagrangian relaxation problem and the NP-hard nature of the truck scheduling problem. A modified RDA was proposed with a heuristic oscillating local search algorithm and adaptive memory programming. This modified RDA could overcome the original RDA’s inferior capability concerning local search and run time. In another application, Sensor nodes in Wireless Sensor Networks (WSN) are responsible for collecting the data, and an efficient routing protocol is needed for data collection. An efficient routing protocol must be able to allocate resources with a low minimum rate of packet transmission loss. In Ambareesh and Madheswari (2021), a Hybrid Red Deer Salp Swarm (HRDSS) was proposed for routing in WSN. HRDSS is a hybrid of RDA and the salp swarm optimization algorithm. The experiments conducted in Ambareesh and Madheswari (2021) showed that DRDSS exhibited the best optimal routing path in comparison to other Routing Protocols. For WSN, RDA was also used in Nguyen et al. (2020) for energy-efficient and secure clustering-based data transmission in pervasive wireless networks. The clustering in WSN was implemented using block-chain enabled secure data transmission and the RDA (RDAC-BC). The experiments showed that RDAC-BC outperformed other algorithms in terms of energy, network lifetime, packet delivery ratio (PDR), and throughput.

The cross-docking system is for the purpose of product distribution from manufacturers to markets (Berghman et al. 2015). These products are transferred to the outbound dock in order to be loaded into shipping trucks (Fathollahi-Fard et al. 2020). Long-term storage is not permitted in cross-docking (Zuluaga et al. 2017). Additionally, cross-docking can remove products’ retrieval costs. Therefore, an efficient cross-docking will lead to better distribution systems which result in the satisfaction of customers (Boysen and Fliedner 2010). Modified Red Deer Algorithm was proposed to Solve a Truck Scheduling Problem Considering Time Windows and Deadline for Trucks’ Departure (Fathollahi-Fard et al. 2020). The main feature of MRDA is fewer controlling parameters needed, and therefore a better designation is achieved of search phases to find the global solution. The performance of MRDA was compared with four techniques: SA, GA, PSO, and ICA, and MRDA outperformed all of them. An Improved RDA (IRDA) was used as an Engineer design for Direct Current (DC) brushless motor (Fathollahi-Fard et al. 2019). The performance of IRDA was also compared through simulation with the other 12 algorithms. IRDA was able to reduce time consumption and provide better efficiency compared with different algorithms.

4 Comparative results and discussions

This section presents comprehensive experiments and analysis for the RD algorithm and compares its results with other well-known optimization methods published in the literature.The details of the tested 10 classical benchmark functions are given in Table 1. This table presents the functions equations, specifications, dimension size, and the best fitness values of each problem of the 10 classical benchmark functions (Alsalibi et al. 2021; Shehab et al. 2020; Eid et al. 2021). The given test functions are separated into two main sections: (1) Unimodal functions with varying dimensions (F1–F7)and (2) Multimodal functions, which have varying dimensions (F8–F10). Many previous papers have employed these functions to test the effectiveness of different optimization methods.

Table 1 Unimodal and multimodal benchmark functions

The studied algorithm (i.e., Red Deer Algorithm Fathollahi-Fard et al. 2021) is compared with other recent and well-known methods, including:

  • Whale Optimization Algorithm (WOA) is proposed by Mirjalili and Lewis (2016).

  • Sine Cosine Algorithm (SCA) is proposed by Abualigah and Diabat (2021).

  • Dragonfly Algorithm (DA) is proposed by Mirjalili (2016).

  • Grey Wolf Optimizer (GWO) is proposed by Safaldin et al. (2021).

  • Particle Swarm Optimization (PSO) is proposed by Eberhart and Kennedy (1995).

  • Ant Lion Optimizer (ALO) is proposed by Mirjalili (2015).

  • Marine Predators Algorithm (MPA) is proposed by Al-Qaness et al. (2020).

  • Equilibrium Optimizer (EO) is proposed by Faramarzi et al. (2020).

  • Aquila Optimizer (AO) is proposed by Abualigah et al. (2021).

  • Arithmetic Optimization Algorithm (AOA) is proposed by Premkumar et al. (2021).

In the experiments listed here, Table 2 represents the results of the comparative methods in terms of the worst (Max), mean, best (Min), and standard deviation (STD) of fitness functions. Moreover, the Friedman ranking test (Mack and Skillings 1980) is implemented to rank the tested methods according to the obtained results in the overall the tested problems. For fairness, all applied optimization methods run using the same environment and with the same test conditions. Note that the parameters of the tested algorithms are taken from the original papers. All algorithms are tested on 30 runs and 500 iterations. It is exceptionally challenging for optimization algorithms to address numerical functions because of their original complex nature. Addressing such problems needs a precise equilibrium between its exploration and exploitation search processes. Table 2 shows the results of the tested algorithms to solve 10 benchmark functions when the dimension size is fixed to 10. Investigating the results in Table 2 explains that the RDA can give very competitive outcomes on small dimensional functions, mainly significantly improving in F7 and F10 and others. Accordingly, it can be decided that the RDA searches close to the optimum solution effectively and comparable to several other methods. Based on the Friedman ranking test, RDA got the fourth-ranked.According to the obtained results summarized in Table 2, RDA can also produce excellent results using the fixed-dimension multi-modal functions. These results confirm that the studied RDA is competitive regarding exploration search. RDA method obtained a set of good results for solving such problems, compared to several new and highly efficient algorithms. This confirms the ability of the studied RDA to solve complex problems and achieve good results as well.

Table 2 Results of the comparative methods using 10 benchmark functions (F1–F10) when the dimension size is 10

Figure 2 presents the convergence rate of the RDA and the other well-known comparative methods over 500 iterations. The illustrated curves show that the RDA can converge quicker and smoother than most of the tested methods, as shown in F5 and F6 figures. Besides, most of the analyzed optimization methods show stagnation for some of the tested functions. Thus, the RDA exceeds the most recently proposed optimization methods (i.e., WOA, SCA, PSO, and ALO), in terms of solutions and convergence speed. The curves also reveal that the studied RDA has significant changes in the first iterations and small changes in the final iterations where convergence and stability is expected.

Fig. 2
figure 2

The convergence curves of the tested optimization algorithms using 10 benchmark functions

Table 3 presents the results of the tested algorithms on four problems (F1–F4) through one second of simulations, where the used dimension is 10. We have taken 1 s, which is approximately equivalent to 500 repetitions. These observations are carried out to show the tested methods’ time performance. It is evident from Table 3 that the RDA obtained more accurate and reliable results compared to other similar methods when the execution is implemented within the same time period. The same machine and operating system was used in all the simulations.

Table 3 The results of the tested algorithms on 4 problems (F1–F4) through 1 second

The limitations of this algorithm stem from its complexity. This is the case with all other meta heuristic techniques that are based on evolutionary methods. Moreover, the algorithms that are based on search populations are parallel in nature, and applying them on a sequential machine with a sequential programming language, as it is the case with most of our simulations, adds more limitations on the RDA capabilities to run faster and more efficiently. On the other hand, adding local operators to enhance exploitation capabilities, may induce more complexity and reduce execution speed. It is always the optimum trade off we try to seek between speed and accuracy. Optimum tuning the parameters for the algorithm is another challenge. Adaptive operators for tuning are beneficial but they add more burden on the complexity and speed.

5 Conclusion and future trends

This paper presented a study for a relatively new algorithm called the Red Deer Algorithm (RDA) (first introduced in 2016). It tackled aspects such as its procedure, applications, and optimization results. All the papers that have been published until this minute and all presented applications of this algorithm are reviewed in this work. These studies focused on various topics, showing the ability of the Red Deer Algorithm in solving various types of problems.

The main contribution of this work was to present all applications available in the literature until this minute for the RDA. Those applications include solutions for engineering, computer science, and business problems. The paper also covered all variants and hybrids presented so far in the literature for the RDA. Moreover, deep analyses of the algorithm based on optimizing standard benchmark mathematical functions of different dimensions and modes were conducted. It showed competitive performance for the RDA compared to other more famous and well-known optimization techniques of different types. The convergence behavior of the RDA was presented and its potential for further use in different applications was apparent. Section 3 summarized the applications and the different variants and hybrids of the RDA.

Based on the experimentation done in Sect. 4, the RDA proved to be competitive to comparative methods when applied to optimize different types of benchmark functions. Those functions had different modes, with multiple variables and many local minima. The standard F test showed that the RDA is ranked 4 among the comparative algorithms. Most of those algorithms are well-known and frequently used in different applications. Most of those algorithms, if not all, are metaheuristic-based algorithms that could be swarm intelligence-based, local search-based, physical-based, chemical-based, human-based, and others. The RDA proved its presence among them. The RDA, based on its procedure, behavior, and simulation results, showed exploration and exploitation capabilities.

Future work may include investigating other optimization techniques such as rank-constrained spectral clustering with flexible embedding framework (Li et al. 2018). In this technique, irrelevant information and noise are suppressed using a flexible embedding scheme used to unravel the intrinsic cluster structure. Other techniques (Li et al. 2019), exploit the semantic correlation between the concept and an event in case their was inadequacy of information for optimization or learning. In Li et al. (2018), the RDA can have interesting application in optimizing the affinity weights for solving the problem of selecting optimum features for computer vision problems.

The door is wide open for further applications for the algorithm. Starting from mathematical optimization, scheduling, all disciplines of engineering search and optimization applications; discrete or continuous, optimum control, trajectories tracking, all recognition problems, applications in business, management, operation research, inventory, including machine learning, training and learning, optimum features selection, computer science problems such as routing, optimum configurations, and the list could be extended more and more. The fact that the algorithm population members values could be mapped to any domain of continuous or discrete variables makes it highly applicable in many fields.

Finally, the RDA is still a a new and rich algorithm to explore and study. Many variants, adaptive, and hybridized versions of the algorithm yet to be discovered and explore. Future work will include improvising variants of this algorithm and applying it to engineering problems in optimization and machine learning. As with all other meta-heuristic techniques, the RDA needs more theoretical analysis and mathematical modeling using suitable stochastic processing techniques. It will become imperative to understand the behavior of these algorithms and be able to prove their convergence under certain conditions. The RDA is another artifact that came as a result of the capabilities of researchers to observe God-created behavior and to model it in a manner to serve science and human.