1. Introduction
Among clean source alternatives, fuel cells (FCs) are thought to be a relatively new and quickly developing application of renewable energy-based conversion technology [
1,
2]. Owing to their interesting features, such as their small size, high power density, low operating pressures and temperatures, and the absence of dynamic elements, FCs have promising applications in smart grids, distributed generations, and transportation [
3,
4]. This electrochemical device, called FC for short, is a type of equipment that utilizes hydrogen gas as an input fuel to transform chemical energy into electric energy and heat, applying oxygen/air as an oxidant [
5,
6].
FCs are classified into various varieties, each with its own set of properties and applications. Here are a few common types: (i) proton exchange membrane FCs (PEMFCs) [
7,
8,
9]; (ii) solid oxide FCs, which operate at high temperatures (600–900 °C) and are suited for stationary power generation and combined heat and power systems [
10,
11]; (iii) molten carbonate FCs, which run at high temperatures (600–700 °C), which are employed for large-scale stationary applications and can use natural gas as fuel [
12]; (iv) phosphoric acid FCs, which operate at moderate temperatures (150–200 °C) and are frequently employed in stationary power applications, such as in commercial buildings [
13]; (v) alkaline FCs, which function at relatively low temperatures (60–90 °C) and were formerly utilized in space applications and some ground vehicles [
14]; (vi) direct methanol FCs, which are commonly used in portable applications and small electronics [
15]; (vii) and reversible FCs, which can operate both as an FC and as an electrolyzer and are used for energy-storage applications [
16].
One of the most common types of FCs is PEMFCs. Because the temperature and supply pressure can affect the output voltage, which can range from 0.9 to 1.23 V/cell, a series of PEMFCs is linked in order to increase the output voltage to the desired level [
9,
17,
18,
19]. A stack is a collection of PEMFCs connected in series/parallel for specific applications. Furthermore, because of polarization losses, their output voltage shows a non-linear relationship with the drawn load current. Stated otherwise, the activation voltage drop causes the PEMFCs’ output voltage to drop quickly at first; then, the ohmic voltage drop causes it to decrease linearly, and eventually, concentration losses cause it to decline exceedingly [
20,
21,
22].
The model of PEMFCs has a set of unknown parameters in its mathematical form that are not specified in the fabricators’ datasheets. To accurately simulate the real behavior of PEMFCs, certain parameters must be optimally estimated. As a result, numerous attempts have been made to fully define the model’s ungiven parameters for the PEMFCs units. These efforts can essentially be divided into two categories: traditional and soft computing-based optimization frameworks [
23,
24]. Recently, machine learning has been used to achieve the same goal, as publicized in [
25,
26,
27,
28,
29].
There are many optimization frameworks used to define the unknown parameters of PEMFCs stacks [
4,
30,
31]. Among these recent optimizers are the artificial rabbits optimizer (ARO) [
3], bonobo optimizer [
32], chaotic Harris hawks optimizer (CHHO) [
33], converged moth search algorithm [
34], circle search algorithm (CSA) [
35], transient search optimizer (TSO) [
36], grey wolf optimizer [
37,
38,
39], grasshopper optimizer (GHO) [
40], whale optimization algorithm (WOA) [
41], artificial bee colony differential evolution (DE) shuffled complex optimizer (ABDEO) [
42], manta rays foraging optimizer (MRFO) [
43], sine–cosine crow search algorithm [
17], hybrid artificial bee colony DE optimizer [
44], improved Archimedes optimizer [
45,
46], and Kepler optimizer [
47]. In addition, recently, a number of cutting-edge, well-known optimization strategies have been made available to address the issue of extracting PEMFC’s parameters, including the atom search optimizer [
48], equilibrium optimizer [
49], gradient-based optimizer [
50], shark smell optimizer [
51], teamwork optimizer [
52], modified farmland fertility optimizer (MFFO) [
53], honey badger optimizer [
54], two novel approaches reported in [
55], human memory optimizer [
56], and a reliable exponential distribution optimizer [
57].
The “no free lunch” (NFL) theory [
58] states that there is not a single algorithm that can handle every engineering optimization problem because every optimization technique has benefits and drawbacks for different tasks. There is no definitive solution yet, and choosing between the problems of optimization methods X and Y can be challenging depending on a number of factors, such as the degree of non-linearity, non-convexity, multi-modality, separability of the control variables, high dimensionality, etc. Until such a response is obtained in these endeavors, the attempts will persist. As shown above, there has been much success in determining these parameters; nonetheless, there is always room for improvement in order to more precisely address the ideal PEMFC stack model values.
The red-billed blue magpie optimizer (RBMO), developed in 2024 by Fu et al., can be used to solve problems involving continuous engineering optimization [
59]. The mutually beneficial and effective predation habits of red-billed blue magpies were a model for the RBMO. The red-billed blue magpie’s hunting, locating, pursuing, attacking, and food-storage activities are all modeled mathematically in the RBMO’s procedures. It should be mentioned that the RBMO is an algorithm that uses swarm intelligence and is motivated by the red-billed blue magpie’s hunting strategy [
59].
In this study, the RBMO is used to extract the parameters of PEMFCs in three test cases under various scenarios, along with implementing three other recent optimizers, namely, the dandelion optimization algorithm (DOA) [
60], sinh-cosh optimizer (SCHO) [
61], and growth optimizer (GO) [
62]. The necessary verifications, including comparisons, are made using some specific measures. In addition to that, the principal performance of PEMFCs units under varied conditions is investigated and discussed.
The DOA is used to solve problems involving a continuous optimization. The DOA mimics the wind-powered long-distance flight of dandelion seeds, which can be divided into three stages: rising, descending, and landing. Seeds rise spirally, descend slowly, and land randomly, with Brownian motion and Levy random walk describing their trajectory [
60]. The DOA has been recently applied successfully to solve electric power system problems [
63,
64,
65,
66,
67]. The GO is a metaheuristic algorithm that solves both continuous and discrete global optimization problems. This technique mimics natural growth processes, relying on biologically inspired mechanisms to effectively explore and exploit the solution space [
62]. The GO stands out as a powerful tool in the field of optimization, combining natural inspiration with advanced algorithmic techniques to solve complex problems effectively. GO has recently been used to address a few engineering issues, according to published reports [
62,
68,
69]. The SCHO is a metaheuristic algorithm inspired by the mathematical properties of the hyperbolic sine and cosine functions [
61,
70]. It is designed to solve optimization problems by effectively balancing exploration and exploitation of the search space. The SCHO is a flexible and powerful tool that can be used to solve a wide range of optimization issues. It makes use of the mathematical characteristics of hyperbolic functions to effectively traverse challenging environments and is applied to solve a few engineering and medical problems [
70,
71,
72,
73,
74].
Now, let us highlight the key contributions of this article: (i) assessing RBMO’s performance to optimally give the values of unknown parameters in PEMFCs’ model by implementing three recent optimizers, namely, DOA, GO, and SCHO; (ii) carefully examining three real-world study cases such as Ballard Mark V, Temasek 1 kW, and Horizon H-12 under various operating scenarios; and (iii) conducting numerous comparisons and uncertainty assessments for the obtained results.
2. Mathematical Formulation of PEMFCs’ Modeling
This section discusses the basic formulation of the PEMFCs’ model. The modeling approach for PEMFCs involves developing computer and mathematical models that represent the physical and electrochemical processes that take place inside the FCs. The mathematical model developed to simulate the performance of PEMFCs is referred to as Mann’s model [
75]. This model is widely used in the PEMFCs’ research field. The PEMFCs stacks contain a variety of voltage drops, including concentration voltage (
), ohmic or resistive voltage (
), and activation voltage (
).
Three different regions are identified on the I-V polarization curve of a single PEMFC: concentration, ohmic, and activation losses. Activation losses, a reflection of the slow electrochemical reactions at first, are the cause of the fast output voltage decay of the PEMFC when it is first starting up under light load. The entire resistance that the protons and electrons encounter, which is represented by ohmic losses, causes the output voltage to subsequently decrease linearly. Because of the increasing water content at higher load conditions, the output voltage drops quickly and lowers the reactant concentration in both electrodes. These voltage drops, which contribute to the overall voltage loss in the FC, may have a significant impact on the system’s performance and efficacy. A thorough understanding of these voltage losses, as well as specific attempts to reduce them, are required to improve the efficacy of PEMFCs stacks. Scientists and engineers use a range of strategies to achieve this goal, including catalyst development, improved flow field designs, and improved reactant gas management. As a result, the PEMFC’s terminal voltage is given as follows (1):
For working temperatures below 100 °C,
, which represents the reversible open-circuit voltage, may be computed using the formula revealed in (2).
Equation (3) gives an estimate of the activation voltage loss (
).
The concentration of oxygen (mol/cm
3), which is defined as
The equivalent resistance of the FC is used to calculate
, which has the following definition:
Equations (6) and (7) can be used for
calculations.
where
The formula shown in (8) can be used to predict
.
Typically, the PEMFC stack is made up of a number of series n-cells, and the voltage across the stack is expressed as follows, assuming all cells behaved with the same performance.
The aforementioned calculation is applied under the presumption that each cell behaves in the same way and that the resistors connecting the cells are ignored. In a closer look at the above mathematical PEMFCs’ model beginning from (1) to (9), it is clear from the above-mentioned formulas that for obtaining a fully defined electrochemical-based model, seven unknown parameters (, , , , , , and ) should be estimated. Model validation, parameter optimization, and refinement cycles are all parts of the iterative process of parameter estimation for Mann’s model. To obtain precise and trustworthy parameters values that accurately and reliably describe the behavior of the PEMFCs units under investigation, it is necessary to combine experimental data, computational modeling, and optimization techniques. Certainly parameter optimization approaches, whether applied in Mann’s model or any other mathematical model, pursue the recognized parameters values that minimize the discrepancy between model predictions and experimental results of voltage dataset points.
4. Procedures of the RBMO
Swarm intelligence is used by the red-billed blue magpie (RBMO) algorithm to simulate its activities of hunting, pursuing, attacking, and storing food. Fruits, insects, and small vertebrates are the main food sources for this adaptable predator. When roaming in small groups, they locate food sources more easily and collaborate to become more productive. In addition, they store food for later use and obtain nutrition from the earth and trees. The phases of exploration and exploitation are included in the RBMO mathematical model. Like other meta-heuristic competing optimizers, the RBMO initializes a random candidate solution in the manner described below, as depicted in (12).
Red-billed blue magpies forage for food in small groups (2–5 agents), as described in (13), or clusters (more than 10 agents), as revealed in (14), employing walking, leaping, and tree-searching techniques. Because of their adaptability, food is always available despite shifting environmental conditions and resource availability.
The red-billed blue magpie is an expert predator that uses a variety of hunting techniques, such as flying, leaping, and rapid pecking. Its main objectives are larger prey in clusters and small animals or plants in small groups, which is described mathematically in (15) and (16), respectively. Thus, it can secure food in a variety of situations thanks to its adaptable nature, as specified in (15) and (16).
The most crucial parameter in the RBMO,
, is obtained and updated repeatedly, as explained in (17), and it is in charge of striking a balance between exploration and exploitation (this factor is modified from the original paper [
59], which is
).
As illustrated in (18), red-billed blue magpies conceal food and save data for globally ideal values.
The time complexity in the worst case of BIG O(…) of the RBMO comprises the following: (i) the initialization complexity and (ii) the main loop complexity. The reader may refer to
Figure 1 for further illustrations. The initialization complexity of the RBMO is
. The main loop complexity of the RBMO is
for exploration and exploitation stages. Thus, the overall time complexity, on the other hand, is equal to
.
Further details about the RBMO and its distinguishing characteristics compared to other meta-heuristics, along with its pseudo-code, are available in [
59].
Figure 1 depicts the general procedures of the RBMO, showing the algorithm’s framework.
6. Conclusions and Suggestions
This study employs the RBMO to extract the unknown parameters, i.e., (, , , , , , and ) of the PEMFCs stacks under varying operating conditions. Furthermore, the fitness function is derived from the sum of square deviations between the computed and actual PEMFC stack voltages. The RBMO’s results on Ballard Mark V, Temasek 1 kW, and Horizon H-12 are three popular PEMFC units that were compared to three implemented algorithms, namely, DOA, GO, and SCHO, plus other recently published competitors. Some specific measures, including biased voltage errors, mean absolute voltage errors, mean absolute percentage errors, Pearson correlation coefficients, and p-values, are used to assess the outcomes of the RBMO’s procedure. It is evident that the highest percentages of biased voltage per reading for Ballard Mark V, Temasek 1 kW, and Horizon H-12 are, respectively, +0.65%, +0.20%, and −0.14%, which are negligible errors. Based on the three test cases under investigation, the comparison results show that the used RBMO is the best approach among the competing methods. In the last stage of this work, sensitivity analysis based on Gaussian process regression and artificial neural network models is used to prioritize the ranks of cropped defined parameters. This indicates that the PEMFCs’ model is highly sensitive to variations of and ; moderately sensitive to ; and less sensitive to , , and . Based on the encouraging outcomes of its use, the RBMO can be applied to other domains like the parameter estimation of solar cells, tuning load frequency controllers of microgrids comprising 100% renewables, wind speed forecasts, and other renewable energy applications.