Electricity Consumption Optimization Using Thermal and Battery Energy Storage Systems in Buildings | Synapse