Development and analysis of a polygenerational smart energy hub for sustainable communities. (15th December 2020)