Recently, multi-energy systems (MESs), whereby different energy carriers are coupled together, have become popular. For a more efficient use of MESs, the optimal operation of these systems needs to be considered. This paper focuses on the day-ahead optimal schedule of an MES, including a combined heat and electricity (CHP) unit, a gas boiler, a PV system, and energy storage devices. Starting from a day-ahead PV point forecast, a non-parametric probabilistic forecast method is proposed to build the predicted interval and represent the uncertainty of PV generation. Afterwards, the MES is modeled as mixed-integer linear programming (MILP), and the scheduling problem is solved by interval optimization. To demonstrate the effectiveness of the proposed method, a case study is performed on a real industrial MES. The simulation results show that, by using only historical PV measurement data, the point forecaster reaches a normalized root-mean square error (NRMSE) of 14.24%, and the calibration of probabilistic forecast is improved by 10% compared to building distributions around point forecast. Moreover, the results of interval optimization show that the uncertainty of the PV system not only has an influence on the electrical part of the MES, but also causes a shift in the behavior of the thermal system.
Reinforcement learning (RL) is a promising optimal control technique for multi-energy management systems. It does not require a model a priori - reducing the upfront and ongoing project-specific engineering effort and is capable of learning better representations of the underlying system dynamics. However, vanilla RL does not provide constraint satisfaction guarantees - resulting in various potentially unsafe interactions within its safety-critical environment. In this paper, we present two novel safe RL methods, namely SafeFallback and GiveSafe, where the safety constraint formulation is decoupled from the RL formulation. These provide hard-constraint, rather than soft- and chance-constraint, satisfaction guarantees both during training a (near) optimal policy (which involves exploratory and exploitative, i.e. greedy, steps) as well as during deployment of any policy (e.g. random agents or offline trained RL agents). This without the need of solving a mathematical program, resulting in less computational power requirements and a more flexible constraint function formulation (no derivative information is required). In a simulated multi-energy systems case study we have shown that both methods start with a significantly higher utility (i.e. useful policy) compared to a vanilla RL benchmark and Optlayer benchmark (94,6% and 82,8% compared to 35,5% and 77,8%) and that the proposed SafeFallback method even can outperform the vanilla RL benchmark (102,9% to 100%). We conclude that both methods are viably safety constraint handling techniques applicable beyond RL, as demonstrated with random policies while still providing hard-constraint guarantees.