Load scheduling, battery energy storage control, and improving user comfort are critical energy optimization problems in smart grid. However, system inputs like renewable energy generation process, conventional grid generation process, battery charging/discharging process, dynamic price signals, and load arrival process comprise controller performance to accurately optimize real-time battery energy storage scheduling, load scheduling, energy generation, and user comfort. Thus, in this work, the virtual queue stability based Lyapunov optimization technique (LOT) is adopted to investigate real-time energy optimization in a grid-connected sustainable smart home with a heating, ventilation, and air conditioning (HVAC) load considering unknown system inputs dynamics. The main goal is to minimize overall time average energy cost and thermal discomfort cost in a long time horizon for sustainable smart home accounting for changes in home occupancy state, the most comfortable temperature setting, electrical consumption, renewable generation output, outdoor temperature, and the electricity costs. The employed algorithm creates and regulates four queues for indoor temperature, electric vehicle (EV) charging, and energy storage system (ESS). Extensive simulations are conducted to validate the employed algorithm. Simulation results illustrate that the proposed algorithm performs real-time energy optimization and reduces the time average energy cost of 20.15% while meeting the user's energy and comfort requirement.
INDEX TERMSReal-time, optimization, convex optimization, dynamic pricing, renewable energy generation, scheduling, energy storage, user comfort. NOMENCLATURE Abbreviations Explanation AI Artificial intelligence. ACO Ant colony optimization. ABC Artificial bee colony. AEP Annual energy production. BES Battery energy storage. DR Demand response.