1 Introduction

To solve hard and complicated real engineering problems, engineers should take the right decisions variables, and then, they will need a vital process for attaining the best solution which is named optimization. Therefore numerous methods were presented to solve optimization problems particularly nonlinear problems (NLPs), some of them were conventional and others were known as metaheuristics. Meta-heuristic algorithms (MetAs) are powerful artificial intelligence tools that can be classified to subcategories: chemical-based optimization algorithms like equilibrium optimizer (EO) [1], the chemical reaction based optimization algorithm [2] bio-inspired methods like coronavirus optimization algorithm [3], co-evolving algorithms [4], quantum evolutionary algorithm [5], quantum-inspired acromyrmex evolutionary algorithm [6], genetic algorithm (GA) [7], tabu search [8], cultural algorithm [9], stochastic fractal search [10], backtracking optimization algorithm [11], biogeography-based optimization algorithm (BBO) [12], swarm intelligence methods such as artificial immune system [13], memetic algorithm [14], group search optimizer [15], beehive algorithm [16], wolf search algorithm [17], Egyptian vulture optimization algorithm [18], swallow swarm optimization algorithm [19], ant lion algorithm (ALO) [20], grey wolf optimization (GWO) [21], chicken swarm optimization [22], shark smell optimization [23], butterfly-inspired algorithm [24], physics-based methods like black hole (BH) [25], simulated annealing (SA) [26], lightning search algorithm (LSA) [27], water cycle process (WCP) [28], multiple cyclic swarming optimization [29], colliding bodies optimization (CBO) [30], behavior-based techniques like brain storm optimization [31], volleyball premier league algorithm [32], gaining-sharing knowledge based algorithm [33], teaching-learning-based optimization (TLBO) [34], league championship algorithm (LCA) [35], mine blast algorithm (MBA) [36], flower pollination algorithm (FPA) [37, 38], trigonometric-based like sine–cosine algorithm (SCA) [39], etc. Additionally, researchers chose another pursuit through combining some properties of two or more techniques to improve efficiency and shorten the computational time. In this regard, some several attentions have been developed such as PSO-GA hybrid with Adam optimization [40], a synergy of the sine–cosine algorithm and particle swarm optimizer (SCA-PSO) [41], hybrid sine–cosine algorithm with differential evolution (SCA-DE) [42], hybrid DE and extremal optimization (DE-EO) [43], hybrid fruit fly optimization algorithm and firefly algorithm (FOA-FA) [44], hybrid Grey wolf optimization with particle swarm optimization (GWO-PSO) [45], enhanced tunicate swarm algorithm (ETSA) [46], hybrid ABC, and PSO [47]. The traditional methods with their two forms, direct and gradient-based methods, face some serious disadvantages for example, the delay in direct search methods or non-differentiability and discontinuity in gradient-based methods. Also, they rely on the initial solution and may fail to reach the promising regions. On the other hand, metaheuristics have proven their worth as they overcome the previous shortages of traditional methods. Meta-heuristic algorithms are suitable for non-convex, non-differentiable or discontinuous fitness functions and constraints. In addition, they can avoid being trapped in local optima in sharp and multiple peak problems. Moreover, they avoid computation of the gradients of the objective function and the constraints as well [44]. Lately, MRFO has gained popularity, since it is deployed in many engineering and other fields for example, Alturki et al. presented an MRFO-based optimal control strategy to enhance the proportional-integral (PI) controllers of DC/DC and DC/AC converters for PV grid-connected system [48]. Jinlin Wei et al. proposed filtering equipment protection based on MRFO, which improves the internal capacitance distribution of filtering device. To attain this goal, the unbalanced current generated due to the alerted capacitance should be minimized to keep the device safe [49]. Ouyang et al. used MRFO to determine the K-means’ initial center of clustering, which optimized the image segmentation efficiency [50]. Chattopadhyay et al. deployed an MRFO in feature selection for recognizing speech emotion, which increased the classification accuracy significantly [51]. Tiwari et al. minimized the total operating cost for distributed generator evaluated by load dispatch [52], while Sultan et al. used MRFO to solve multi-objective problems of sizing components of hybrid PV, wind turbine, and fuel cell system [53]. Simultaneously, other researchers have integrated MRFO with other algorithms like, Duan et al. replaced the clan updating operator in the elephant herding optimization (EHO) method with the somersault foraging tactic of Manta rays, and enhanced the diversity of the population by the Gaussian mutation [54]. Houssein et al. [55] proposed that a modified MRFO with opposition-based learning (OBL), named MRFO-OBL, was employed to solve the problem of the image segmentation with multilevel thresholding’s, where the MRFO-OBL was employed to identify the COVID-19 using chest CT images. Houssein et al. [56] applied the MRFO to optimize the parameters of support vector machine (SVM) to classify the electrocardiogram (ECG) arrhythmia. In addition, Karuppusamy proposed a hybrid MRFO for feature selection and Convolutional Neural Network (CNN) as classifier for brain tumor detection [57]. An improved version of the MRFO based on Levy flight and Morlet wavelet mutation strategy for extracting the Magnetorheological (MR) dampers control parameters has been proposed. This version was tested on CEC 2014 and CEC 2017 benchmark problems [58]. While Abdul Razak et al. adopted the GA’s mutation and crossover to improve MRFO’s convergence action, where the proposed genetic MRFO (GMRFO) was optimized an interval type 2 fuzzy logic for inverted pendulum system [59]. Also, GMRFO was tested on some composite natures of the test functions. Quantum MRFO (QMRFO) has been proposed by Ramadan et al. to estimate the parameters of the three diode solar photovoltaic model [60]. In addition, a gradient-based optimizer (GBO) hybridized with MRFO, named MRFO–GBO, has been solved the multi-objective economic emission dispatch (EED) problems [61].

Despite the fact that the aforementioned (MetAs) have been presented their abilities while dealing with different optimization issues; however, because of the no-free-lunch theorem [62], there is potential attempt to investigate different algorithms for further improvement when dealing with some optimization tasks. The revelation that the NFL theorem exists has encouraged this work to improve MRFO's capabilities by developing a hybrid variant with the PSO algorithm. Therefore, this paper presents a hybrid variant of the Manta ray foraging optimization (MRFO) with the particle swarm optimization (PSO), named MRFO-PSO, to achieve better balance among the exploration and exploitation abilities. The performance of the MRFO-PSO is validated on 23 benchmark problems and its applicability is confirmed through estimating the parameters of Tremblay's model with three different commercial lithium-ion batteries. The statistical measures along with pairwise tool have affirmed that the MRFO-PSO is capable of realizing very promising performances when compared with other optimizers.

The reminder sections of this paper is arranged as follows. In Sect. 2, material and methods regarding the mathematical representation of the function optimization and basics of the original MRFO and PSO. The producers of the proposed MRFO-PSO are presented in Sect. 3. In Sect. 4, the experimental simulations and results regarding the function optimization and lithium-ion battery are presented. In Sect. 5, the findings are concluded.

2 Materials and Methods

2.1 The Mathematical Statement of the Optimization Problem

Generally, any optimization problem has a standard formulation as follows.

$$\begin{array}{l}Min\,F(x),\\ x\in {\mathfrak{R}}^{n}\mid x=\left({x}_{1},{x}_{2},{x}_{3},\dots {x}_{n}\right)\\ {l}_{i}\le {x}_{i}\le {u}_{i},i=\mathrm{1,2},\dots ,n,\end{array},$$
(1)

where \(F\left({\varvec{x}}\right)\) is the objective or fitness function, which should be minimized for design space \({\mathfrak{R}}^{n}\) (\({\mathfrak{R}}^{n}\) defines the set of all ordered \(n\)-tuples of real numbers), in which there are \(n\) dimensions of candidate solutions usually called feasible solutions, \({x}_{i}\) denotes the ith element of the decision vector (\({\varvec{x}}),\) and \({u}_{i}\) and \({l}_{i}\) define the lower and upper limits, respectively.

2.2 Basics of MRFO

MRFO was proposed in 2020 by Zhao et.al [63] based on the foraging strategy of giant marine creatures called Manta rays which have a bird shape-like. It initializes a population of candidate solutions which act as Manta rays individuals searching for the best position. The plankton is consumed to be concentrated; also the best solution obtained so far acts as the plankton. The search strategy consists of three phases: chain foraging, cyclone foraging, and somersault foraging.

2.2.1 Chain Foraging Phase

In this phase, every fish in Manta rays' school follows its frontal individual moving in a foraging chain and the best solution found so far. The updating by the chain foraging is formulated mathematically as follows:

$$x_{i}^{t + 1} = \left\{ {\begin{array}{*{20}l} {x_{i}^{t} + r\left( {x_{b } - x_{i}^{t} } \right) + a\left( {x_{b } - x_{i}^{t} } \right) \to i = 1} \\ {x_{i}^{t} + r\left( {x_{i - 1}^{t} - x_{i}^{t} } \right) + a\left( {x_{b } - x_{i}^{t} } \right) \to i = 2, \ldots ,N} \\ \end{array} } \right.$$
(2)
$${\text{a}}=2\mathrm{r}\sqrt{\left|\mathrm{log}(\mathrm{r})\right|,}$$
(3)

where \({x}_{i}^{t}\) represent the \(i\)th individual's position at the iteration (\(t) , r\) is a random vector belong to [0, 1], \({\text{a}}\) is weighting function, and \({x}_{b}\) represents the best position obtained so far. The updated position (\({x}_{i}^{t+1})\) is performed by the current position (\({x}_{i}^{t})\) and previous position \({(x}_{i-1}^{t}\)) and the best position\({x}_{b}\).

2.2.2 Cyclone Foraging

Manta ray individuals create a foraging chain along with making spiral movements while searching for the food source. Flocked Manta rays in this step not only follow the Manta ray that in front of the chain but also chase a spiral pattern to get closer to the prey. This spiral movement of the Manta ray in behavior in \(n\) dimensional search space is modeled mathematically as follows:

$$x_{i}^{t + 1} = \left\{ {\begin{array}{*{20}l} {x_{b} + r\left( {x_{b} - x_{i}^{t} } \right) + B \cdot \left( {x_{b} - x_{i}^{t} } \right) \to i = 1} \\ {x_{b} + r\left( {x_{i - 1}^{t} - x_{i}^{t} } \right) + B \cdot \left( {x_{b} - x_{i}^{t} } \right) \to i = 2, \ldots ,N} \\ \end{array} } \right.$$
(4)
$$B = 2\exp \left( {r_{1} \cdot \frac{T - t + 1}{T}} \right)*\sin \left( {2\pi r_{1} } \right),$$
(5)

where \(B\) is weight coefficient, \(T\) is the total number of iterations, and \({\text{r}},\) \(r_{1}\) \(\in \left[ {0,1} \right]\) represent random numbers. The cyclone foraging enables the individuals of Manta rays to exploit the feasible region with the best solution obtained so far. Moreover, for a good exploration, each individual is forced to find a new position globally placed far from its current position by assigning reference position which determined randomly in the whole space. This exploration mechanism is written mathematically as

$$x_{i}^{t + 1} = \left\{ {\begin{array}{*{20}l} {x_{{{\text{rand}}}} + r\left( {x_{{{\text{rand}}}} - x_{i}^{t} } \right) + B \cdot \left( {x_{{{\text{rand}}}} - x_{i}^{t} } \right) \to i = 1} \\ {x_{{{\text{rand}}}} + r\left( {x_{i - 1}^{t} - x_{i}^{t} } \right) + B \cdot \left( {x_{{{\text{rand}}}} - x_{i}^{t} } \right) \to i = 2, \ldots ,N} \\ \end{array} } \right.$$
(6)
$$x_{{{\text{rand}}}} = l_{i} + r^{*} \left( {u_{i} - l_{i} } \right),$$
(7)

where \({x}_{\text{rand}}\) is a random position placed indiscriminately in the search space limited by lower and upper bounds \({u}_{i}\) and \({l}_{i}\), respectively.

2.2.3 Somersault Foraging

All Manta rays’ individuals swim forward and backward to the pivot with updating their positions by somersaults around the best position obtained so far which are modeled as follows:

$${x}_{i}^{t+1}={x}_{i}^{t}+\psi \left({r}_{2}{x}_{b}-{r}_{3}{x}_{i}^{t}\right)\to i=1,\dots ,N,$$
(8)

where \(\psi\), called somersault factor, it determines the range of somersault in which Manta ray can swim (\(\psi =2\)), \({r}_{2},{r}_{3}\) are random values within the [0, 1] range. Therefore, the behavior of somersault foraging enables Manta rays to move freely in new domains among their positions and symmetrical positions according to the best position obtained up till now. Also, the somersault range is proportional to iteration inversely; because it is reduced when iteration increases.

2.3 Basics of PSO

Although PSO was proposed in 1995 by Kennedy and Eberhart [64], it has wide popularity in the optimization field due to its superior performance. PSO was inspired by bird flocks while searching their food, PSO starts with a population with \(N\) birds which act as feasible solutions, each bird or particle has initial position and velocity. Every bird updates its velocity \({v}_{i}\) as well as its position \({x}_{i}\) in the new iteration \(t+1\) considering the personal best position \(({P}_{i})\), and the global best position of the whole swarm (\(\gamma\)) as follows:

$$v_{i}^{t + 1} = \omega v_{i}^{t} + c_{1} {\text{rand}} \cdot \left( {P_{i} - x_{i}^{t} } \right) + c_{2} \cdot {\text{rand}} \cdot \left( {\gamma - x_{i}^{t} } \right)$$
(9)
$$x_{i}^{t + 1} = x_{i}^{t} + v_{i}^{t + 1} ,$$
(10)

where \({v}_{i}^{t}, {v}_{i}^{t+1}\) are the particle velocity at the current and next iterations, respectively, \(\omega\) is a weighting function \(\omega \in \left[\mathrm{0,1}\right]\), \({c}_{1},{c}_{2}\) are weighting constants, \(\mathrm{rand}\) is a random number between 0 and 1, and \({x}_{i}^{t+1}, {x}_{i}^{t}\) are the particle position at the current and next iterations, respectively.

3 The Proposed MRFO-PSO

In this section, the proposed synergy of the MRFO with PSO is introduced. MRFO and PSO are typical examples of meta-heuristic algorithms and have been employed to deal with various engineering tasks efficiently. However, MRFO lacks for memory to keep the best information of the previous trials. Thus, as MRFO has trouble in reaching a global area, a PSO’s group can boost the searching of the MRFO for attaining optimal seeking system. In this context, the Manta ray individual’s ability is enhanced by utilizing the velocity concept that inspired from PSO in the cyclone foraging phase to update the position of MRFO, where Eqs. (8), and (5) can be modified as follows:

$$x_{i}^{{t + 1}} = \left\{ {\begin{array}{*{20}c} {x_{b} + r\left( {x_{b} - x_{i}^{t} } \right) + B \cdot \left( {x_{b} - x_{i}^{t} } \right) \to i = 1} \\ {\vartheta _{i}^{{t + 1}} + r\left( {x_{{i - 1}}^{t} - x_{i}^{t} } \right) + B \cdot \left( {\vartheta _{i}^{{t + 1}} - x_{i}^{t} } \right) \to i = 2, \ldots ,N} \\ \end{array} } \right.$$
(11)
$$v_{i}^{t + 1} = \omega v_{i}^{t} + c_{1} {\text{rand}}_{1} \cdot \left( {\Upsilon_{1} - x_{i}^{t} } \right) + c_{2} \cdot {\text{rand}}_{2} \cdot \left( {\Upsilon_{2} - x_{i}^{t} } \right)$$
(12)
$$\vartheta_{i}^{t + 1} = x_{i}^{t} + v_{i}^{t + 1} ,$$
(13)

where \({\vartheta }_{i}^{t+1}\) is the individual position reached by its velocity \({v}_{i}^{t+1}\), and \({\Upsilon }_{1}\) is the best position reached by its velocity obtained so far, while \({\Upsilon }_{2}\) is the second-best individual position reached in the last iteration. Besides, the pseudo-code of the MRFO-PSO algorithm is shown in Fig. 1, while the flowchart is shown in Fig. 2.

Fig. 1
figure 1

Pseudocode of MRFO-PSO algorithm

Fig. 2
figure 2

The flowchart of the MRFO-PSO algorithm

4 Results and Discussion

In this section, we tested the performance of the MRFO-PSO on 23 benchmark functions and utilized our hybrid algorithm to extract parameters of three cases of Li-ion batteries. The experiments are conducted on Matlab 2013a with device specifications: Processor Intel® core ™ i7-7500U CPU@ 2.70 GHz 2.90GHZ. RAM 8 GB and 64-bit operating system.

4.1 Benchmark Functions

To prove the effectiveness of the MRFO-PSO, it is tested the on different natures of benchmark problems such as Kowalik's, Goldstein-Price's, Foxholes's, Branin's, HGBat's, Rastrigin's, and Schwefel's functions. These functions have an assortment of difficult obstacles regarding the objective function such as noise, rotation, ill-conditioning, multimodality, and non-separable. We considered the parameter settings of algorithms as suggested in the corresponding literature. Tables 1, 2, 3 illuminate the 23 test functions and their peculiarities, formularizations, dimensions (\(n\)), range (\([{l}_{i},{u}_{i}], i=\mathrm{1,2},\dots ,n\)), and the minimum solution. However, Table 1 shows unimodal functions (F1–F7), Table 2 shows multimodal benchmark functions (F8–F13), and Table 3 shows multimodal benchmark functions with fixed dimension (F14–F23)) with settled dimensions (\(n\)). The outputs are illustrated in Table 4 which depicts the prior efficiency of MRFO-PSO.

Table 1 Unimodal benchmark functions
Table 2 Multimodal benchmark functions
Table 3 Multimodal benchmark functions with fixed dimension
Table 4 The results obtained by MRFO-PSO and the compared algorithms

4.2 Simulation Results on the Benchmark Problems

The performance of the proposed MRFO-PSO is compared with some well-known algorithms include the FFA [44], WOA [65], DA [66], GWO [21], ALO [20], original MRFO, and other state-of-art methods. The obtained outcomes regarding the studied benchmark problems are tabulated in Table 4 using some central tendency statistical metrics which are the average value of the fitness (mean), best value of the fitness (Min), median value (Median), worst value of the fitness (Max), and the standard deviation (STD) to confirm that the archived results are not happen by chance. Based on the mean results, it can be observed that the MRFO-PSO can provide competitive and progressive results in comparison with the other optimizers. These results are obtained through carrying out each algorithm for 30 independent runs. It is found that the MRFO-PSO reaches the optimum for the functions F1, F2, F3, F9, F11, F14, F15, F16, F17, F18, F20, F21, F22, and also overcomes its competitors and gets first in terms of the minimum value in functions F5, F6, F7, F8, F12, F13. In addition, MRFO-PSO gets first in terms of mean, median, maximum, and standard deviation for the functions F1, F3, F4, F6, F9, F10, F11, F12, F13, F14, MRFO-PSO has the least standard deviation for the function F2, F7, F15, F17. MRFO-PSO has the best mean for F5, F16, and F21. MRFO-PSO scores the best median for F16, F17, F18, F19, F20, and F21. MRFO reached the minimum for functions F2, F9, F10. MRFO has the least standard deviation for F8, F16, F20 functions. MRFO gets the least median in functions F14 and F15, F19, F21. MRFO has the best mean for F15 only. MRFO scores the best maximum for functions F14, F15, F19, and F21. While FFA scores least minimum, median, and maximum for F19 only. WOA gets the least mean, median and maximum for F8, WOA gets the least mean, median, maximum, and standard deviation for F9, F11, and F19 functions, where WOA scores the optima in F10, F14. However, DA gets the least min, median, and max in F19 and reaches the minimum for F14. Also, we notice GWO reaches optimum for F11 and F14, F19, but obtain the best median, maximum, and standard deviation for F19, F22, and F23, and GWO has the best mean for F21, F22 and F23 as well. Finally, ALO has the best values of minimum, mean, median, and maximum in F17and F18, but gets the least mean, median, maximum, and standard deviation in F19. However, ALO has the best minimum and median for F21 and also scores the optimum for F22. Figures 3 and 4 show box plots and convergence rates for the results of some selected test functions.

Fig. 3
figure 3

Box plots for some selected functions

Fig. 4
figure 4

Convergence for some selected results

4.3 Comparisons with Some Advanced Variants of MRFO

In this subsection, the proposed MRFO-PSO is further evaluated through comparing its performance with some advanced variants of MRFO reported in the literature including modified MRFO (m-MRFO) [67], and MRFO and Gaussian mutation-based elephant herding optimization for global optimization (MGEHO) [54]. The results are recorded in Table 5 using the mean value of the fitness function along with the standard devotion (STD). It can be observed from the table that the proposed MRFO-PSO can exhibit very competitive results on most of the studied benchmark functions.

Table 5 The comparison of the MRFO-PSO and some advanced variants of MRFO

4.4 Lithium-Ion Battery

Rechargeable batteries have been used worldwide in numerous applications for instance: electric vehicles (EVs) [68], unmanned aerial vehicle (UAV), drones, flapping wing micro vehicles (FWMAVs) [69], aerospace missions, solar planets, wind power farms, electric sets, mobile phones, laptops, and power banks [70]. However, the several advantages of Li-ion batteries like long life, high cell voltage, low self-discharge rate as well as high energy density, encouraged engineers to utilize them in diverse systems. In contrast, there are some challenges such as increment of internal resistance, capacity deterioration due to degradation which will severely affect safety and distance vehicles can travel. In addition, there is no place for power supply failure in intensive care units, operations rooms in hospitals, giant firms' systems, and military training systems. Subsequently, it is a persistent necessity to estimate the 'State of Charge (SOC)' which determines the charge level by percentage as well as the remaining useful life (RUL) which defines the residual time required to subrogate the battery, so deficiency warning could be released prior the critical limit. To prohibit damages or calamitous collapses, periodic maintenance is a must. As a result, prognostication of battery main characteristics like SOC, RUL, current, and voltage is an urgent battery prognostics and health management problem which imposes itself in research scope [71]. Therefore, accurate dynamics modeling of batteries not only helps optimize design and manufacturing but also plays a crucial role in dismantling and re-usage exercised electrical vehicles (EV) batteries in implementations of the power grid. The more precise battery dynamics modeling is, the more sustainable the EV industry becomes. However, many models were proposed in the literature classified into three categories: electrochemical, analytical, and analog [72].

4.4.1 Tremblay's Model

Tremblay's model [73] has been adopted by many researchers owing to its computational simplicity the reason why it operates exceedingly swift while running in software environments like MATLAB, and its efficacy during simulation, especially, EV applications. Nonetheless, Tremblay's model merges Li-ion battery dynamics, experiential and electrochemical simultaneously. The charge curve is analogous to the discharge curve. Howbeit, the discharge curve is formed by multiple zones shown in the schematic graph as in Fig. 5, the discharge voltage drops in the first sharp zone, thence it has an approximately fixed slope in the intermediate zone, and drops again sharply, contrariwise for charging. By electrochemical features of the Li-ion battery, the discharge curve is decomposed into four components: the base potential, exponential drop at the discharge start, a potential drop due to internal resistance, sharp potential drop at the discharge end, resulted from polarization. The discharge voltage can be estimated according to Eq. (14); otherwise, Eq. (15) describes the charge voltage [74]:

Fig. 5
figure 5

Schematic graph of the discharge curve

Discharge voltage:

$$V_{\tau } = E_{0} + \alpha \exp \left( { - \beta \Omega } \right) - I_{\tau } R - \frac{{CQ\Omega_{\tau } }}{{Q - \Omega_{\tau } }} - \frac{{CQI_{\tau }^{f} }}{{Q - \Omega_{\tau } }}.$$
(14)

Charge voltage:

$$V_{\tau } = E_{0} + \alpha \exp \left( { - \beta \Omega_{\tau } } \right) - I_{\tau } R - \frac{{CQ\Omega_{\tau } }}{{Q - \Omega_{t} }} - \frac{{CQI_{\tau }^{f} }}{{Q + 0.1\Omega_{\tau } }},$$
(15)

where exponential zone amplitude, exponential zone time constant inverse, and polarization voltage are represented by \(\alpha , \beta ,\mathrm{ C}\) coefficients, respectively. While \({V}_{\tau }\) represents the voltage at time \(\tau\),\({E}_{0}\) is the base potential, and the internal resistance is\(\mathrm{R}\), \({I}_{\tau }\) represents the discharge current at \(\tau\) time; \(Q\) is the nominal capacity; whereas \({\Omega }_{\tau }\) is the discharged capacity at \(\tau\) time, which is derived from:\({\Omega }_{\uptau }={\int }_{0}^{\uptau }{\mathrm{I}}_{\uptau }\mathrm{d\tau }\), since the current is constant so the \({\Omega }_{\uptau }={\mathrm{I}}_{\uptau }.\uptau\), \({\mathrm{I}}_{\uptau }^{\mathrm{f}}\) is the first-order step response usually called the filtered current at the time \(\tau\) which is established as

$${I}_{\tau }^{f}={I}_{\tau }\cdot \left[1-\mathrm{exp}\left(-\frac{\tau }{{\tau }_{r}}\right)\right].$$
(16)

Consider \({\tau }_{r}\) as the response time. Sequentially, there are four unknown parameters \(\alpha ,\beta ,\mathrm{ C},{E}_{0}\) should be estimated; however, \(R,Q\) are selected as nominal values by manufacturers, due to the human error in the three-key-point method as they depend on the personal perspectives and expertise, and the \(R,Q\) should be also estimated to obtain more accurate simulation. Therefore, the control variable \(X=[\alpha ,\beta ,\mathrm{ C},{E}_{0},R,Q]\) is the candidate solution for the parameter extraction problem of the Lithium battery dynamics model. Moreover, the objective function is taken as the residual sum of squares (\(RSS)\)

$$\mathrm{min}:\mathrm{ RSS}=\sum_{\mathrm{i}=1}^{\mathrm{m}} {\left[{\mathrm{V}}_{\mathrm{s}}^{\mathrm{i}}-{\mathrm{V}}_{\mathrm{c}}^{\mathrm{i}}\right]}^{2},$$
(17)

where \({V}_{s}^{i}\) is the discharge voltage sampled from the datasheet curve, \({V}_{c}^{i}\) is the calculated discharge voltage, and \(m\) is the number of sampled points in the datasheet curve. In this study, we used the samples points extracted by Yong Wang and Lin Li uploaded in an Excel file on (http://binghamton.edu/seorl). For problem boundaries, we used their initial values \({X}_{initial}\) multiplied by 10 as the upper boundary, and 0 as the lower boundary for all cases [74]. In context, three cases are studied.

4.4.2 Case I

In this case, the Samsung Cylindrical ICR18650-22 lithium-ion rechargeable battery [75] is investigated with the upper and lower limits listed in Table 6. By implementing the proposed MRFO-PSO as well as the compared algorithms, we can obtain the results of the \(RSS\) in terms of the statistical results as shown in Table 7. Furthermore, the optimal extracted parameters by the implemented algorithms corresponding to the best \(RSS\) value are illuminated in Table 8. Based on the reported results, it can be observed that MRFO-PSO gets the minimum \(RSS\) then GWO comes in the second order but DA gets the third. Additionally, MRFO-PSO comes first in terms of mean, maximum, and standard deviation but gets second in terms of median after MRFO. The convergence cures and box plots of the proposed MRFO-PSO as well as the compared algorithms are depicted in Figs. 6 and 7, respectively. Moreover, the estimated data obtained by MRFO-PSO and data sheet are compared in Fig. 8. Based on the figure, the estimated model exhibits a good agreement with the experimental data.

Table 6 The boundaries of studied cases
Table 7 The statistical results of the different algorithms for the studied cases
Table 8 The extracted parameters of the different algorithms for the studied cases
Fig. 6
figure 6

Convergence curve of \(\mathrm{RSS}\) for the studied cases

Fig. 7
figure 7

Box plots for the studied cases

Fig. 8
figure 8

Discharge curve of extracted parameters by proposed MRFO-PSO for the studied cases

4.4.3 Case II

The second case is a prismatic cell produced by Tenergy manufacturer [76], and its boundary is in Table 8. The upper and lower limits are listed in Table 6. By conducting the proposed MRFO-PSO and the compared optimizers, we can achieve the results of the \(RSS\) in terms of the statistical measures which are recorded in Table 7. In addition, the optimal estimated parameters by the implemented algorithms corresponding to the best \(RSS\) value are presented in Table 8. Based on the reported results, it can be observed that MRFO-PSO can provide very competitive results regarding the \(RSS\) value. The convergence behaviors and box plots of the proposed MRFO-PSO as well as the compared algorithms are depicted in Figs. 6 and 7, respectively. Moreover, the extracted data achieved by MRFO-PSO and data sheet are compared in Fig. 8. Based on the figure, the estimated model exhibits a good agreement with the experimental data.

4.4.4 Case III

The third case is UBBL03 (type LI-7) rechargeable battery cell produced by Ultralife manufacturer [77], and the upper and lower limits are listed in Table 6. By carrying out the proposed MRFO-PSO and the compared ones, we can obtain the optimized results of the \(RSS\) in terms of the statistical results which are shown in Table 7. Furthermore, the optimal extracted parameters by the implemented algorithms corresponding to the best \(RSS\) value are illuminated in Table 8. Based on the reported results, it can be observed that MRFO-PSO gets the minimum \(RSS\) which is competitive with the MRFO, and can provide superior results over the compared ones. The convergence cures and box plots of the proposed MRFO-PSO as well as the compared algorithms are depicted in Figs. 6 and 7, respectively. Moreover, the identified parameters obtained by MRFO-PSO and data sheet are compared in Fig. 8. Based on the figure, it is noted that estimated parameters acquire a good agreement with the experimental data.

4.5 Performance Assessment Based on Wilcoxon Test

The performance of the MRFO-PSO is further investigated to ensure that the obtained outcomes are not acquired by chance. In this sense, a non-parametric statistical test, named Wilcoxon signed-rank test, is applied [78] are performed. The Wilcoxon’s test is applied on the resulted mean values of the benchmark functions.

The Wilcoxon test is presented to illustrate the statistical significant difference among the obtained results by proposed MRFO-PSO algorithm and other peers. The outcomes of Wilcoxon’s test are recorded in Table 9. The rank \({R}^{+}\) values have larger values than the opposite rank \({R}^{-}\), which means that all tests reject the null hypothesis. Moreover, the p value is smaller than the significance level (\({\alpha }_{sig}=0.05)\) for most cases, which ensured the superior results of MRFO-PSO over the compared ones. From Table 9, it can be noted that the results of MRFO-PSO is not significant (\(\approx\)) to those obtained by MGEHO as the significance level is greater than \(0.05\). Furthermore, the Wilcoxon’s test is applied on the studied cases of the lithium-ion battery model by carrying out each algorithm for some different runs. The best results of all runs are employed as the samples for Wilcoxon test, and then, the results of this are reported in Table 10. From Table 10, it can be clearly observed the MRFO-PSO is very competitive with MRFO and outperforms the other ones.

Table 9 Wilcoxon’s test for the reported results in Tables 4 and 5
Table 10 Wilcoxon’s test for the studied cases of the lithium-ion battery

As depicted in Tables 9 and 10, in most tasks, the recorded \(p\) value is far less than 0.05, which affirms that MRFO-PSO has stronger significance.

5 Conclusion and future work

A new hybrid Manta ray foraging optimization (MRFO) with particle swarm optimization (PSO), named MRFO-PSO, was presented for further promoting the harmony among the inclusive exploration and confined exploitation abilities while dealing with optimization tasks. The MRFO-PSO was conducted and validated on a well-studied set of benchmark problems along with the comparisons with some optimization methods. The experimental results were made through evaluating some statistical measures and non-parametric tests which have demonstrated that the MRFO-PSO provides competitive and progressive solutions compared with other competitors. In addition, the applicability of MRFO-PSO is performed to estimate the Tremblay's model of the lithium-ion battery. The final experimental results illustrate that the MRFO-PSO can contribute powerful assistance for the lithium-ion battery and it has the potential to be very fruitful in dealing with more practical tasks with complicated search spaces as well. The major contributions regarding the presented work are

  • 1. The proposed MRFO-PSO enhances the convergence rate and population diversity of the original MRFO by achieving the global solution after a few iterations.

  • 2. MRFO-PSO confirmed its effectiveness by the comparison with other optimization methodologies while dealing with large-scale benchmark functions of different complexities.

  • 3. MRFO-PSO has affirmed its applicability by estimating the parameters of the lithium-ion battery.

5.1 Future Work

The increasing popularity of electric vehicles highlights the importance of the study of lithium batteries for electric vehicles, The lithium battery used in electric vehicles is a very large battery pack, and the testing of the SOC and SOH of the whole battery pack requires the support of experimental equipment, to overcome these issues, we will endeavor to include the volume of the battery pack in the future model, as well as built the future failure time for the battery pack.