The growing global energy demand and environmental concerns have accelerated the transition toward renewable energy sources, particularly solar PV and wind energy, supported by advances in PV and MPPT technologies1. Their complementary characteristics make hybrid renewable energy systems more reliable than standalone systems2. However, renewable intermittency and the mismatch between generation and load require effective energy storage and management. Battery storage can improve reliability but significantly increase system cost due to sizing, limited lifetime, and replacement requirements3. Therefore, balancing reliability, storage requirements, and economic feasibility remains a key challenge in the optimal design of isolated hybrid renewable energy systems2,3. Therefore, reducing dependence on conventional storage technologies has become an important research focus. Utilizing surplus renewable energy for hydrogen production offers a promising alternative for improving system performance and reducing overall cost. Das et al.4 showed that storage selection significantly affects stand-alone PV–wind hybrid system performance. Rechargeable batteries remain a major energy storage technology supporting sustainable energy transitions5, while Jahangir et al.6 demonstrated the techno-economic potential of hybrid renewable systems with battery storage for rural applications.
Fuel cells and hydrogen-based technologies are promising components of future energy systems7. Rekioua et al.8 investigated a standalone PV–fuel cell system for minimizing life-cycle cost, while Abomazid et al.9 optimized the operation of a hydrogen facility integrated with battery storage and solar PV. Hu10 reviewed the development of hydrogen and fuel cell technologies in China. González et al.11 compared solar–hydrogen storage with conventional electrical storage technologies, while Abdelsalam et al.12 reviewed the techno-economic aspects of green hydrogen production. Kalinci et al.13 investigated a stand-alone PV–wind hybrid system incorporating hydrogen and battery storage. More recently, Elminshawy et al.14 assessed a PV/wind/battery-driven hydrogen generation system for three rural regions in Egypt, identifying Ras Ghareb as the most suitable site with an LCOH of 2.22 USD/kg. However, their study considered predefined system configurations and did not comprehensively optimize and compare alternative hybrid energy storage architectures.
Several studies have investigated the economic and environmental performance of renewable energy systems incorporating different storage and generation technologies. Alqahtani and Balta-Ozkan15 assessed rooftop PV systems for residential loads in Neom, highlighting key economic considerations. Seedahmed et al.16 investigated the optimal sizing of a grid-connected PV system for a large commercial load, demonstrating the importance of system sizing for economic performance. Jahangir et al.6 analyzed a hybrid solar–wind–biomass system with battery storage, demonstrating its economic and environmental performance under varying biomass prices. Odetoye et al.17 conducted a multi-year techno-economic assessment of a renewable hybrid community microgrid and reported reduced costs and CO2 emissions compared with diesel-based systems. Al-Hanoot et al.18 assessed the economic feasibility and optimal sizing of grid-connected PV/battery systems for industrial buildings.
Energy system modeling and optimization tools are widely used to evaluate hybrid renewable energy configurations. Yang and Li19 employed HOMER Pro to optimize an off-grid solar/wind/battery system, while Coban et al.20 investigated hybrid renewable configurations from technical and economic perspectives. Comparative studies of long-term sizing methods have highlighted the importance of selecting optimization approaches according to system characteristics and planning horizon21. Recent work by Sanjeevikumar et al.22 has addressed economic dispatch, generation scheduling, and security-constrained optimization in modern power systems, including applications involving renewable energy and energy storage. More recently, Koholé et al.23 compared battery, hydrogen, pumped-hydro, and thermal energy storage technologies for integration with hybrid renewable energy systems, emphasizing the importance of appropriate storage selection in system design.
Recent research has increasingly incorporated artificial intelligence and machine learning techniques into energy system analysis. AI-based approaches have been applied to the assessment and site selection of underground hydrogen storage technologies24. Advanced deep-learning and meteorological reconstruction methods have also improved short-term photovoltaic and wind power forecasting25,26. These developments demonstrate the growing role of data-driven techniques in hydrogen energy systems and renewable power prediction27. Energy management approaches have also been investigated to coordinate renewable generation, energy storage, and load demand. More recently, Nasab et al.28 investigated demand-side management in smart grids, emphasizing the coordination of generation, energy storage, and electricity consumption to improve energy management and reduce operating costs. Recently, Selim et al.29 proposed a deterministic balance method (DBM) for the optimal sizing of an off-grid PV–wind system with hydrogen storage, achieving sizing results comparable to HOMER Pro with lower computational effort. However, their study considered a single hydrogen-based configuration and did not provide a comprehensive comparison of alternative storage architectures under different climatic conditions29.
Despite extensive research on hybrid renewable energy systems employing battery or hydrogen-based storage, many studies focus on a single storage technology under specific technical or geographic conditions. Comparative techno-economic assessments of battery and hydrogen storage within the same isolated PV–wind system remain limited, particularly when full-load coverage is strictly required30. Moreover, the economic value of hydrogen as a revenue-generating energy carrier has received limited attention, although hydrogen revenue can substantially affect optimal system sizing and overall cost. Limited attention has also been given to systematically comparing different optimization approaches for multiple hybrid configurations under identical operating conditions. Recently, Ragab et al.31 developed an optimized multi-energy system for combined electricity and green hydrogen production in Egypt, demonstrating the potential of integrating renewable resources with hydrogen across multiple energy pathways. However, their study focused on integrated energy pathways rather than a comparative techno-economic optimization of multiple hybrid storage configurations.
The main contribution of this study is a systematic techno-economic comparison of alternative storage and backup pathways within a unified optimization framework for isolated PV–wind hybrid systems. The key contributions are as follows. First, a comprehensive optimization framework is developed to investigate the impact of green hydrogen integration on system sizing and economic performance. Second, five alternative configurations are comparatively evaluated, including battery-based, hydrogen-based, and hybrid storage systems with and without diesel backup. Third, hydrogen is considered not only as an energy storage medium but also as a revenue-generating energy carrier through hydrogen sales, enabling a broader assessment of surplus renewable energy utilization. Fourth, the GA-based optimization determines the optimal component capacities while satisfying technical constraints and minimizing the net present cost under different climatic conditions. Overall, the proposed framework provides a consistent basis for assessing the economic role of hydrogen relative to conventional storage and backup options in isolated renewable energy systems.
Despite its considerable potential, green hydrogen production still faces technical and economic challenges. Its feasibility depends strongly on the availability of surplus renewable electricity, while the high capital cost of electrolyzers and the intermittent nature of PV and wind resources may reduce its economic viability without proper integration into the overall energy management strategy. Consequently, an important research question is whether surplus renewable energy can be utilized more economically through hydrogen production than conventional battery storage, and which hybrid configuration can minimize overall system cost while ensuring reliable full-load coverage. Addressing this question motivates the present study.
This study develops a comprehensive techno-economic framework for the optimal sizing and comparative evaluation of five isolated PV–wind system configurations: PV–Wind–Hydrogen, PV–Wind–Battery, PV–Wind–Battery–Hydrogen, PV–Wind–Battery–Hydrogen–Diesel, and PV–Wind–Battery–Diesel. The framework ensures continuous load supply while minimizing the net present cost (NPC). Hourly energy balance modeling captures the variability of solar irradiation and wind speed, while surplus renewable energy is converted into hydrogen through electrolysis. Hydrogen can either be stored for subsequent electricity generation through a fuel cell or sold as a commercial product to offset system costs. A genetic algorithm (GA) is employed to determine the optimal system sizing while satisfying the load-demand constraint. The optimization variables include the numbers of PV panels, wind turbines, and batteries, wind turbine hub height, PV tilt angle, and diesel generator capacity. The framework is evaluated under three representative climatic conditions with different solar and wind resources to assess its techno-economic performance across diverse operating scenarios.
The remainder of the paper is organized as follows,
System modeling
Figure 1 illustrates the general configuration of a hybrid renewable energy system integrating multiple energy sources and storage technologies to supply the electrical load. The system includes renewable generation units, namely photovoltaic (PV) arrays and wind turbines, connected through AC and DC buses using appropriate power electronic converters. Conventional backup sources, such as diesel generator (DG) units, can also be incorporated to enhance system reliability during periods of insufficient renewable generation.

General configuration of a hybrid renewable energy system integrating PV, wind, battery storage, hydrogen system, and diesel generator.
Energy storage plays a vital role in maintaining the balance between generation and demand. Battery storage is used to store excess energy and supply it during deficit periods, while surplus renewable energy can also be converted into hydrogen through an electrolyzer, providing an alternative long-term storage pathway. The produced hydrogen can be stored and subsequently converted into electricity using a fuel cell or utilized for other applications, thereby improving system flexibility and reducing energy curtailment. This general configuration provides a flexible framework for analyzing different hybrid system scenarios. In this study, specific configurations are selected and optimized according to the proposed energy management strategy (EMS).
The proposed EMS follows a hierarchical dispatch priority to ensure reliable load supply while minimizing the net system cost. The electrical load is supplied primarily by available PV and wind generation. During periods of surplus renewable generation, excess power is preferentially directed to the electrolyzer for hydrogen production. If the available surplus exceeds the rated electrolyzer capacity, the remaining excess energy is stored in the battery when battery storage is available. During periods of renewable power deficit, the fuel cell is activated first to convert stored hydrogen into electricity and support the load demand. If the fuel cell output is insufficient to satisfy the remaining demand, the battery is discharged to provide the required additional power. Finally, if the combined renewable generation, fuel cell, and battery output remain insufficient, or if the battery reaches its minimum allowable state of charge, the diesel generator is started as the last-resort backup source to ensure uninterrupted power supply.
Modeling of PV system
A simplified, physically consistent solar geometry-based model is employed to estimate PV power output. The incident irradiance on the tilted surface is derived from a simplified beam irradiance model using standard solar position equations. Diffuse and ground-reflected radiation components, as well as temperature effects, are neglected to maintain model simplicity and focus on system sizing and comparative performance analysis.
The electrical output power is calculated based on PV module efficiency and an overall system derating factor, with the output limited to the rated module power1,32. The modeling equations are presented in Eqs. (1–4), with all symbols defined in Table 1.
Equation (1) defines the solar declination angle (δ), representing the apparent position of the sun relative to the equatorial plane throughout the year as a function of the day number (n).
$$ \delta = {23}.{45} \times {\text{sin}}\left( {\frac{360}{{365}} \times ({284} + {\text{n}})} \right) $$
(1)
Equation (2) calculates the solar altitude angle (α), which represents the sun’s elevation above the horizon as a function of latitude (ϕ), declination angle (δ), and hour angle (ω).
$$ \alpha = \sin^{ – 1} [\sin (\phi ) \times \sin (\delta ) + \cos (\phi ) \times \cos (\delta ) \times \cos (\omega )] $$
(2)
Equation (3) defines the angle of incidence (θ), representing the angle between the solar rays and the normal to the tilted PV surface based on the solar position and panel orientation.
$$ {\text{Cos}}\left( \theta \right) = {\text{sin}}\left( \delta \right){\text{ sin(}}\phi {-}\beta ) + {\text{cos}}\left( \delta \right){\text{ cos(}}\phi {-}\beta ){\text{ cos}}\left( \omega \right) $$
(3)
The direct irradiance is then obtained by applying atmospheric transmittance to the extraterrestrial solar irradiance, while the irradiance incident on the tilted surface is determined by projection onto the PV plane. The PV output power is subsequently calculated as
$$ P_{pv} = P_{rated} \left( {\frac{{G_{tilt } }}{1000}} \right) \times f $$
(4)
The standard test condition irradiance is 1000 W/m2.
Modeling of wind power
The output power of a wind turbine mainly depends on the wind speed distribution and is estimated using a power curve–based model32. The wind turbine power output can be expressed as follows and all symbols are defined in Table 2.
$$ P_{{wt}} \left( v \right) = \left\{ {\begin{array}{*{20}c} {v < v_{{ci}} \;or\;v > v_{{co}} } & 0 \\ {v_{{ci}} \le v \le v_{r} } & {P_{r} \times \frac{{v^{3} – v_{{ci}} ^{3} }}{{v_{r} ^{3} – v_{{ci}} ^{3} }}} \\ {v_{r} < v \le v_{{co}} } & {P_{r} } \\ \end{array} } \right. $$
(5)
To account for the effect of hub height, the wind speed \(v\) used in Eq. (5) is adjusted to the turbine hub height H using the following relationship:
$$ V_{H} = V_{{H_{0} }} \left( {\frac{H}{{H_{0} }}} \right)^{\alpha } $$
(6)
Thus, \({V}_{H}\) represents the wind speed \(v\) used in Eq. (9) at the selected hub height.
Modeling of the battery storage system
The battery storage capacity is determined based on the net energy balance between PV–wind generation and the load demand32. During periods of surplus generation, the battery energy is updated while considering the charging efficiency and maximum allowable state of charge: The all symbols are defined in Table 3.
$$ E_{bat} \left( {t + 1} \right) = E_{bat} \left( t \right) + Min\left[ {\left( {Generation – Demand ) \times \eta_{c} , (E_{BAT,\max } – E_{bat} \left( t \right)} \right)} \right] $$
(7)
During periods of energy deficit, the battery supplies the load subject to the discharge efficiency and minimum allowable state of charge:
$$ E_{bat} \left( {t + 1} \right) = E_{bat} \left( t \right) – Min\left[ {\left( {Demand – Generation ) \div \eta_{d} , (E_{bat} \left( t \right) – E_{BAT,\min } } \right)} \right] $$
(8)
Modeling of hydrogen energy subsystem
A hydrogen energy subsystem is integrated with the renewable power generation system to manage surplus and deficit power. It consists of an electrolyzer, hydrogen storage, and fuel cell and is modeled using an hourly time resolution. At each time step, renewable power generation is compared with the load demand to determine the available surplus or power deficit.
During periods of surplus renewable generation, the excess power is supplied to the electrolyzer to produce hydrogen, which is stored for later use. When renewable generation is insufficient to meet the load demand, the stored hydrogen is converted into electrical power through the fuel cell to compensate for the power deficit. Hydrogen production and consumption are modeled using constant electrolyzer and fuel cell efficiencies and the lower heating value (LHV) of hydrogen. A hydrogen mass balance is applied to track the stored hydrogen over time, while dynamic and ramping constraints are neglected in the operational model.
The governing equations of the hydrogen subsystem are presented below33,34,35,36, with all symbols defined in Table 4.
$$ m_{H2,EL} \left( t \right) = \frac{{P_{sur} \left( t \right) \times \eta_{el} \times { }\Delta {\text{t}}}}{{LHV_{H2} }} $$
(9)
When the renewable energy sources are unable to satisfy the load demand, the fuel cell is activated to compensate for the power deficit. The required hydrogen consumption rate of the fuel cell is calculated using Eq. (10), which determines the hydrogen required to generate the deficit power based on the instantaneous power deficit, the lower heating value (LHV) of hydrogen, and the fuel cell efficiency.
$$ m_{H2,FC,req} = \frac{{P_{def} \left( t \right) }}{{LHV_{H2} \times \eta_{FC} }} $$
(10)
$$ {\text{H}}\left( {\text{t}} \right) = {\text{H}}\left( {{\text{t}} – {1}} \right) \, + m_{H2,EL} \left( t \right) – m_{H2,FC} \left( t \right) $$
(11)
Modeling of diesel generator
The diesel generator (DG) fuel consumption is modeled as a linear function of its output power, capturing fuel usage from no-load to full-load operating conditions37.
The fuel consumption at each time step is given by Eq. (12), with all symbols defined in Table 5.
$$ Fuel_{total} = \sum\nolimits_{t = 1}^{T} {\left[ {F_{0} + \left( {F_{R} – F_{0} } \right) + \left( { F_{R} – F_{0} } \right)\left( { \frac{{P_{dg,t} }}{{P_{r} }}} \right)} \right]} $$
(12)
Modeling of PV and wind system cost
The techno-economic formulation of the PV and wind subsystems, including capital and operation and maintenance (O&M) costs, is presented in Eqs. (13–15)38,39. All symbols are defined in Table 6.
The total cost of the PV and wind subsystems is calculated using Eq. (15), while the capital recovery factor (CRF) and real interest rate are determined using Eqs. (16) and (17), respectively40.
$$ C_{PV} = N_{PV} \times p_{r} \times \left( {CRF \times I_{PV} + I_{OMPV} } \right) $$
(13)
$$ C_{WT} = N_{WT} \times p_{r} \times \left( {CRF \times I_{WT} + I_{OMWT} } \right) $$
(14)
$$ C_{total} = C_{PV} + C_{WT } $$
(15)
$$ {\text{CRF }} = \frac{{r \times \left( {1 + r} \right)^{n} }}{{\left( {1 + r} \right)^{n} – 1}} $$
(16)
$$ {\text{r }} = \frac{{i_{loan} – f_{1} }}{{1 + f_{1} }} $$
(17)
Modeling of battery cost
The battery cost model includes capital, replacement, and operation and maintenance (O&M) costs, as expressed in the following equations41,42,43,44. All symbols are defined in Table 7.
$$ C_{bat,total} = N_{BA} \left[ {CRF \times C_{init,bat} \times E_{bat,unit} + \frac{{C_{rep,bat} \times E_{bat,unit } }}{{n_{b} }} + I_{OMBAT} \times E_{bat,unit} } \right] $$
(18)
For the PV–wind–hydrogen–battery system, the battery cost is calculated based on the actual battery energy utilized during operation, \({E}_{bat,used}\), rather than the nominal battery capacity, \({E}_{bat,unit}\). This formulation reflects the proposed energy management strategy, in which hydrogen is prioritized and the battery is used only when additional energy is required to meet the load.
$$ C_{bat,total}^{used} = N_{BA} \left[ {CRF \times C_{init,bat} \times E_{bat,used} + \frac{{C_{rep,bat} \times E_{bat,used } }}{{n_{b} }} + I_{OMBAT} \times E_{bat,used} } \right] $$
(19)
Here, \({E}_{bat,used}\) represents the total battery energy discharged during the operating period. This represents a specific modeling assumption adopted in this study.
Modeling of electrolyzer and fuel cell cost
The cost model of the electrolyzer, hydrogen storage, and fuel cell subsystems includes capital and operation and maintenance (O&M) costs, together with hydrogen revenue, as described by the following equations45,46,47,48. All symbols are defined in Table 8.
$$ C_{sys,adj} = C_{PV} + C_{WT} + C_{EL} \times P_{EL} \left( {CRF + f_{O\& M} } \right) + C_{FC,cap} + C_{BAT} – \prod_{H2} $$
(20)
$$ C_{EL,cap} + \begin{array}{*{20}c} C \\ \end{array}_{EL,O\& M} = \begin{array}{*{20}c} C \\ \end{array}_{EL} \times P_{EL} \left( {CRF + f_{O\& M} } \right) $$
(21)
$$ \prod_{{H_{2} }} = M_{H2,sold} \times P_{H2} – \left[ {\begin{array}{*{20}c} C \\ \end{array}_{EL} \times P_{EL} \left( {CRF + f_{O\& M} } \right) + C_{comp} + C_{stor,cap} + C_{O\& M,stor} } \right] $$
(22)
$$ C_{FC, CAP} = \left( {CRF \times C_{FC} \times P_{FC} } \right) $$
(23)
Hydrogen revenue is considered as a negative cost to reduce the overall system cost. Hydrogen utilization differs according to the investigated system configuration. In the PV–Wind–Hydrogen configuration, the electrical load is supplied entirely by renewable energy sources, while surplus renewable energy is converted into hydrogen through the electrolyzer. Since no fuel cell is included in this configuration, all produced hydrogen is available for external sale, and the corresponding revenue is incorporated into the objective function.
In configurations incorporating a fuel cell, the produced hydrogen is first stored in the hydrogen tank and used as an energy storage medium. During periods of renewable power deficit, stored hydrogen is converted into electricity through the fuel cell to support the electrical load according to the proposed Energy Management Strategy. Only the remaining hydrogen that is not required for load support is considered available for sale. Therefore, hydrogen utilization differs among the investigated configurations according to their system architecture and operational objectives. The hydrogen storage tank capacity is determined from the maximum hydrogen accumulation during the simulation period and is calculated as:
$$ M_{tank} = {\text{max}}\left( { H_{2} \left( t \right) } \right) $$
(24)
This approach ensures that the storage system can accommodate the maximum hydrogen inventory without introducing an additional optimization variable. The economic model also accounts for hydrogen compression and storage costs, which are calculated based on the produced hydrogen mass and the required storage capacity, respectively. Hydrogen mass losses during storage are neglected, assuming short-term storage operation under appropriate containment conditions.
Modeling of diesel generator cost
The total fuel cost is calculated by multiplying the accumulated fuel consumption by the unit fuel price, following the standard economic formulation used in hybrid energy system analysis49. All symbols are defined in Table 9.
$$ C_{fuel} = fuel_{total} \times c_{f} $$
(25)