Demand-side energy management under time-varying prices. (3rd April 2019)