Linear and Nonlinear Distributed Economic Model Predictive Control