Modeling and simulation of a microgrid as a Stochastic Hybrid System | IEEE Conference Publication | IEEE Xplore