Optimal Operation of Residential Energy Hubs in Smart Grids | Synapse