In this paper, the system stability-constrianted optimal protection coordination (SSCOPC) as stochastic problem in the microgrid with grid-connected and islanded operation modes, including renewable energy sources (RESs) and energy storage systems (ESSs), is presented. This problem to optimal regulation of the dual setting overcurrent relays (DSORs) and selecting the reactance size of fault cur...