Predictive control and optimal operation of micro-grid Distributed control and optimization in smart grids