A Stochastic Programming Strategy in Microgrid Cyber Physical Energy System for Energy Optimal Operation