scieee AI-readable full text Open interactive document viewer

Model predictive direct torque control and fuzzy logic energy management for multi power source electric vehicles

Kakouche, Khoudir

Abstract

This paper proposes a novel Fuzzy-MPDTC control applied to a fuel cell battery electric vehicle whose traction is ensured using a permanent magnet synchronous motor (PMSM). On the traction side, model predictive direct torque control (MPDTC) is used to control PMSM torque, and guarantee minimum torque and current ripples while ensuring satisfactory speed tracking. On the sources side, an energy management strategy (EMS) based on fuzzy logic is proposed, it aims to distribute power over energy sources rationally and satisfy the load power demand. To assess these techniques, a driving cycle under different operating modes, namely cruising, acceleration, idling and regenerative braking is proposed. Real-time simulation is developed using the RT LAB platform and the obtained results match those obtained in numerical simulation using MATLAB/Simulink. The results show a good performance of the whole system, where the proposed MPDTC minimized the torque and flux ripples with 54.54% and 77%, respectively, compared to the conventional DTC and reduced the THD of the PMSM current with 53.37%. Furthermore, the proposed EMS based on fuzzy logic shows good performance and keeps the battery SOC within safe limits under the proposed speed profile and international NYCC driving cycle. These aforementioned results confirm the robustness and effectiveness of the proposed control techniques.

Full text

Citation: Kakouche, K.; Rekioua, T.; Mezani, S.; Oubelaid, A.; Rekioua, D.; Blazek, V.; Prokop, L.; Misak, S.; Bajaj, M.; Ghoneim, S.S.M. Model Predictive Direct Torque Control and Fuzzy Logic Energy Management for Multi Power Source Electric Vehicles. Sensors 2022,22, 5669. https:// doi.org/10.3390/s22155669 Academic Editor: Omprakash Kaiwartya Received: 27 June 2022 Accepted: 26 July 2022 Published: 28 July 2022 Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. Copyright: © 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https:// creativecommons.org/licenses/by/ 4.0/). sensors Article Model Predictive Direct Torque Control and Fuzzy Logic Energy Management for Multi Power Source Electric Vehicles Khoudir Kakouche 1, Toufik Rekioua 1, Smail Mezani 2, Adel Oubelaid 1, Djamila Rekioua 1, Vojtech Blazek 3,* , Lukas Prokop 3, Stanislav Misak 3, Mohit Bajaj 4,5 and Sherif S. M. Ghoneim 6 1Laboratoire de Technologie Industrielle et de l’Information, Facultéde Technologie, Universitéde Bejaia, Bejaia 06000, Algeria; khoudir[email protected] (K.K.); [email protected] (T.R.); [email protected] (A.O.); [email protected] (D.R.) 2Universitéde Lorraine, GREEN, F-54000 Nancy, France; [email protected] 3ENET Centre, VSB—Technical University of Ostrava, 708 00 Ostrava, Czech Republic; [email protected] (L.P.); stanislav[email protected] (S.M.) 4Department of Electrical Engineering, National Institute of Technology, Delhi 110040, India; [email protected] 5Department of Electrical Engineering, Graphic Era (Deemed to be University), Dehradun 248002, India 6Department of Electrical Engineering, College of Engineering, Taif University, P.O. Box 11099, Taif 21944, Saudi Arabia; [email protected] *Correspondence: [email protected] Abstract: This paper proposes a novel Fuzzy-MPDTC control applied to a fuel cell battery electric vehicle whose traction is ensured using a permanent magnet synchronous motor (PMSM). On the traction side, model predictive direct torque control (MPDTC) is used to control PMSM torque, and guarantee minimum torque and current ripples while ensuring satisfactory speed tracking. On the sources side, an energy management strategy (EMS) based on fuzzy logic is proposed, it aims to distribute power over energy sources rationally and satisfy the load power demand. To assess these techniques, a driving cycle under different operating modes, namely cruising, acceleration, idling and regenerative braking is proposed. Real-time simulation is developed using the RT LAB platform and the obtained results match those obtained in numerical simulation using MATLAB/Simulink. The results show a good performance of the whole system, where the proposed MPDTC minimized the torque and flux ripples with 54.54% and 77%, respectively, compared to the conventional DTC and reduced the THD of the PMSM current with 53.37%. Furthermore, the proposed EMS based on fuzzy logic shows good performance and keeps the battery SOC within safe limits under the proposed speed profile and international NYCC driving cycle. These aforementioned results confirm the robustness and effectiveness of the proposed control techniques. Keywords: fuzzy logic; model predictive direct torque control; fuel cell; battery; permanent magnet synchronous motor; electric vehicle 1. Introduction The use of electric vehicles (EVs) in the transportation sector has become a necessity in the last decade to deal with the energy crisis and environmental pollution problems, as they offer many advantages such as high efficiency, no carbon dioxide emissions, low maintenance, and no pollution [ 1 ]. EVs are mainly composed of fuel cells, supercapacitors, and batteries for the energy supply and storage part, as well as an electric motor for the traction part. As it is known, achieving the best performance EVs, requires an adapted EMS, to effectively regulate the flow of power between the different sources [ 2 ]. High-efficiency electric motors assisted by high-accuracy controllers are also still needed [3]. A proton exchange membrane fuel cell (PEMFC) is a promising source used to power vehicles due to its small size, low operating temperature, fast start-up, and high efficiency [ 4 ]. To overcome the drawback of slow dynamic response and to implement energy Sensors 2022,22, 5669. https://doi.org/10.3390/s22155669 https://www.mdpi.com/journal/sensors Sensors 2022,22, 5669 2 of 22 recovery, it is necessary to integrate energy storage sources, such as a supercapacitor and/or a Li-ion battery [ 5 , 6 ]. EMS is very important to manage energy allocation effectively, and its choice should be deeply investigated. In this context, several methods in the recent literature have been studied and evaluated, such as optimization methods, filter-based methods, controller methods, and rule-based methods. Optimization-based strategies that include Model Predictive Control [ 7 ], Grey Wolf Optimizer [ 8 ], Particle Swarm Optimization [ 9 ], etc, have been investigated in order to deal with complex management objectives (efficiency, cost, lifetime, etc). On the other hand, these strategies are complex and impose an important computation burden. Further filter-based EMSs can be found in the literature, including Low-Pass filters [ 10 ], and Wavelet Transform [ 11 ]. The filter-based management strategy aims to divide the required power into highand low-frequency power as this strategy can improve the lifetime of the PEMFC stack. Nevertheless, the performance of the two EMSs depends strongly on the design of the filter which is a complicated task to be performed. Controller methods such as Backstepping [ 12 ], Passivity Control [ 13 ], Proportional-Integral Control [ 14 ], Sliding Control [ 15 ], etc, can obtain an exact calculation of the reference while taking into account the losses of the system. Rule-based strategies are mainly Fuzzy Logic, Artificial Neural Network [ 16 ], and State Machine [ 17 ]. Fuzzy logic-based EMS is widely used in fuel cell hybrid power systems [18–22]. This technique has the advantage to provide high performance and supporting imprecise system modeling. For these reasons, this technique is adopted in the current work. Permanent magnet synchronous motors are widely considered the best type of electric motors that can be used to drive EVs. This is due primarily to their high efficiency, high power density, lightweight, and wide speed range [ 23 ]. With proper torque control, they can easily meet all of the vehicle requirements. Many torque control strategies, such as Field-Oriented Control (FOC) and Direct Torque Control (DTC), have been extensively researched in the literature [ 24 , 25 ]. DTC has a simple control structure and provides a fast dynamic torque response [ 26 ]. However, because it is based on hysteresis comparators, this technique has some drawbacks such as important torque, flux ripples, and variable switching frequency. Many methods have been proposed to mitigate these drawbacks. In [ 27 ], the authors proposed a strategy named Space Vector Modulation DTC (SVMDTC) based on a constant switching frequency, and the results showed good performance. However, this strategy requires a precise design of the PI controller and system parameters. In [ 28 ], a multilevel inverter was used, which increases the number of voltage vectors. The simulation results indicated good performances by reducing torque and flux ripples. Nevertheless, issues with complexity and switching losses appeared. Fuzzy logic and artificial neural networks are also used as artificial intelligence controllers [ 29 , 30 ]. Authors in [ 31 – 34 ] have proposed a Model Predictive Direct Torque Control strategy that is based on predicting the control variables such as flux and torque while minimizing the error of the predicted control variables; this improves control accuracy while maintaining the control system’s simplicity. To cope with the aforementioned challenges and improve EV, two control strategies are proposed in this work. The first one is based on fuzzy logic, applied to the Li-ion battery-PEMFC hybrid power system. The second one is based on torque predictive control applied to the PMSM. Results obtained using Matlab/Simulink and those obtained using a RT LAB simulator have clearly shown the effectiveness of the proposed control techniques under different driving modes (cruising, acceleration, idling, and regenerative braking). In order to properly situate this work, the main contributions made through this paper are: • An adequate EMS strategy based on fuzzy logic control is developed to ensure vehicle propulsion power and to regulate efficiently the energy flow of the power sources. • A model predictive direct torque control strategy is proposed to control the vehicle traction machine with the objective of minimizing torque and flux ripples and ensuring satisfactory speed tracking. • A detailed physical model of the EV (the vehicle dynamics system, the electric power system, and control system) is established under Matlab/Simulink environment. Sensors 2022,22, 5669 3 of 22 • Real-time simulation using the RT LAB platform is performed to confirm the obtained simulation results. The results obtained using Matlab/Simulink as well as the experimental ones obtained using the RT LAB simulator are presented, and the main conclusion of this work summarizes and proves proposed strategies. 2. Electric Vehicle Description and Modeling The EV general configuration is shown in Figure 1. It consists of a hydrogen tank with a flow regulator, a PEMFC stack as a primary power source, a Li-ion battery as a secondary power source, a PMSM, and a control system. The entire VE system’s construction can be divided into two parts: Sensors2022,22,56693of23    AnadequateEMSstrategybasedonfuzzylogiccontrolisdevelopedtoensurevehi‐ clepropulsionpowerandtoregulateefficientlytheenergyflowofthepowersources.  Amodelpredictivedirecttorquecontrolstrategyisproposedtocontrolthevehicle tractionmachinewiththeobjectiveofminimizingtorqueandfluxripplesandensur‐ ingsatisfactoryspeedtracking.  AdetailedphysicalmodeloftheEV(thevehicledynamicssystem,theelectricpower system,andcontrolsystem)isestablishedunderMatlab/Simulinkenvironment.  Real‐timesimulationusingtheRTLABplatformisperformedtoconfirmtheob‐ tainedsimulationresults. TheresultsobtainedusingMatlab/Simulinkaswellastheexperimentalonesob‐ tainedusingtheRTLABsimulatorarepresented,andthemainconclusionofthiswork summarizesandprovesproposedstrategies. 2.ElectricVehicleDescriptionandModeling TheEVgeneralconfigurationisshowninFigure1.Itconsistsofahydrogentank withaflowregulator,aPEMFCstackasaprimarypowersource,aLi‐ionbatteryasa secondarypowersource,aPMSM,andacontrolsystem.TheentireVEsystem’sconstruc‐ tioncanbedividedintotwoparts: Onthesourcesside,theflowrateregulatoradjuststhepowerofthePEMFCstack andregulatesthepressureofthehydrogenflow.ThePEMFCstackisconnectedtotheDC busvoltageviaaunidirectionalin‐currentDC‐DCboostconvertertoDCbusvoltage.The excessiveelectricitygeneratedbythePEMFCstackisusedtochargethebattery.TheLi‐ ionbatteryisconnectedtotheDCbusvoltageviaabidirectionalDC‐DCbuck‐boostcon‐ vertertorecoverthebrakingenergyandsupplypower. Onthetractionside,PMSMof50kWratedpower,fedbyatwo‐levelinverter,con‐ vertstheelectricpowercomingfromthetwopowersourcesintomechanicalpower. Thecontrolsystemintegratesthecontrolofbothtractionmachineandpower sources.  Figure1.Electricvehicleconfiguration.  Figure 1. Electric vehicle configuration. On the sources side, the flow rate regulator adjusts the power of the PEMFC stack and regulates the pressure of the hydrogen flow. The PEMFC stack is connected to the DC bus voltage via a unidirectional in-current DC-DC boost converter to DC bus voltage. The excessive electricity generated by the PEMFC stack is used to charge the battery. The Li-ion battery is connected to the DC bus voltage via a bidirectional DC-DC buck-boost converter to recover the braking energy and supply power. On the traction side, PMSM of 50 kW rated power, fed by a two-level inverter, converts the electric power coming from the two power sources into mechanical power. The control system integrates the control of both traction machine and power sources. 2.1. Fuel-Cell Model The voltage of the PEMFC stack VFC is given by [18,35]: VFC =E−RIFC (1) E=EOC −NA lnIFC i0·1 sTd 3+1(2) where VFC and IFC are the voltage and current of the PEMFC stack, respectively, R is the internal resistance, EOC is the open circuit voltage, i0 is the exchange current, N , A and Td are the cells number, the tafel slope, and the response time, respectively. EOC , i0 and A are given by: EOC =KCEN(3) Sensors 2022,22, 5669 4 of 22 i0=zFkPH2+PO2 Rh e−∆G RT (4) A=RT zαF(5) where KC and EN are the voltage constant at nominal condition of operation and Nernst voltage respectively, z is the number of moving electrons (z=2) , F , R , k , h and T are the Faraday’s constant, the ideal gas constant, the Boltzmann’s constant, the Planck’s constant and the temperature of operation respectively, ∆G is the activation energy barrier, and α is the charge transfer coefficient. The PEMFC stack includes hydrogen controller and oxygen controller, which regulate the flows rate of H2 and O2 , respectively. The utilization rates of H2 and O2 are calculated as: U fH2=60000RTNIFC zFPf uelVf uel x%(6) U fo2=60000RTNIFC 2zFPairVairy%(7) where Pf uel and Pair are the absolute supply pressure of fuel and absolute air, respectively, Vf uel and Vair are the fuel flow rate and the air flow rate, respectively, x % and y % are the percentage of H2in the fuel and O2in the oxidant, respectively. The parameters of the used PEMFC stack are given in Table 1. Table 1. PEMFC stack parameters. Parameter Value Unite Nominal power 50 kW Peak power 60 kW Number of cells 358 Cell Nominal stack efficiency 55 % Operating temperature 65 ◦C Nominal Air flow rate 2100 Ipm Fuel supply pressure 1.5 bar Air supply pressure 1 bar 2.2. Battery Model Li-ion batteries are used in this work due to their high energy density, high efficiency, and long lifetime when compared to other battery types such as (NiCd, lead-acid, or NiMH) [36]. The Li-ion battery voltage can be calculated using two different equations [36,37]. Vdischarge=E0−R·i−KQ Q−it ·(it +i∗) + Aexp(−B·it)(8) Vcharge=E0−R·i−KQ it −0.1Q·i∗−KQ Q−it ·it +Aexp(−B·it)(9) where R , K , Q , E0 , it , i∗ , A and B are the Li-ion battery internal resistance, the polarization constant, the Li-ion battery capacity, the Li-ion battery constant voltage, the actual Li-ion battery charge, the filtered Li-ion battery current, the exponential zone amplitude, and the exponential zone time constant inverse, respectively. The Li-ion battery state of charge can be determined using Equation (10). SOCbat =1001−Zi(t)dt Q(10) Sensors 2022,22, 5669 5 of 22 2.3. Permanent Magnet Synchronous Motor Model The mathematical model of PMSM in the d-q rotor reference frame can be expressed as follows in Equations (11) and (12) [23]: Vsd =RsIsd +dφsd dt +ωφsq (11) Vsq =RsIsq +dφsq dt +ωφsd (12) where the totalized flux φsd and φsq are given by: φsd =Lsd Isd +φf(13) φsq =Lsq Isq (14) The electromagnetic torque expression is given by Equation (15): Te=3 2pIsq(Lsd −Lsd)Isd +φf(15) The PMSM mechanical equation is given by: JdΩ dt =Te−Tr−fΩ(16) The estimations of the torque, flux, and the load angle can be expressed by the following set of equations: ∧ Te=3 2pIsqφsd −Isdφsq(17) ∧ φs=q(φsd)2+φsq2(18) ∧ θ=tan−1φsq φsd (19) Motor parameters [38] are summarized in Table 2. Table 2. PMSM parameters. Parameter Value Unite Rated power (Pr)50 kW DC voltage (Vdc )500 V Stator resistance (Rs)0.0065 Ω Stator inductance (Ld,Lq)8.35 mH PM magnetic flux (φf)0.17566143 Wb Number of pole pairs (p) 4 - Motor inertia (J) 0.089 kg·m2 Viscous damping (f) 0.005 N·m·s 2.4. Vehicle Dynamics System The dynamic model of the electrical vehicle is depicted in Figure 2. The entire mechanical part (longitudinal vehicle dynamics, viscous friction, differential, tires, and reduction gear) of the vehicle dynamic system is modeled by Souleman Njoya Motapon and Louis-A. Dessaint [ 35 ]. The longitudinal vehicle dynamics block takes into account body mass, aerodynamic drag, and weight distribution between axles. Meanwhile, wind speed and road inclination are not considered in this model. Sensors 2022,22, 5669 6 of 22 Sensors2022,22,56696of23   Table2.PMSMparameters. ParameterValueUnite Ratedpower(𝑷𝒓)50kW DCvoltage(𝑽𝒅𝒄)500V Statorresistance(𝑹𝒔)0.0065Ω Statorinductance(𝑳𝒅,𝑳𝒒)8.35mH PMmagneticflux(𝝓 𝒇 )0.17566143Wb Numberofpolepairs(p)4‐ Motorinertia(J)0.089kg∙m 2  Viscousdamping(f)0.005N∙m∙s 2.4.VehicleDynamicsSystem ThedynamicmodeloftheelectricalvehicleisdepictedinFigure2.Theentireme‐ chanicalpart(longitudinalvehicledynamics,viscousfriction,differential,tires,andre‐ ductiongear)ofthevehicledynamicsystemismodeledbySoulemanNjoyaMotaponand Louis‐A.Dessaint[35].Thelongitudinalvehicledynamicsblocktakesintoaccountbody mass,aerodynamicdrag,andweightdistributionbetweenaxles.Meanwhile,windspeed androadinclinationarenotconsideredinthismodel. Theparametersoftheusedvehicle[38]aregiveninTable3. Table3.Electricvehicleparameters. ParameterValueUnite Vehicletotalmass󰇛𝑴󰇜 1325kg Gearratioofthefinaldrive󰇛𝑮󰇜 5.2‐ Numberofwheelsperaxle2‐ Frontalarea( 𝑨 𝒇 )2.57m 2  Tireradius(r)0.3m Dragcoefficient(𝑪𝒅)0.3‐  Figure2.Vehicledynamicssystem. 3.SystemControl 3.1.EnergyManagementStrategy Tosatisfytheloadpowerdemandandtoensureanefficientpowerdistributionof theelectricvehiclepowersystem,anappropriateEMSisrequired[2].Theseobjectivescan onlybemetbycontrollingthepowerresponseofeachenergysourceaccordingtotheload Figure 2. Vehicle dynamics system. The parameters of the used vehicle [38] are given in Table 3. Table 3. Electric vehicle parameters. Parameter Value Unite Vehicle total mass (M)1325 kg Gear ratio of the final drive (G)5.2 - Number of wheels per axle 2 - Frontal area (Af)2.57 m2 Tire radius (r) 0.3 m Drag coefficient (Cd)0.3 - 3. System Control 3.1. Energy Management Strategy To satisfy the load power demand and to ensure an efficient power distribution of the electric vehicle power system, an appropriate EMS is required [ 2 ]. These objectives can only be met by controlling the power response of each energy source according to the load demand. We used a fuzzy logic control-based EMS because it is flexible, efficient, and works well without exact mathematical models. 3.1.1. Input and Output Parameters The inputs parameters of the fuzzy logic controller are the Li-ion battery state-ofcharge SOC and the load power (Pload) obtained by multiplying the motor speed and the required motor torque, and the output parameter is the reference power of the fuel cell, as illustrated in Figure 3. Sensors2022,22,56697of23   demand.Weusedafuzzylogiccontrol‐basedEMSbecauseitisflexible,efficient,and workswellwithoutexactmathematicalmodels. 3.1.1.InputandOutputParameters TheinputsparametersofthefuzzylogiccontrolleraretheLi‐ionbatterystate‐of‐ chargeSOCandtheloadpower(Pload)obtainedbymultiplyingthemotorspeedandthe requiredmotortorque,andtheoutputparameteristhereferencepowerofthefuelcell, asillustratedinFigure3. ThefuzzysetforLi‐ionbatterySOCisdividedinto“Low”(L),“Medium”(M),and “High”(H).ThefuzzysetforPloadisalsodividedinto“Negative”(N),“VeryLow”(VL), L,M,H,“VeryHigh”(VH),indicatingthepowerdemandfromlowtohighlevels.The fuzzysetforPfcisclassifiedas“Zero”(ZE),VL,L,M,H,VH.Thegapbetween(ZE)and (VL)ofPfcinFigure4cisthefuelcellsystem’slow‐efficiencyzone(includingthecooling fan,humidifier,andotheraccessories),thereforethePEMFCstackshouldnotoperatein thisrange.Thetriangularandtrapezoidalmembershipfunctions(MFs)areusedinthis caseasshowninFigure4.Thechoiceofthetriangularandtrapezoidalshapesistoreduce thevariationsinthegeneratedpowerreference.  Figure3.Theblockdiagramofthefuzzylogic‐basedenergymanagementstrategy.  (a)(b)  (c) µ (SOC) µ (Pfc) Figure 3. The block diagram of the fuzzy logic-based energy management strategy. Sensors 2022,22, 5669 7 of 22 The fuzzy set for Li-ion battery SOC is divided into “Low” (L), “Medium” (M), and “High” (H). The fuzzy set for Pload is also divided into “Negative” (N), “Very Low” (VL), L, M, H, “Very High” (VH), indicating the power demand from low to high levels. The fuzzy set for Pfc is classified as “Zero” (ZE), VL, L, M, H, VH. The gap between (ZE) and (VL) of Pfc in Figure 4c is the fuel cell system’s low-efficiency zone (including the cooling fan, humidifier, and other accessories), therefore the PEMFC stack should not operate in this range. The triangular and trapezoidal membership functions (MFs) are used in this case as shown in Figure 4. The choice of the triangular and trapezoidal shapes is to reduce the variations in the generated power reference. Sensors2022,22,56697of23   demand.Weusedafuzzylogiccontrol‐basedEMSbecauseitisflexible,efficient,and workswellwithoutexactmathematicalmodels. 3.1.1.InputandOutputParameters TheinputsparametersofthefuzzylogiccontrolleraretheLi‐ionbatterystate‐of‐ chargeSOCandtheloadpower(Pload)obtainedbymultiplyingthemotorspeedandthe requiredmotortorque,andtheoutputparameteristhereferencepowerofthefuelcell, asillustratedinFigure3. ThefuzzysetforLi‐ionbatterySOCisdividedinto“Low”(L),“Medium”(M),and “High”(H).ThefuzzysetforPloadisalsodividedinto“Negative”(N),“VeryLow”(VL), L,M,H,“VeryHigh”(VH),indicatingthepowerdemandfromlowtohighlevels.The fuzzysetforPfcisclassifiedas“Zero”(ZE),VL,L,M,H,VH.Thegapbetween(ZE)and (VL)ofPfcinFigure4cisthefuelcellsystem’slow‐efficiencyzone(includingthecooling fan,humidifier,andotheraccessories),thereforethePEMFCstackshouldnotoperatein thisrange.Thetriangularandtrapezoidalmembershipfunctions(MFs)areusedinthis caseasshowninFigure4.Thechoiceofthetriangularandtrapezoidalshapesistoreduce thevariationsinthegeneratedpowerreference.  Figure3.Theblockdiagramofthefuzzylogic‐basedenergymanagementstrategy.  (a)(b)  (c) µ (SOC) µ (Pfc) Figure 4. Membership functions: ( a ) input parameter (SOC); ( b ) input parameter (Pload); ( c ) output parameter (Pfc). 3.1.2. Fuzzy Inference Rules The fuzzy logic rules corresponding to this energy management are designed and presented in Table 4. The choice of the rules is according to the desired operation on the PEMFC stack. For example, when the SOC of the Li-ion battery is low and the power demanded by the vehicle is very high, then the power that the PEMFC stack must provide will be very high. In the same way, the PEMFC stack provides a power that is lower than the power demand when the Li-ion battery is highly charged because in this case, the Li-ion battery must be solicited to reduce it to a medium charge in order to take advantage of the energy recovery from braking. Based on this general idea, the choice of these rules remains arbitrary according to the desired functioning, while respecting the response time of the two sources. The SOC of the Li-ion battery should be maintained between 30% and 80%. This procedure prevents deep discharging and overcharging, which can reduce the lifespan of a Li-ion battery. The fuzzy rules surface is shown in Figure 5. Sensors 2022,22, 5669 8 of 22 Table 4. Energy management fuzzy logic rules. Pfc Pload N VL L M H VH SOC LZE L M H VH VH MZE ZE VL L M H HZE ZE ZE VL VL L Sensors2022,22,56698of23   Figure4.Membershipfunctions:(a)inputparameter(SOC);(b)inputparameter(Pload); (c)outputparameter(Pfc). 3.1.2.FuzzyInferenceRules Thefuzzylogicrulescorrespondingtothisenergymanagementaredesignedand presentedinTable4.Thechoiceoftherulesisaccordingtothedesiredoperationonthe PEMFCstack.Forexample,whentheSOCoftheLi‐ionbatteryislowandthepowerde‐ mandedbythevehicleisveryhigh,thenthepowerthatthePEMFCstackmustprovide willbeveryhigh.Inthesameway,thePEMFCstackprovidesapowerthatislowerthan the powerdemandwhentheLi‐ionbatteryishighlychargedbecausein thiscase,theLi‐ionbatterymustbesolicitedtoreduceittoamedium charge inordertotakeadvantageoftheenergyrecoveryfrombraking.Basedonthisgeneral idea,thechoiceoftheserulesremainsarbitraryaccordingtothedesiredfunctioning, whilerespectingtheresponsetimeofthetwosources.TheSOCoftheLi‐ionbattery shouldbemaintainedbetween30%and80%.Thisprocedurepreventsdeepdischarging andovercharging,whichcanreducethelifespanofaLi‐ionbattery.Thefuzzyrulessur‐ faceisshowninFigure5. TheproposedfuzzylogiccontrollerusestheMamdaniinferenceprocedure,withthe centroidmethodfordefuzzification[36]. Table4.Energymanagementfuzzylogicrules. P fc P load  NVLLMHVH SOC LZELMHVHVH MZEZEVLLMH HZEZEZEVLVLL  Figure5.Fuzzylogiccontrolsurface. 3.2.DCBusVoltageRegulationandPEMFCStackConverterControl TheelectricalenergysourcesusedtosupplytheEVmustbewellcontrolledviathe convertersbyregulatingtheircurrentsand/oroutputvoltages.Theconvertersconnected totheenergysourcescontroltheoutputpowerandvoltage[39].TheregulationoftheDC busvoltageandthecontrolofthePEMFCstackpowerarepresentedinFigure6.PEMFC stackandLi‐ionbatteryare,respectively,connectedtotheDCbusviaunidirectionaland bidirectionalDC‐DCconverters.Thepowermanagementblockgeneratesthereference current𝐼 ∗whichhastobelimitedinaslopeinordertorespecttheconstraintsrelated tothePEMFCstackdynamics.APIcontrollerisusedtocontrolthePEMFCstackpower byadjustingthecurrenttoitsreferencevalue𝐼 ∗.TheLi‐ionbatteryregulatestheDCbus Figure 5. Fuzzy logic control surface. The proposed fuzzy logic controller uses the Mamdani inference procedure, with the centroid method for defuzzification [36]. 3.2. DC Bus Voltage Regulation and PEMFC Stack Converter Control The electrical energy sources used to supply the EV must be well controlled via the converters by regulating their currents and/or output voltages. The converters connected to the energy sources control the output power and voltage [ 39 ]. The regulation of the DC bus voltage and the control of the PEMFC stack power are presented in Figure 6. PEMFC stack and Li-ion battery are, respectively, connected to the DC bus via unidirectional and bidirectional DC-DC converters. The power management block generates the reference current I∗ FC which has to be limited in a slope in order to respect the constraints related to the PEMFC stack dynamics. A PI controller is used to control the PEMFC stack power by adjusting the current to its reference value I∗ FC . The Li-ion battery regulates the DC bus voltage by tracking the reference voltage VDC_re f . A double PI regulation loop is used to maintain the DC bus voltage close to its reference and to control the Li-ion battery power. Sensors 2022,22, 5669 9 of 22 Sensors2022,22,56699of23   voltagebytrackingthereferencevoltage𝑉_.AdoublePIregulationloopisusedto maintaintheDCbusvoltageclosetoitsreferenceandtocontroltheLi‐ionbatterypower.  Figure6.DCbusvoltageregulation,Li‐ionBatteryconvertercontrol,andPEMFCstackconverter control. 3.3.ModelPredictiveDirectTorqueControl Themodelpredictivedirecttorquecontrolstrategybasicprincipleistopredictthe systemfuturebehaviorovertimeusingthePMSMmodel[33].Thisstrategyisusedto controlboththefluxandtorqueofthePMSMintheEVsystem.Thenumericalimplemen‐ tationoftheMPDTCalgorithmforPMSMintheEVcanbedividedintotwosteps.Step1 istopredictthecontrolledvariables,andthesecondstepistoselectthevoltagevectorto beappliedinthenextsamplingtime.Todeterminethebestvoltagevectortouseinthe nextsamplingtime,acostfunctionisconstructed.Theoptimalvoltagevectorischosen basedontheobjectiveswiththeminimumerror,resultinginreducedripples.InMPDTC, thecontrolledvariablesarepredictedusingForwardEulerapproximation[40]. TheblockdiagramandtheflowchartofMPDTCareillustratedinFigures7and8.  Figure7.TheproposedMPDTCscheme. Figure 6. DC bus voltage regulation, Li-ion Battery converter control, and PEMFC stack converter control. 3.3. Model Predictive Direct Torque Control The model predictive direct torque control strategy basic principle is to predict the system future behavior over time using the PMSM model [ 33 ]. This strategy is used to control both the flux and torque of the PMSM in the EV system. The numerical implementation of the MPDTC algorithm for PMSM in the EV can be divided into two steps. Step 1 is to predict the controlled variables, and the second step is to select the voltage vector to be applied in the next sampling time. To determine the best voltage vector to use in the next sampling time, a cost function is constructed. The optimal voltage vector is chosen based on the objectives with the minimum error, resulting in reduced ripples. In MPDTC, the controlled variables are predicted using Forward Euler approximation [40]. The block diagram and the flowchart of MPDTC are illustrated in Figures 7and 8. Sensors2022,22,56699of23   voltagebytrackingthereferencevoltage𝑉_.AdoublePIregulationloopisusedto maintaintheDCbusvoltageclosetoitsreferenceandtocontroltheLi‐ionbatterypower.  Figure6.DCbusvoltageregulation,Li‐ionBatteryconvertercontrol,andPEMFCstackconverter control. 3.3.ModelPredictiveDirectTorqueControl Themodelpredictivedirecttorquecontrolstrategybasicprincipleistopredictthe systemfuturebehaviorovertimeusingthePMSMmodel[33].Thisstrategyisusedto controlboththefluxandtorqueofthePMSMintheEVsystem.Thenumericalimplemen‐ tationoftheMPDTCalgorithmforPMSMintheEVcanbedividedintotwosteps.Step1 istopredictthecontrolledvariables,andthesecondstepistoselectthevoltagevectorto beappliedinthenextsamplingtime.Todeterminethebestvoltagevectortouseinthe nextsamplingtime,acostfunctionisconstructed.Theoptimalvoltagevectorischosen basedontheobjectiveswiththeminimumerror,resultinginreducedripples.InMPDTC, thecontrolledvariablesarepredictedusingForwardEulerapproximation[40]. TheblockdiagramandtheflowchartofMPDTCareillustratedinFigures7and8.  Figure7.TheproposedMPDTCscheme. Figure 7. The proposed MPDTC scheme. Sensors 2022,22, 5669 16 of 22 Figures 15 and 16 clearly show that the EMS based on fuzzy logic ensures a convenient power flow and gives good performance with the changes in driving conditions, and battery states of charge. Driving Cycle Test The New York City Cycle (NYCC) driving cycle is adopted to analyze the performance of the proposed EMS based on fuzzy logic. Three different scenarios are defined to test the performance of EV under different states of charge of the Li-ion battery. The three scenarios are as follows: Scenario 1: the initial SOC of the Li-ion battery is 60% when starting. Scenario 2: the initial SOC of the Li-ion battery at startup is 80%. Scenario 3: the initial SOC of the Li-ion battery is 30%. Figure 17 shows the power curves for the PEMFC stack, Li-ion battery, motor, and Li-ion battery SOC in scenario 1. It can be seen in Figure 17a, that the PEMFC stack does not operate in the low power range [0–5 kW] and becomes active in the high power demand where the efficiency of the PEMFC system is relatively high. The Li-ion battery is configured to provide all the charging power in the low power demand range, assist the fuel cell in the high power demand range, and absorb the braking energy when the vehicle decelerates. The final SOC value of the Li-ion battery in this scenario is 59.5%, as seen in Figure 17a. Sensors 2022, 22, 5669 17 of 23 (a) (b) Figure 17. The performance of the EV under NYCC driving cycle in Scenario 1: (a) power curves; (b) Li-ion battery SOC curve. (a) (b) Figure 18. The performance of the EV under NYCC driving cycle in Scenario 2: (a) power curves; (b) Li-ion battery SOC curve. (a) (b) Figure 19. The performance of the EV under NYCC driving cycle in Scenario 3: (a) power curves; (b) Li-ion battery SOC curve. Figure 17. The performance of the EV under NYCC driving cycle in Scenario 1: ( a ) power curves; (b) Li-ion battery SOC curve. Figure 18 shows the power curves and the SOC of the Li-ion battery in the second scenario. As seen in Figure 18a, the Li-ion battery is regulated to provide a large amount of power to protect it from overcharging, and the PEMFC stack intervenes in the high power demand. The Li-ion battery SOC decreases from 80% to 74% as shown in Figure 18b. Sensors 2022, 22, 5669 17 of 23 (a) (b) Figure 17. The performance of the EV under NYCC driving cycle in Scenario 1: (a) power curves; (b) Li-ion battery SOC curve. (a) (b) Figure 18. The performance of the EV under NYCC driving cycle in Scenario 2: (a) power curves; (b) Li-ion battery SOC curve. (a) (b) Figure 19. The performance of the EV under NYCC driving cycle in Scenario 3: (a) power curves; (b) Li-ion battery SOC curve. Figure 18. The performance of the EV under NYCC driving cycle in Scenario 2: ( a ) power curves; (b) Li-ion battery SOC curve. Sensors 2022,22, 5669 17 of 22 Figure 19a shows the power curves in the third scenario. The fuel cell is operated to provide power for the load and charge the Li-ion battery to protect it from deep discharges. The Li-ion battery SOC increases from 30% to 46.5%, as shown in Figure 19b. Sensors 2022, 22, 5669 17 of 23 (a) (b) Figure 17. The performance of the EV under NYCC driving cycle in Scenario 1: (a) power curves; (b) Li-ion battery SOC curve. (a) (b) Figure 18. The performance of the EV under NYCC driving cycle in Scenario 2: (a) power curves; (b) Li-ion battery SOC curve. (a) (b) Figure 19. The performance of the EV under NYCC driving cycle in Scenario 3: (a) power curves; (b) Li-ion battery SOC curve. Figure 19. The performance of the EV under NYCC driving cycle in Scenario 3: ( a ) power curves; (b) Li-ion battery SOC curve. The results show that the proposed energy management strategy based on fuzzy logic is robust and could improve the efficiency of the PEMFC stack, mainly because this proposed EMS makes the PEMFC stack operate in the high-efficiency region. 5. Real-Time Platform Using RT-LAB The real-time simulation of the proposed control is implemented in this section using the discrete real-time simulator, the RT LAB platform. Figure 20a depicts the real-time simulation bench set up in the LTII laboratory of Bejaia, which consists of the following components: (1) a host PC, (2) an OP5700 real-time digital simulator, (3) a HIL controller and data acquisition interface OP8660, and (4) a digital oscilloscope. As it is shown in Figure 20b, the first step toward real-time simulation is the model separation. The EV system is split into computation and console blocks. Blocks that contain computations such as energy management strategy, MPDTC, vehicle dynamics, motor and power sources models are placed on the computation subsystem, which is constituted of a master (SM) bloc highlighted with red dashed lines and a slave (SS) block. Scopes and constants are placed in the console block. In RT-LAB, each computation subsystem is assigned to a different core. In other words, each subsystem is coded in C and built for execution among its processors using Mathworks code generator Real-Time-Workshop (RTW) [ 43 ]. After compilation, the code is loaded into target OP5700 via TCP/IP protocol and executed via parallel processing. Finally, all observations in display blocks are monitored and displayed on the digital oscilloscope via I/O channels. A real-time simulation was performed after the EV simulation system was decomposed and adapted for use in the RT LAB platform. In order to evaluate the two techniques proposed in this work, namely the MPDTC on the motor side, and the EMS based on fuzzy logic on the source side, a driving cycle under different operating modes has been applied (Figure 9). Figures 21–24 present experimental results of the two techniques proposed. The results obtained using a discrete real-time simulator RT LAB are very close to the simulation results with the same remarks previously mentioned in the simulation results. Experimental results prove the effectiveness of the proposed control techniques. Sensors 2022,22, 5669 18 of 22 Sensors2022,22,566918of23   5.Real‐TimePlatformUsingRT‐LAB Thereal‐timesimulationoftheproposedcontrolisimplementedinthissectionusing thediscretereal‐timesimulator,theRTLABplatform.Figure20adepictsthereal‐time simulationbenchsetupintheLTIIlaboratoryofBejaia,whichconsistsofthefollowing components:(1)ahostPC,(2)anOP5700real‐timedigitalsimulator,(3)aHILcontroller anddataacquisitioninterfaceOP8660,and(4)adigitaloscilloscope.Asitisshownin Figure20b,thefirststeptowardreal‐timesimulationisthemodelseparation.TheEVsys‐ temissplitintocomputationandconsoleblocks.Blocksthatcontaincomputationssuch asenergymanagementstrategy,MPDTC,vehicledynamics,motorandpowersources modelsareplacedonthecomputationsubsystem,whichisconstitutedofamaster(SM) blochighlightedwithreddashedlinesandaslave(SS)block.Scopesandconstantsare placedintheconsoleblock.InRT‐LAB,eachcomputationsubsystemisassignedtoadif‐ ferentcore.Inotherwords,eachsubsystemiscodedinCandbuiltforexecutionamong itsprocessorsusingMathworkscodegeneratorReal‐Time‐Workshop(RTW)[43].After compilation,thecodeisloadedintotargetOP5700viaTCP/IPprotocolandexecutedvia parallelprocessing.Finally,allobservationsindisplayblocksaremonitoredanddis‐ playedonthedigitaloscilloscopeviaI/Ochannels. Areal‐timesimulationwasperformedaftertheEVsimulationsystemwas decomposedandadaptedforuseintheRTLABplatform.   (a)(b) Figure20.(a)ExperimentalsetupofRT‐labplatformatLTIIlaboratory;(b)RT‐labsystem architecture. Inordertoevaluatethetwotechniquesproposedinthiswork,namelytheMPDTC onthemotorside,andtheEMSbasedonfuzzylogiconthesourceside,adrivingcycle underdifferentoperatingmodeshasbeenapplied(Figure9).Figures21–24presentex‐ perimentalresultsofthetwotechniquesproposed.Theresultsobtainedusingadiscrete real‐timesimulatorRTLABareveryclosetothesimulationresultswiththesameremarks previouslymentionedinthesimulationresults.Experimentalresultsprovetheeffective‐ nessoftheproposedcontroltechniques. Figure 20. ( a ) Experimental setup of RT-lab platform at LTII laboratory; ( b ) RT-lab system architecture. Sensors 2022, 22, 5669 19 of 23 (a) (b) (c) (d) Figure 21. Experimental results of the EV traction chain under different driving modes using the MPDTC strategy (a) Stator current; (b) Vehicle speed response; (c) Electromagnetic torque; (d) Stator flux. (a) (b) Figure 22. Experimental waveform under different driving modes (a) Battery state of charge; (b) DC bus voltage. 60 (A) 1.6 (s) 8.8 (Km/h) 1.6 (s) Car speed 50 (N.m) 1.6 (s) T e 0.05 (Wb) 1.6 (s) Flux 20 (%) 1.6 (s) SOC 200 (V) 1.6 (s) DC bus voltage Figure 21. Experimental results of the EV traction chain under different driving modes using the MPDTC strategy (a) Stator current; (b) Vehicle speed response; (c) Electromagnetic torque; (d) Stator flux. Sensors 2022,22, 5669 19 of 22 Sensors 2022, 22, 5669 19 of 23 (a) (b) (c) (d) Figure 21. Experimental results of the EV traction chain under different driving modes using the MPDTC strategy (a) Stator current; (b) Vehicle speed response; (c) Electromagnetic torque; (d) Stator flux. (a) (b) Figure 22. Experimental waveform under different driving modes (a) Battery state of charge; (b) DC bus voltage. 60 (A) 1.6 (s) 8.8 (Km/h) 1.6 (s) Car speed 50 (N.m) 1.6 (s) T e 0.05 (Wb) 1.6 (s) Flux 20 (%) 1.6 (s) SOC 200 (V) 1.6 (s) DC bus voltage Figure 22. Experimental waveform under different driving modes ( a ) Battery state of charge; ( b ) DC bus voltage. Sensors 2022, 22, 5669 20 of 23 Figure 23. Experimental waveform of the power management of the electric vehicle under different driving modes. (a) (b) Figure 24. Experimental waveform of the performance of the electric vehicle under different state of charge (a) SOC = 80%; (b) SOC = 30%. 6. Conclusions In this paper, the authors focused on improving the performance of an EV by introducing a Fuzzy-MPDTC-based control. This control is divided into two parts: The first part is dedicated to the control of the traction machine by introducing a MPDTC technique for PMSM control. The second part proposes a fuzzy logic-based EMS for the electric vehicle power system. To evaluate these techniques, a driving cycle under different operating modes has been proposed. The main conclusions are listed as follows. On the motor side, several objectives are achieved by applying a predefined cost function, the electromagnetic torque response follows its reference with small ripple values, a 54.54% improvement compared to the classical DTC; the current ripple is reduced and the reference tracking is ensured. On the sources side, the fuzzy logic-based EMS provides robust performance under various battery states of charge and rapid variation in power demand. Real-time simulation results were obtained using a discrete real-time simulator; the RT LAB platform confirmed the effectiveness and robustness of the proposed control techniques. Author Contributions: Conceptualization, K.K. and T.R.; methodology, K.K., T.R., M.B. and S.M. (Smail Mezani); software, K.K.; validation, K.K., T.R., M.B. and A.O.; formal analysis, K.K., T.R., S.M. (Smail Mezani), A.O. and D.R.; investigation, K.K., T.R., S.M. (Smail Mezani), A.O. and D.R.; resources, K.K. and T.R.; data curation, K.K., T.R., S.M. (Smail Mezani), A.O. and D.R.; writing— original draft preparation, K.K., M.B.; writing—review and editing, K.K., T.R., S.M. (Smail Mezani), A.O., L.P., V.B., M.B., S.M. (Stanislav Misak), S.S.M.G. and D.R.; visualization, K.K., T.R. and S.M. 16 (kW) 1.6 (s) Motor power Battery power Fuel Cell power 16 (kW) 1.6 (s) Motor power Battery power Fuel Cell power 16 (kW) 1.6 (s) Motor power Battery power Fuel Cell power Figure 23. Experimental waveform of the power management of the electric vehicle under different driving modes. Sensors 2022, 22, 5669 20 of 23 Figure 23. Experimental waveform of the power management of the electric vehicle under different driving modes. (a) (b) Figure 24. Experimental waveform of the performance of the electric vehicle under different state of charge (a) SOC = 80%; (b) SOC = 30%. 6. Conclusions In this paper, the authors focused on improving the performance of an EV by introducing a Fuzzy-MPDTC-based control. This control is divided into two parts: The first part is dedicated to the control of the traction machine by introducing a MPDTC technique for PMSM control. The second part proposes a fuzzy logic-based EMS for the electric vehicle power system. To evaluate these techniques, a driving cycle under different operating modes has been proposed. The main conclusions are listed as follows. On the motor side, several objectives are achieved by applying a predefined cost function, the electromagnetic torque response follows its reference with small ripple values, a 54.54% improvement compared to the classical DTC; the current ripple is reduced and the reference tracking is ensured. On the sources side, the fuzzy logic-based EMS provides robust performance under various battery states of charge and rapid variation in power demand. Real-time simulation results were obtained using a discrete real-time simulator; the RT LAB platform confirmed the effectiveness and robustness of the proposed control techniques. Author Contributions: Conceptualization, K.K. and T.R.; methodology, K.K., T.R., M.B. and S.M. (Smail Mezani); software, K.K.; validation, K.K., T.R., M.B. and A.O.; formal analysis, K.K., T.R., S.M. (Smail Mezani), A.O. and D.R.; investigation, K.K., T.R., S.M. (Smail Mezani), A.O. and D.R.; resources, K.K. and T.R.; data curation, K.K., T.R., S.M. (Smail Mezani), A.O. and D.R.; writing— original draft preparation, K.K., M.B.; writing—review and editing, K.K., T.R., S.M. (Smail Mezani), A.O., L.P., V.B., M.B., S.M. (Stanislav Misak), S.S.M.G. and D.R.; visualization, K.K., T.R. and S.M. 16 (kW) 1.6 (s) Motor power Battery power Fuel Cell power 16 (kW) 1.6 (s) Motor power Battery power Fuel Cell power 16 (kW) 1.6 (s) Motor power Battery power Fuel Cell power Figure 24. Experimental waveform of the performance of the electric vehicle under different state of charge (a) SOC = 80%; (b) SOC = 30%. Sensors 2022,22, 5669 20 of 22 6. Conclusions In this paper, the authors focused on improving the performance of an EV by introducing a Fuzzy-MPDTC-based control. This control is divided into two parts: The first part is dedicated to the control of the traction machine by introducing a MPDTC technique for PMSM control. The second part proposes a fuzzy logic-based EMS for the electric vehicle power system. To evaluate these techniques, a driving cycle under different operating modes has been proposed. The main conclusions are listed as follows. On the motor side, several objectives are achieved by applying a predefined cost function, the electromagnetic torque response follows its reference with small ripple values, a 54.54% improvement compared to the classical DTC; the current ripple is reduced and the reference tracking is ensured. On the sources side, the fuzzy logic-based EMS provides robust performance under various battery states of charge and rapid variation in power demand. Real-time simulation results were obtained using a discrete real-time simulator; the RT LAB platform confirmed the effectiveness and robustness of the proposed control techniques. Author Contributions: Conceptualization, K.K. and T.R.; methodology, K.K., T.R., M.B. and S.M. (Smail Mezani); software, K.K.; validation, K.K., T.R., M.B. and A.O.; formal analysis, K.K., T.R., S.M. (Smail Mezani), A.O. and D.R.; investigation, K.K., T.R., S.M. (Smail Mezani), A.O. and D.R.; resources, K.K. and T.R.; data curation, K.K., T.R., S.M. (Smail Mezani), A.O. and D.R.; writing—original draft preparation, K.K., M.B.; writing—review and editing, K.K., T.R., S.M. (Smail Mezani), A.O., L.P., V.B., M.B., S.M. (Stanislav Misak), S.S.M.G. and D.R.; visualization, K.K., T.R. and S.M. (Smail Mezani); supervision, S.M. (Smail Mezani) and T.R.; project administration, T.R.; funding acquisition, T.R. and S.M. (Smail Mezani). All authors have read and agreed to the published version of the manuscript. Funding: This paper was supported by the following projects: This work was supported by the Doctoral grant competition VSB—Technical University of Ostrava, reg. no. CZ.02.2.69/0.0/0.0/19 073/0016945 within the Operational Programme Research, Development and Education, under project DGS/TEAM/2020-017 “Smart Control System for Energy Flow Optimization and Management in a Microgrid with V2H/V2G Technology”, FV40411 Optimization of process intelligence of parking system for Smart City, project TN01000007 National Centre for Energy and Taif University Researchers Supporting Project TURSP 2020/34. Taif University, Taif, Saudi Arabia for supporting this work. Institutional Review Board Statement: Not applicable. Informed Consent Statement: Not applicable. Data Availability Statement: Not applicable. Acknowledgments: The authors appreciate the Doctoral grant competition VSB—Technical University of Ostrava, reg. no. CZ.02.2.69/0.0/0.0/19 073/0016945 within the Operational Programme Research, Development and Education, under project DGS/TEAM/2020-017 “Smart Control System for Energy Flow Optimization and Management in a Microgrid with V2H/V2G Technology”, FV40411 Optimization of process intelligence of parking system for Smart City, project TN01000007 National Centre for Energy and Taif University Researchers Supporting Project TURSP 2020/34. Taif University, Taif, Saudi Arabia for supporting this work. Conflicts of Interest: The authors declare no conflict of interest. References 1. Un-Noor, F.; Padmanaban, S.; Mihet-Popa, L.; Mollah, M.N.; Hossain, E. A comprehensive study of key electric vehicle (EV) components, technologies, challenges, impacts, and future direction of development. Energies 2017,10, 1217. [CrossRef] 2. Mokrani, Z.; Rekioua, D.; Mebarki, N.; Rekioua, T.; Bacha, S. Proposed energy management strategy in electric vehicle for recovering power excess produced by fuel cells. Int. J. Hydrogen Energy 2017,42, 19556–19575. [CrossRef] 3. Kim, H. Personalization of Electric Vehicle Accelerating Behavior Based on Motor Torque Adjustment to Improve Individual Driving Satisfaction. Sensors 2021,21, 3951. [CrossRef] [PubMed] 4. Chang, C.; Zhou, Y.; Lian, J.; Liang, J. Control Method of the Dual-Winding Motor for Online High-Frequency Resistance Measurement in Fuel Cell Vehicle. Sensors 2022,22, 2051. [CrossRef] 5. Zhang, Y.; Zhang, C.; Huang, Z.; Xu, L.; Liu, Z.; Liu, M. Real-Time Energy Management Strategy for Fuel Cell Range Extender Vehicles Based on Nonlinear Control. IEEE Trans. Transp. Electrif. 2019,5, 1294–1305. [CrossRef] Sensors 2022,22, 5669 21 of 22 6. Kamal, E.; Adouane, L. Optimized EMS and a Comparative Study of Hybrid Hydrogen Fuel Cell/Battery Vehicles. Energies 2022 , 15, 738. [CrossRef] 7. Wei, H.; Fan, L.; Ai, Q.; Zhao, W.; Huang, T.; Zhang, Y. Optimal energy allocation strategy for electric vehicles based on the real-time model predictive control technology. Sustainable Energy Technol. Assess. 2022,50, 101797. [CrossRef] 8. Djerioui, A.; Houari, A.; Zeghlache, S.; Saim, A.; Benkhoris, M.F.; Mesbahi, T.; Machmoum, M. Energy management strategy of Supercapacitor/ Fuel Cell energy storage devices for vehicle applications. Int. J. Hydrogen Energy 2019 ,44, 23416–23428. [CrossRef] 9. Abdelshafy, M.A.; Hassan, H.; Jurasz, J. Optimal design of a grid-connected desalination plant powered by renewable energy resources using a hybrid PSO-GWO approach. Energy Convers. Manag. 2018,173, 331–347. [CrossRef] 10. Thounthong, P.; Raël, S.; Davat, B. Energy management of fuel cell/battery/supercapacitor hybrid power source for vehicle applications. J. Power Sources 2009,193, 376–385. [CrossRef] 11. Zhang, X.; Mi, C.C.; Masrur, A.; Daniszewski, D. Wavelet-transformbased power management of hybrid vehicles with multiple on-board energy sources including fuel cell, battery and ultracapacitor. J. Power Sources 2008,185, 1533–1543. [CrossRef] 12. Departure, C.; Lhomme, W.; Sicard, P.; Bouscayrol, A.; Boulon, L. Real-time backstepping control for fuel cell vehicle using supercapacitors. IEEE Trans. Veh. Technol. 2017,67, 306–314. [CrossRef] 13. Benmouna, A.; Becherif, M. Combined passivity based control and optimal control for energy management of fuel cell/battery hybrid system. Asian J. Control. 2019,21, 1857–1868. [CrossRef] 14. Aouzellag, H.; Ghedamsi, K.; Aouzellag, D. Energy management and fault tolerant control strategies for fuel cell/ultra capacitor hybrid electric vehicles to enhance autonomy, efficiency and life time of the fuel cell system. Int. J. Hydrogen Energy 2015 ,40, 7204–7213. [CrossRef] 15. Sankar, K.; Jana, A.K. Nonlinear multivariable sliding mode control of a reversible PEM fuel cell integrated system. Energy Convers. Manag. 2018,171, 541–565. [CrossRef] 16. Qi, Z.; Fu, X.A. Neural Network Fuzzy Energy Management Strategy for Hybrid Electric Vehicles Based on Driving Cycle Recognition. Appl. Sci. 2020,10, 696. [CrossRef] 17. Soumeur, M.A.; Gasbaoui, B.; Abdelkhalek, O.; Ghouili, J.; Toumi, T.; Chakar, A. Comparative study of energy management strategies for hybrid proton exchange membrane fuel cell four wheel drive electric vehicle. J. Power Sources 2020 ,462, 228167. [CrossRef] 18. Huang, Z.; Zhang, C.; Zeng, T.; Lv, C.; Chan, S.H. Modeling and energy management of a photovoltaic-fuel cell-battery hybrid electric vehicle. Energy Storage 2019,1, e61. [CrossRef] 19. Odeim, F.; Roes, J.; Wülbeck, L.; Heinzel, A. Power management optimization of fuel cell/battery hybrid vehicles with experimental validation. J. Power Sources 2014,252, 333–343. [CrossRef] 20. Zhang, X.; Liu, L.; Dai, Y.; Lu, T. Experimental investigation on the online fuzzy energy management of hybrid fuel cell/battery power system for UAVs. Int. J. Hydrogen Energy 2018,43, 10094–10103. [CrossRef] 21. Lin, C.; Luo, W.; Lan, H.; Hu, C. Research on Multi-Objective Compound Energy Management Strategy Based on Fuzzy Control for FCHEV. Energies 2022,15, 1721. [CrossRef] 22. Valdez-Resendiz, J.E.; Rosas-Caro, J.C.; Mayo-Maldonado, J.C.; Claudio-Sanchez, A.; Ruiz-Martinez, O.; Sanchez, V.M. Improvement of ultracapacitors-energy usage in fuel cell-based hybrid electric vehicle. Int. J. Hydrogen Energy 2020 ,45, 13746–13756. [CrossRef] 23. Urbanski, K.; Janiszewski, D. Sensorless Control of the Permanent Magnet Synchronous Motor. Sensors 2019 ,19, 3546. [CrossRef] 24. Oubelaid, A.; Taib, N.; Nikolovski, S.; Alharbi, T.E.A.; Rekioua, T.; Flah, A.; Ghoneim, S.S.M. Intelligent Speed Control and Performance Investigation of a Vector Controlled Electric Vehicle Considering Driving Cycles. Electronics 2022 ,11, 1925. [CrossRef] 25. Alsofyani, I.M.; Idris, N.R.N.; Lee, K.B. Dynamic Hysteresis Torque Band for Improving the Performance of Lookup-Table-Based DTC of Induction Machines. IEEE Trans. Power Electron. 2017,33, 7959–7970. [CrossRef] 26. Esparza Sola, T.; Chiu, H.J.; Liu, Y.C.; Rahman, A.N. Extending DC Bus Utilization for Induction Motors with Stator Flux Oriented Direct Torque Control. Energies 2022,15, 374. [CrossRef] 27. Moati, Y.; Kouzi, K.; Iqbal, A. Adaptive optimized DTC-SVM using metaheuristic Bat algorithm for DSIM fed by IMC based on robust synergetic speed controller. Int. Trans. Electr. Energy Syst. 2021,31, e12697. [CrossRef] 28. Tarusan, S.A.A.; Jidin, A.; Jamil, M.L.M. The optimization of torque ripple reduction by using DTC-multilevel inverter. ISA Trans. 2022,121, 365–379. [CrossRef] 29. Kakouche, K.; Guendouz, W.; Rekioua, T.; Mezani, S.; Lubin, T. Application of fuzzy controller to minimize torque and flux ripples of PMSM. In Proceedings of the International Conference on Advanced Electrical Engineering (ICAEE), Algiers, Algeria, 19–21 November 2019. [CrossRef] 30. Korkmaz, F.; Cakir, M.F.; Topaloglu, I.; Gurbuz, R. Artificial Neural Network Based DTC Driver for PMSM. Int. J. Instrum. Control Syst. 2013,3, 1–7. [CrossRef] 31. Li, G.; Hu, J.; Li, Y.; Zhu, J. An Improved Model Predictive Direct Torque Control Strategy for Reducing Harmonic Currents and Torque Ripples of Five-Phase Permanent Magnet Synchronous Motors. IEEE Trans. Ind. Electron. 2018 ,66, 5820–5829. [CrossRef] 32. Elsherbiny, H.; Ahmed, M.K.; Elwany, M. Comparative Evaluation for Torque Control Strategies of Interior Permanent Magnet Synchronous Motor for Electric Vehicles. Period. Polytech. Electr. Eng. Comput. Sci. 2021,65, 244–261. [CrossRef] Sensors 2022,22, 5669 22 of 22 33. Mesloub, H.; Benchouia, M.H.; Goléa, A.; Goléa, N.; Benbouzid, M.E.H. Predictive DTC schemes with PI regulator and particle swarm optimization for PMSM drive: Comparative simulation and experimental study. Int. J. Adv. Manuf. Technol. 2016 ,86, 3123–3134. [CrossRef] 34. Hassan, M.R.; Mossa, M.A.; Dousoky, G.M. Evaluation of Electric Dynamic Performance of an Electric Vehicle System Using Different Control Techniques. Electronics 2021,10, 2586. [CrossRef] 35. Motapon, S.N.; Tremblay, O.; Dessaint, L.A. Development of a generic fuel cell model: Application to a fuel cell vehicle simulation. Int. J. Power Electron. 2012,4, 505–522. [CrossRef] 36. Motapon, S.N.; Dessaint, L.A.; Al-Haddad, K. A comparative study of energy management schemes for a fuel-cell hybrid emergency power system of more-electric aircraft. IEEE Trans. Ind. Electron. 2013,61, 1320–1334. [CrossRef] 37. Podder, A.K.; Chakraborty, O.; Islam, S.; Kumar, N.M.; Alhelou, H.H. Control Strategies of Different Hybrid Energy Storage Systems for Electric Vehicles Applications. IEEE Access 2021,9, 51865–51895. [CrossRef] 38. Tremblay, O.; Dessaint, L.A.; Dekkiche, A.I. A Generic Battery Model for the Dynamic Simulation of Hybrid Electric Vehicles. In Proceedings of the IEEE Conference on Vehicle Power and Propulsion (VPPC), Arlington, TX, USA, 9–12 September 2007. [CrossRef] 39. Zandi, M.; Payman, A.; Martin, J.P.; Pierfederici, S.; Davat, B.; Meibody-Taber, F. Energy Management of a Fuel Cell/Supercapacitor/Battery Power Source for Electric Vehicular Applications. IEEE Trans. Veh. Technol. 2010 ,60, 433–443. [CrossRef] 40. Ahmed, A.A.; Akl, M.M.; Rashad, M.E.E. A comparative dynamic analysis between model predictive torque control and field-oriented torque control of IM drives for electric vehicles. Int. Trans. Electr. Energy Syst. 2021,31, e13089. [CrossRef] 41. Ban, F.; Lian, G.; Zhang, J.; Chen, B.; Gu, G. Study on a Novel Predictive Torque Control Strategy Based on the Finite Control Set for PMSM. IEEE Trans. Appl. Supercond. 2019,29, 3601206. [CrossRef] 42. Sandre-Hernandez, O.; Rangel-Magdaleno, J.; Morales-Caporal, R. A Comparison on Finite-Set Model Predictive Torque Control Schemes for PMSMs. IEEE Trans. Power Electron. 2018,33, 8838–8847. [CrossRef] 43. Bechar, M.; Hazzab, A.; Habbab, M.; Sicard, P.; Slimi, M. RT-LAB Platform for Real-Time Implementation of Luenberger Observer Based Speed Sensorless Control of Induction Motor. J. Autom. Mob. Robot. Intell. Syst. 2019,13, 65–72. [CrossRef]