IDEAS home Printed from https://ideas.repec.org/a/eee/appene/v393y2025ics0306261925007603.html
   My bibliography  Save this article

Sim-to-real design and development of reinforcement learning-based energy management strategies for fuel cell electric vehicles

Author

Listed:
  • Lei, Nuo
  • Zhang, Hao
  • Hu, Jingjing
  • Hu, Zunyan
  • Wang, Zhi

Abstract

The application of reinforcement learning (RL) algorithms in energy management strategies (EMSs) for fuel cell electric vehicles (FCEVs) has shown promising results in simulations. However, transitioning these strategies to real-vehicle implementation remains challenging due to the complexities of vehicle dynamics and system integration. Based on the General Optimal control Problems Solver (GOPS) platform, this paper establishes an RL-based EMS development toolchain that integrates advanced algorithms with high-fidelity vehicle models, leveraging Python-MATLAB/Simulink co-simulation for agent training across Model-in-the-Loop (MiL), Hardware-in-the-Loop (HiL), and Vehicle-in-the-Loop (ViL) stages. Besides, the distributional soft actor-critic algorithm (DSAC) is applied to energy management for the first time, embedding the return distribution function into maximum entropy RL. This approach adapts the Q-value function update step size, significantly enhancing strategy performance. Additionally, two RL-based EMS frameworks are investigated: one where the agent directly outputs fuel cell power commands, and another where the agent generates equivalent factors (EF) for the equivalent consumption minimization strategy (ECMS). Simulation and experimental results validate that both RL frameworks achieve superior fuel economy, reducing hydrogen consumption by approximately 4.35 % to 5.73 % compared to benchmarks. By combining Python's algorithmic flexibility and scalability with MATLAB/Simulink's high-fidelity vehicle models, the proposed toolchain provides a robust foundation for real-vehicle applications of RL-based EMSs.

Suggested Citation

  • Lei, Nuo & Zhang, Hao & Hu, Jingjing & Hu, Zunyan & Wang, Zhi, 2025. "Sim-to-real design and development of reinforcement learning-based energy management strategies for fuel cell electric vehicles," Applied Energy, Elsevier, vol. 393(C).
  • Handle: RePEc:eee:appene:v:393:y:2025:i:c:s0306261925007603
    DOI: 10.1016/j.apenergy.2025.126030
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S0306261925007603
    Download Restriction: Full text for ScienceDirect subscribers only

    File URL: https://libkey.io/10.1016/j.apenergy.2025.126030?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to

    for a different version of it.

    References listed on IDEAS

    as
    1. Niu, Zegong & He, Hongwen, 2024. "A data-driven solution for intelligent power allocation of connected hybrid electric vehicles inspired by offline deep reinforcement learning in V2X scenario," Applied Energy, Elsevier, vol. 372(C).
    2. Sun, Chao & Sun, Fengchun & He, Hongwen, 2017. "Investigating adaptive-ECMS with velocity forecast ability for hybrid electric vehicles," Applied Energy, Elsevier, vol. 185(P2), pages 1644-1653.
    3. Xiong, Rui & Duan, Yanzhou & Cao, Jiayi & Yu, Quanqing, 2018. "Battery and ultracapacitor in-the-loop approach to validate a real-time power management method for an all-climate electric vehicle," Applied Energy, Elsevier, vol. 217(C), pages 153-165.
    4. Xie, Shaobo & Hu, Xiaosong & Xin, Zongke & Brighton, James, 2019. "Pontryagin’s Minimum Principle based model predictive control of energy management for a plug-in hybrid electric bus," Applied Energy, Elsevier, vol. 236(C), pages 893-905.
    5. Zhang, Hao & Lei, Nuo & Chen, Boli & Li, Bingbing & Li, Rulong & Wang, Zhi, 2024. "Modeling and control system optimization for electrified vehicles: A data-driven approach," Energy, Elsevier, vol. 310(C).
    6. Guo, Ningyuan & Zhang, Xudong & Zou, Yuan & Guo, Lingxiong & Du, Guodong, 2021. "Real-time predictive energy management of plug-in hybrid electric vehicles for coordination of fuel economy and battery degradation," Energy, Elsevier, vol. 214(C).
    7. He, Hongwen & Xiong, Rui & Zhao, Kai & Liu, Zhentong, 2013. "Energy management strategy research on a hybrid power system by hardware-in-loop experiments," Applied Energy, Elsevier, vol. 112(C), pages 1311-1317.
    8. Wu, Jingda & He, Hongwen & Peng, Jiankun & Li, Yuecheng & Li, Zhanjiang, 2018. "Continuous reinforcement learning of energy management with deep Q network for a power split hybrid electric bus," Applied Energy, Elsevier, vol. 222(C), pages 799-811.
    9. Song, Ke & Ding, Yuhang & Hu, Xiao & Xu, Hongjie & Wang, Yimin & Cao, Jing, 2021. "Degradation adaptive energy management strategy using fuel cell state-of-health for fuel economy improvement of hybrid electric vehicle," Applied Energy, Elsevier, vol. 285(C).
    10. Zhu, Pengxing & Hu, Jianjun & Zhu, Zhennan & Xiao, Feng & Li, Jiajia & Peng, Hang, 2025. "An efficient energy management method for plug-in hybrid electric vehicles based on multi-source and multi-feature velocity prediction and improved extreme learning machine," Applied Energy, Elsevier, vol. 380(C).
    11. Zhang, Hailong & Peng, Jiankun & Dong, Hanxuan & Tan, Huachun & Ding, Fan, 2023. "Hierarchical reinforcement learning based energy management strategy of plug-in hybrid electric vehicle for ecological car-following process," Applied Energy, Elsevier, vol. 333(C).
    12. Abdelhedi, Fatma & Jarraya, Imen & Bawayan, Haneen & Abdelkeder, Mohamed & Rizoug, Nassim & Koubaa, Anis, 2024. "Optimizing Electric Vehicles efficiency with hybrid energy storage: Comparative analysis of rule-based and neural network power management systems," Energy, Elsevier, vol. 313(C).
    13. Wu, Changcheng & Peng, Jiankun & Chen, Jun & He, Hongwen & Pi, Dawei & Wang, Zhongwei & Ma, Chunye, 2024. "Battery health-considered energy management strategy for a dual-motor two-speed battery electric vehicle based on a hybrid soft actor-critic algorithm with memory function," Applied Energy, Elsevier, vol. 376(PB).
    14. Hu, Xiao & Wang, Ping & Hu, Yunfeng & Chen, Hong, 2020. "A stability-guaranteed and energy-conserving torque distribution strategy for electric vehicles under extreme conditions," Applied Energy, Elsevier, vol. 259(C).
    15. Zhang, Hao & Lei, Nuo & Wang, Zhi, 2024. "Ammonia-hydrogen propulsion system for carbon-free heavy-duty vehicles," Applied Energy, Elsevier, vol. 369(C).
    16. Xu, Bin & Li, Xiaoya, 2021. "A Q-learning based transient power optimization method for organic Rankine cycle waste heat recovery system in heavy duty diesel engine applications," Applied Energy, Elsevier, vol. 286(C).
    17. Kofler, Sandro & Jakubek, Stefan & Hametner, Christoph, 2025. "Predictive energy management strategy with optimal stack start/stop control for fuel cell vehicles," Applied Energy, Elsevier, vol. 377(PB).
    18. Zhang, Hao & Chen, Boli & Lei, Nuo & Li, Bingbing & Chen, Chaoyi & Wang, Zhi, 2024. "Coupled velocity and energy management optimization of connected hybrid electric vehicles for maximum collective efficiency," Applied Energy, Elsevier, vol. 360(C).
    19. Hu, Dong & Huang, Chao & Wu, Jingda & Wei, Henglai & Pi, Dawei, 2025. "Enhancing data-driven energy management strategy via digital expert guidance for electrified vehicles," Applied Energy, Elsevier, vol. 381(C).
    20. Wang, Yong & Wu, Yuankai & Tang, Yingjuan & Li, Qin & He, Hongwen, 2023. "Cooperative energy management and eco-driving of plug-in hybrid electric vehicle via multi-agent reinforcement learning," Applied Energy, Elsevier, vol. 332(C).
    21. Ma, Yan & Ma, Qian & Liu, Yongqin & Gao, Jinwu & Chen, Hong, 2024. "Two-level optimization strategy for vehicle speed and battery thermal management in connected and automated EVs," Applied Energy, Elsevier, vol. 361(C).
    22. Peng, Jiankun & He, Hongwen & Xiong, Rui, 2017. "Rule based energy management strategy for a series–parallel plug-in hybrid electric bus optimized by dynamic programming," Applied Energy, Elsevier, vol. 185(P2), pages 1633-1643.
    23. Xu, Nan & Kong, Yan & Yan, Jinyue & Zhang, Yuanjian & Sui, Yan & Ju, Hao & Liu, Heng & Xu, Zhe, 2022. "Global optimization energy management for multi-energy source vehicles based on “Information layer - Physical layer - Energy layer - Dynamic programming” (IPE-DP)," Applied Energy, Elsevier, vol. 312(C).
    24. Zou, Yuan & Liu, Teng & Liu, Dexing & Sun, Fengchun, 2016. "Reinforcement learning-based real-time energy management for a hybrid tracked vehicle," Applied Energy, Elsevier, vol. 171(C), pages 372-382.
    25. Li, Jianwei & Zou, Weitao & Yang, Qingqing & Yao, Fang & Zhu, Jin, 2024. "EV charging fairness protective management against charging demand uncertainty for a new “1 to N” automatic charging pile," Energy, Elsevier, vol. 306(C).
    26. Haubensak, Lukas & Strahl, Stephan & Braun, Jochen & Faulwasser, Timm, 2024. "Towards real-time capable optimal control for fuel cell vehicles using hierarchical economic MPC," Applied Energy, Elsevier, vol. 366(C).
    27. Zhang, Baodi & Chang, Liang & Teng, Teng & Chen, Qifang & Li, Qiangwei & Cao, Yaoguang & Yang, Shichun & Zhang, Xin, 2024. "Multi-objective optimization with Q-learning for cruise and power allocation control parameters of connected fuel cell hybrid vehicles," Applied Energy, Elsevier, vol. 373(C).
    28. Zhang, Yang & Li, Qingxin & Wen, Chengqing & Liu, Mingming & Yang, Xinhua & Xu, Hongming & Li, Ji, 2024. "Predictive equivalent consumption minimization strategy based on driving pattern personalized reconstruction," Applied Energy, Elsevier, vol. 367(C).
    29. Huang, Ruchen & He, Hongwen & Su, Qicong & Härtl, Martin & Jaensch, Malte, 2025. "Type- and task-crossing energy management for fuel cell vehicles with longevity consideration: A heterogeneous deep transfer reinforcement learning framework," Applied Energy, Elsevier, vol. 377(PC).
    30. Zou, Weitao & Li, Jianwei & Yang, Qingqing & Wan, Xinming & He, Yuntang & Lan, Hao, 2023. "A real-time energy management approach with fuel cell and battery competition-synergy control for the fuel cell vehicle," Applied Energy, Elsevier, vol. 334(C).
    31. Xie, Shaobo & Qi, Shanwei & Lang, Kun & Tang, Xiaolin & Lin, Xianke, 2020. "Coordinated management of connected plug-in hybrid electric buses for energy saving, inter-vehicle safety, and battery health," Applied Energy, Elsevier, vol. 268(C).
    32. Zhuang, Weichao & Li (Eben), Shengbo & Zhang, Xiaowu & Kum, Dongsuk & Song, Ziyou & Yin, Guodong & Ju, Fei, 2020. "A survey of powertrain configuration studies on hybrid electric vehicles," Applied Energy, Elsevier, vol. 262(C).
    33. Zhang, Hao & Lei, Nuo & Liu, Shang & Fan, Qinhao & Wang, Zhi, 2023. "Data-driven predictive energy consumption minimization strategy for connected plug-in hybrid electric vehicles," Energy, Elsevier, vol. 283(C).
    34. Guo, Ningyuan & Zhang, Wencan & Li, Junqiu & Chen, Zheng & Li, Jianwei & Sun, Chao, 2024. "Predictive energy management of fuel cell plug-in hybrid electric vehicles: A co-state boundaries-oriented PMP optimization approach," Applied Energy, Elsevier, vol. 362(C).
    35. Li, Yuecheng & He, Hongwen & Khajepour, Amir & Wang, Hong & Peng, Jiankun, 2019. "Energy management for a power-split hybrid electric bus via deep reinforcement learning with terrain information," Applied Energy, Elsevier, vol. 255(C).
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Zhang, Hao & Chen, Boli & Lei, Nuo & Li, Bingbing & Chen, Chaoyi & Wang, Zhi, 2024. "Coupled velocity and energy management optimization of connected hybrid electric vehicles for maximum collective efficiency," Applied Energy, Elsevier, vol. 360(C).
    2. Daniel Egan & Qilun Zhu & Robert Prucka, 2023. "A Review of Reinforcement Learning-Based Powertrain Controllers: Effects of Agent Selection for Mixed-Continuity Control and Reward Formulation," Energies, MDPI, vol. 16(8), pages 1-31, April.
    3. Chen, Zheng & Gu, Hongji & Shen, Shiquan & Shen, Jiangwei, 2022. "Energy management strategy for power-split plug-in hybrid electric vehicle based on MPC and double Q-learning," Energy, Elsevier, vol. 245(C).
    4. Fan Wang & Yina Hong & Xiaohuan Zhao, 2025. "Research and Comparative Analysis of Energy Management Strategies for Hybrid Electric Vehicles: A Review," Energies, MDPI, vol. 18(11), pages 1-28, May.
    5. Dong, Peng & Zhao, Junwei & Liu, Xuewu & Wu, Jian & Xu, Xiangyang & Liu, Yanfang & Wang, Shuhan & Guo, Wei, 2022. "Practical application of energy management strategy for hybrid electric vehicles based on intelligent and connected technologies: Development stages, challenges, and future trends," Renewable and Sustainable Energy Reviews, Elsevier, vol. 170(C).
    6. Zou, Yunge & Yang, Yalian & Zhang, Yuxin & Liu, Changdong, 2024. "Computationally efficient assessment of fuel economy of multi-modes and multi-gears hybrid electric vehicles: A hyper rapid dynamic programming approach," Energy, Elsevier, vol. 313(C).
    7. Huang, Ruchen & He, Hongwen & Su, Qicong & Härtl, Martin & Jaensch, Malte, 2025. "Type- and task-crossing energy management for fuel cell vehicles with longevity consideration: A heterogeneous deep transfer reinforcement learning framework," Applied Energy, Elsevier, vol. 377(PC).
    8. Geng, Wenran & Lou, Diming & Wang, Chen & Zhang, Tong, 2020. "A cascaded energy management optimization method of multimode power-split hybrid electric vehicles," Energy, Elsevier, vol. 199(C).
    9. Najmi, Aezid-Ul-Hassan & Wahab, Abdul & Prakash, Rohith & Schopen, Oliver & Esch, Thomas & Shabani, Bahman, 2025. "Thermal management of fuel cell-battery electric vehicles: Challenges and solutions," Applied Energy, Elsevier, vol. 387(C).
    10. Anselma, Pier Giuseppe, 2022. "Computationally efficient evaluation of fuel and electrical energy economy of plug-in hybrid electric vehicles with smooth driving constraints," Applied Energy, Elsevier, vol. 307(C).
    11. Chen, Jiaxin & Shu, Hong & Tang, Xiaolin & Liu, Teng & Wang, Weida, 2022. "Deep reinforcement learning-based multi-objective control of hybrid power system combined with road recognition under time-varying environment," Energy, Elsevier, vol. 239(PC).
    12. Bo, Lin & Han, Lijin & Xiang, Changle & Liu, Hui & Ma, Tian, 2022. "A Q-learning fuzzy inference system based online energy management strategy for off-road hybrid electric vehicles," Energy, Elsevier, vol. 252(C).
    13. Xiao, B. & Ruan, J. & Yang, W. & Walker, P.D. & Zhang, N., 2021. "A review of pivotal energy management strategies for extended range electric vehicles," Renewable and Sustainable Energy Reviews, Elsevier, vol. 149(C).
    14. Hu, Dong & Xie, Hui & Song, Kang & Zhang, Yuanyuan & Yan, Long, 2023. "An apprenticeship-reinforcement learning scheme based on expert demonstrations for energy management strategy of hybrid electric vehicles," Applied Energy, Elsevier, vol. 342(C).
    15. Alessia Musa & Pier Giuseppe Anselma & Giovanni Belingardi & Daniela Anna Misul, 2023. "Energy Management in Hybrid Electric Vehicles: A Q-Learning Solution for Enhanced Drivability and Energy Efficiency," Energies, MDPI, vol. 17(1), pages 1-20, December.
    16. Zhang, Hao & Fan, Qinhao & Liu, Shang & Li, Shengbo Eben & Huang, Jin & Wang, Zhi, 2021. "Hierarchical energy management strategy for plug-in hybrid electric powertrain integrated with dual-mode combustion engine," Applied Energy, Elsevier, vol. 304(C).
    17. Zhang, Wei & Wang, Jixin & Xu, Zhenyu & Shen, Yuying & Gao, Guangzong, 2022. "A generalized energy management framework for hybrid construction vehicles via model-based reinforcement learning," Energy, Elsevier, vol. 260(C).
    18. Zhang, Baodi & Chang, Liang & Teng, Teng & Chen, Qifang & Li, Qiangwei & Cao, Yaoguang & Yang, Shichun & Zhang, Xin, 2024. "Multi-objective optimization with Q-learning for cruise and power allocation control parameters of connected fuel cell hybrid vehicles," Applied Energy, Elsevier, vol. 373(C).
    19. Liu, Huimin & Lin, Cheng & Yu, Xiao & Tao, Zhenyi & Xu, Jiaqi, 2024. "Variable horizon multivariate driving pattern recognition framework based on vehicle-road two-dimensional information for electric vehicle," Applied Energy, Elsevier, vol. 365(C).
    20. Wang, Yue & Li, Keqiang & Zeng, Xiaohua & Gao, Bolin & Hong, Jichao, 2023. "Investigation of novel intelligent energy management strategies for connected HEB considering global planning of fixed-route information," Energy, Elsevier, vol. 263(PB).

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:eee:appene:v:393:y:2025:i:c:s0306261925007603. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Catherine Liu (email available below). General contact details of provider: http://www.elsevier.com/wps/find/journaldescription.cws_home/405891/description#description .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.