A two-step optimization model for quantifying the flexibility potential of power-to-heat systems in dwellings. (15th October 2018)