Control Analysis of Renewable Energy System with Hydrogen Storage to Match Energy Community Demand: A Whole-System Perspective
Abstract
1. Introduction
2. Model Description
2.1. Energy Management System Framework
2.2. Cost Function () of the Devices
2.3. Battery Degradation Function
2.4. Fuel Cell Degradation Function
2.5. Electrolyzer Degradation Function
2.6. Net Power Evaluation
2.7. System Sizing
3. Simulations and Results
- -
- Linear vs. heuristic EMS: the proposed linear programming EMS was compared with a widely used EMS approach, namely the rule-based Heuristic EMS [51].
- -
- Fixed vs. variable operating conditions: using the linear EMS, a comparison between a fixed and a variable operation mode is performed. In the fixed case, both fuel cell and electrolyzer can operate only in a fixed power range, namely for fuel cell, and for the electrolyzer. In the variable operation case, both the devices can operate from 0% to 100% of their rated power.
3.1. Linear vs. Heuristic EMS
3.2. Residual Life
3.3. Economic Balance
3.4. CO2 Emissions
3.5. Comparison with the Literature
4. Conclusions
- The linear logic has several advantages, including a lower total cost of ownership and higher green hydrogen production compared to the heuristic logic. However, the latter shows lower dependence on the main grid.
- Dynamic operation leads to greater deterioration, particularly in hydrogen systems where lifetime is further reduced by approximately 25% compared to static operation. This results in more frequent replacements to ensure process continuity, thus increasing overall operating costs.
- CO2 emissions from the renewable microgrid are roughly 30 times lower than in a scenario where the same loads are supplied by the conventional electric grid.
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- International Energy Agency. CO2 Emissions in 2023. 2023. Available online: https://www.iea.org/reports/co2-emissions-in-2023 (accessed on 24 April 2024).
- Mišík, M. The EU needs to improve its external energy security. Energy Policy 2022, 165, 112930. [Google Scholar] [CrossRef]
- International Energy Agencyabriendomundo. Renewables 2023. Available online: https://www.iea.org/reports/renewables-2023 (accessed on 30 April 2024).
- Lawrence, J.; Boltze, M. Auxiliary power unit based on a solid oxide fuel cell and fuelled with diesel. J. Power Sources 2006, 154, 479–488. [Google Scholar] [CrossRef]
- Palone, O.; Hoxha, A.; Gagliardi, G.G.; Di Gruttola, F.; Stendardo, S.; Borello, D. Synthesis of Methanol from a Chemical Looping Syngas for the Decarbonization of the Power Sector. J. Eng. Gas Turbine Power 2023, 145, 021018. [Google Scholar] [CrossRef]
- Escamilla, A.; Sánchez, D.; García-Rodríguez, L. Assessment of power-to-power renewable energy storage based on the smart integration of hydrogen and micro gas turbine technologies. Int. J. Hydrogen Energy 2022, 47, 17505–17525. [Google Scholar] [CrossRef]
- Dunn, B.; Kamath, H.; Tarascon, J.-M. Electrical Energy Storage for the Grid: A Battery of Choices. Science 2011, 334, 928–935. [Google Scholar] [CrossRef]
- Niaz, S.; Manzoor, T.; Pandith, A.H. Hydrogen storage: Materials, methods and perspectives. Renew. Sustain. Energy Rev. 2015, 50, 457–469. [Google Scholar] [CrossRef]
- Palone, O.; Barberi, G.; Di Gruttola, F.; Gagliardi, G.G.; Cedola, L.; Borello, D. Assessment of a multistep revamping methodology for cleaner steel production. J. Clean. Prod. 2022, 381, 135146. [Google Scholar] [CrossRef]
- Freitag, P.; Stolle, D.; Kullmann, F.; Linssen, J.; Stolten, D. A techno-economic analysis of future hydrogen reconversion technologies. Int. J. Hydrogen Energy 2024, 77, 1254–1267. [Google Scholar] [CrossRef]
- Wang, Y.; Chen, K.S.; Mishler, J.; Cho, S.C.; Adroher, X.C. A review of polymer electrolyte membrane fuel cells: Technology, applications, and needs on fundamental research. Appl. Energy 2011, 88, 981–1007. [Google Scholar] [CrossRef]
- Gagliardi, G.G.; El-Kharouf, A.; Borello, D. Assessment of innovative graphene oxide composite membranes for the improvement of direct methanol fuel cells performance. Fuel 2023, 345, 128252. [Google Scholar] [CrossRef]
- Gagliardi, G.G.; Palone, O.; Paris, E.; Borello, D. An efficient composite membrane to improve the performance of PEM reversible fuel cells. Fuel 2024, 357, 129993. [Google Scholar] [CrossRef]
- Gagliardi, G.G.; Ibrahim, A.; Borello, D.; El-Kharouf, A. Composite Polymers Development and Application for Polymer Electrolyte Membrane Technologies—A Review. Molecules 2020, 25, 1712. [Google Scholar] [CrossRef]
- Carmo, M.; Fritz, D.L.; Mergel, J.; Stolten, D. A comprehensive review on PEM water electrolysis. Int. J. Hydrogen Energy 2013, 38, 4901–4934. [Google Scholar] [CrossRef]
- International Energy Agency. The Future of Hydrogen. Available online: https://www.iea.org/reports/the-future-of-hydrogen (accessed on 10 May 2024).
- Maleki, A.; Pourfayaz, F. Optimal sizing of autonomous hybrid photovoltaic/wind/battery power system with LPSP technology by using evolutionary algorithms. Sol. Energy 2015, 115, 471–483. [Google Scholar] [CrossRef]
- Liu, W.; Placke, T.; Chau, K.T. Overview of batteries and battery management for electric vehicles. Energy Rep. 2022, 8, 4058–4084. [Google Scholar] [CrossRef]
- Kharel, S.; Shabani, B. Hydrogen as a Long-Term Large-Scale Energy Storage Solution to Support Renewables. Energies 2018, 11, 2825. [Google Scholar] [CrossRef]
- Bensmail, S.; Rekioua, D.; Azzi, H. Study of hybrid photovoltaic/fuel cell system for stand-alone applications. Int. J. Hydrogen Energy 2015, 40, 13820–13826. [Google Scholar] [CrossRef]
- Ceylan, C.; Devrim, Y. Design and simulation of the PV/PEM fuel cell based hybrid energy system using MATLAB/Simulink for greenhouse application. Int. J. Hydrogen Energy 2021, 46, 22092–22106. [Google Scholar] [CrossRef]
- Castañeda, M.; Cano, A.; Jurado, F.; Sánchez, H.; Fernández, L.M. Sizing optimization, dynamic modeling and energy management strategies of a stand-alone PV/hydrogen/battery-based hybrid system. Int. J. Hydrogen Energy 2013, 38, 3830–3845. [Google Scholar] [CrossRef]
- Lajnef, T.; Abid, S.; Ammous, A. Modeling, Control, and Simulation of a Solar Hydrogen/Fuel Cell Hybrid Energy System for Grid-Connected Applications. Adv. Power Electron. 2013, 2013, 352765. [Google Scholar] [CrossRef]
- Möller, M.C.; Krauter, S. Hybrid Energy System Model in Matlab/Simulink Based on Solar Energy, Lithium-Ion Battery and Hydrogen. Energies 2022, 15, 2201. [Google Scholar] [CrossRef]
- Yahyaoui, I.; Ghraizi, R.; Tadeo, F. Operational cost optimization for renewable energy microgrids in Mediterranean climate. In Proceedings of the 2016 7th International Renewable Energy Congress (IREC), Hammamet, Tunisia, 22–24 March 2016; IEEE: Piscataway, NJ, USA, 2016; pp. 1–6. [Google Scholar] [CrossRef]
- Bourbon, R.; Ngueveu, S.U.; Roboam, X.; Sareni, B.; Turpin, C.; Hernandez-Torres, D. Energy management optimization of a smart wind power plant comparing heuristic and linear programming methods. Math. Comput. Simul. 2019, 158, 418–431. [Google Scholar] [CrossRef]
- Khaled, N.; Pattel, B.; Siddiqui, A. Digital Twin Development and cloud deployment for a DC Motor Control embedded system. In Digital Twin Development and Deployment on the Cloud; Elsevier: Amsterdam, The Netherlands, 2020; pp. 339–512. [Google Scholar] [CrossRef]
- Agati, G.; Borello, D.; Migliarese Caputi, M.V.; Cedola, L.; Gagliardi, G.G.; Pozzessere, A.; Venturini, P. Effect of the Degree of Hybridization and Energy Management Strategy on the Performance of a Fuel Cell/Battery Vehicle in Real-World Driving Cycles. Energies 2024, 17, 729. [Google Scholar] [CrossRef]
- Guo, F.; Wu, X.; Liu, L.; Ye, J.; Wang, T.; Fu, L.; Wu, Y. Prediction of remaining useful life and state of health of lithium batteries based on time series feature and Savitzky-Golay filter combined with gated recurrent unit neural network. Energy 2023, 270, 126880. [Google Scholar] [CrossRef]
- Abdin, Z.; Webb, C.J.; Gray, E.M. PEM fuel cell model and simulation in Matlab–Simulink based on physical parameters. Energy 2016, 116, 1131–1144. [Google Scholar] [CrossRef]
- Yao, L.W.; Aziz, J.A.; Kong, P.Y.; Idris, N.R.N. Modeling of lithium-ion battery using MATLAB/simulink. In Proceedings of the IECON 2013—39th Annual Conference of the IEEE Industrial Electronics Society, Vienna, Austria, 10–13 November 2013; IEEE: Piscataway, NJ, USA, 2013; pp. 1729–1734. [Google Scholar] [CrossRef]
- Torreglosa, J.P.; García-Triviño, P.; Fernández-Ramirez, L.M.; Jurado, F. Control based on techno-economic optimization of renewable hybrid energy system for stand-alone applications. Expert. Syst. Appl. 2016, 51, 59–75. [Google Scholar] [CrossRef]
- Arnold, M.; Brandt, J.; Tjarks, G.; Vanselow, A.; Hanke-Rauschenbach, R. Cost-optimized replacement strategies for water electrolysis systems affected by degradation. Energy Convers. Manag. X 2025, 28, 101261. [Google Scholar] [CrossRef]
- Fan, F.; Zhang, R.; Xu, Y.; Ren, S. Robustly coordinated operation of an emission-free microgrid with hybrid hydrogen-battery energy storage. CSEE J. Power Energy Syst. 2021, 8, 369–379. [Google Scholar] [CrossRef]
- Omar, N.; Monem, M.A.; Firouz, Y.; Salminen, J.; Smekens, J.; Hegazy, O.; Gaulous, H.; Mulder, G.; Van den Bossche, P.; Coosemans, T.; et al. Lithium iron phosphate based battery—Assessment of the aging parameters and development of cycle life model. Appl. Energy 2014, 113, 1575–1585. [Google Scholar] [CrossRef]
- Saw, L.H.; Somasundaram, K.; Ye, Y.; Tay, A.A.O. Electro-thermal analysis of Lithium Iron Phosphate battery for electric vehicles. J. Power Sources 2014, 249, 231–238. [Google Scholar] [CrossRef]
- Kim, S.H.; Shin, Y.-J. Optimize the operating range for improving the cycle life of battery energy storage systems under uncertainty by managing the depth of discharge. J. Energy Storage 2023, 73, 109144. [Google Scholar] [CrossRef]
- Torabi, F.; Ahmadi, P. Fundamentals of batteries. In Simulation of Battery Systems; Elsevier: Amsterdam, The Netherlands, 2020; pp. 55–81. [Google Scholar] [CrossRef]
- Wu, Y.; Liu, Z.; Liu, J.; Xiao, H.; Liu, R.; Zhang, L. Optimal battery capacity of grid-connected PV-battery systems considering battery degradation. Renew. Energy 2022, 181, 10–23. [Google Scholar] [CrossRef]
- Masaud, T.M.; El-Saadany, E.F. Correlating Optimal Size, Cycle Life Estimation, and Technology Selection of Batteries: A Two-Stage Approach for Microgrid Applications. IEEE Trans. Sustain. Energy 2020, 11, 1257–1267. [Google Scholar] [CrossRef]
- de Bruijn, F. The current status of fuel cell technology for mobile and stationary applications. Green Chem. 2005, 7, 132. [Google Scholar] [CrossRef]
- Schmidt, O.; Gambhir, A.; Staffell, I.; Hawkes, A.; Nelson, J.; Few, S. Future cost and performance of water electrolysis: An expert elicitation study. Int. J. Hydrogen Energy 2017, 42, 30470–30492. [Google Scholar] [CrossRef]
- Arsad, A.Z.; Hannan, M.A.; Al-Shetwi, A.Q.; Begum, R.A.; Hossain, M.J.; Ker, P.J.; Mahlia, T.I. Hydrogen electrolyser technologies and their modelling for sustainable energy production: A comprehensive review and suggestions. Int. J. Hydrogen Energy 2023, 48, 27841–27871. [Google Scholar] [CrossRef]
- Gronier, T.; Maréchal, W.; Geissler, C.; Gibout, S. Usage of GAMS-Based Digital Twins and Clustering to Improve Energetic Systems Control. Energies 2022, 16, 123. [Google Scholar] [CrossRef]
- Otsubo, Y. Hydrogen compression and long-distance transportation: Emerging technologies and applications in the oil and gas industry—A technical review. Energy Convers. Manag. X 2025, 25, 100836. [Google Scholar] [CrossRef]
- Franco, A.; Giovannini, C. Hydrogen Gas Compression for Efficient Storage: Balancing Energy and Increasing Density. Hydrogen 2024, 5, 293–311. [Google Scholar] [CrossRef]
- Saxena, S.; Xing, Y.; Kwon, D.; Pecht, M. Accelerated degradation model for C-rate loading of lithium-ion batteries. Int. J. Electr. Power Energy Syst. 2019, 107, 438–445. [Google Scholar] [CrossRef]
- Cigolotti, V.; Genovese, M.; Fragiacomo, P. Comprehensive Review on Fuel Cell Technology for Stationary Applications as Sustainable and Efficient Poly-Generation Energy Systems. Energies 2021, 14, 4963. [Google Scholar] [CrossRef]
- Parra, D.; Patel, M.K. Techno-economic implications of the electrolyser technology and size for power-to-gas systems. Int. J. Hydrogen Energy 2016, 41, 3748–3761. [Google Scholar] [CrossRef]
- Kong, Y.; Yuan, L.; Liao, Y.; Shao, Y.; Hao, S.; Huang, Y. Efficient separation and selective Li recycling of spent LiFePO4 cathode. Energy Mater. 2023, 3, 300053. [Google Scholar] [CrossRef]
- Rey, J.; Segura, F.; Andújar, J.M.; Ferrario, A.M. The Economic Impact and Carbon Footprint Dependence of Energy Management Strategies in Hydrogen-Based Microgrids. Electronics 2023, 12, 3703. [Google Scholar] [CrossRef]
- Nguyen, H.-L.; Lee, S.-M.; Yu, S. A Comprehensive Review of Degradation Prediction Methods for an Automotive Proton Exchange Membrane Fuel Cell. Energies 2023, 16, 4772. [Google Scholar] [CrossRef]
- Keil, P.; Jossen, A. Impact of Dynamic Driving Loads and Regenerative Braking on the Aging of Lithium-Ion Batteries in Electric Vehicles. J. Electrochem. Soc. 2017, 164, A3081–A3092. [Google Scholar] [CrossRef]
- Istituto Superiore per la Protezione e la Ricerca Ambientale. Available online: www.isprambiente.gov.it (accessed on 20 May 2024).
- Zhang, F.; Thanapalan, K.; Procter, A.; Carr, S.; Maddy, J.; Premier, G. Power management control for off-grid solar hydrogen production and utilisation system. Int. J. Hydrogen Energy 2013, 38, 4334–4341. [Google Scholar] [CrossRef]
- Scamman, D.; Newborough, M.; Bustamante, H. Hybrid hydrogen-battery systems for renewable off-grid telecom power. Int. J. Hydrogen Energy 2015, 40, 13876–13887. [Google Scholar] [CrossRef]
- Ghirardi, E.; Brumana, G.; Franchini, G.; Perdichizzi, A. H2 contribution to power grid stability in high renewable penetration scenarios. Int. J. Hydrogen Energy 2023, 48, 11956–11969. [Google Scholar] [CrossRef]








| Aspect | Previous Studies | This Work |
|---|---|---|
| EMS type | Mostly heuristic or rule-based | Linear optimization + heuristic control |
| Degradation modeling | Often partial or absent; usually only battery | Integrated degradation of FC, EL, and battery |
| Hydrogen modeling | Simplified or steady state | Dynamic model with load-following strategy |
| Economic analysis | Primarily CAPEX | CAPEX + OPEX + replacement cycles |
| Temporal resolution | Hourly or simplified | Hourly EMS with perspective on min-scale extension |
| System scope | Device-level or simplified H2 chain | Full PV–H2–battery hybrid with dynamic energy flow |
| Simulation horizon | Short-term | 20-year lifetime analysis |
| Validation | Limited; small devices | Literature-based validation + realistic profiles |
| Charge Phase (ΔP > 0) | Discharge Phase (ΔP < 0) | |
|---|---|---|
| Total duration [h] | 3148 | 5612 26.87 |
| Maximum power [kW] | 42.6 | 26.87 |
| Average power [kW] | 17.78 | 5.36 |
| Total energy [MWh] | 56.02 | 30.09 |
| Device | CAPEX (EUR/kW) | Cinv (EUR) | % |
|---|---|---|---|
| Battery | 1200 | 37,500 | 45 |
| Fuel cell | 3000 | 18,000 | 22 |
| Electrolyzer | 1500 | 27,000 | 33 |
| Device | Parameter | Size |
|---|---|---|
| Battery | Energy | 75 kWh |
| Fuel cell | Nominal power | 6 kW |
| Electrolyzer | Nominal power | 18 kW |
| Hydrogen tank | Volume (200 bars) | 40 m3 |
| Heuristic | Linear | |
|---|---|---|
| Self-consumption % | 81 | 83 |
| Energy deficit [MWh] | 1.48 | 1.89 |
| Time of deficit [h] | 378 | 492 |
| Energy surplus [MWh] | 14.56 | 13.10 |
| Time of surplus [h] | 1780 | 1707 |
| Charge Phase | Heuristic | Linear |
|---|---|---|
| Energy to the battery [MWh] | 16.47 | 18.45 |
| Energy to the electrolyzer [MWh] | 26.47 | 28.37 |
| ON/OFF cycles of the electrolyzer | 373 | 382 |
| Hydrogen production [kg] | 540.6 | 573.6 |
| Discharge Phase | Heuristic | Linear |
|---|---|---|
| Energy from the battery [MWh] | 14.36 | 17.25 |
| Energy from the fuel cell [MWh] | 15.99 | 14.88 |
| ON/OFF cycles of the fuel cell | 567 | 459 |
| Hydrogen consumption [kg] | 817.5 | 760.8 |
| Device | Heuristic | Linear |
|---|---|---|
| Battery | 86.78% | 85.86% |
| Fuel cell | 68.11% | 72.33% |
| Electrolyzer | 80.89% | 80.42% |
| Device | Residual Life (Fixed Point) | Residual Life (Variable Point) |
|---|---|---|
| Battery | 85.86% | 86.45% |
| Fuel cell | 72.33% | 57.64% |
| Electrolyzer | 80.42% | 70.78% |
| Logic | Replacements of Electrolyzer | Replacements of Fuel Cell | Replacements of Battery | Replacement Costs [EUR] |
|---|---|---|---|---|
| Heuristic | 3 | 5 | 3 | 283,500 |
| Linear | 3 | 4 | 3 | 265,500 |
| Operating Mode | Replacements of Electrolyzer | Replacements of Fuel Cell | Replacements of Battery | Replacement Costs [EUR] |
|---|---|---|---|---|
| Fixed | 3 | 4 | 3 | 265,500 |
| Variable | 4 | 8 | 3 | 364,500 |
| Logic | Emissions (tCO2/y) |
|---|---|
| Heuristic | 444 |
| Linear | 283 |
| Reference grid | 7465 |
| EMS 1 (Literature) | EMS 2 (Literature) | Linear EMS (Present Study) | |
|---|---|---|---|
| Self-consumption % | 48 | 43 | 83 |
| Energy deficit [MWh] | 0.22 | 0.5 | 1.89 |
| Time of deficit [h] | 408 | 647 | 492 |
| Energy surplus [MWh] | 8.6 | 10.5 | 13.10 |
| Time of surplus [h] | 1892 | 1928 | 1707 |
| Device | EMS 1 (Literature) | EMS 2 (Literature) | Linear EMS (Present Study) | |||
|---|---|---|---|---|---|---|
| Time [h] | Energy [kWh] | Time [h] | Energy [MWh] | Time [h] | Energy [kWh] | |
| Battery charge | 1131 | 0.95 | 2797 | 4.13 | 3201 | 18.45 |
| Battery discharge | 668 | 0.88 | 3115 | 3.25 | 4095 | 17.25 |
| Fuel cell | 2795 | 2.8 | 134 | 0.18 | 1532 | 14.88 |
| Electrolyzer | 1618 | 6 | 846 | 0.923 | 1653 | 28.37 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 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/).
Share and Cite
Valle, A.; Gagliardi, G.G.; Borello, D.; Venturini, P. Control Analysis of Renewable Energy System with Hydrogen Storage to Match Energy Community Demand: A Whole-System Perspective. Energies 2025, 18, 6617. https://doi.org/10.3390/en18246617
Valle A, Gagliardi GG, Borello D, Venturini P. Control Analysis of Renewable Energy System with Hydrogen Storage to Match Energy Community Demand: A Whole-System Perspective. Energies. 2025; 18(24):6617. https://doi.org/10.3390/en18246617
Chicago/Turabian StyleValle, Adriano, Gabriele G. Gagliardi, Domenico Borello, and Paolo Venturini. 2025. "Control Analysis of Renewable Energy System with Hydrogen Storage to Match Energy Community Demand: A Whole-System Perspective" Energies 18, no. 24: 6617. https://doi.org/10.3390/en18246617
APA StyleValle, A., Gagliardi, G. G., Borello, D., & Venturini, P. (2025). Control Analysis of Renewable Energy System with Hydrogen Storage to Match Energy Community Demand: A Whole-System Perspective. Energies, 18(24), 6617. https://doi.org/10.3390/en18246617

