Nonlinear Model Predictive Control for the Coordination of Electric Loads in Smart Homes