*5.2. Parameter Setting*

In this study, the microgrid consisted of a DE with a maximum output of 1500 kW, two MTs with a maximum power of 250 kW, and two PV power stations with a maximum power of 800 kW. The maximum deviation of actual output and predicted output in the dispatch period was set at ±30% [19]. Additionally, the system considered that 100 EVs participated in the dispatch. We assumed that the battery capacity of the EVs was 60 kWh, the microgrid was connected to the main grid in real time, the microgrid spinning reserve ratio was set at 0.2, and the simulation time was set at 7:00 a.m. to 4 p.m. The simulation time interval was set at 30 min. The detailed parameters of each unit are shown in Table 1 [26]. The electricity price is shown in Figure 2 [26]. The operation and maintenance costs are shown in Table 2, and the environmental treatment cost is shown in Table 3 [26]. The Lagrange relaxation algorithm with faster convergence speed is used to solve the model on MATLAB/CPLEX software.

**Table 1.** Maximum capacity of each scheduling unit.


**Figure 2.** Time of use electricity prices.

**Table 2.** Power supply operation and maintenance cost parameters.



**Table 3.** Environmental protection cost parameters.
