Abstract
The design and scheduling of electrolysis-based hydrogen production plants are subject to uncertainty in future electricity price predictions. Two-stage stochastic programming, which can model this uncertainty, often suffers from high computational costs. In this work, we propose the use of quantile neural networks as surrogates to model the so-called "second stage" for the integrated design and scheduling problem of a hydrogen process. Our surrogate model captures the distribution of the second-stage value function conditioned on electricity price-dependendent first-stage decisions. The neural network surrogate is then embedded into the two-stage stochastic program, enabling solutions to be found without computationally expensive sampling approaches. As the surrogate model outputs a distribution of the second-stage value function, we show this approach further enables joint optimization based on expectation and conditional value at risk, which is a measure of tail risk. Our results show that the inclusion of risk measures leads to higher investments in the electrolyzer and the storage to hedge against high electricity cost scenarios. The surrogate-based approach yields high-quality decisions and requires significantly less computational resources than the conventional sample average approximation.