1 Hierarchical Architecture for Distributed Energy Resource Management.- 2 Optimal Energy Management for Smart Homes.- 3 Decentralized Coordination of Energy Consumption for Smart Neighborhoods.- 4 Risk-Constrained Optimal Energy Management for Smart Microgrids.