Hierarchical Capacity Planning for Microgrid Battery Storage with Battery-Life Degradation Costs

Microgrids with high wind penetration need flexibility. Battery energy storage can move wind generation from low-load hours to high-load hours, reduce imports from the distribution grid, and lower customer electricity costs. Storage is capital-intensive, however, and its cycle life depends strongly on how often and how deeply it is cycled. A capacity plan that ignores degradation can look profitable in daily operation while requiring battery replacement long before the intended float life. The planning problem is therefore coupled: user-side storage responds to retail tariffs, demand charges, and subsidies, while generation-side storage supports wind consumption and microgrid economics. Both assets see the same load and tariff signal, so their capacities should be chosen together.

Containerized battery energy storage system
Battery energy storage provides fast, modular capacity for microgrids with variable wind generation.

Battery Degradation as a Planning Constraint

The planning model uses a single-factor depth-of-discharge life model. Cycle life is represented as a power-law function of discharge depth:

$$N_{\mathrm{life}}=N_0 d_{\mathrm{cyc}}^{-k_p}$$

where \(N_{\mathrm{life}}\) is the number of cycles to end of life, \(N_0\) is the cycle count at 100% depth of discharge (DOD), \(d_{\mathrm{cyc}}\in(0,1]\) is the DOD of a cycle, and \(k_p\) is a fitted exponent. A cycle is counted at the transition from discharge to charge. Its DOD is calculated from the state of charge at the preceding interval:

$$d_{\mathrm{cyc}}(t)=\left[1-\mathrm{SOC}(t-1)\right]S_e(t)$$

Here \(S_e(t)\) is a binary variable indicating whether a discharge-to-charge transition occurs at time \(t\). Each cycle is converted into an equivalent full cycle at 100% DOD:

$$n_{\mathrm{eq}}(t)=d_{\mathrm{cyc}}(t)^{k_p}$$

The daily equivalent full-cycle count is \(N_{\mathrm{eq}}=\sum_{t=1}^{T}n_{\mathrm{eq}}(t)\), subject to a daily cap \(N_{\mathrm{eq}}\le N_{\mathrm{eq,max}}\). The resulting cycle life in years is

$$T_{\mathrm{cyc}}=\frac{N_0}{365N_{\mathrm{eq}}}$$

and it is bounded by the float life \(T_{\mathrm{flo}}\):

$$T_{\mathrm{cyc}}\le T_{\mathrm{flo}}$$

The investment cost of a battery unit with energy capacity \(S_c\) and rated power \(P_c\) is

$$C_{\mathrm{inv}}=c_sS_c+c_pP_c$$

where \(c_s\) is the cost per unit of energy capacity and \(c_p\) is the cost per unit of power capacity. The capital recovery factor uses the cycle life rather than a fixed book life:

$$c_a=\frac{r(1+r)^{T_{\mathrm{cyc}}}}{(1+r)^{T_{\mathrm{cyc}}}-1}$$

with discount rate \(r\). The daily storage cost combines annual operation and maintenance with daily capital recovery:

$$C_{\mathrm{bes}}=\frac{c_mP_c+c_aC_{\mathrm{inv}}}{365}$$

where \(c_m\) is the annual maintenance cost per unit of power. A shorter cycle life therefore raises the daily capital charge, which feeds directly into the storage sizing decision. The model does not resolve temperature, charge-rate, or calendar-ageing effects separately; those are compressed into the DOD relationship and the float-life cap.

Key lithium-ion storage and tariff assumptions used in the case study
Parameter Value
Energy capacity cost, \(c_s\) 1120 CNY/kWh
Power capacity cost, \(c_p\) 2000 CNY/kW
Maintenance cost, \(c_m\) 97 CNY/kW-year
Charge/discharge efficiency, \(\eta\) 0.9
State-of-charge range 0.2–1.0
Cycle count at 100% DOD, \(N_0\) 1591 cycles
Life-model exponent, \(k_p\) 2.09
Float life, \(T_{\mathrm{flo}}\) 10 years
Discount rate, \(r\) 0.05
Peak-shaving rate, \(\mu\) 10%
Basic capacity charge 40 CNY/kW-month
Microgrid sale price to grid 0.5 CNY/kWh
2019 Suzhou storage subsidy 0.3 CNY/kWh of discharged energy, 3 years

Two-Layer Configuration Model

The framework separates decision rights. User-side storage is managed by the user group and maximizes daily net benefit from tariff arbitrage, demand-charge reduction, and subsidy. Generation-side storage is managed by the microgrid generator and is sized for economic benefit and local wind consumption. The coupling variable is the equivalent load after user-side storage and the time-of-use (TOU) tariff that is re-segmented from that load.

User-Side Storage: Arbitrage, Demand Charges, and Peak Shaving

The user-side model chooses energy capacity \(S_{cl}\), rated power \(P_{cl}\), and the charging and discharging powers \(P_{c,l}(t)\) and \(P_{dc,l}(t)\). The objective is

$$F_L=f_1+f_2+f_3-C_{\mathrm{bes},l}$$

where \(F_L\) is daily net benefit, \(f_1\) is arbitrage income from charging at low tariffs and discharging at high tariffs, \(f_2\) is the reduction in demand charges from a lower peak import, \(f_3\) is subsidy income, and \(C_{\mathrm{bes},l}\) is the daily storage cost from degradation and maintenance. The equivalent load after user-side storage is

$$P_L(t)=P_{\mathrm{load}}(t)+P_{c,l}(t)-P_{dc,l}(t)$$

The storage constraints prevent simultaneous charging and discharging and keep the state of charge within limits:

$$0\le P_{c,l}(t)\le U_{c,l}(t)P_{cl},\qquad 0\le P_{dc,l}(t)\le U_{dc,l}(t)P_{cl},\qquad U_{c,l}(t)+U_{dc,l}(t)\le1$$

$$\mathrm{SOC}_{l,\min}\le\mathrm{SOC}_l(t)\le\mathrm{SOC}_{l,\max}$$

The daily charge and discharge energies are balanced so that the battery can repeat the same schedule:

$$\sum_{t=1}^{T}P_{c,l}(t)\eta_{c,l}\Delta t=\sum_{t=1}^{T}\frac{P_{dc,l}(t)}{\eta_{dc,l}}\Delta t$$

Peak shaving is imposed as an upper bound on the post-storage load:

$$P_L(t)\le(1-\mu)P_{l,\max}$$

where \(\mu\) is the peak-shaving rate and \(P_{l,\max}\) is the daily load peak. The model uses binary charge and discharge states, so the scheduling problem is solved with mixed-integer methods; the case uses Gurobi.

Re-Segmenting Time-of-Use Periods

After user-side storage is dispatched, the equivalent load curve changes. The original peak, flat, and valley blocks may no longer match the new load pattern. The model therefore recalculates TOU periods with fuzzy clustering. Each hour is assigned peak and valley membership grades from the load level; the indicator matrix is standardized, a fuzzy similarity matrix is formed, and its transitive closure is clustered dynamically into peak, flat, and valley periods. The revised tariff then feeds back into both the user-side and generation-side storage models. This feedback is why the two sizing problems are solved iteratively rather than in a single sequence.

Generation-Side Storage: Economic and Wind-Consumption Objectives

The generation-side model chooses energy capacity \(S_{cg}\) and rated power \(P_{cg}\). Its economic objective is the daily net benefit from selling electricity to load and to the grid, minus imports and storage cost:

$$F_G=\sum_{t=1}^{T}\left[P_L(t)p_r(t)+P_{wg}(t)p_{rw}\right]-\sum_{t=1}^{T}P_{gw}(t)p_{rg}-C_{\mathrm{bes},g}$$

where \(P_{wg}\) is export to the grid, \(P_{gw}\) is import from the grid, \(p_{rw}\) is the sale price, \(p_{rg}\) is the purchase price, and \(C_{\mathrm{bes},g}\) is the generation-side daily storage cost. The second objective is local wind consumption:

$$\eta_{\mathrm{nes}}=1-\frac{\sum_{t=1}^{T}P_{wg}(t)}{\sum_{t=1}^{T}P_w(t)}$$

where \(P_w(t)\) is available wind power. The two objectives are maximized jointly:

$$\max\left\{F_G,\eta_{\mathrm{nes}}\right\}$$

The power balance couples wind, grid exchange, storage, and load:

$$P_w(t)+P_{gw}(t)+P_{dc,g}(t)=P_L(t)+P_{c,g}(t)+P_{wg}(t)$$

Generation-side storage follows the same charge/discharge, state-of-charge, and daily-energy-balance constraints as the user-side unit, with its own capacity and power variables.

Solution Procedure

The user-side model is solved first for a given tariff. The resulting equivalent load is used to re-segment the TOU periods. The generation-side model is then solved as a dual-objective problem with NSGA-II. In the case, the population size is 100, the number of generations is 50, the crossover probability is 0.9, and the mutation probability is 0.1. The two objectives are normalized by their maximum values in the Pareto set and combined with weights of 0.5 for economic benefit and 0.5 for wind consumption; the individual with the highest weighted score is selected. The user-side and generation-side models are iterated until the user-side daily net benefit changes by less than 1% between iterations or a maximum iteration count is reached.

Case Study: Li-Ion Storage in a Wind Microgrid

The case represents a microgrid with wind generation and a commercial load. Seasonal wind data are clustered into representative daily profiles. The wind output has a clear anti-peak pattern: generation is high when the commercial load is low. The initial TOU tariff is shown below.

Initial time-of-use tariff before re-segmentation
Period Hours Price (CNY/kWh)
Valley 0:00–8:00 0.3139
Flat 12:00–17:00; 21:00–24:00 0.6754
Peak 8:00–12:00; 17:00–21:00 1.1257

Four cases separate the effects of the life model and user-side storage:

  • Case 1: generation-side storage only, no battery-life model.
  • Case 2: generation-side and user-side storage, no battery-life model.
  • Case 3: generation-side storage only, with the battery-life model.
  • Case 4: generation-side and user-side storage, with the battery-life model.

Results: Life Constraints and Hierarchical Sizing

For user-side storage, the life constraint changes both capacity and lifetime economics. The energy capacity falls from 7897.9 kWh in Case 2 to 6800 kWh in Case 4, while rated power is almost unchanged at 933.3 kW and 940 kW. Daily net benefit rises from 2446.6 to 2693.3 CNY. The more important difference is cycle life: 1.49 years in Case 2 versus 10 years in Case 4. As a result, lifetime benefit rises from 1.3306 million CNY to 9.8305 million CNY. The smaller battery lowers daily capital recovery from 3785.9 to 3356.1 CNY, which more than offsets the modest reduction in arbitrage and subsidy income.

User-side battery configuration with and without the life constraint
Case Capacity (kWh) Power (kW) Daily net benefit (CNY) Cycle life (years) Lifetime benefit (104 CNY)
Case 2: no life model, hierarchical 7897.9 933.3 2446.6 1.49 133.06
Case 4: life model, hierarchical 6800 940 2693.3 10 983.05

On the generation side, adding user-side storage cuts the required energy capacity by about 53% in both pairs: from 16.04 to 7.59 MWh without the life constraint, and from 14.38 to 6.73 MWh with it. Daily net benefit rises in both comparisons. The rated power does not follow the same pattern: Case 4 requires 1.51 MW, above the 1.07 MW in Case 3. Lower energy capacity can therefore coexist with higher power rating when the user-side battery reshapes the load and the generation-side battery must respond over shorter intervals.

Generation-side battery configuration across the four cases
Case Capacity (MWh) Power (MW) Daily net benefit (CNY) Wind consumption (%) Cycle life (years) Lifetime benefit (104 CNY)
Case 1: no life model, generation only 16.04 1.19 17,782 86.5 7.68 4984
Case 2: no life model, hierarchical 7.59 0.81 18,351 82.2 8.35 5593
Case 3: life model, generation only 14.38 1.07 16,442 87.7 10 6001
Case 4: life model, hierarchical 6.73 1.51 20,047 88.37 10 7317

The life constraint also changes the economics of the generation-side asset. In the standalone comparison, daily net benefit falls from 17,782 CNY in Case 1 to 16,442 CNY in Case 3, but cycle life rises from 7.68 to 10 years and lifetime benefit rises from 49.84 million to 60.01 million CNY. With user-side storage, Case 4 reaches 20,047 CNY per day, 88.37% wind consumption, a 10-year cycle life, and 73.17 million CNY in lifetime benefit.

Wind consumption is not monotonic across all cases. Without the life constraint, adding user-side storage reduces generation-side energy capacity from 16.04 to 7.59 MWh but also reduces wind consumption from 86.5% to 82.2%. With the life constraint, the hierarchical case raises wind consumption from 87.7% to 88.37% while cutting energy capacity from 14.38 to 6.73 MWh. The substitution effect on generation-side energy capacity is clear; the consumption outcome depends on the life constraint, dispatch, and objective weighting.

Load Shifting and Wind Consumption

When user-side storage operates without generation-side storage, it changes the load shape and the local use of wind. The peak-valley difference falls by 243.2 kW, the peak-valley ratio falls by 3.3 percentage points, and wind consumption rises by 14.94 percentage points for the spring wind profile. The battery charges during low-load, high-wind hours and discharges during peak hours, which is the same direction as the desired microgrid flexibility.

Load and wind-consumption indicators before and after user-side storage, without generation-side storage
Indicator Before storage After storage
Peak-valley load difference (kW) 1799.6 1556.4
Peak-valley ratio (%) 85.7 82.4
Wind consumption (%) 53.61 68.55

These results show that user-side storage can provide a meaningful local demand-shifting service. They do not show that it removes the need for generation-side storage. In the hierarchical cases, the microgrid still installs 6.73–7.59 MWh of generation-side capacity, because wind surplus and load peaks do not coincide perfectly and because the generation-side asset also supports export and import decisions.

Planning Implications

Battery life is not a secondary accounting detail. Ignoring it gives an optimistic daily benefit and can understate replacement cost by a large margin. In the user-side case, a plan without the life constraint reaches only 1.49 years of cycle life and 1.3306 million CNY of lifetime benefit, while the life-constrained plan reaches the 10-year float life and 9.8305 million CNY. The optimal capacity is smaller, but the asset lasts much longer.

Coordinated planning also changes the generation-side result. User-side storage can substitute for a substantial share of generation-side energy capacity, but it does not automatically improve every wind-consumption metric. The power rating, the wind profile, and the life constraint must be checked separately. A plan that reports only energy capacity or only daily net benefit can miss the more important lifetime trade-off.

The commercial case depends on tariff conditions. A wide peak-valley spread, a demand charge, and a subsidy all contribute to user-side revenue. The 2019 Suzhou subsidy of 0.3 CNY/kWh for discharged energy over three years is an example of temporary support; without such support or additional revenue, the economic window for user-side energy battery storage is narrower. Ancillary-service participation and dispatch by a microgrid operator could add revenue streams, but those services would also change cycling and therefore the degradation cost that should be included in the capacity decision.

The model is a planning approximation. It uses a single-factor DOD life model, a fixed float-life cap, and case-specific Li-ion costs and commercial load shapes. Temperature, charge rate, calendar ageing, and market price uncertainty would require a more detailed treatment. Within those limits, the central result is robust: user-side and generation-side storage should be sized together, and battery-life cost should be inside the objective rather than outside the feasibility check.

Scroll to Top