Fuel Economy Energy Management of Electric Vehicles Using Harris Hawks Optimization

: Fuel cell hybrid electric vehicles (FCEVs) have gained signiﬁcant attention due to their environmentally friendly nature and competitive performance. These vehicles utilize a fuel cell system as the primary power source, with a secondary power source such as a battery pack or supercapacitor. An energy management strategy (EMS) for FCEVs is critical in optimizing power distribution among different energy sources, considering factors such as hydrogen consumption and efﬁciency. The proposed EMS presents an optimized external energy maximization strategy using the Harris Hawks Optimization to reduce hydrogen consumption and enhance the system’s efﬁciency. Through a comparative simulation using the Federal Test Procedure (FTP-75) for the city driving cycle, the performance of the proposed EMS was evaluated and compared to existing algorithms. The simulation results indicate that the proposed EMS outperforms other existing solutions in terms of fuel consumption reduction, with a potential reduction of 19.81%. Furthermore, the proposed energy management strategy also exhibited an increase in system efﬁciency of 0.09%. This improvement can contribute to reducing the reliance on fossil fuels and mitigating the negative environmental impacts associated with vehicle emissions.


Introduction
The need for energy has increased throughout the history of industrial evolution. There has been a massive rise in demand for fossil fuels throughout industrial development as reported in [1]. As industrialization grew, so did the energy needed for transportation, manufacturing, and other industrial processes. Coal, oil, and natural gas were all readily available, plentiful energy sources that were concentrated and dependable. They were essential for running automobiles, machines, and factories, which sped up economic progress [2,3]. The use of fossil fuels has become increasingly dependent on technological developments, particularly in infrastructure, transportation, and machinery. The transportation industry emits a considerable portion of greenhouse gases [4,5], and thus a lot of work is focused on replacing conventional engines with electric-powered vehicles [6,7]. These cars power an electric motor by combining an FC "fuel cell" [8][9][10] and an ESS "energy Table 1. Summary of the reported works in the literature review.

Reference
Description [23] State machine control strategy (SMC) [24] Fuzzy logic control strategy [26] PMP "Pontryagin Minimum Principle" [27] Calculus of variations [28] DP "Dynamic programming" [29] SDP "Stochastic dynamic programming" [30] EEMS "External energy maximization strategy" [31] ECMS "Equivalent consumption minimization strategy" [31] Genetic fuzzy logic control strategy [33] MBA "Mine Blast Algorithm" and SSA "Salp Swarm Algorithm" [34] Modified The goal of this research is to improve the existing External Energy Maximization Strategy (EEMS) in a FCEV "fuel cell electric vehicle" outfitted with a PEMFC "Proton Exchange Membrane Fuel Cell", battery, and supercapacitor. The Harris Hawks Optimization (HHO) method is used to optimize the proposed Energy Management Strategy (EMS) [35]. The fundamental contribution of this work is the proposal of an EMS that effectively minimizes fuel usage while enhancing overall system efficiency. The optimized EMS, which is based on the Enhanced Constrained Energy Management Strategy (ECMS) and HHO, attempts to reduce the PEMFC-based hybrid power system's hydrogen usage. The S-function of the software (Matlab 2020b) in the simulation model combines the optimized ECMS-based HHO with inputs from the battery State of Charge (SoC) and the load demand. Current regulation is used to control both the fuel cell and the battery. The suggested optimized ECMS-based HHO is compared to regularly used strategies such as ECMS, proportional integrator (PI) control, and optimized ECMS-based Particle Swarm Optimization (PSO) and Manta Ray Foraging Optimization (MRFO). Due to its facile implementation, the PI is the most used controller for many control applications. However, it has limited performance. The conventional ECMS has been used for this application to reduce the consumed fuel, but achieving a global solution is challenging. For this reason, using metaheuristic optimization algorithms can resolve this problem. The PSO is one of the most used optimization algorithms for many optimization problems. On the other hand, the MRFO is a recent optimizer that may provide competitive performance for several applications. This optimizer and the PSO will be used to evaluate the performance of the optimized ECMS using the HHO.
When the supercapacitor discharges during the load cycle, it is replenished using energy from the battery. As a result, the total load energy is shared between the PEMFC and the battery throughout the load cycle. Three key metrics are used to evaluate the performance of the EMSs: hydrogen consumption, efficiency, and SoC. The following is the structure of the remaining sections of the current work: Section 2 describes the architecture of the FCHEV, including the mathematical models used. Section 3 discusses EMS, including specifics on the EEMS and HHO. Section 4 contains the findings, conclusions, simulation results, and analyses. Finally, Section 5 brings the paper to a close.

The Hybrid Power System of Electric Vehicle
The hybrid FC/BS/SC-based EV is built in active topology to meet engine power. As indicated in Figure 1, the HPS comprises a PEMFC, a lithium-ion battery, and a su- percapacitor. This section describes the power system and provides the models used for the simulation. supercapacitor. This section describes the power system and provides the models used for the simulation. The fuel cell (FC) regulates explicitly and balances the load demand's average net power. On the other hand, the batteries and supercapacitors are intended to provide additional load support during continuous operation and transient peak demand scenarios. These energy storage devices ensure that the load's power requirements are met consistently, both during regular operation and during surges in power demand. The hybrid power system can efficiently handle variable load situations and optimize overall performance and efficiency by combining the capabilities of the FC and the energy storage devices. Lithium-ion batteries are utilized, with the nominal voltage and rated capacity set at 48 V and 40 Ah, respectively. The battery's initial state of charge is 65%, and its response time is 20 s; for the supercapacitor, the rated capacitance and voltage are 15.6 F and 291.6 V, respectively, with an initial voltage and operating temperature of 270 V and 25 C. The FC in use is a 12.5 kW PEMFC comprising 65 series-connected cells. Its nominal stack efficiency and operating temperature are 50% and 45 °C, respectively. The voltage in the DC link is regulated by the battery converters, which contain a simple PI controller.
One significant difference between energy management systems (EMS) is the method used to calculate the PEMFC reference power. A 12.5 kW PEMFC boost converter is used in this particular installation. This boost converter regulates the output voltage and limits the input current. Two DC/DC converters are used to simplify the integration and operation of the hybrid power system. The first is a 4 kW boost converter in charge of emptying the battery system, while the second is a 1.2 kW buck converter that charges the battery system. These converters also feature regulated output voltages and current restrictions. In addition, the total system includes a 15 kVA, 270 V DC to 200 V AC, 400 Hz inverter system. This inverter system converts DC electricity to alternating current at the appropriate voltage and frequency. These components, which include the PEMFC boost converter, DC/DC converters, and the inverter system, collectively contribute to the hybrid system's efficient operation and power management, ensuring optimal utilization of the various power sources and meeting the application's specific power demands. Average traction forces (Ftr) can be estimated as a function of physical forces exerted on the vehicle body [36] and presented as The fuel cell (FC) regulates explicitly and balances the load demand's average net power. On the other hand, the batteries and supercapacitors are intended to provide additional load support during continuous operation and transient peak demand scenarios. These energy storage devices ensure that the load's power requirements are met consistently, both during regular operation and during surges in power demand. The hybrid power system can efficiently handle variable load situations and optimize overall performance and efficiency by combining the capabilities of the FC and the energy storage devices. Lithium-ion batteries are utilized, with the nominal voltage and rated capacity set at 48 V and 40 Ah, respectively. The battery's initial state of charge is 65%, and its response time is 20 s; for the supercapacitor, the rated capacitance and voltage are 15.6 F and 291.6 V, respectively, with an initial voltage and operating temperature of 270 V and 25 C. The FC in use is a 12.5 kW PEMFC comprising 65 series-connected cells. Its nominal stack efficiency and operating temperature are 50% and 45 • C, respectively. The voltage in the DC link is regulated by the battery converters, which contain a simple PI controller.
One significant difference between energy management systems (EMS) is the method used to calculate the PEMFC reference power. A 12.5 kW PEMFC boost converter is used in this particular installation. This boost converter regulates the output voltage and limits the input current. Two DC/DC converters are used to simplify the integration and operation of the hybrid power system. The first is a 4 kW boost converter in charge of emptying the battery system, while the second is a 1.2 kW buck converter that charges the battery system. These converters also feature regulated output voltages and current restrictions. In addition, the total system includes a 15 kVA, 270 V DC to 200 V AC, 400 Hz inverter system. This inverter system converts DC electricity to alternating current at the appropriate voltage and frequency. These components, which include the PEMFC boost converter, DC/DC converters, and the inverter system, collectively contribute to the hybrid system's efficient operation and power management, ensuring optimal utilization of the various power sources and meeting the application's specific power demands. Average traction forces (F tr ) can be estimated as a function of physical forces exerted on the vehicle body [36] and presented as where F m is the generated force by the motor, F ar is the aerodynamic force, F R is the force of the rolling resistance, and F U is the uphill driving force (in the case of an inclined road).

PEMFC
FC turns hydrogen and oxygen into electricity through an electrochemical reaction, with a proton exchange membrane acting as the electrolyte [37]. The perfluoro sulfonic acid polymer Nafion is frequently used to make the thin, solid polymer electrolyte membrane in PEMFCs [38,39]. While serving as a barrier for electrons and preventing the mixing of reactant gases, this membrane selectively permits the flow of protons (H + ). The high power density, quick startup times, and low operating temperatures of PEMFCs are only a few benefits. They are widely utilized in many applications, such as stationary power generation, portable power systems, and transportation (fuel cell cars). Research and development efforts are still concentrated on PEMFC technology to increase effectiveness, longevity, and affordability for widespread deployment. One of the most often used forms of FC in practical applications is PEMFC, which is used for both stationary and mobile applications as well as transportation applications. For explaining the nonlinearity of the FC, one of the most used PEMFC models is expressed as a function of the Nernst voltage (u Nernset ), activation voltage (v act ), concentration voltage (v con ), and ohmic losses (v ohm ).

Supercapacitor
A supercapacitor, often called an ultracapacitor or an electrochemical capacitor, is a form of energy storage between conventional capacitors and batteries. Unlike chemical reactions, it uses the electrostatic charge principle to store and release electrical energy, allowing quick energy storage and discharge cycles. Utilizing electrostatic charge separation, supercapacitors store electrical energy. They comprise two electrodes, usually two pieces of activated carbon or other porous materials with large surface areas, submerged in an electrolyte solution. At the electrode-electrolyte interfaces, electrical charges build up when a voltage is applied, resulting in a double-layer capacitance. The energy density, overall energy storage capacity, and cost-effectiveness of supercapacitors are still active areas of study and development. They offer special advantages for uses that need high power, quick charge/discharge cycles, and long cycle life.
The authors in [40], state that the equivalent series resistance RS, which stands in for charging/discharging resistance, the capacitance Ccell, which stands in for the SC capacity, and the equivalent parallel resistance RR, which stands in for self-discharge losses, constitute the model of the SC.

Lithium-Ion Battery
There are various electrochemical models for lithium-ion batteries, including the internal resistance battery model, the single RC network battery model (Thevenin model), and the Randles circuit [41]. The Shepherd model [42], is one of the most commonly used models for expressing the electrical aspect. The open circuit voltage (u oc ), polarization voltage losses (v pol ), exponential voltage losses (v exp ), and ohmic losses (v ohm ) can all be used to calculate the battery discharging voltage.

Converters
Both the battery and the SC are coupled to the DC bus in the hybrid power system under discussion via bidirectional DC/DC boost converters. This configuration allows power to flow in either way, allowing the energy storage systems (ESS) to be charged or discharged. Multilevel converters can be used to reduce current fluctuations and improve power quality on the DC bus. These converters contribute to lower ripple and a more consistent power supply to the DC bus. In the case of the fuel cell (FC) case, a multilayer boost converter transfers the power generated by the FC to the DC bus while maintaining low current variations. The multilevel converter architecture is required to safeguard the FC stack from the potentially detrimental effects of current fluctuations, which could shorten its lifespan. The vehicle motor, on the other hand, is powered by a bidirectional DC/AC converter. This converter allows power to flow in both directions, transferring energy from the DC bus to the motor during propulsion and back to the DC bus during regenerative braking. This bidirectional capacity provides efficient energy utilization and braking energy recovery, adding to overall system efficiency. Power flow in the hybrid power system may be successfully managed, current fluctuations can be avoided, and energy can be efficiently utilized throughout the system by using bidirectional converters and multilevel converter structures.

Energy Management Strategies
The design of EMSs has aroused the energy research community's curiosity. According to [27], this interest originates from the ongoing and expanding development of renewable and hybrid power systems and the optimization of EMS technology using sophisticated energy storage devices [43].

PI
The deviation of the battery SoC and the targeted one is sent into the PI, and the PI output is the power of the battery, which is then deducted from the traction system power to yield the FC reference power [44]. When the battery's SoC is more than the reference, the power of the FC is reduced, and the battery delivers its maximum power. When the battery's SoC is lower than the reference, the FC supplies almost all of the motor power. This system is easier than other methods, and the PI improvements are modified in real-time for a better response.

ECMS
The ECMS attempts to minimize consumption of hydrogen and maintain the battery SoC within permitted levels.
The main target of the ECMS is maximizing the power supplied by the bus capacitor and the battery: where ∆T is time of sampling, v is the voltage at charge/discharge, P bat represents the battery power given at ∆T, and C bus represents the supercapacitor capacitance associated with the DC bus. This function has an inequality constraint based on the battery's energy, which depends on its SoC. It can be expressed as follows where the SoC min is the minimum battery SoC level, and V bat and Q bat are the battery nominal voltage and capacity. The DC bus voltage and the battery power should be limited to protect the battery and enhance the power quality. These limitations are expressed as follows: where V min bus and V max bus are the DC bus voltage's lower and upper limits.

Optimized ECMS-Based HHO
HHO is a metaheuristic optimization algorithm inspired by the collective behavior and pursuit strategy of Harris Hawks [35]. Multiple hawks collaborate to pounce on prey from various directions in an attempt to catch it off guard. Harris hawks can pursue in multiple ways depending on the dynamic nature of events and the prey's evasive moves. The HHO simulates these actions mathematically. Figure 2 depicts the major steps of the algorithm. The HHO simulates these actions mathematically. Figure 2 depicts the major steps of the algorithm. The proposed method in this study uses HHO to minimize the ECMS objective function mentioned in Equation (2). The optimization variables are battery power and charge/discharge voltage, including their constraints in Equations (3) and (4), representing the limited search space.

Results and Discussion
The fuel cell (FC) balances the average net power requested by the load in the stated hybrid power system. On the other hand, the batteries and supercapacitors are intended to assist during continuous operation and peak demand periods. The system models are constructed in Matlab/Simulink platforms. These models are created based on the models of each subsystem including the source models, the DC bus, and the tractions system equations as described in Section 2. The system parameters used in the simulation tests are presented in Table 2.  The proposed method in this study uses HHO to minimize the ECMS objective function mentioned in Equation (2). The optimization variables are battery power and charge/discharge voltage, including their constraints in Equations (3) and (4), representing the limited search space.

Results and Discussion
The fuel cell (FC) balances the average net power requested by the load in the stated hybrid power system. On the other hand, the batteries and supercapacitors are intended to assist during continuous operation and peak demand periods. The system models are constructed in Matlab/Simulink platforms. These models are created based on the models of each subsystem including the source models, the DC bus, and the tractions system equations as described in Section 2. The system parameters used in the simulation tests are presented in Table 2.
The voltage and current of the FC are not explicitly stated in the material provided. Battery converters are used to adjust the voltage in the DC link, and they include a simple Proportional-Integral (PI) controller. The PI controller aids in the maintenance of the desired voltage level in the DC link. The method used to obtain the reference power for the PEMFC is one key distinction between the various energy management systems (EMS). A PEMFC boost converter is used in this particular installation. This boost converter regulates the output voltage and limits the input current. In addition, two DC/DC converters are used, one to discharge the battery system (boost converter) and one to charge the battery system (buck converter). These converters also have the ability to limit current and maintain regulated output voltages. The system also includes an inverter system that converts DC electricity to AC power while meeting the voltage and frequency requirements. The Federal Test Procedure (FTP-75), which replicates the city driving cycle, was used in the study. Figure 3 (not given) depicts the speed profile and traction power required by the motor during this drive cycle. The FTP-75 cycle consists of three phases: the transient cold-start phase (0-505 s), the stable phase (506-1372 s), and the transient hot-start phase (1373-2000 s). At the end of the stabilization phase, the vehicle is turned off during the hot-start phase. Therefore, for this reason, this phase is ignored. In this study, the first 120 s of this profile are included. The voltage and current of the FC are not explicitly stated in the material provided. Battery converters are used to adjust the voltage in the DC link, and they include a simple Proportional-Integral (PI) controller. The PI controller aids in the maintenance of the desired voltage level in the DC link. The method used to obtain the reference power for the PEMFC is one key distinction between the various energy management systems (EMS). A PEMFC boost converter is used in this particular installation. This boost converter regulates the output voltage and limits the input current. In addition, two DC/DC converters are used, one to discharge the battery system (boost converter) and one to charge the battery system (buck converter). These converters also have the ability to limit current and maintain regulated output voltages. The system also includes an inverter system that converts DC electricity to AC power while meeting the voltage and frequency requirements. The Federal Test Procedure (FTP-75), which replicates the city driving cycle, was used in the study. Figure 3 (not given) depicts the speed profile and traction power required by the motor during this drive cycle. The FTP-75 cycle consists of three phases: the transient cold-start phase (0-505 s), the stable phase (506-1372 s), and the transient hot-start phase (1373-2000 s). At the end of the stabilization phase, the vehicle is turned off during the hot-start phase. Therefore, for this reason, this phase is ignored. In this study, the first 120 s of this profile are included. The simulations started with the same initial conditions for the battery and SC (battery SoC of 70%, supercapacitor voltage of 270 V). The hydrogen consumption in liters per minute and grams are presented in Figure 4 and Figure 5, respectively. From these curves, The simulations started with the same initial conditions for the battery and SC (battery SoC of 70%, supercapacitor voltage of 270 V). The hydrogen consumption in liters per minute and grams are presented in Figures 4 and 5, respectively. From these curves, the proposed strategy (in the blue line) has the ability to reduce hydrogen consumption and the consumption rate compared to the other considered strategies.    Table 3 demonstrates the comparison results between the different considered ESMs. The comparison revealed the superiority of ECMS-based HHO. The ECMS-based HHO decreases the consumed hydrogen from 80.03 g (using the original ECMS) to 44.78 g. Table 3. Comparison between different considered EMSs.    Table 3 demonstrates the comparison results between the different considered ESMs. The comparison revealed the superiority of ECMS-based HHO. The ECMS-based HHO decreases the consumed hydrogen from 80.03 g (using the original ECMS) to 44.78 g. Table 3. Comparison between different considered EMSs.  Table 3 demonstrates the comparison results between the different considered ESMs. The comparison revealed the superiority of ECMS-based HHO. The ECMS-based HHO decreases the consumed hydrogen from 80.03 g (using the original ECMS) to 44.78 g. In summary, the implementation of ECMS-based HHO showed significant improvements compared to other control strategies, namely PI, ECMS, MRFO, and PSO. First, the ECMS-based HHO system showed significant reductions in hydrogen consumption. It decreased by 19.81% compared to the traditional PI strategy, 44.05% compared to ECMS, 24.23% compared to MRFO, and 29.6% compared to PSO. This significant reduction in hydrogen consumption indicates the effectiveness of the proposed ECMS-based approach in reducing hydrogen consumption and resource management. Moreover, the system's efficiency is considerably improved by using the ECMS-based HHO strategy. It recorded an efficiency improvement of 0.09% over the PI control strategy, 12.07% over the ECMS, 13.02% over the MRFO, and 16.68% over the PSO. These efficiency gains prove the superiority of the ECMS-based HHO approach in achieving more economical and environmentally friendly hydrogen-powered systems. However, it is necessary to consider a trade-off with the battery's state of charge (SoC) when using the ECMS-based HHO method. This resulted in a reduction in SoC of 3.79% compared to the PI strategy, 13.42% compared to the ECMS, 7.5% compared to the MRFO, and 9.64% compared to the PSO strategy. This SoC reduction could be an essential issue to investigate, as it could affect the overall performance and stability of a hydrogen-based system over extended use. The ECMS-based HHO approach showed significant progress when assessing the overall performance index. It improved by 16.11% compared to the PI strategy, 42.7% to the ECMS, 29.75% to MRFO, and 36.65% to PSO.
As illustrated in Figure 6, the fuel cell (FC) covers most of the load with slower dynamics while the battery acts as an energy reservoir, storing excess energy to ensure a stable power supply. FC may take time to reach its desired output. The energy stored in the battery can be discharged during periods of high demand or FC power shortage, which enhances system reliability. However, the fast variations in the load are addressed by the supercapacitor (SC), which is capable of storing and rapidly releasing electrical energy. Figure 7 depicts the SC voltage. The variations in the voltage can be explained by the variations of the absorbed or released power in the DC bus. Its voltage value is 270 V when power generation and demand are balanced. However, SC voltage is quickly discharged during sudden load fluctuations to meet the instantaneous power requirements. Figure 8 presents the FC voltage results obtained from different control strategies. The proposed strategy utilizes the FC with moderate dynamics compared to other approaches. This choice leads to an extended state of health for the fuel cell, promoting durability, efficiency, and cost-effectiveness.
As illustrated in Figure 6, the fuel cell (FC) covers most of the load with slower dynamics while the battery acts as an energy reservoir, storing excess energy to ensure a stable power supply. FC may take time to reach its desired output. The energy stored in the battery can be discharged during periods of high demand or FC power shortage, which enhances system reliability. However, the fast variations in the load are addressed by the supercapacitor (SC), which is capable of storing and rapidly releasing electrical energy.     The battery voltage is illustrated in Figure 9. The battery voltage using the proposed strategy based on the HHO, includes high voltage fluctuations. This can be explained by the fact that the battery system should protect the FC system and reduce its voltage fluctuations. This increases its voltage fluctuations as shown in this figure.  The proposed strategy utilizes the FC with moderate dynamics compared to other approaches. This choice leads to an extended state of health for the fuel cell, promoting durability, efficiency, and cost-effectiveness. The battery voltage is illustrated in Figure 9. The battery voltage using the proposed strategy based on the HHO, includes high voltage fluctuations. This can be explained by the fact that the battery system should protect the FC system and reduce its voltage fluctuations. This increases its voltage fluctuations as shown in this figure.

Conclusions
This paper presents a new energy management strategy for a hybrid fuel cell electric vehicle. The practical contribution of this research lies in introducing an energy management system based on an optimized version of the EEMS through the application of the Harris Hawks Optimizer (HHO). This novel approach aims to enhance the efficiency, fuel saving, and overall performance of hybrid power systems applied to FCEVs. The main goals of this study can be listed as follows: - To create an optimal EMS for FCEV to realize the best power distribution, minimize fuel consumption, and increase electrical efficiency.

-
To improve the External Energy Maximization Strategy (EEMS), the suggested EMS incorporates the Harris Hawks Optimizer (HHO). -A comparison simulation for the city driving cycle was performed to assess the pro-

Conclusions
This paper presents a new energy management strategy for a hybrid fuel cell electric vehicle. The practical contribution of this research lies in introducing an energy management system based on an optimized version of the EEMS through the application of the Harris Hawks Optimizer (HHO). This novel approach aims to enhance the efficiency, fuel saving, and overall performance of hybrid power systems applied to FCEVs. The main goals of this study can be listed as follows: - To create an optimal EMS for FCEV to realize the best power distribution, minimize fuel consumption, and increase electrical efficiency.
-To improve the External Energy Maximization Strategy (EEMS), the suggested EMS incorporates the Harris Hawks Optimizer (HHO). -A comparison simulation for the city driving cycle was performed to assess the proposed EMS using the Federal Test Procedure (FTP-75).
The proposed EMS was tested against classical PI control, ECMS "Equivalent Consumption Minimization Strategy", Particle Swarm Optimization (PSO), and Manta Ray Foraging Optimization (MRFO). The efficiency of the electrical systems and fuel consumption were evaluated. The results showed that the proposed EMS reduced fuel usage by 19.81% when compared to the other methods (PI, ECMS, MRFO, and PSO). Furthermore, overall efficiency increased by 0.09%. This research intends to address the goals of reducing fuel consumption and improving the efficiency of the power system. Given the complexity of the battery State of Charge (SoC), the authors intend to investigate the multi-optimization challenge in future work. Furthermore, evaluating power losses will be critical in optimizing system performance.
The proposed strategy's main limitation is its real-time application implementation. The optimizer needs a very fast calculator to reduce the objective function better. However, with the development in processing technology, this problem can be solved in the near future.