Design for energy flexibility in smart buildings through solar based and thermal storage systems: Modelling, simulation and control for the system optimization. (1st December 2022)