Abstract
This paper examines how long-term solar-wind complementarity changes the least-cost design of grid-connected hydrogen refueling stations. A common techno-economic model combines PV, wind, batteries, grid exchange, PEM electrolysis, compression, high-pressure storage and fuel cell backup, using eleven years of hourly ERA5-Land data (2015–2025) for Bizerte, Sousse, Gabès and Ben Guerdane. Particle swarm optimization, reproducible within 0.4% over ten runs, sizes the components under a reserve-aware strategy enforcing a hydrogen loss-of-supply probability below 2% and a renewable fraction of at least 90%. The LCOH is 7.52, 7.88, 8.11 and 9.00 USD/kg at Bizerte, Gabès, Ben Guerdane and Sousse, with no unserved hydrogen demand. Bizerte, the least sunny site, is the cheapest because 666 kW of wind complements 760 kWp of PV, whereas Sousse, with the weakest wind, needs 2159 kWp of PV. Hydrogen storage of 1.5–2.8 days and electrolyzers rated 1.6–2.5 times the mean load provide the flexibility; fuel cells are never selected with grid access, and batteries matter only below 120–150 USD/kWh. The 90% renewable target raises the LCOH by 5.6–15.0%, the loss of export revenue by 7–11% and moderate electrolyzer degradation by 11–19%. The ranking holds under a 20% wind speed correction and in 96% of 1000 Monte Carlo samples, so multi-year solar-wind behavior, not irradiation alone, should guide coastal station siting.