Energy demand optimization with respect to uncertainties based on historical time series information | Synapse