**4. Simulation Results**

The EO is applied to determine the optimal operation of MG to achieve technical and economic benefits with respecting the associated operational and emission costs for two distribution systems. For the optimal operation, the control variables are the active power resulted from different RERs, including BGs, wind, and PV, and the power factor of BGs.
