A new optimized demand management system for smart grid-based residential buildings adopting renewable and storage energies | Synapse