Optimization based load forecasting and demand management in smart building microgrids with Greylag Goose and Bi level graph models