2. Materials and Methods
2.1. Problem Statement and Metrics
The aim is to identify a diverse set of microgrid design options composed of DERs with sufficient capacities to meet the power demand over a given time horizon. To state this formally, consider a function that maps an input microgrid design g and power load p to binary outcomes y, where if and only if the power load is not fully satisfied over time interval with duration . Then, provides a performance measure representing the proportion of time a power load is not fully satisfied. The function f can take the form of an optimization or simulation model that incorporates the control logic for an energy management system.
The notion of dominance between two microgrids and can be defined with respect to a given f and p. Let and be the capacities of DER i for microgrids and , respectively. Then, dominates , denoted , if and for every . In other words, if one microgrid performs at least as well as another without having a higher DER capacity, then it is dominant. The set of all “rightsized” microgrid designs can be stated as such that for any , . S is a finite set because capacities defining DERs are discrete. The goal is to find a diverse subset of S, where diversity can be measured by the difference between capacities of any two microgrids and .
Table 1 shows an example set of results generated by Microgrid Planner using the DER sizing method proposed in this paper. The column “Sizing Grid Deficit Ratio” provides the performance measure
. Practical candidate solutions have a value of 0 or very close to 0, so solutions over a selected value are filtered out, which in the example shown is set to 0.01. Although this value may be too high for critical applications, it may be suitable in some contexts, so it is used for illustrative purposes. Microgrid Planner allows users to adjust their
upper bound to ease or restrict the level of performance required. This is a post-processing step and does not impact the solutions obtained, only the ones presented. Only non-dominated solutions are shown to the user.
Detecting whether excess capacity exists for a potential microgrid design is not as straightforward as detecting deficits, because excess power is to be expected at many points in time in order to have sufficient capacity at the times with the highest power demand or lowest power availability. An individual performance metric is computed for each component in any candidate microgrid design identified, as shown in
Table 1 in the column “{DER NAME} Unused Ratio”. This ratio measures the proportion of time steps where power from a given DER was available but not used. The metric is nuanced because not all DER types may supply power at all times; for example, photovoltaic systems are useful only during daylight hours. Therefore, to measure utilization, the domain of consideration is limited to those daylight hours, and the unused proportion must be calculated accordingly.
2.2. Sizing Method
The microgrid sizing method takes a function f (as input) that operates the microgrid, a power load profile, DER capacity bounds, and both a small and larger number of discrete capacity levels. No limiting assumptions on f are introduced, so the function can incorporate any desired control logic, a requirement for its integration into the open source Microgrid Planner platform.
The sizing method is illustrated in
Figure 1 and can be broken down into a three-step process:
Generate an initial set of microgrids via an exhaustive search using a small number of capacity levels.
Generate a more diverse set of microgrids by executing a binary search algorithm using a larger number of capacity levels, as well as by using the initial set of microgrids identified in the prior step.
Generate a refined set of microgrids by executing a local search algorithm for each non-dominated microgrid identified in the prior step, skipping ones with power deficits.
2.2.1. Exhaustive Search
The exhaustive search method is presented in Algorithm 1. All potential solutions are explored, but the search order is controlled to track when power deficits arise. A deficit indicates that at least one DER’s capacity may be insufficient, and the computationally more expensive step of simulating the microgrid can be skipped for solutions with lesser or equal capacity in all DER dimensions. In other words, potential microgrid designs are not simulated when ones with equal or greater capacities for all DERs have already been found insufficient to meet power demands at all points in time. Counterintuitively, this could result in pruning a solution that actually meets the power demand, due to subtleties in the battery charge states resulting from the energy management system logic. However, such cases are rare.
The first loop in Algorithm 1 iterates over each DER and (i) initializes the capacity levels to explore in decreasing order; (ii) initializes an ordered set
of all possible combinations of DER capacities, from highest to lowest capacity levels by DER, using the Cartesian product; (iii) creates an empty set
for storing potential solutions; and (iv) creates an empty set
for storing pruned solutions. The next loop iterates over the set of all possible solutions
and its inner loop iterates over all DERs, increasing the capacity temporarily to detect if a higher capacity solution has already been pruned. If no pruned solution is found, then the current solution is simulated and added to the potential solution set
. If the current solution has a power deficit, it is also added to the pruned solution set
.
Algorithm 1 Microgrid sizing exhaustive search algorithm |
Input: f (function for operating microgrid) Input: p (power load, indexed by time) Input: (capacity lower bounds by DER) Input: (capacity upper bounds by DER) Input: (number of capacity levels by DER) Output: (set of microgrids) for to do end for for
do for to do set to capacity of DER i in set capacity of DER i in to to obtain if then break end if end for if then continue end if if then end if end for return
|
Note: If the number of capacity levels considered is too small, the diversity of discovered solutions may be lacking; if it is too high, it will negatively impact runtime. Tuning may be required to balance these effects.
2.2.2. Binary Search
The binary search procedure is presented in Algorithm 2. If a power deficit is detected, then capacity is increased until no deficit exists, at which point the search direction is reversed; otherwise, capacity is decreased. A capacity adjustment is made on only one DER component per iteration. The step size is initialized to the power of 2 less than the number of capacity levels; it is halved whenever a deficit is encountered until the step size reaches 1—the stopping condition. The second and third level ‘for loops’ allow the binary searches to be run for DERs in differing orders to explore multiple branches of the exhaustive search tree. These loops are responsible for producing a wide range of microgrid designs by randomizing search directions.
Algorithm 2 Microgrid sizing binary search algorithm |
Input: f (function for operating microgrid) Input: p (power load, indexed by time) Input: (capacity lower bounds by DER) Input: (capacity upper bounds by DER) Input: (number of capacity levels by DER) Input: (set of microgrids) Output: (set of microgrids) for
do for to do update capacity of DER i in g to closest capacity in end for for to do if then decrease_capacity = true else decrease_capacity = false end if for to in a random order do while do while True do set to capacity of DER i in if decrease_capacity then else end if set capacity of DER i in to to obtain if then if then break end if else if not decrease_capacity then decrease_capacity = true end if break end if end while end while end for end for end for return
|
Algorithm 2 starts by initializing a set of potential solutions to the set of solutions identified by the exhaustive search in Algorithm 1. The outermost ‘for loop’ iterates over each potential solution. The first nested ‘for loop’ iterates over each DER and (i) initializes its capacity levels and (ii) sets the starting point for the potential solution to the closest levels compared to the original values from the coarser capacity levels used during the exhaustive search phase. The potential solution is then simulated. The second nested ‘for loop’ iterates several times over the same potential solution and initializes the search direction based on whether a power deficit arose, increasing capacity if a deficit was detected and decreasing it if not. This ‘for loop’ combined with the next inner ‘for loop’ allows for randomizing the order in which DERs are explored, so that the capacity of one DER can be adjusted sooner than other DERs in some iterations and later in other iterations. The ‘while loops’ execute the binary search on the current DER, proceeding until the current solution (i) has a power deficit more than the prior solution or (ii) has a power deficit of zero with a search direction of increasing capacity. In the latter case, the search direction is then reversed and the search continues to decrease capacity until a power deficit arises. Every solution simulated is stored in . After the algorithm is terminated, all dominated potential solutions are pruned from .
2.2.3. Linear Search
In the final phase of the heuristic, all the non-dominated solutions generated by Algorithm 2, aside from those with power deficits, are finessed through the local search procedure presented in Algorithm 3. Capacity is decreased until either no further decrease is possible or until a power deficit arises.
Algorithm 3 Microgrid sizing local search algorithm |
Input: f (function for operating microgrid) Input: p (power load, indexed by time) Input: (capacity lower bounds by DER) Input: (capacity upper bounds by DER) Input: (number of capacity levels by DER) Input: (set of non-dominated microgrids) Output: (set of microgrids) for
do if then continue end if for to do while True do set to capacity of DER i in if then break end if set capacity of DER i in to to obtain if then break end if end while end for end for return
|
Algorithm 3 starts by initializing a set of potential solutions to the set of non-dominated solutions identified by the binary search in Algorithm 2. The outer ‘for loop’ iterates over each potential solution, first simulating it and skipping it if a power deficit exits. The inner ‘for loop’ iterates over each DER and the nested ‘while loop’ executes the linear search on the current DER’s capacity, proceeding until (i) it reaches the minimum allowable level or (ii) a power deficit arises. Every solution simulated is stored in . After the algorithm is terminated, all dominated potential solutions are pruned from , ensuring that no rightsized designs are unintentionally pruned during the search.
2.3. Computational Experiment
Microgrid Planner is intentionally designed for researchers to update DER models with ease. Therefore, the specific assumptions regarding the operation of DERs that are employed in the computational experiment are not central to the main focus of this paper. The reader can find details on the simulation method and DER models employed from Microgrid Planner in [
23] (note: we used version 1.1, prior to the integration of historical weather data in version 2.0).
The computational example is motivated by a military deployment with a planned duration of two weeks, using the baseline power load shown in
Figure 2, which is the same as in [
23,
24]. The time horizon is discretized into 4-min intervals, which translates to 5040 time steps at which the microgrid’s operation is simulated. If substituting hourly data that encompass typical discretization in commercial software products, the same problem size would accommodate a 7-month planning horizon.
Lower bounds of 0 are set for all DER capacities. The upper bounds are scaled by the peak power demand in the power load profile with adjustments to account for losses. For diesel generators and wind turbines, a multiplier of 1 is applied. For photovoltaic systems, a multiplier of 3 is applied to compensate for non-peak and night hours with less or no generation. For battery energy storage systems, a multiplier of 5 is applied to allow for high levels of energy reserves, and energy is treated as the primary capacity with Microgrid Planner maintaining energy-to-charge-power and energy-to-discharge-power ratios specified in an input microgrid template. Parameter settings of 11, 21, 41, 81 and 161 levels are tested with respective capacity spacing of 10%, 5%, 2.5%, 1.25% and 0.625% of the allowable maximum for each DER type. For generating the initial solution set from the exhaustive search algorithm, 6 levels are used with respective capacity spacing of 20%. The exhaustive search algorithm, shown for comparison purposes, becomes computationally intractable with more levels.
3. Results and Discussion
The heuristic sizing method with 11 levels (10% spacing) simulates 359 candidate microgrid designs when considering three DER types: diesel generators, photovoltaic and battery energy storage systems. Of these, the 17 solutions shown in
Table 2 encompass all the non-dominated solutions with no power deficits at any point in time. The diversity of these candidate solutions is evident in the number of discrete capacity levels they cover. Specifically, 8 out of 11 diesel generation capacities, 9 out of 11 photovoltaic system capacities, and 10 out of 11 battery energy storage system capacities are present in these 17 candidate microgrid designs. The results from the sizing method can be compared with those obtained from an exhaustive search because the instance is sufficiently small. An exhaustive search produces 18 solutions with no power deficits, with none being identified as dominated, but 16 of which are identified by the heuristic. The heuristic misses two solutions that the exhaustive search identifies, one of which exhaustive search prunes, because of a subtle detail regarding energy management system logic and resulting battery state of charge.
The heuristic sizing method results are compared with those of the nested binary search “rightsizing” method presented in [
23]. The approach in [
23], with step sizes of 5 for all DER type capacities, produces 816 “rightsized” designs, 326 of which are within the capacity limits set in our heuristic sizing method. The heuristic sizing method with 41 capacity levels identifies 42 non-dominated microgrid designs with no power deficits. Although the heuristic only identifies a fraction of the number of solutions of [
23], that fraction is diverse in the mixes of DER capacity levels, as shown in
Figure 3. Moreover, the hundreds of options produced by [
23], many of which are quite similar, are neither needed nor necessarily desirable. The heuristic algorithm produces smaller numbers of potential solutions with smaller numbers of capacity levels, increasing from 17 non-dominated microgrid designs with no power deficits with 11 levels, to 32 such designs with 21 capacity levels, to 42 designs with 41 levels, to 44 designs with 161 levels, as shown in
Figure 3c and
Figure 4. Increasing the number of capacity levels past 41 does not have a significant impact on the number of microgrid designs identified.
The comparison with [
23] is explored further in
Table 3. The difference between solutions generated with the two approaches is less than the 10% spacing set by the input number of levels (11). For example, the largest difference encountered is in the microgrid with 70 kW diesel generation and no photovoltaic system, where the sizing method sized the battery energy storage system at 320 kWh, which is 45 kWh more than the method of [
23]. This difference may seem large at first glance. However, when considered in context of the discretization of battery capacity levels in the sizing method, it actually represents the lowest possible level corresponding to the “rightsized” value, as decreasing another level to 260 kWh results in a non-zero power deficit. The same is true for all differences reported. In other words, given the discretization of capacity levels used in the computations, the 17 non-dominated microgrids are all “rightsized”.
To further reduce the differences between the solutions generated by the two methods, capacity level spacing must be reduced by increasing the number of levels per DER. Reducing capacity level spacing also increases the number of potential “rightsized” solutions. A summary of results for the various capacity level spacings tested is provided in
Table 4. In total, 42 out of the 44 solutions obtained by the sizing method when using 161 levels per DER exactly match the solutions generated by the method of [
23]. The other two differ by only 5 kWh of battery capacity, which is the rounding precision set for generating the discrete capacity levels to be considered. A similar comparison is not possible in the four DER-type instances, as the method of [
23] is limited to three DER dimensions.
The exhaustive search exceeded the 48 h time limit with 81 levels for three DER types, and with only 21 levels with four DER types. The run time of the sizing method increases at a decreasing rate as the number of levels are increased at an exponential rate, so it scales well to achieve capacity precision. However, it does not scale as well when increasing the number of DER types. Microgrid Planner does not yet include a fifth type of DER, so further research may be required to improve the efficiency when more DER types are supported. Avenues exist for doing so, such as decreasing the number of levels in the exhaustive search used to provide the initial set of microgrid designs, reducing the number of iterations in the ‘for loops’ currently used to expand the search and pruning more solutions.
The sizing method introduced in this paper was developed to meet the planning needs of partners at military installations. The search heuristics presented are efficient for the size of the current DER technology portfolios being actively planned for current microgrid investments. These heuristics are customizable and may be tuned as additional technologies are considered; however, the DER technology set will likely remain relatively small in the near future.
The method has notable limitations. It is a heuristic. Moreover, is not guaranteed to find rightsized solutions and may discover local optima as it branches. To mitigate this, the binary search method explores the search space in different orders of DER capacities, for example, adjusting the photovoltaic capacity before diesel generation capacity on one iteration of third-level and fourth-level for loops. Then, it may explore those DER capacities in the opposite order on another iteration. The computational results suggest that this approach is effective in practice. Moreover, Microgrid Planner allows the user to easily simulate the performance of any microgrid design being considered, review the results, and interactively adjust capacities, so the user can be confident in any solution being considered for adoption.
The method is deterministic. Another limitation is that it does not account for the inherent stochasticity in weather conditions, upon which renewable energy sources, such as photovoltaic systems and wind turbines, rely. Sensitivity analysis [
24] can be applied to subject microgrid designs of interest to a range of generated scenarios and assess their performance. Future work may explore methods that integrate stochastic analysis directly in the DER sizing method.
Future work may also include experimentally validating the performance of microgrid designs produced by the search heuristics. The construction of the function for operating the microgrid has an effect on when power deficits may arise and thereby impacts the results produced. Therefore, a future study may compare performance of different control strategies on planning outcomes.
The DER sizing method has been released in Microgrid Planner [
2,
3]. By contributing to open source software, the sizing method proposed in this paper provides a low-cost planning capability that may be configured and extended, which is a significant advantage compared to proprietary microgrid planning software.