Real Time Operation of Smart Grids via FCN Networks and Optimal Power Flow