Simulation Tool For Energy Consumption and Production: The development of a simulation tool for measuring the impact of a smart grid on a building