Advanced and Adaptive Dispatch for Smart Grids by means of Predictive Models