1. Introduction
A microgrid is an electrical network containing one or more power sources, loads, and energy storage, interconnected with well-defined boundaries. It can be connected to a primary grid through a point of common coupling (PCC); otherwise, it is considered an island [
1,
2,
3]. Provisional microgrids used to meet temporary power requirements for disaster relief and military applications are typically islanded [
4]. Low weight and fuel-efficient operations are essential features due to the difficulty in getting equipment and fuel to remote locations [
5,
6,
7].
An islanded microgrid has low inertia, meaning its load can change rapidly compared to its generation capacity and energy storage. This leads to an increase in the probability of load loss [
3]. Load forecasting has observed widespread implementation to improve microgrid performance [
8,
9,
10,
11]. Both islanded and connected microgrids exploit load forecasting to decrease the risk of load loss and improve storage management, enabling the full use of renewable resources.
While incorporating renewable sources into a microgrid is attractive, their inconsistent power generation creates an added dependence on storage requirements. Consequently, they serve best when blended with a variety of power sources. This raises a microgrid’s cost and weight and is essential for provisional microgrid designs. As renewable energy penetration increases, generation forecasting becomes as crucial as load forecasting for efficient operation [
12]. Photovoltaic (PV) power prediction relies on future panel temperature, and irradiance estimates [
13]. Thus, weather forecasts play a significant role in PV power predictions [
8,
14]. Extending these methods to provisional microgrids is problematic since access to regional weather forecasts cannot be assumed to exist [
15]. Alternate forms of PV forecast generation have been suggested, such as analyzing the sky conditions to generate forecasts of ambient temperature and irradiance [
16,
17]. Regional weather forecasts affect electrical load forecasts when heating and cooling equipment dominate.
A microgrid’s EMS controls its assets, such as non-renewable generation and energy storage, to meet load requirements while minimizing cost, fuel, or an acoustic signature [
18,
19,
20]. Zafeiropoulou et al. [
21] describes an architecture where the relationship between historical meteorological and energy consumption data is used in several ways to improve power system performance. For example, machine learning schemes are used to predict the probability of outages or equipment damage when violent weather is predicted. This permits preemptive reconfiguration of assets to reduce the actual impact of weather events. The EMS described in the work below is similar in its dependence on load and meterological predictions of PV generation. A key difference is that our focus is on completely islanded, provisional microgrids and how forecasts can be used to service loads that occur at inconvenient times while helping to reduce energy storage requirements.
Kreishan describes the effects of unexpected islanding on mixed distributed energy resource (DER) systems. In addition, they develop and assess a method of planned islanding that mitigates the negative effects of this phenomenon [
22]. They demonstrate their approach using a detailed model of a medium voltage power grid along with several resource islanding scenarios. One of the main benefits of their approach is the ability to service high priority loads. This is similar to the focus of the work below, where loads occurring an inconvenient times, such as at night, can be met with suitable planning. Unexpected islanding was also addressed by Worku et al. with the development of methods to detect islanding using the states of any microgrid attached to a primary power grid. [
23]. Their grid architecture, and application of power flow analysis, is similar to the work presented below. One of the differences is that our microgrid is always islanded and its storage state information is used to adjust asset use to minimize fuel consumption.
Prodan and Zio consider the electricity price from an external grid to reduce renewable resource drawbacks [
24]. An EMS can use both load and atmospheric forecasts to manage storage. This advantage allows loads to be met when renewable resources are offline and avoids shedding energy should the storage reach maximum capacity.
The EMS considered in this paper is motivated by low-power, provisional microgrid applications with no option to connect to a main grid. The notional grid used to compare EMS strategies, has a fuel-based generator with a maximum output of 100 W and electrical loads of less than 300 W. A PV panel also supplies the grid with a maximum output of 300 W. It should be noted that the EMS described here is not limited to a particular generation of technology, renewable or otherwise. For example, a caloric-based generator could be used where an operator produces power through physical activity. Reducing battery requirements is imperative for such person-carried power systems, as it does not have the main grid as a backup, such as many other microgrid studies.
The primary focus is the effect of load and PV generation forecasts on the islanded power grid’s performance. Two EMS strategies are developed and compared: one uses 24-h load and PV estimates, while the other only has access to the grid’s current storage state, PV output, and load. Both algorithms provide a power setpoint command to the grid’s generator every 15 min. Storage, if available, is used as a slack asset to balance the electrical load. The forecast-based EMS is implemented as a model predictive control (MPC) system, where the feedback is the grid’s storage state of charge, and the cost function is the fuel consumption. The other algorithm is rule-based and seeks to reduce fuel consumption by ensuring the generator is continuously operating at peak efficiency. A power flow simulation is used to evaluate the performance of the two algorithms in terms of load satisfaction, storage requirements, and fuel consumption over a period of 24 h.
The remainder of this paper is organized as follows. After a description of the power flow grid model in
Section 2, the forecast-based and rule-based EMS strategies are developed in
Section 3. Four case studies are introduced in
Section 4, followed by the results in
Section 5 and conclusions in
Section 6.
2. Grid Model
Not including storage, the net bus power,
, is defined as
where
and
are the generator and PV power into the electrical bus, and
is the electrical load power out of the bus. Energy storage power is used as a slack asset such that
and its state of charge,
, is
where
is the initial storage state and
is bounded from above by its capacity,
. It is further assumed that the storage is ideal and can increase and decrease its state instantaneously without loss. This means that as long as
, the storage can match any value of
needed to satisfy the load. However, if
and
, some of the electrical load must be shed, namely,
. The shed energy is given in Equation (
3).
Similarly, when the storage is at capacity,
, and the electrical load is not perfectly balanced by the combined PV and generator power, bus energy must be shed, as shown in Equation (
4).
Regardless of its technology, a generator converts one form of energy to electrical energy with an assumed efficiency. It is assumed that the generator efficiency is defined in terms of a power-dependent fuel rate function,
resulting in the fuel consumption,
, as shown in Equation (
5).
The grid model can be summarized as having two states,
and
, calculated by Equation (
2) and Equation (
5), respectively. The shed bus energy and load of Equation (
4) and Equation (
3) will be used later to assess EMS performance.
3. Energy Management Systems
Two EMS strategies are developed below: (1) forecast-based and (2) rule-based. Both use grid state information to update the generator output command, with at a fixed time interval of T seconds.
3.1. Forecast-Based Solver
The forecast-based solver uses an MPC approach to create the generator command, , that is held until the next update, T, seconds later. The MPC algorithm uses the measured storage state, , and estimates of both PV and load power, and , over the horizon time to compute a fuel optimal generator command sequence . The first element of this sequence is then used as the generator command until the next update. Since PV generation has a 24-h cycle, the horizon time should be at least 24 h. In the case studies considered later, h and min result in a 96 element generator command sequence. The MPC optimization problem used to calculate can be summarized as:
Given the grid’s current energy state,
, and estimates of
and
where
, calculate
that minimizes Equation (
5) subject to the storage model of Equations (
1) and (
2), the inequality constraints
and the equality constraint
3.2. Rule-Based Solver
The rule-based EMS uses instantaneous measurements of
,
and
to calculate a generator command,
, that is held until the next update. The algorithm, shown in
Figure 1, prioritizes storage use and attempts to operate the generator as little as possible, while maintaining the power balance of Equation (
8). When the generator is in use, it is operated at max efficiency or
. The grid state measurements are used to create the three intermediate quantities, shown in Equation (
9) and used in
Figure 1.
The algorithm can be summarized as follows. If , there is not enough PV to completely service the load, thus requiring a combination of generator and storage. The set of resulting subpaths is labeled A in the flow chart. If , labeled B in the flowchart, then the load can be serviced completely from the available PV and there is an opportunity to store excess PV energy.
Focusing on block A, there are three possible outcomes: (1) there exists sufficient storage to completely meet the load, labeled , (2) the load must be met with a combination of storage and generation, labeled , where the generator may operate at less than peak efficiency and (3) there is insufficient available energy, storage and load, and load must be shed. This worst case is labeled .
The flowchart’s block B has two paths based on the storage state. If there is enough excess capacity for all the additional PV energy, path , then its stored. Otherwise, some of the excess energy must be shed, as shown in path .
In summary, the five algorithm solutions are labeled at the bottom of the paths in
Figure 1 as being either: good; inefficient, due to operating the generator at less than peak efficiency; or shedding either electrical load or PV energy.
After calculating , the secondary consideration of returning the storage state at the final time, , to its starting value of , is considered. If the generator is not being used and , then the generator is operated at full power as long as storage capacity exists.
4. Case Studies
Exploring the impact of using forecasted PV and load on EMS performance when operating in stressed conditions is a primary aim of this work. A small microgrid was considered with a 300 W PV panel and a 100 W generator, whose load-dependent efficiency function is shown in
Figure 2. The generator consumes about 0.33 g of fuel per kJ of energy when operating at peak efficiency. The EMS is updated every 15 min, while a power flow simulation updates the grid states every second. It is assumed that a faster, inner loop maintains the bus voltage and is not part of this work. To emphasize the effect that accurate forecasts have on stressed operation, the load and PV forecasts are assumed to be exact at the start of each 15-min EMS update.
Four cases are considered including a no-stress baseline, two stress scenarios and a situation where forecast errors are present. Each case is defined by a combination of electrical load,
Figure 3a; a PV output based on one of two sky conditions,
Figure 3b; and an energy storage configuration, including an initial storage state and two different capacities,
Figure 3c. The 24-h load energy of 10,159 kJ is the same for all four cases to permit EMS performance comparisons between cases.
The baseline No Stress case uses a constant load of 118 W, as shown by the dashed line in
Figure 3a. This is the least stressful situation, as it requires no load-change planning. The generated PV arises from a clear sky condition shown with a solid line in
Figure 3b. This profile was measured using a PV panel on a cloudless day and has the classic Gaussian shape while generating 9332 kJ of energy. The energy storage conditions are shown with the first bar in
Figure 3c where there is ample storage capacity, 14 MJ, and the day begins with the storage level at 7 MJ.
The two stress cases contain load changes - one occurring during the day when PV power is being generated and another at night shown by the dotted and solid lines in
Figure 3a. Stress Case 1 has a step change in load from 86 W to 180 W lasting from 9 a.a. to 5 p.m. and requiring about 2707 kJ of energy. Since the load change occurs during daylight hours, this is considered to be less stressful than Stress Case 2 where the load change changes from 92 W to 300 W lasting from 8 p.m. to 11 p.m. The total energy required by the load pulse of Stress Case 2 is about 2250 W and is similar to Stress Case 1. The same PV generation profile for both stress cases is the measured value, as shown by the dotted line in
Figure 3b that occurred during a day with overcast sky conditions. The energy generated was 2346 kJ, or about 25% of the No Stress, clear day. The storage scenarios for the stress cases are shown in
Figure 3c, where Stress Case 1 has ample storage capacity, 14 MJ; however, the day starts with the storage at 13 MJ. This limits the ability of the EMS to store energy and could lead to energy shedding. The storage capacity of Stress Case 2 is much reduced, 3 MJ, and the day starts with 0.5 MJ of energy. This too is considered a stress situation where EMS planning must account for a highly constrained storage situation.
The forecast error case is a variant of Stress Case 2, where the night transient is increased by 10%, as shown by the blue lines in
Figure 4, where the dotted line is the forecast and the solid line is the actual. The 24-h load energy, 10,159 kJ, is the same as the previous cases, thus the constant value before the night transient was reduced slightly. The 24-h PV energy is shown in
Figure 4 by the black lines. The forecasted solid line contains both over and under predictions with the same amount of energy as the dotted, actual value. This was accomplished by reducing the first half and increasing the second half by adding two periods of a versine function with an amplitude of 50 W.
The four cases are summarized in
Table 1 along with the minimum possible value of generator output and fuel consumption.
5. Results
The performance of the forecast-based and rule-based EMS, for the four cases described above, are summarized in
Table 2 and plotted in
Figure 5,
Figure 6,
Figure 7 and
Figure 8. Energy balance analysis can be performed using the table entries. For example, the sum of the PV Output, Generator Output, Net Storage Output and Shed Load is equal to the Load. It is important to note that a positive value of the Net Storage Output means that energy is being stored. The four figures contain identical information for each case. Subfigure (a) shows the load, PV, and generator power for forecast-based and rule-based strategies, while subfigure (b) shows the evolution of the stored energy. If the PV was utilized perfectly, the No Stress Case would have required 827 kJ from the generator, and the other cases needed 7813 kJ. Any deviation from these values implies some of the electrical load was shed, or the storage constraints were not met, as tabulated in the Net Storage Output row of
Table 2, whose entries should ideally all be zero. The Fuel Use row is another indicator of optimal operation, with 0.27 kg being the best possible value for the No Stress Case and 2.58 kg for all the others. Examining
Figure 5,
Figure 6,
Figure 7 and
Figure 8, it is clear that the generator was either off or at full load, corresponding to maximum efficiency. The Fuel Use row of
Table 2 shows that the forecast-based EMS was operated nearly optimal for all cases without shedding any load, while the rule-based EMS struggled with storage management and load shedding for some of the cases.
The rule-based EMS consumed much more fuel than necessary while ending the day with 2234 kJ of excess energy for the No Stress case, as observed in
Table 2 and
Figure 5. This is not a problem; it simply means that the storage should be used before the generator begins the next day. However, if this behavior is repeated daily, it will become unsustainable. Both strategies performed the same for the second stress case, with the rule-based EMS having a slightly larger final storage error. This could be compensated as in the No Stress Case the next day.
The second stress case, where the PV was low and there was a load spike during the night, resulted in a significant difference between the strategies, as observed in
Table 2 and
Figure 7. The rule-based strategy needed to shed about
of the load with a corresponding reduction in fuel use. A similar load-shedding occurred for the Forecast Error Case, which is not surprising, since the PV and load conditions were similar. The forecast-based solver performed nearly the same for the Forecast Error Case as for Stress Case 2. This illustrates that while forecasts are exploited, the solver is also robust to forecast errors due to the storage feedback used in its model predictive controller.
We can also extract storage requirement information from
Figure 5,
Figure 6,
Figure 7 and
Figure 8. For example, the minimum initial storage needed by either EMS is the difference between
and the minimum storage state during the day. The minimum storage capacity is the difference between the minimum and maximum of the storage state plots. These are shown in
Table 2, where they are similar for the No Stress case and the first stress case. The rule-based values are not shown for the last two cases, since their meaning is obscured due to the load shedding. While the forecast-based solver could compensate for forecast errors, it required about
more storage capacity than the closely-related Stress Case 2 to manage the uncertainty.
6. Conclusions
Both EMS methods performed similarly for clear and overcast sky conditions when the maximum electrical load occurred during the day. At the same time, the rule-based strategy could not return the final storage state to its starting value, which is not a significant issue as long as the storage is adjusted the next day and the behavior is not repeated too often. The computational effort of the rule-based approach is insignificant compared to the numerical optimization solver used for the forecast-based solver. The combined genetic algorithm and gradient-based scheme of the forecast-based EMS required about one minute to find a solution compared to a millisecond for the rule-based EMS. Since the rule-based solution performed well in some circumstances, it could be used as a backup solution for a single 15-min epoch should the optimization process fail or timeout during one of its solutions.
The second two cases, where a load spike occurred when the PV was unavailable, showed significant differences between the two methods. The rule-based strategy was required to shed some electrical load in both cases. In contrast, the forecast-based solver planned for the event by increasing the storage state in advance. While the forecast-based solver relies on forecasts of both PV and load, it can accommodate errors in both these quantities, as illustrated by the Forecast Error Case.