Heating with multiple energy sources