Multi-Time-Scale Rolling Optimal Dispatch for Grid-Connected AC / DC Hybrid Microgrids

: In order to reduce the impact of the randomness and volatility of renewable energy on the economic operation of AC / DC hybrid microgrids, a multi-time-scale rolling optimization strategy is proposed for the grid-connected AC / DC hybrid microgrids. It considers the source-load uncertainty declined with time scale reduction, and the scheduling cooperation problem of di ﬀ erent units on di ﬀ erent time scales. In this paper, we propose a three-time-scale optimal strategy of the day-ahead, intraday and real-time dispatching stage and a two-level rolling optimal strategy of the intraday and real-time stage, aiming at minimizing the operating cost. We added the power penalty cost in the rolling optimization model to limit the energy state of the energy storage system in the constraint, and improve the power correction and tracking e ﬀ ect of the rolling optimization. A typical-structure AC / DC hybrid microgrid is analyzed in this paper and the simulation results are shown to demonstrate the feasibility and e ﬀ ectiveness of the proposed multi-time-scale rolling optimal dispatch.


Introduction
With the rapid increase of distributed energy supply in the power grid, more and more attention has been paid to the energy management of different types of distributed energy [1]. As an effective form of distributed generation access to the power grid, microgrids have been widely used in the electric power industry, among which AC microgrids have been a priority [2]. In recent years, DC-type distributed power supply and load have gained more attention in practical production because of the advantages of high efficiency and low loss [3]. AC/DC hybrid microgrid structure has become an important mode for DC distributed power supply and load access [4]. These forms of energy generation often have quite strong randomness, volatility and intermittentness, so high-precision load forecasting algorithms are needed to support this AC/DC hybrid microgrid structure [5].
The AC/DC hybrid microgrids connect the distributed generator and load to AC and DC networks, respectively. Their optimal dispatching is more complex than AC microgrids. Relevant research has been carried out domestically and abroad. In [6], a decentralized power control method for grid-connected and isolated AC/DC hybrid microgrids was proposed, which adopts a different power exchange strategy for different operation conditions. The optimal dispatch of grid-connected AC/DC hybrid microgrids by combining a demand side response and energy storage operation was proposed in [7], and can effectively smooth tie-line power. The demand side management, which reduces the operation cost of microgrids, was added to the economic operation of AC/DC hybrid microgrids for peak cutting and valley filling in [8]. In [9], the operation mode of using a fixed strategy to formulate a As shown in Figure 1, the alternating current (AC) side of the microgrids is connected to wind turbine (WT) and AC load, while the direct current (DC) side is connected to photovoltaic (PV), energy storage and DC load. AC and DC buses are connected by bi-directional commutation devices, and the AC side of the microgrids is connected to the large grid to realize grid connection. During the operation of microgrids, AC load is mainly supplied by wind power, while DC load is supplied by photovoltaic energy. The energy storage system is used to suppress load fluctuation, peak cutting and valley filling. The bi-directional converter helps the AC and DC power flow in two directions, and coordinates the operation of each region. In addition, when power gain or loss occurs in microgrids, power interaction can be carried out with microgrids.
The main operation characteristics of grid-connected AC/DC hybrid microgrids are as follows: (1). Distributed power supply on the AC side and the DC side should be given priority to supply power to each side respectively to meet the load demand in each region. (2). Power interaction between the AC side and the DC side through bidirectional converters can complement each other. (3). Energy storage can suppress power fluctuation on the AC side or the DC side. For the DC side, the storage system can charge and discharge directly, while for the AC side, the bi-directional converter affects the operation of energy storage. (4). There is a direct power interaction between the AC side and the main grid, but the interaction between the DC side and the main grid is also related to the bi-directional converter. In the traditional grid-connected AC microgrids, all power sources and loads are directly connected with AC buses. Their structure and operation mode are relatively simple. In the grid-connected AC/DC hybrid microgrids, AC and DC are separated. It is necessary to coordinate the DC side, AC side, large grid, and energy storage system all together to reach the power balance.

Multi-time Scale Rolling Optimization Architecture
In grid-connected AC/DC hybrid microgrids, the power prediction errors in different time scales will self-balance in the AC/DC region and reach commutation balance between regions. In addition, the residual power fluctuation will be balanced by the energy storage and the grid-connected tie-line. The rolling optimization reduces the error with the superior optimization result based on the abovementioned balanced power fluctuation. There are many source-load cells in AC/DC hybrid microgrids, and the uncertainty of which calls for new requirements for system scheduling. In order to effectively manage the energy in grid-connected AC/DC hybrid microgrids and reduce the impact of uncertainty, this paper established a multi-time-scale rolling optimization model, which includes a three-time-scale optimal strategy and a two-level rolling optimization. The optimization process is shown in Figure 2. The main operation characteristics of grid-connected AC/DC hybrid microgrids are as follows: (1). Distributed power supply on the AC side and the DC side should be given priority to supply power to each side respectively to meet the load demand in each region. (2). Power interaction between the AC side and the DC side through bidirectional converters can complement each other. (3). Energy storage can suppress power fluctuation on the AC side or the DC side. For the DC side, the storage system can charge and discharge directly, while for the AC side, the bi-directional converter affects the operation of energy storage. (4). There is a direct power interaction between the AC side and the main grid, but the interaction between the DC side and the main grid is also related to the bi-directional converter. In the traditional grid-connected AC microgrids, all power sources and loads are directly connected with AC buses. Their structure and operation mode are relatively simple. In the grid-connected AC/DC hybrid microgrids, AC and DC are separated. It is necessary to coordinate the DC side, AC side, large grid, and energy storage system all together to reach the power balance.

Multi-time Scale Rolling Optimization Architecture
In grid-connected AC/DC hybrid microgrids, the power prediction errors in different time scales will self-balance in the AC/DC region and reach commutation balance between regions. In addition, the residual power fluctuation will be balanced by the energy storage and the grid-connected tie-line. The rolling optimization reduces the error with the superior optimization result based on the above-mentioned balanced power fluctuation. There are many source-load cells in AC/DC hybrid microgrids, and the uncertainty of which calls for new requirements for system scheduling. In order to effectively manage the energy in grid-connected AC/DC hybrid microgrids and reduce the impact of uncertainty, this paper established a multi-time-scale rolling optimization model, which includes a three-time-scale optimal strategy and a two-level rolling optimization. The optimization process is shown in Figure 2.
(1) Day-ahead dispatching: Day-ahead dispatching uses 1 h as the time scale to forecast the wind and solar power load of 24 h in the coming day. According to the day-ahead forecast data and electricity price information, under the constraints of system and equipment operation, the next-day hourly operation power of each distributed power source, energy storage system, bidirectional converter, and tie-line is optimized with the objective of minimizing the operation cost of the microgrids. In addition, the day-ahead dispatching plan is formulated and delivered in advance. The optimization is executed once a day before the scheduling, and the results of optimization can be used as a reference for intraday dispatching.
(2) Intraday dispatching: Intraday dispatching uses 15 min as the time scale to predict the power of the next one hour. In order to reduce the impact of day-ahead prediction errors, the operation power of each subunit of the microgrids in the next 1 h and 15 min is optimized with the objective of minimizing the system operation cost and equipment operation power, based on the predicted data of intraday and the optimization results of the day-ahead dispatch. The original operation plan is modified only by the optimization results in the next 15 min. Intraday dispatching is performed every 15 min, and the revised operation plan is used as a reference for real-time scheduling.
(3) Real-time dispatching: Real-time dispatching uses 5 min as the time scale to predict the power of the next 15 min. In order to reduce the impact of intraday prediction errors, real-time forecasting data and the optimization results of intra-day scheduling are needed for forecasting. With the goal of minimizing the system operating cost and equipment operating power correction, the operating power of each sub-unit of the microgrid will be rolling optimized every 5 min within the next 15 min, and only the scheduling plan for the next 5 min is revised.  (1) Day-ahead dispatching: Day-ahead dispatching uses 1 h as the time scale to forecast the wind and solar power load of 24 h in the coming day. According to the day-ahead forecast data and electricity price information, under the constraints of system and equipment operation, the next-day hourly operation power of each distributed power source, energy storage system, bidirectional converter, and tie-line is optimized with the objective of minimizing the operation cost of the microgrids. In addition, the day-ahead dispatching plan is formulated and delivered in advance. The optimization is executed once a day before the scheduling, and the results of optimization can be used as a reference for intraday dispatching.
(2) Intraday dispatching: Intraday dispatching uses 15 min as the time scale to predict the power of the next one hour. In order to reduce the impact of day-ahead prediction errors, the operation power of each subunit of the microgrids in the next 1 h and 15 min is optimized with the objective of minimizing the system operation cost and equipment operation power, based on the predicted data of intraday and the optimization results of the day-ahead dispatch. The original operation plan is modified only by the optimization results in the next 15 min. Intraday dispatching is performed every 15 min, and the revised operation plan is used as a reference for real-time scheduling.
(3) Real-time dispatching: Real-time dispatching uses 5 min as the time scale to predict the power of the next 15 min. In order to reduce the impact of intraday prediction errors, real-time forecasting data and the optimization results of intra-day scheduling are needed for forecasting. With the goal of

Optimal Scheduling Model
The multi-time scale rolling optimal scheduling of grid-connected AC/DC hybrid microgrids includes three parts: day-ahead, intraday, and real-time dispatching. The detailed scheduling model described in this paper is as follows.

Day-Ahead Dispatching
The day-ahead dispatching optimization model for grid-connected AC/DC hybrid microgrids is established with the objective of minimizing the operation cost of microgrids. Dh represents day-ahead dispatching, and the objective function of the model is C Dh .
where F1 is the total cost of equipment maintenance, F2 is the cost of energy storage, F3 is the cost of electricity purchase and sale, N t is the total number of time periods in a scheduling cycle, m WT , m PV and m CV are the maintenance cost coefficients of wind power, photovoltaic and bidirectional converter, respectively, m SB is the cost coefficient of charge and discharge loss per unit of energy storage, which can be converted according to the investment cost of energy storage and the charge and discharge capacity of its life cycle, m GD,t is the price of t period, and the price of purchasing and selling electricity is positive, and P Dh WT,t , P Dh PV,t , P Dh CV,t , P Dh SB,t and P Dh GD,t represent the operation power of wind power generation, photovoltaic power generation, bidirectional converter, energy storage and contact line in t period, respectively. When the converter power flows from the DC side to the AC side, the P Dh CV,t is positive and vice versa. The size of P Dh CV,t represents the input power, P Dh SB,t represents charging, negative represents discharging, and P Dh GD,t represents purchasing power from the grid, and negative represents selling power to the grid.
The day-ahead dispatching of microgrids needs to satisfy the operational constraints of system and equipment. The main constraints in this paper are shown below: (1) System Power Balance Constraints (a) Total power balance constraints where P Dh LA, , is the AC side load in t period, P Dh LD, , is the DC side load in t period, and η CV is the commutation efficiency of the converter. (b) DC power balance constraints where ∆P Dh DC,t is the net power of the DC side. When the P Dh CV ,t is positive, the converting power flows from the DC side to the AC side. Conversely, the converting power flows from the AC side to the DC side. (c) AC side power balance constraints where ∆P Dh AC,t is AC side net power. (2) Power constraints of wind and solar power generation where P Dh WTmax,t is the maximum output power of the fan in t period, and P Dh PVmax,t is the maximum output power of photovoltaic in t period.
(3) Energy storage system constraints (a) Energy storage constraints where SOC Dh min and SOC Dh max are the lower and upper limits of the state of charge for energy storage, S Dh t and S Dh t−1 are the remaining power of the energy storage system in t and t − 1 period, E C is the rated capacity of energy storage, and η C and η D are the charging and discharging efficiencies of the energy storage system, respectively. (b) Maximum charge and discharge power constraints where P Dh Cmax,t , and P Dh Dmax,t are the allowable maximum charging and discharging power values of energy storage t period, and P ch-max and P disch-max are the maximum charging and discharging continuous power set by the energy storage system itself. (c) Constraints of equal starting and ending states In order to ensure the cyclic charging and discharging operation of energy storage, the starting and ending states of energy storage need to be balanced.
where P GDmax is the maximum reverse power of the microgrids, only considering the selling time.

Intraday Dispatching
The intraday dispatching needs to refer to the day-ahead dispatching plan, respond to the power fluctuation caused by the prediction error in time, and track the optimization results of the upper level. Traditional rolling optimization achieves power response and tracking by adding power correction limits in constraints. Aiming at grid-connected AC/DC hybrid microgrids, this paper proposes a method of energy storage and tie-line power response and tracking, that is, the penalty term of power correction is added to the objective function of its intraday. And the initial and final energy state of energy storage is limited in the constraints. The aim of intraday dispatching is to minimize the operating cost of microgrids, while the intraday dispatching model aims to change the symbol superscript of the day-ahead dispatching model from Dh to Ih. In addition, a penalty term for correcting the operating power of AC/DC microgrid devices is added to the objective function of the intraday dispatching model.
where F4 is the penalty target value for correcting the operating power of the day-ahead dispatching equipment, λ 1 , λ 2 and λ 3 are the penalty factors for the day dispatching, and P Ih CV,t , P Ih GD,t and P Ih SB,t are the operating power of the bidirectional converter, tie-line, and storage energy in the day dispatching t period, respectively.
The intraday dispatching of microgrids also needs to satisfy the operational constraints of the system and equipment, but the initial and final state constraints of each optimized energy storage system change to: where S Rh Nt is the remaining energy stored at the end of the last real-time dispatching cycle, and S Dh Nt is the remaining energy storage capacity of Nt in the corresponding period of day-ahead dispatch.

Real-Time Dispatching
Real-time dispatching changes the bid Dh in the previous day-ahead dispatching into Rh. In the objective function, a penalty item for correcting the operating power of the equipment is added: where F5 is the penalty target value of real-time dispatching equipment operation power correction, χ 2 , and χ 3 are the penalty factors of real-time dispatching, and P Rh CV,t , P Rh GD,t and P Rh SB,t represent the operation power of bidirectional converter, tie-line and energy storage, respectively, in the k period of real-time dispatching.
The real-time dispatching of microgrids satisfies the operational constraints of the system and equipment, but the initial and final state constraints of the energy storage system change to: where S Rh Nt is the remaining energy stored at the end of the last real-time dispatching cycle, and S Ih Nt is the remaining energy stored by Nt in the corresponding period of intraday dispatching.

Case Parameters
A practical AC/DC hybrid microgrids system is taken as an example to analyze the multi-time scale rolling optimization. The equipment configuration and the cost coefficients in the optimization model are shown in Table 1.
The remaining equipment technical parameters and electricity prices are as follows: (1). SB: SOC range [0.5,0.95], maximum charging power is 30 kW, maximum discharge power is 45kW, initial SOC is 0.8. (2). CV: maximum permissible commutation power is 100 kW, commutation efficiency is 0.95. (3). GD: maximum permissible selling power of the tie-line between the microgrid and main grid is 100 kW. (4). Electricity price is 0.28 yuan/kW·h, electricity price is 0.39 yuan/ kW·h. In this paper, the actual engineering data of typical days are selected. The power forecasting data of wind power generation and AC/DC load in multi-time scales are shown in Figure 3. The deviation between the intraday forecasting data and the day-ahead forecasting data is less than 10%, and the deviation between the real-time forecasting data and the day-ahead forecasting data is less than 5%. The multi-time scale rolling optimization model established in this paper is a mixed-integer linear programming problem (MILP). The optimization problem uses MATLAB/YALMIP to model the optimization problem, and solves the problem using the CPLEX solver.  The remaining equipment technical parameters and electricity prices are as follows: (1). SB: SOC range [0.5,0.95], maximum charging power is 30 kW, maximum discharge power is 45kW, initial SOC is 0.8. (2). CV: maximum permissible commutation power is 100 kW, commutation efficiency is 0.95. (3). GD: maximum permissible selling power of the tie-line between the microgrid and main grid is 100 kW. (4). Electricity price is 0.28 yuan/kW*h, electricity price is 0.39 yuan/ kW*h.
In this paper, the actual engineering data of typical days are selected. The power forecasting data of wind power generation and AC/DC load in multi-time scales are shown in Figure 3. The deviation between the intraday forecasting data and the day-ahead forecasting data is less than 10%, and the deviation between the real-time forecasting data and the day-ahead forecasting data is less than 5%. The multi-time scale rolling optimization model established in this paper is a mixed-integer linear programming problem (MILP). The optimization problem uses MATLAB/YALMIP to model the optimization problem, and solves the problem using the CPLEX solver.

Analysis of Optimization Results
In this paper, the optimal results of the day-ahead, intraday and real-time dispatching models are shown in Figures 4 and 5. Figures 4 (a) and (b) are the optimal results of converter power and tieline power in three-time-scale, respectively.
As shown in Figure 4, during the daytime, photovoltaic output meets the demand of the DC side load, while the wind power output is small, which cannot meet the demand of the AC side load. The net power of the DC side flows to the AC side, so the converter power is positive. However, the power of the wind-photovoltaic generation cannot meet the demand of all loads of the AC/DC hybrid microgrid. It needs to purchase power from the power grid, so the power of the tie-line is negative. During the night, the photovoltaic output is 0, but the wind power output is larger, so the net power of the AC side flows to the DC side, and the converter power is negative. Because of the small night load, the wind power generation can meet the demand of all loads, and the extra power can be sold to the main grid.

Analysis of Optimization Results
In this paper, the optimal results of the day-ahead, intraday and real-time dispatching models are shown in Figures 4 and 5. Figure 4a,b are the optimal results of converter power and tie-line power in three-time-scale, respectively.
As shown in Figure 4, during the daytime, photovoltaic output meets the demand of the DC side load, while the wind power output is small, which cannot meet the demand of the AC side load. The net power of the DC side flows to the AC side, so the converter power is positive. However, the power of the wind-photovoltaic generation cannot meet the demand of all loads of the AC/DC hybrid microgrid. It needs to purchase power from the power grid, so the power of the tie-line is negative. During the night, the photovoltaic output is 0, but the wind power output is larger, so the net power of the AC side flows to the DC side, and the converter power is negative. Because of the small night load, the wind power generation can meet the demand of all loads, and the extra power can be sold to the main grid.  The remaining equipment technical parameters and electricity prices are as follows: (1). SB: SOC range [0.5,0.95], maximum charging power is 30 kW, maximum discharge power is 45kW, initial SOC is 0.8. (2). CV: maximum permissible commutation power is 100 kW, commutation efficiency is 0.95. (3). GD: maximum permissible selling power of the tie-line between the microgrid and main grid is 100 kW. (4). Electricity price is 0.28 yuan/kW*h, electricity price is 0.39 yuan/ kW*h.
In this paper, the actual engineering data of typical days are selected. The power forecasting data of wind power generation and AC/DC load in multi-time scales are shown in Figure 3. The deviation between the intraday forecasting data and the day-ahead forecasting data is less than 10%, and the deviation between the real-time forecasting data and the day-ahead forecasting data is less than 5%. The multi-time scale rolling optimization model established in this paper is a mixed-integer linear programming problem (MILP). The optimization problem uses MATLAB/YALMIP to model the optimization problem, and solves the problem using the CPLEX solver.

Analysis of Optimization Results
In this paper, the optimal results of the day-ahead, intraday and real-time dispatching models are shown in Figures 4 and 5. Figures 4 (a) and (b) are the optimal results of converter power and tieline power in three-time-scale, respectively.
As shown in Figure 4, during the daytime, photovoltaic output meets the demand of the DC side load, while the wind power output is small, which cannot meet the demand of the AC side load. The net power of the DC side flows to the AC side, so the converter power is positive. However, the power of the wind-photovoltaic generation cannot meet the demand of all loads of the AC/DC hybrid microgrid. It needs to purchase power from the power grid, so the power of the tie-line is negative. During the night, the photovoltaic output is 0, but the wind power output is larger, so the net power of the AC side flows to the DC side, and the converter power is negative. Because of the small night load, the wind power generation can meet the demand of all loads, and the extra power can be sold to the main grid.   show the rolling optimization results of energy storage power and its charging state, respectively. As can be seen from Figure 5, the storage energy reaches the upper charge state limit after charging with more wind power at night. But in the morning, the wind power decreases and the photovoltaic power generation is insufficient, while load demand increases and energy storage discharges continuously, and the charging state reaches a low value. With the increase of photovoltaic output, the energy storage is charged when the photovoltaic output is large. At night, the photovoltaic output is reduced, and the wind power is insufficient. The energy storage is discharged at the peak of electricity consumption at night, and the state of charge reaches the lowest value in a day. The energy storage can effectively realize the function of peak and valley cutting. As shown in Figure 5b, the initial SOC of energy storage is 0.8. There are constraints of the same initial and final states in the optimization model, so the SOC is restored to 0.8 at the end of the scheduling cycle to ensure the sustainability of the storage scheduling.
There are errors in power prediction data in multi-time scales. For the grid-connected AC/DC hybrid microgrids, the power fluctuation caused by the prediction error is balanced by the energy storage system with power regulation and the grid-connected tie-line. The rolling optimization requires not only responding positively to power fluctuations caused by prediction errors but also tracking the results of superior optimization effectively and reducing power correction. As shown in Figure 4 (b) and Figure 5 (a), the optimization results of the tie-line and energy storage can track the day-ahead and intraday dispatching well. In order to quantify the response and tracking effect of rolling optimization, the optimization function values at three time scales and the superior optimization power correction results of energy storage and tie-line optimization are given in Table  2. The   The analysis in Table 2 shows that with the decrease of time scale, the daily operating cost decreases from 41.04 yuan to 37.27 yuan. It can indicate that when the power prediction is revised  Figure 5a,b show the rolling optimization results of energy storage power and its charging state, respectively. As can be seen from Figure 5, the storage energy reaches the upper charge state limit after charging with more wind power at night. But in the morning, the wind power decreases and the photovoltaic power generation is insufficient, while load demand increases and energy storage discharges continuously, and the charging state reaches a low value. With the increase of photovoltaic output, the energy storage is charged when the photovoltaic output is large. At night, the photovoltaic output is reduced, and the wind power is insufficient. The energy storage is discharged at the peak of electricity consumption at night, and the state of charge reaches the lowest value in a day. The energy storage can effectively realize the function of peak and valley cutting. As shown in Figure 5b, the initial SOC of energy storage is 0.8. There are constraints of the same initial and final states in the optimization model, so the SOC is restored to 0.8 at the end of the scheduling cycle to ensure the sustainability of the storage scheduling.
There are errors in power prediction data in multi-time scales. For the grid-connected AC/DC hybrid microgrids, the power fluctuation caused by the prediction error is balanced by the energy storage system with power regulation and the grid-connected tie-line. The rolling optimization requires not only responding positively to power fluctuations caused by prediction errors but also tracking the results of superior optimization effectively and reducing power correction. As shown in Figures  4b and 5a, the optimization results of the tie-line and energy storage can track the day-ahead and intraday dispatching well. In order to quantify the response and tracking effect of rolling optimization, the optimization function values at three time scales and the superior optimization power correction results of energy storage and tie-line optimization are given in Table 2. The |∆P SB | and the |∆P GD | in the table are the sum of the power corrections of the energy storage and tie-line to the superior time scale at this time scale, respectively. The |P SB | and |P GD | are the sum of energy storage and tie-line operation power in this time scale, while the correction rate is the ratio of the sum of power correction and operation power. The analysis in Table 2 shows that with the decrease of time scale, the daily operating cost decreases from 41.04 yuan to 37.27 yuan. It can indicate that when the power prediction is revised with the previous time scale, the energy storage and tie-line can respond to the power fluctuation and adjust the operating power in time, thus reducing the operating cost. Intraday and real-time corrections to energy storage power are 234 kW and 56 kW, respectively. The corrections to tie-line power are 765 kW and 376 kW, respectively. Because the prediction error decreases with time scale, the real-time correction is less than the intraday correction. In addition, the power range of the energy storage operation is smaller than that of the tie-line, so the power fluctuation of energy storage is smaller than that of the tie-line. The correction rates of energy storage and the tie-line are less than 10% in intraday rolling optimization, and the correction rates of real-time rolling optimization are less than 5%, indicating that energy storage and the tie-line effectively track the optimization results of superiors. The analysis above shows that the multi-time-scale rolling optimization model for grid-connected AC/DC hybrid microgrids established in this paper has good practicability.

Analysis of Operating Power Correction Constraints
Traditional rolling optimization often adds power correction limits to constraints. In this section, energy storage and tie-line operating power limits are added as constraints to the intraday and real-time dispatching model instead of Equations (10)- (13). The optimization results are compared with Section 4.2, as shown in Figure 6. It can be seen that the energy storage and tie-line can respond to power fluctuations in time for power regulation. However, the modified power of the energy storage and tie-line is obviously larger than that of Section 4.2, and the operation power of P SB and P GD fluctuates frequently. Table 3 gives the objective function values of rolling optimization in this section and the power correction values of energy storage and the tie-line. with the previous time scale, the energy storage and tie-line can respond to the power fluctuation and adjust the operating power in time, thus reducing the operating cost. Intraday and real-time corrections to energy storage power are 234 kW and 56 kW, respectively. The corrections to tie-line power are 765 kW and 376 kW, respectively. Because the prediction error decreases with time scale, the real-time correction is less than the intraday correction. In addition, the power range of the energy storage operation is smaller than that of the tie-line, so the power fluctuation of energy storage is smaller than that of the tie-line. The correction rates of energy storage and the tie-line are less than 10% in intraday rolling optimization, and the correction rates of real-time rolling optimization are less than 5%, indicating that energy storage and the tie-line effectively track the optimization results of superiors. The analysis above shows that the multi-time-scale rolling optimization model for gridconnected AC/DC hybrid microgrids established in this paper has good practicability.

Analysis of Operating Power Correction Constraints
Traditional rolling optimization often adds power correction limits to constraints. In this section, energy storage and tie-line operating power limits are added as constraints to the intraday and realtime dispatching model instead of Equations (10)- (13). The optimization results are compared with Section 4.2, as shown in Figure 6. It can be seen that the energy storage and tie-line can respond to power fluctuations in time for power regulation. However, the modified power of the energy storage and tie-line is obviously larger than that of Section 4.2, and the operation power of PSB and PGD fluctuates frequently. Table 3 gives the objective function values of rolling optimization in this section and the power correction values of energy storage and the tie-line.  As shown in Table 3, the power adjustment of energy storage and the tie-line reduces the operation cost, but the objective function value is greater than that of Section 4.2. In terms of power correction values of energy storage and the tie-line, the data in Tables 2 and 3 show similar correction characteristics, i.e., real-time correction is less than intraday correction, and power fluctuation of energy storage is less than that of the tie-line. However, the correction amount in this section is larger. The function of the power correction limit constraint is similar to that of Equations (10)- (12), which allow the energy storage and tie-line to be responsive and tracked. Equations (11) and (13) increase the constraints of the initial and final state of energy storage, and strengthen the connection between multiple time scales, which further improves the performance of rolling optimization. The analysis shows that the rolling optimization proposed in this paper has a better response and tracking effect than the traditional rolling optimization with power correction limit constraints.

Constraints on the Initial and Final State of Energy Storage
The state constraints of Equations (11)-(13) make it necessary to adjust the power to reach the energy state at the end of the set period in the rolling optimization of energy storage, which increases the power correction of energy storage to a certain extent. In this section, the rolling optimization is carried out without considering the initial and final state constraints of energy storage. The optimization results are compared with those in Section 4.2, as shown in Figure 7. In Figure 7, the energy storage and tie-line still have better power response and tracking effect without the constraints of the initial and final states of energy storage. The correction power of energy storage in intraday and real-time optimization is less than that of Section 4.2, while the correction power of the tie-line is greater than that of Section 4.2. Table 4 presents the objective function values for rolling optimization and the power correction values for energy storage and the tie-line.    As shown in Table 4, the operating cost, energy storage and power correction of the tie-line after the optimization in this section are all smaller than the results in Section 4.3, and the rolling optimization effect in this section is better than that of Section 4.3. Compared with the result of Section 4.2, the operating cost increasing indicates that the overall response effect of energy storage and the tie-line becomes worse. The power correction rate of energy storage decreases while the correction rate of the tie-line increases, indicating that the power fluctuation borne by the energy storage system decreases and the power fluctuation borne by the grid-connected tie-line increases. The power fluctuation originally assumed by energy storage was transferred to the tie-line. In summary, adding initial and final state constraints to energy storage in rolling optimization allows energy storage bear more power fluctuations and improve the response performance of rolling optimization.

Conclusions
The power prediction error will bring adverse effects on optimal dispatch of microgrids. Considering that the power prediction error decreases with the time scale decreasing, a multi-time scale rolling optimization strategy for grid-connected AC/DC hybrid microgrids is proposed in this paper, which aims at minimizing the total operation cost of the microgrids. The strategy includes the 1 h, 15 min and 5 min time scales optimization and a two-level rolling optimal strategy of intraday and real-time. A penalty cost of power correction is added to the objective function of the rolling optimization model. And the initial and final energy states of the energy storage system are limited in the constraints to ensure the cyclic regulation ability of the energy storage system and improve the power correction and tracking effect of the rolling optimization. This model is a mixed-integer linear programming problem, which can be solved efficiently by the CPLEX software.
The analysis of practical examples shows that the energy storage and tie-line can not only respond to the power fluctuation caused by the source-load power prediction errors on the DC and AC sides, but also track the operation plan of the upper level effectively. The state constraints at the initial and final energy states of energy storage are beneficial to ensure the cyclic operation of energy storage and improve the overall response performance of rolling optimization. However, it will reduce the ability of the energy storage tracking plan to run power. Compared with traditional rolling optimization, the proposed model is suitable for grid-connected AC/DC hybrid microgrids, and has a better optimization effect.