The performance of the hierarchical EMS based on robust MPC was tested by the simulation of a community connected to the main grid, made up of 30 dwellings with a 50% level of photovoltaic power penetration (i.e., 15 dwellings have a photovoltaic array) and an ESS made of lead-acid batteries with a 135-kWh capacity.
5.1. Fuzzy Prediction Interval for Net Power of the Microgrid
Load and photovoltaic power data available for a town in the UK were used to develop the fuzzy prediction interval model described in
Section 4.1 for the net power given by
. The data cover a period of 90 days corresponding to the winter season, and this was divided into training, validation, and test data sets. The maximum value of
was 67.57 kW and the minimum value was −45.09 kW, and a sampling time of 30 min was used.
The fuzzy model and regressors obtained during the identification for the predictor of
were:
where
and the optimal structure of the model has four rules. Note that exogenous variables were not included in the model.
The prediction interval coverage probability (PICP), which quantifies the proportion of measured values that fall within the predicted interval, and the prediction interval normalized average width (PINAW), which quantifies the width of the interval, were used as indexes to evaluate the quality of the interval for
h-step-ahead predictions:
for
, where
is the real value of
,
R is the distance between the maximum and minimum values of
in the data set, and
if
; otherwise,
. Additionally, the root mean square error (RMSE) and the mean absolute error (MAE) were used to evaluate the accuracy of the prediction model associated with the expected value.
In this study, the prediction interval model was tuned at a PICP of 90% for all prediction instants.
Table 2 shows the performance indexes associated with three different prediction horizons for the test dataset. The results indicate that the fuzzy prediction interval was effectively tuned to a PICP of 90%, and that the interval width (PINAW) increased with the prediction horizon.
Figure 3 shows the one-day-ahead prediction intervals for three days of the test dataset. The red line is the one-ahead prediction
of the net power of the microgrid
, the blue points are the actual data
used to evaluate the performance of the fuzzy prediction interval model, and the grey box is the prediction interval which is characterized by the lower
and upper
bounds.
The expected value
and lower
and upper
bound predictions provided by the prediction interval were used in the deterministic and robust EMSs, as explained in
Section 4.2 and
Section 4.3.
5.2. Hierarchical EMS Results
The performance of the EMS based on robust MPC with fuzzy interval models (
Section 4.3) is analyzed in this section. For this purpose, it was compared with the deterministic EMS presented in
Section 4.2. Simulation results for this comparison are presented in the following.
Figure 4 shows the responses obtained with the hierarchical EMSs (deterministic and robust) for operation over two days. Results were consistent with the daily distribution of the energy prices. Since energy from the main grid was most expensive in the 16:00–19:00 h time block, the EMS controlled this power to be close to zero. The opposite behavior occurred during morning and late night hours (0:00–06:00 and 23:00–24:00) when the energy price was considerably cheaper. It can also be seen that in both deterministic and robust approaches the power reference (
), as sent by the higher-level MPC controller (in red), could be tracked reasonably well by the lower-level controller (
, in blue). Tracking errors occurred when the maximum available battery power for charging or discharging was less than the ESS power required by the microgrid (see the rules in
Section 3). Additionally,
Figure 4 shows that the robust EMS found a flatter
than the deterministic EMS, which is good for the distribution network operator because it minimizes the grid power profile fluctuations. Several metrics justify and quantify the flattening, as will be discussed below.
Table 3 shows the energy costs, the RMSE of the tracking error of the power reference
, the equivalent full cycles (EFC), and the loss of power supply probability (LPSP) for one week of simulation using the deterministic and robust EMSs (see
Appendix A for definition of EFC and LPSP). It can be seen that the robust EMS reached a better operation cost than the deterministic EMS. Additionally, the lower RMSE with the robust EMS means that there was a better tracking of the power reference
sent by the higher level to the microgrid (see
Figure 4). The lower EFC of the robust EMS means that fewer cycles were used by the ESS which directly improved the state-of-health and lifetime of the ESS. As battery aging (measured by the state-of-health) is a function of the elapsed time from the manufacture date, as well as the usage by consecutive charge and discharge actions, a lower EFC improves the battery life time. Finally, the LPSP, which is the fraction of time where the microgrid cannot fulfill the load requirements using the reference power
defined by the higher level and the available resources of the microgrid (renewable generation and ESS), was 3.780% for the deterministic EMS and 2.927% for the robust EMS. This was because the robust approach compensated for the uncertainty of generation and demand and could avoid the scenarios measured by the LPSP.
Table 4 shows the energy bought by the community from the main grid during the time periods associated with different tariff prices. C1 is the time with the cheapest price and C3 is the time with the highest price. As discussed above, the operation of both hierarchical EMSs was consistent with these price bands: more energy was bought at C1 and C2, less energy was bought at C3. Note that the robust EMS bought more at C1 than the deterministic EMS. However, it spent less in C2 and considerably less than the deterministic EMS at C3. It is apparent then that the robust EMS managed to obtain savings with respect to the deterministic EMS by being better at planning against worst cases; namely, it avoided buying energy when it was most expensive.
Finally, for further evaluation of the EMSs, several indexes of operation are presented in
Table 5. These are the load factor (LF), the load loss factor (LLF), positive power peak
, negative power peak
, the maximum power derivative (MPD), and the average power derivative (APD). See
Appendix A for detailed definitions, but the interpretations of these are presented next.
The LF describes the flatness of the power response: values close to 1 are associated with flat responses while values close to 0 indicate the presence of large peaks. The LLF quantifies the losses incurred as a result of peak power: values close to 1 describe flat responses with small losses, while values close to 0 indicate large losses due to large peaks [
7]. The MPD is the maximum value of the rate of change between two consecutive points of the main grid power in its absolute value [
10,
47]. The APD is the average of the absolute value of the rate of change of the main grid power.
The LF was greater for the robust EMS than for the deterministic case (LF = 0.4459 and LF = 0.3869, respectively). This clearly indicates that the response for the robust EMS was flatter (which is also consistent with the results of RMSE and EFC reported above). Similarly, LLF = 0.288 for the robust EMS, and LF = 0.2452 for the deterministic EMS. Therefore, the hierarchical EMSs resulted in a reduction of the peak power and a reduction of losses due to peak power.
The positive power peak
and negative power peak
for the hierarchical EMS were limited by constraints as explained in
Section 4. The limits were
kW, which guarantees that no energy was exported to the main grid, and
kW. The robust EMS works in a more conservative manner for the upper limit. It attempts to avoid sub-optimal operation due to worst-case scenarios: thus, it allows smaller peaks
kW than the deterministic EMS
(see also
Figure 5).
The last two metrics were also improved using the proposed robust-MPC-based EMS: the MPD and APD were reduced compared with the deterministic EMS. Finally, a lower APD corresponds to a flatter main grid power, which is consistent with previously analyzed indicators.
Overall, it can be seen that the deterministic and robust hierarchical EMSs provide mechanisms for efficient energy management. However, the robust EMS provided improvements over the deterministic EMS, which can be explained because the uncertainty management in the robust EMS helps the system to be prepared for errors in the predictions that might yield sub-optimal decisions.