Distributed Real-Time Energy Scheduling in Smart Grid: Stochastic Model and Fast Optimization | Synapse