Siting and Sizing Battery Energy Storage for Power Quality in High-Renewable Microgrids

High shares of wind and photovoltaic generation change the nature of the power-quality problem in a microgrid. The issue is no longer only average energy balance. Fast source-load imbalance, weak voltage support, and reduced synchronous inertia can appear together, especially in islanded operation. A battery energy storage system can absorb or inject active power within milliseconds, but its value depends on where it is connected and how its power and energy ratings are divided among units. A poorly placed or undersized system can leave voltage deviations and losses unresolved; an oversized system can add cost without improving the limiting index.

Why Power Quality Becomes a Locational Problem

Wind and PV sources are usually connected through power-electronic converters. This reduces the number of synchronous machines online and lowers the effective inertia of the microgrid. When wind output, PV output, and load demand fluctuate at the same time, the resulting power imbalance produces frequency excursions, voltage fluctuations, and power oscillations. In grid-connected mode, the main grid can provide part of the frequency support. In islanded mode, that support disappears, and the remaining synchronous generation must respond to faster and larger disturbances.

Battery storage acts on the active-power balance directly. It can charge during surplus generation and discharge during deficits, reducing the ramping burden on synchronous units and limiting the depth of frequency excursions. It also changes the power flow in the network. That second effect is locational: a storage unit connected near a weak feeder section can relieve voltage stress and line loading, while a unit connected at an electrically distant point may have little influence on the critical node. If storage capacity is insufficient or the connection point is poorly chosen, local voltage deviation, line loss, or dynamic stability can worsen even though total storage capacity appears adequate.

Containerized battery energy storage units for microgrid power quality support

Energy Battery Storage as a Power-Quality Resource

Energy battery storage contributes to power quality through three mechanisms. First, fast active-power regulation smooths the net load seen by synchronous generators. Second, storage siting changes the distribution of branch flows, which affects line losses and node voltages. Third, the stored energy can be allocated across several units, so the system is not forced to concentrate all power at one bus. The last point matters in a radial microgrid: a single large unit may be effective for energy shifting but less effective for local voltage support than several smaller units distributed along the feeder.

A configuration study therefore has to answer two questions together: how much storage power and energy are needed, and where should the units be placed. The evaluation also needs more than one index. Loss minimization tends to favor locations that reduce current in heavily loaded branches. Voltage-deviation minimization tends to favor buses that are electrically remote or weakly supported. Voltage-sensitivity minimization favors buses where a small power perturbation produces a large voltage change. Small-disturbance stability adds a dynamic criterion because the same converter-dominated network can have poorly damped low-frequency modes. These objectives do not necessarily select the same nodes.

Stochastic Modeling of Wind, PV, and Load

Deterministic sizing uses one assumed operating point. That is weak evidence for a microgrid in which wind, PV, and load vary simultaneously. The stochastic model treats the three sources of uncertainty separately, then combines them through Monte Carlo sampling.

For wind output, the output variable is represented by a Weibull distribution:

$$f_w(x\mid \lambda,k)=\frac{k}{\lambda}\left(\frac{x}{\lambda}\right)^{k-1}\exp\left[-\left(\frac{x}{\lambda}\right)^k\right]$$

where x is wind output power, λ is the scale parameter, and k is the shape parameter. For scenario s and time period t, the wind power is generated by inverse sampling:

$$P_w^{(s)}(t)=F_w^{-1}\left(\xi_w^{(s)}(t)\right)$$

where Fw−1 is the inverse Weibull cumulative distribution and ξw(s)(t) is a uniformly distributed random number in [0, 1].

PV output is normalized to [0, 1] and represented by a Beta distribution:

$$f_{pv}(x\mid \alpha,\beta)=\frac{1}{B(\alpha,\beta)}x^{\alpha-1}(1-x)^{\beta-1}$$

$$B(\alpha,\beta)=\frac{\Gamma(\alpha)\Gamma(\beta)}{\Gamma(\alpha+\beta)}$$

where α and β are shape parameters, B(·,·) is the Beta function, and Γ(·) is the Gamma function. With a rated PV capacity Ppvmax, the scenario output is:

$$P_{pv}^{(s)}(t)=P_{pv}^{\max}x_{pv}^{(s)}(t)$$

Load demand is represented by a normal distribution at each load node:

$$f_{L,i}(x\mid \mu_i,\sigma_i^2)=\frac{1}{\sqrt{2\pi\sigma_i^2}}\exp\left[-\frac{(x-\mu_i)^2}{2\sigma_i^2}\right]$$

$$P_{L,i}^{(s)}(t)=\mu_i+\sigma_i\varepsilon_i^{(s)}(t)$$

where μi is the mean active-power demand at node i, σi is its standard deviation, and εi(s)(t) is a standard normal sample. The combined scenario set is:

$$\mathcal{S}=\left\{\Omega^{(s)}(t)\mid s=1,\dots,N_s;\ t=1,\dots,N_t\right\}$$

where Ns is the number of Monte Carlo scenarios and Nt is the number of time periods in the daily profile. This structure allows the same network model to be evaluated under many plausible source-load combinations rather than one deterministic day.

Optimization Formulation

The configuration model uses line loss, voltage deviation, and voltage sensitivity as the static power-quality indices. Line loss is related to branch current and resistance:

$$F_{\text{loss}}=\sum_{i=1}^{N_B-1}R_{i,i+1}\left|\frac{V_{i+1}-V_i}{Z_{i,i+1}}\right|^2$$

where NB is the number of nodes, Vi and Vi+1 are adjacent node voltages, Zi,i+1 is the branch impedance, and Ri,i+1 is the branch resistance. Voltage deviation is measured against the rated voltage:

$$F_{VD}=\sum_{j=1}^{N_B}\left|V_{\text{ref}}-V_j\right|^2$$

Voltage sensitivity is obtained from the linearized power-flow relations:

$$\begin{bmatrix}\Delta P\\\Delta Q\end{bmatrix}=\begin{bmatrix}J_{P\delta}&J_{PV}\\J_{Q\delta}&J_{QV}\end{bmatrix}\begin{bmatrix}\Delta\delta\\\Delta V\end{bmatrix}$$

The sensitivity of node i to active and reactive injections at node j is:

$$S_{P,ij}=\left|\frac{\partial V_i}{\partial P_j}\right|,\qquad S_{Q,ij}=\left|\frac{\partial V_i}{\partial Q_j}\right|$$

A higher sensitivity means that a given power perturbation produces a larger voltage change. For a monitored node i, the aggregated sensitivity objective is:

$$F_{VS}=\sum_{j=1}^{N_B}\left(e^{100S_{P,ij}}+e^{100S_{Q,ij}}\right)$$

The exponential term gives strong weight to high-sensitivity conditions. The three static indices are combined as:

$$\min F=\omega_1F_{\text{loss}}+\omega_2F_{VD}+\omega_3F_{VS}$$

where ω1, ω2, and ω3 set the relative priority of loss, voltage deviation, and voltage sensitivity. Small-disturbance stability is assessed separately through the eigenvalues of the linearized system; it is a dynamic criterion rather than another term in the static weighted sum.

The decision vector contains the active-power rating and connection node of each storage unit:

$$X=\left[P_{B,1},L_1,P_{B,2},L_2,\dots,P_{B,n_{\text{BESS}}},L_{n_{\text{BESS}}}\right]$$

where PB,k is the charge-discharge power rating of unit k, Lk is its connection node, and nBESS is the number of units. The constraints are:

$$1\le L_k\le n,\qquad k=1,\dots,n_{\text{BESS}}$$

$$0<p_{b,k}\le $$\sum_{k="1}^{n_{\text{BESS}}}P_{B,k}=P_{\text{Batt}}$$" $$v_{\min}\le=""

Here n is the number of candidate connection nodes, PBmax is the maximum unit power, PBatt is the initial total storage power, and Vmin and Vmax are the voltage limits. The optimization variables are storage active power and node; converter reactive-power capability is not an independent decision variable in this formulation. That distinction matters when interpreting voltage-sensitivity results: the index describes network response to power perturbations, not a co-optimized reactive-power schedule.

Case Study: IEEE 33-Node Microgrid

The test system is the IEEE 33-node radial distribution network. The case configuration includes one 2 MVA wind turbine, one 1 MW PV source, one 0.3 MW droop-controlled distributed generator, and one synchronous generator. There are 32 load nodes, with a total active load of 3.72 MW and a total reactive load of 2.3 Mvar under normal conditions. Each load is modeled as a normal distribution with a standard deviation equal to 5% of its rated demand. The Monte Carlo set contains 10,000 scenarios for wind, PV, and load.

The initial storage requirement was calculated from the intraday synchronous-generator output profile that storage would help smooth. Three sampling rules were compared. Method 1 selects samples at equal intervals across the generator output range. Method 2 sorts the output samples and then takes equally spaced points. Method 3 draws daily power points directly from the random samples.

Initial storage sizing under three sampling rules for the synchronous-generator output profile
Method Storage capacity (kWh) Storage power (kW)
Method 1: equal spacing over the output range 1,520 1,290
Method 2: sorted samples with equal intervals 800 1,470
Method 3: direct random draw 740 1,040

Method 1 produced the most conservative energy rating, 1,520 kWh, with a power rating of 1,290 kW. Method 2 reduced the energy rating to 800 kWh but raised the power requirement to 1,470 kW. Method 3 gave 740 kWh and 1,040 kW. In this case, the direct random draw met the smoothing requirement without the extra energy capacity of Method 1 or the high power rating of Method 2. The 740 kWh/1,040 kW result was then used as the starting point for splitting storage into multiple units and optimizing their locations.

Storage node and power allocation under different objectives
Optimization objective Selected nodes Storage power by unit (kW)
Minimum line loss 2, 5, 21, 25 440, 217, 33, 250
Minimum voltage deviation 30, 31 528, 512
Minimum voltage sensitivity 17, 18 532, 508
Best dynamic stability 16, 18 240, 800
Multi-objective 9, 27, 28, 30 265, 245, 260, 270

The selected nodes differ markedly by objective. Loss minimization spreads storage across nodes 2, 5, 21, and 25, with a small 33 kW unit at node 21 and larger units elsewhere. This pattern is consistent with using several distributed units to reshape branch flows rather than concentrating power at one bus. Voltage-deviation minimization places storage at nodes 30 and 31, with an almost even split of 528 kW and 512 kW. These nodes are the effective voltage-support locations for that objective in the test feeder. Voltage-sensitivity minimization selects nodes 17 and 18, again with a nearly even split, which indicates that these locations are more effective at reducing the voltage response to power perturbations.

The dynamic-stability case selects nodes 16 and 18 but distributes power unevenly: 240 kW at node 16 and 800 kW at node 18. This is a different allocation logic from voltage-deviation minimization. A location that improves a small-disturbance mode is not necessarily the location that minimizes steady-state voltage error. The multi-objective case selects nodes 9, 27, 28, and 30 with 265, 245, 260, and 270 kW. It does not maximize any single index. Instead, it spreads storage across four locations to balance loss, voltage deviation, voltage sensitivity, and dynamic behavior.

Deployment Implications

The main engineering lesson is that storage capacity and storage location are coupled decisions. A capacity calculated from a single operating point can be either too conservative or too optimistic once source-load uncertainty is included. The three sampling rules in the case produced capacity estimates from 740 to 1,520 kWh and power estimates from 1,040 to 1,470 kW for the same system. That spread is large enough to affect equipment selection and capital cost. Stochastic scenario generation is therefore not an optional refinement; it changes the sizing result.

The second lesson is that the best node depends on the power-quality index being managed. In the IEEE 33-node case, loss minimization favored a distributed four-node arrangement, voltage-deviation minimization favored nodes 30 and 31, voltage-sensitivity minimization favored nodes 17 and 18, and dynamic-stability improvement favored nodes 16 and 18. A multi-objective scheme moved to nodes 9, 27, 28, and 30. These node numbers are specific to the test feeder, its source mix, and its load distribution; they should not be transferred directly to another network. The transferable result is the method: generate stochastic operating scenarios, screen candidate nodes with loss, voltage, and sensitivity indices, then check the shortlisted configurations against a linearized dynamic-stability criterion.

For practical deployment, the initial power and energy ratings should be sized separately. Power rating is driven by short-term ramps and the largest credible source-load imbalance; energy rating is driven by sustained surplus or deficit periods. After that, the total power can be divided among units and sited according to the dominant local constraint. A multi-objective result is not a compromise for its own sake. It is a way to avoid a configuration that performs well on one index while creating a new voltage or loss problem elsewhere. Because the eigenvalue test is a small-disturbance indicator, final designs should still be checked with time-domain simulation under the credible islanded and grid-connected events.

Scroll to Top