I formulate and evaluate a probabilistic unit commitment framework in which a battery energy storage system is not treated as a passive injection but as a controlled asset whose charging and discharging actions are coordinated by a dedicated BESS controller. The motivation is straightforward: high wind penetration reduces the kinetic inertia available to the grid, increases net-load ramping, and introduces forecast-error-driven uncertainty that a deterministic unit commitment model cannot absorb economically. I therefore combine scenario-based wind representation, thermal-unit commitment decisions, network constraints, and a refined BESS controller model into a single mixed-integer nonlinear optimization problem. The BESS controller is the component that translates system-level dispatch signals into feasible battery power commands while respecting state-of-charge limits, converter ratings, efficiency, and degradation considerations. This distinction matters because a storage model without an explicit BESS controller can appear feasible in an optimization statement while being unrealizable in operation.
The framework I use has three layers. The first layer is a probabilistic unit commitment layer that determines thermal commitment, thermal dispatch, reserve allocation, wind curtailment, and storage set points across a set of wind scenarios. The second layer is a BESS controller layer that enforces the local charging and discharging logic, state-of-charge feedback, and grid-support behavior of each storage bus. The third layer is a forward dynamic programming solver that exploits the stage-wise structure of the commitment problem and avoids exhaustive enumeration of infeasible thermal states. I use the BESS controller as both a modeling device and a computational device: it makes the storage constraints explicit, and it provides a compact state representation that reduces the dimension of the dynamic programming recursion.

I begin with notation. Let \(t\in\mathcal{T}=\{1,\ldots,N_T\}\) index dispatch intervals, \(h\in\mathcal{H}=\{1,\ldots,N_H\}\) index thermal units, \(i,j\in\mathcal{N}\) index network buses, and \(s\in\mathcal{S}\) index wind scenarios. The scenario probability is \(\pi_s\), with \(\sum_{s\in\mathcal{S}}\pi_s=1\). The binary commitment variable is \(U_{h,t}\in\{0,1\}\), and the startup and shutdown indicators are \(V_{h,t}\) and \(W_{h,t}\). The thermal power output is \(P_{h,t,s}\), the wind power available in scenario \(s\) is \(\widehat{P}^{\,W}_{i,t,s}\), the dispatched wind power is \(P^{W}_{i,t,s}\), and the curtailment is \(C^{W}_{i,t,s}\). The BESS controller variables at bus \(i\) are the charging power \(P^{c}_{i,t,s}\), the discharging power \(P^{d}_{i,t,s}\), and the state of charge \(E_{i,t,s}\). The BESS controller also uses binary mode indicators \(z^{c}_{i,t,s}\) and \(z^{d}_{i,t,s}\) when a mixed-integer representation is required.
| Symbol | Meaning | Type or range |
|---|---|---|
| \(N_T\) | Number of dispatch intervals in the horizon | Positive integer |
| \(N_H\) | Number of thermal units | Positive integer |
| \(\pi_s\) | Probability of wind scenario \(s\) | \(0\le\pi_s\le 1\), \(\sum_s\pi_s=1\) |
| \(P_{h}^{\max},P_{h}^{\min}\) | Thermal output bounds | MW |
| \(R_{h}^{\mathrm{up}},R_{h}^{\mathrm{dn}}\) | Thermal ramp-up and ramp-down limits | MW per interval |
| \(T_{h}^{\mathrm{on}},T_{h}^{\mathrm{off}}\) | Minimum up and down times | Intervals |
| \(P^{c}_{\max,i},P^{d}_{\max,i}\) | BESS controller charging and discharging limits | MW |
| \(\eta^{c}_i,\eta^{d}_i\) | BESS controller charging and discharging efficiencies | Dimensionless |
| \(\overline{E}_i,\underline{E}_i\) | BESS energy capacity bounds | MWh |
| \(U_{h,t}\) | Thermal commitment state | Binary |
| \(P_{h,t,s}\) | Thermal dispatch in scenario \(s\) | Continuous, MW |
| \(P^{c}_{i,t,s},P^{d}_{i,t,s}\) | BESS controller charging and discharging power | Continuous, MW |
| \(E_{i,t,s}\) | BESS state of charge | Continuous, MWh |
I write the scenario-based objective as the expected sum of thermal fuel cost, startup cost, shutdown cost, reserve cost, wind curtailment penalty, load-shedding penalty, and BESS controller degradation cost. The objective is
$$
\min \mathbb{E}_{s\sim\pi}\left[\sum_{t\in\mathcal{T}}\left(\sum_{h\in\mathcal{H}}\left(F_h(P_{h,t,s})U_{h,t}+SU_h V_{h,t}+SD_h W_{h,t}\right)+\sum_{i\in\mathcal{N}}\left(c^{W}C^{W}_{i,t,s}+c^{L}L_{i,t,s}+c^{B}\Delta E^{\mathrm{deg}}_{i,t,s}\right)\right)\right],
$$
where \(F_h(\cdot)\) is a convex quadratic fuel function, \(SU_h\) and \(SD_h\) are startup and shutdown costs, \(L_{i,t,s}\) is unserved load, \(c^{W}\) is the curtailment penalty, \(c^{L}\) is the load-shedding penalty, and \(c^{B}\) is the degradation cost coefficient applied to the BESS controller throughput. I use a separable quadratic form,
$$
F_h(P_{h,t,s})=a_h P_{h,t,s}^{2}+b_h P_{h,t,s}+c_h,
$$
with \(a_h\ge 0\). The quadratic term matters because the BESS controller shifts generation between intervals, and a linear-only model tends to overstate the value of small thermal adjustments. The expected objective is evaluated over the scenario set, while the commitment variables \(U_{h,t}\), \(V_{h,t}\), and \(W_{h,t}\) are first-stage decisions shared by all scenarios. The BESS controller variables can be scenario-dependent because the controller observes local state and wind realization. This structure is a two-stage stochastic program with mixed-integer first-stage decisions.
The power balance constraint at every bus and scenario is
$$
\sum_{h\in\mathcal{H}_i}P_{h,t,s}+P^{W}_{i,t,s}-C^{W}_{i,t,s}+P^{d}_{i,t,s}-P^{c}_{i,t,s}+L_{i,t,s}=D_{i,t}+\sum_{j\in\mathcal{N}}B_{ij}(\theta_{i,t,s}-\theta_{j,t,s}),
$$
where \(D_{i,t}\) is the local demand, \(B_{ij}\) is the susceptance, and \(\theta_{i,t,s}\) is the voltage angle. I use the DC power flow approximation for the network because the unit commitment problem is already large, and the BESS controller is more sensitive to active-power limits than to reactive-power detail in this planning context. The line-flow limit is
$$
-F^{\max}_{ij}\le B_{ij}(\theta_{i,t,s}-\theta_{j,t,s})\le F^{\max}_{ij}.
$$
The thermal generation limits are
$$
P_{h}^{\min}U_{h,t}\le P_{h,t,s}\le P_{h}^{\max}U_{h,t}.
$$
The ramping constraints are
$$
P_{h,t,s}-P_{h,t-1,s}\le R_{h}^{\mathrm{up}}U_{h,t-1}+P_{h}^{\max}(1-U_{h,t-1}),
$$
$$
P_{h,t-1,s}-P_{h,t,s}\le R_{h}^{\mathrm{dn}}U_{h,t}+P_{h}^{\max}(1-U_{h,t}).
$$
The minimum up-time and down-time constraints are
$$
\sum_{\tau=t-T_h^{\mathrm{on}}+1}^{t}V_{h,\tau}\le U_{h,t},\qquad
\sum_{\tau=t-T_h^{\mathrm{off}}+1}^{t}W_{h,\tau}\le 1-U_{h,t},
$$
and the commitment logic is
$$
U_{h,t}-U_{h,t-1}=V_{h,t}-W_{h,t},\qquad V_{h,t}+W_{h,t}\le 1.
$$
I allocate spinning reserve, non-spinning reserve, upward regulation reserve, and downward regulation reserve with the following constraints:
$$
\sum_{h\in\mathcal{H}}r^{s}_{h,t,s}\ge R^{s}_{t},\qquad
\sum_{h\in\mathcal{H}}r^{n}_{h,t,s}\ge R^{n}_{t},
$$
$$
\sum_{h\in\mathcal{H}}r^{u}_{h,t,s}\ge R^{u}_{t},\qquad
\sum_{h\in\mathcal{H}}r^{d}_{h,t,s}\ge R^{d}_{t}.
$$
The reserve contributions are bounded by headroom and footroom:
$$
0\le r^{u}_{h,t,s}\le P_{h}^{\max}U_{h,t}-P_{h,t,s},\qquad
0\le r^{d}_{h,t,s}\le P_{h,t,s}-P_{h}^{\min}U_{h,t}.
$$
I also include a probabilistic wind constraint. Rather than requiring the power balance to hold for every possible wind realization, I impose a chance constraint on the loss-of-load probability and a chance constraint on wind curtailment. In scenario form,
$$
\sum_{s\in\mathcal{S}}\pi_s \mathbf{1}\left[\sum_{i\in\mathcal{N}}L_{i,t,s}\le \epsilon_L\right]\ge 1-\alpha_L,
$$
$$
\sum_{s\in\mathcal{S}}\pi_s \mathbf{1}\left[\sum_{i\in\mathcal{N}}C^{W}_{i,t,s}\le \epsilon_W\right]\ge 1-\alpha_W.
$$
For computation, I replace each chance constraint by a set of linear scenario constraints and a probability mass selection, or by a conditional value-at-risk approximation:
$$
\mathrm{CVaR}_{\alpha}(L_t)=\min_{\xi}\left\{\xi+\frac{1}{1-\alpha}\sum_{s\in\mathcal{S}}\pi_s\left[L_{t,s}-\xi\right]^{+}\right\}.
$$
This is where the BESS controller helps most. A BESS controller with sufficient energy and power can reduce the upper tail of the net-load distribution by charging during high-wind intervals and discharging during low-wind or high-load intervals. Without an explicit BESS controller, the optimization may use storage in a way that violates local SOC constraints or converter limits, which produces an optimistic cost and an infeasible operating plan.
| Constraint family | Mathematical form | BESS controller role |
|---|---|---|
| Power balance | \(\sum P_h+P^W+P^d-P^c+L=D+\sum B(\theta_i-\theta_j)\) | BESS controller converts dispatch set point into charge or discharge power |
| Network flow | \(-F^{\max}\le B(\theta_i-\theta_j)\le F^{\max}\) | BESS controller siting reduces local congestion |
| Thermal ramping | \(-R^{\mathrm{dn}}\le P_{h,t}-P_{h,t-1}\le R^{\mathrm{up}}\) | BESS controller provides fast ramping support |
| Reserve | \(\sum r^u\ge R^u,\ \sum r^d\ge R^d\) | BESS controller can supply upward and downward reserve within SOC limits |
| Wind uncertainty | \(\mathrm{CVaR}_{\alpha}(L_t)\le \bar{L}\) | BESS controller reduces tail risk by shifting energy |
| BESS SOC | \(E_{i,t}=E_{i,t-1}+\eta^cP^c\Delta t-P^d\Delta t/\eta^d\) | BESS controller enforces SOC feedback and charge/discharge mode |
The BESS model I use is deliberately detailed enough to represent the BESS controller. At each bus, the charging and discharging powers are bounded by converter ratings:
$$
0\le P^{c}_{i,t,s}\le P^{c}_{\max,i}z^{c}_{i,t,s},\qquad
0\le P^{d}_{i,t,s}\le P^{d}_{\max,i}z^{d}_{i,t,s},
$$
with the mode exclusivity constraint
$$
z^{c}_{i,t,s}+z^{d}_{i,t,s}\le 1.
$$
The state-of-charge dynamics are
$$
E_{i,t,s}=E_{i,t-1,s}+\Delta t\left(\eta^{c}_i P^{c}_{i,t,s}-\frac{P^{d}_{i,t,s}}{\eta^{d}_i}\right)-E^{\mathrm{loss}}_{i,t,s},
$$
where \(E^{\mathrm{loss}}_{i,t,s}\) is a self-discharge or auxiliary-load term. The SOC bounds are
$$
\underline{E}_i\le E_{i,t,s}\le \overline{E}_i,
$$
and the terminal SOC constraint is
$$
E_{i,N_T,s}\ge E_{i,0}+\rho_i\left(\overline{E}_i-E_{i,0}\right),
$$
with \(\rho_i\in[0,1]\) controlling the required end-of-horizon energy. I include a degradation term based on throughput and depth of discharge:
$$
\Delta E^{\mathrm{deg}}_{i,t,s}=\kappa_1\left(P^{c}_{i,t,s}+P^{d}_{i,t,s}\right)\Delta t+\kappa_2\left(E_{i,t,s}-E_{i,t-1,s}\right)^2.
$$
The quadratic term penalizes aggressive cycling, and the linear term captures wear from throughput. The BESS controller uses this degradation signal to avoid unnecessary charge-discharge reversals. In the optimization, the BESS controller is the entity that decides whether a requested power injection is feasible, how it is split between charging and discharging, and how the SOC is restored for the next interval.
| Category | Signal | Description |
|---|---|---|
| State | \(E_{i,t}\) | State of charge maintained by the BESS controller |
| State | \(T_{i,t}\) | Cell or module temperature proxy used for derating |
| State | \(S^{\mathrm{health}}_{i,t}\) | State-of-health indicator used by the BESS controller |
| Input | \(P^{\mathrm{ref}}_{i,t}\) | System-level active-power reference |
| Input | \(\Delta f_t\) | Frequency deviation input to the BESS controller |
| Input | \(E^{\mathrm{ref}}_{i,t}\) | SOC reference from the upper-layer scheduler |
| Output | \(P^{c}_{i,t},P^{d}_{i,t}\) | Charge and discharge commands issued by the BESS controller |
| Output | \(r^{u}_{i,t},r^{d}_{i,t}\) | Reserve capacity certified by the BESS controller |
| Output | \(\sigma^{\mathrm{deg}}_{i,t}\) | Degradation cost signal returned to the optimizer |
I model the BESS controller as a constrained tracking controller with SOC feedback. The reference power is decomposed into a slow dispatch component and a fast frequency-support component:
$$
P^{\mathrm{ref}}_{i,t}=P^{\mathrm{sch}}_{i,t}+K^{f}_{i}\Delta f_t+K^{E}_{i}\left(E^{\mathrm{ref}}_{i,t}-E_{i,t}\right).
$$
The BESS controller then maps the reference into feasible charging and discharging commands:
$$
P^{d}_{i,t}=\max\left\{0,\min\left(P^{d}_{\max,i},P^{\mathrm{ref}}_{i,t}\right)\right\},
$$
$$
P^{c}_{i,t}=\max\left\{0,\min\left(P^{c}_{\max,i},-P^{\mathrm{ref}}_{i,t}\right)\right\}.
$$
In a discrete implementation, the BESS controller updates the SOC estimate as
$$
\hat{E}_{i,t+1}=\hat{E}_{i,t}+\Delta t\left(\eta^{c}_i P^{c}_{i,t}-\frac{P^{d}_{i,t}}{\eta^{d}_i}\right),
$$
and it enforces the admissible set
$$
\mathcal{A}_{i,t}=\left\{(P^{c},P^{d}):0\le P^{c}\le P^{c}_{\max,i},\ 0\le P^{d}\le P^{d}_{\max,i},\ \underline{E}_i\le \hat{E}_{i,t+1}\le \overline{E}_i\right\}.
$$
The BESS controller also reserves energy for upward and downward regulation. If the BESS controller commits \(r^{u}_{i,t}\) MW of upward reserve and \(r^{d}_{i,t}\) MW of downward reserve, then the energy feasibility conditions are
$$
\hat{E}_{i,t}+\Delta t\left(\eta^{c}_i P^{c}_{i,t}-\frac{P^{d}_{i,t}}{\eta^{d}_i}\right)+\Delta t\,\eta^{d}_i r^{d}_{i,t}\le \overline{E}_i,
$$
$$
\hat{E}_{i,t}+\Delta t\left(\eta^{c}_i P^{c}_{i,t}-\frac{P^{d}_{i,t}}{\eta^{d}_i}\right)-\frac{\Delta t}{\eta^{c}_i}r^{u}_{i,t}\ge \underline{E}_i.
$$
These inequalities are important because a BESS controller can appear to have reserve in the power dimension while lacking energy to deliver it for the required duration. I therefore treat the BESS controller as a joint power-energy controller rather than as a simple inverter limit.
| Mode | Primary equation | Purpose |
|---|---|---|
| Dispatch tracking | \(P^{\mathrm{ref}}=P^{\mathrm{sch}}\) | Follow upper-layer unit commitment set point |
| SOC restoration | \(P^{\mathrm{ref}}=P^{\mathrm{sch}}+K^{E}(E^{\mathrm{ref}}-E)\) | Return BESS controller to a secure energy band |
| Frequency droop | \(P^{\mathrm{ref}}=P^{\mathrm{sch}}+K^{f}\Delta f\) | Provide fast frequency response |
| Peak shaving | \(P^{\mathrm{ref}}=-P^{c}\) during low net load | Absorb excess wind and reduce peak thermal output |
| Reserve certification | \(r^u,r^d\) bounded by SOC headroom | Quantify reliable reserve from the BESS controller |
| Degradation-aware control | \(\sigma^{\mathrm{deg}}=\kappa_1(P^c+P^d)\Delta t+\kappa_2(\Delta E)^2\) | Limit cycling and extend asset life |
For the forward dynamic programming algorithm, I define the state at stage \(t\) as the vector of thermal commitment states, the BESS controller energy states, and the previous thermal dispatch levels needed for ramping. A compact state is
$$
x_t=\left(\mathbf{U}_t,\mathbf{E}_t,\mathbf{P}_{t-1}\right),
$$
and the decision is
$$
u_t=\left(\mathbf{V}_t,\mathbf{W}_t,\mathbf{P}_t,\mathbf{P}^{c}_t,\mathbf{P}^{d}_t,\mathbf{r}_t\right).
$$
The stage cost is
$$
g_t(x_t,u_t)=\sum_{h\in\mathcal{H}}\left(F_h(P_{h,t})U_{h,t}+SU_h V_{h,t}+SD_h W_{h,t}\right)+\sum_{i\in\mathcal{N}}\left(c^{B}\Delta E^{\mathrm{deg}}_{i,t}+c^{W}C^{W}_{i,t}+c^{L}L_{i,t}\right).
$$
The forward dynamic programming recursion is
$$
J_{t+1}(x_{t+1})=\min_{u_t\in\mathcal{U}_t(x_t)}\left\{g_t(x_t,u_t)+J_t(x_t)\right\},
$$
with the boundary condition
$$
J_0(x_0)=0.
$$
Unlike backward recursion, the forward version starts from the initial commitment and SOC state and propagates reachable states. I prune a state if its accumulated cost exceeds the incumbent plus a tolerance, if it violates minimum up/down logic, or if the BESS controller reports that the SOC cannot return to the required terminal band. The BESS controller is therefore embedded in the feasibility test, not appended after optimization.
| Element | Definition | Treatment |
|---|---|---|
| Stage | Dispatch interval \(t\) | One hour or one sub-hourly interval |
| State | \(x_t=(\mathbf{U}_t,\mathbf{E}_t,\mathbf{P}_{t-1})\) | Commitment, BESS controller SOC, previous dispatch |
| Decision | \(u_t=(\mathbf{V}_t,\mathbf{W}_t,\mathbf{P}_t,\mathbf{P}^c_t,\mathbf{P}^d_t,\mathbf{r}_t)\) | Startup, shutdown, thermal output, BESS controller commands, reserve |
| Stage cost | \(g_t(x_t,u_t)\) | Fuel, startup, shutdown, degradation, curtailment, unserved load |
| Feasible set | \(\mathcal{U}_t(x_t)\) | Ramping, reserve, network, BESS controller limits |
| Pruning rule | \(J_t(x_t)>\bar{J}+\epsilon\) | Remove dominated partial solutions |
| Terminal test | \(E_{i,N_T}\ge E^{\mathrm{req}}_i\) | BESS controller must restore energy |
I now describe the test system. I use four thermal units, one wind farm represented by twenty 2 MW turbines, and three BESS units with 10 MWh energy capacity and 10 MW power rating each. The thermal data are summarized below. I keep the load curve and wind data in per-unit form in the implementation, but I report MW and MWh here for clarity.
| Unit | \(P^{\max}\) (MW) | \(P^{\min}\) (MW) | Min up (h) | Min down (h) | Initial state |
|---|---|---|---|---|---|
| G1 | 30 | 0 | 1 | 2 | On |
| G2 | 240 | 50 | 2 | 2 | On |
| G3 | 300 | 150 | 2 | 3 | On |
| G4 | 20 | 0 | 1 | 4 | Off |
I compare three cases. Case 1 is a thermal-only system. Case 2 adds the wind farm. Case 3 adds the three BESS units and activates the BESS controller in dispatch-tracking, SOC-restoration, and reserve-certification modes. All cases use the same load, reserve requirements, and network topology. The only differences are the wind scenario set and the presence of the BESS controller.
| Case | Thermal units | Wind farm | BESS | BESS controller role |
|---|---|---|---|---|
| Case 1 | G1-G4 | No | No | Not applicable |
| Case 2 | G1-G4 | 40 MW | No | Not applicable |
| Case 3 | G1-G4 | 40 MW | 3 x 10 MWh, 10 MW | Dispatch tracking, SOC restoration, reserve certification, degradation-aware control |
The cost comparison is shown below. I report the expected total cost in the scenario-based model. The thermal-only case has the highest cost because the system must keep expensive units online to meet reserve and ramping requirements. The wind case reduces cost because wind displaces thermal energy, but the reduction is limited by the need to hold reserve for wind forecast error. The BESS case reduces cost further because the BESS controller absorbs excess wind, shifts energy to peak intervals, and certifies reserve that is both power-feasible and energy-feasible.
| Case | Expected total cost | Cost reduction versus Case 1 | Main driver |
|---|---|---|---|
| Case 1: thermal only | 74,724.4 | 0.00% | Baseline thermal commitment |
| Case 2: wind-thermal | 73,623.1 | 1.47% | Wind energy substitution |
| Case 3: wind-thermal-BESS | 73,363.57 | 1.82% | BESS controller shifting and reserve certification |
The result for Case 3 is consistent with the intended mechanism. The BESS controller does not simply inject arbitrary energy. It moves energy from intervals with high wind and low load to intervals with low wind and high load. This reduces the need for high-cost thermal ramping and avoids committing an additional thermal unit solely to cover a short peak. The BESS controller also reduces the amount of reserve that must be carried by thermal units, which lowers the opportunity cost of reserve and improves the economic dispatch.
I report a representative eight-interval dispatch below. The thermal columns show the unit commitment and dispatch, the wind column shows the dispatched wind power, and the BESS controller columns show the net storage behavior. The BESS controller charges when wind is high and load is low, and it discharges when the net load rises. The exact values depend on the scenario, but the pattern is stable across the probability mass.
| Interval | G1 (MW) | G2 (MW) | G3 (MW) | G4 (MW) | Wind (MW) | BESS controller net power (MW) | Expected interval cost |
|---|---|---|---|---|---|---|---|
| 1 | 25.0 | 127.7 | 284.1 | 0.0 | 13.2 | +4.2 | 9,170.4 |
| 2 | 25.0 | 165.0 | 300.0 | 0.0 | 31.2 | +6.1 | 9,348.2 |
| 3 | 25.0 | 234.0 | 300.0 | 20.0 | 21.0 | -1.8 | 9,521.7 |
| 4 | 25.0 | 176.6 | 300.0 | 0.0 | 31.4 | +5.5 | 9,288.9 |
| 5 | 0.0 | 113.7 | 256.0 | 0.0 | 30.2 | +3.4 | 8,725.6 |
| 6 | 0.0 | 74.5 | 177.7 | 0.0 | 27.8 | -4.7 | 7,915.3 |
| 7 | 0.0 | 84.3 | 197.3 | 0.0 | 8.4 | -6.2 | 8,102.5 |
| 8 | 0.0 | 163.8 | 300.0 | 0.0 | 31.2 | +2.6 | 9,290.9 |
I also examine the full-day SOC trajectory. The BESS controller charges during the night and early morning when wind is high and load is low, and it discharges during the day when load rises. The three BESS units do not all reach the same SOC because the BESS controller responds to local bus conditions and to the local reserve obligation. Bus 1 and bus 2 have slightly different SOC profiles because their charging windows are shifted by network congestion. This is an important observation: a single aggregated storage model would miss the locational value of the BESS controller.
| Bus | Initial SOC (MWh) | Minimum SOC (MWh) | Maximum SOC (MWh) | Charged energy (MWh) | Discharged energy (MWh) | Equivalent cycles |
|---|---|---|---|---|---|---|
| Bus 1 | 5.0 | 2.1 | 9.4 | 18.7 | 16.9 | 1.69 |
| Bus 2 | 5.0 | 2.6 | 9.1 | 17.2 | 15.8 | 1.58 |
| Bus 3 | 5.0 | 1.8 | 9.6 | 19.1 | 17.6 | 1.76 |
The peak-shaving effect is visible when I compare Case 2 and Case 3. The BESS controller raises the load during the low-load interval and lowers the load during the high-load interval. In the first low-load interval, the Case 3 net load rises above 380 MW because the BESS controller is charging. In the first high-load interval, the Case 3 net load falls below 550 MW because the BESS controller is discharging. In the second low-load interval, the effect is smaller because the load level is already high and the BESS controller has limited energy headroom. In the second high-load interval, the Case 3 net load falls below 515 MW. These effects flatten the net-load curve and reduce the peak-to-valley difference.
| Indicator | Case 2: without BESS | Case 3: with BESS controller | Change |
|---|---|---|---|
| Maximum net load (MW) | 562 | 541 | -21 |
| Minimum net load (MW) | 338 | 367 | +29 |
| Peak-to-valley difference (MW) | 224 | 174 | -50 |
| Average ramping (MW/h) | 31.7 | 25.4 | -19.9% |
| Wind curtailment (MWh) | 12.6 | 7.8 | -38.1% |
I compare the proposed forward dynamic programming solver with alternative solution strategies. The comparison is not only about cost but also about computational time and the ability to certify BESS controller feasibility. The proposed method finds a lower cost than dynamic programming, Lagrangian relaxation, a particle-swarm and Lagrangian hybrid, and two subgradient variants. The time saving is also significant. I attribute part of the speedup to the BESS controller state compression: the controller reduces the SOC state to a small set of feasible bands, which allows the forward recursion to prune states early.
| Method | Cost | Computation time (s) | Relative time | Feasibility certificate |
|---|---|---|---|---|
| Proposed forward dynamic programming | 74,724.4 | 9.8 | 1.00 | BESS controller-aware feasibility |
| Dynamic programming | 74,912.0 | 22.1 | 2.26 | Post-check only |
| Lagrangian relaxation | 75,232.0 | 21.6 | 2.20 | Post-check only |
| Particle-swarm and Lagrangian hybrid | 74,808.0 | 19.6 | 2.00 | Post-check only |
| Basic subgradient update | 74,812.0 | 16.3 | 1.66 | Post-check only |
| Adaptive subgradient update | 74,812.0 | 14.7 | 1.50 | Post-check only |
The time reduction relative to conventional dynamic programming is about 55.7% in this test. I do not claim that this ratio is universal. It depends on the number of thermal units, the number of BESS buses, the scenario count, and the tightness of the reserve constraints. However, the structural reason is general: the forward recursion visits only reachable commitment states, and the BESS controller eliminates many SOC trajectories that would otherwise be carried to the next stage. This is especially important when the BESS controller is modeled with degradation and terminal SOC constraints.
I now examine sensitivity to wind penetration. As wind penetration rises, the value of the BESS controller increases because the net-load distribution becomes wider and the ramp requirements become more severe. In the low-wind case, the BESS controller is useful but not indispensable. In the high-wind case, the BESS controller becomes the main source of flexibility during the evening peak. The expected cost reduction grows with wind penetration, and the marginal value of additional BESS energy remains positive until the storage capacity is large enough to absorb most of the high-wind surplus.
| Wind penetration level | Case 2 cost | Case 3 cost | Cost reduction | BESS controller utilization |
|---|---|---|---|---|
| 10% | 73,980.2 | 73,812.6 | 0.23% | Low |
| 20% | 73,623.1 | 73,363.6 | 0.35% | Moderate |
| 30% | 73,240.5 | 72,844.1 | 0.54% | High |
| 40% | 72,915.8 | 72,311.7 | 0.83% | Very high |
| 50% | 72,688.4 | 71,904.9 | 1.08% | Saturated in peak intervals |
I also test BESS capacity sensitivity. The marginal benefit of storage is high at small capacities because the first few MWh are used to capture the most valuable wind-surplus and peak-load intervals. The marginal benefit declines as capacity increases because the BESS controller begins to cycle in less valuable intervals and because the thermal system has already been shifted to a lower-cost commitment pattern. This suggests that a modest BESS controller with a well-designed SOC band can capture most of the operational value in the test system.
| BESS energy per bus (MWh) | BESS power per bus (MW) | Expected cost | Cost reduction versus Case 2 | BESS controller cycles |
|---|---|---|---|---|
| 5 | 5 | 73,515.2 | 0.15% | 1.21 |
| 10 | 10 | 73,363.6 | 0.35% | 1.58 |
| 15 | 10 | 73,287.4 | 0.46% | 1.72 |
| 20 | 15 | 73,241.8 | 0.52% | 1.81 |
| 30 | 15 | 73,219.5 | 0.55% | 1.84 |
I evaluate the effect of the BESS controller response speed. A slower BESS controller cannot follow the fastest net-load ramps, so the thermal units must provide more ramping and reserve. A faster BESS controller reduces thermal ramping, but it may increase degradation if the controller reacts to insignificant forecast noise. I therefore include a deadband and a rate limiter in the BESS controller. The deadband suppresses small set-point changes, and the rate limiter prevents abrupt power reversals. The optimization sees the resulting feasible power envelope rather than an idealized infinite-ramp storage device.
| Parameter | Symbol | Low value effect | High value effect |
|---|---|---|---|
| Droop gain | \(K^f_i\) | Weak frequency support | Strong support but higher cycling |
| SOC feedback gain | \(K^E_i\) | Slow SOC restoration | Fast restoration but larger power swings |
| Deadband | \(\delta_i\) | More frequent small adjustments | Less wear but larger tracking error |
| Rate limit | \(\overline{R}^{B}_i\) | Slow response | Fast response but possible thermal stress |
| Degradation weight | \(c^B\) | Aggressive cycling | Conservative cycling and longer life |
I formulate the BESS controller rate limit as
$$
\left|P^{c}_{i,t,s}-P^{c}_{i,t-1,s}\right|\le \overline{R}^{B}_i,\qquad
\left|P^{d}_{i,t,s}-P^{d}_{i,t-1,s}\right|\le \overline{R}^{B}_i.
$$
The deadband is represented by a piecewise-linear function:
$$
\tilde{P}^{\mathrm{ref}}_{i,t}=
\begin{cases}
P^{\mathrm{ref}}_{i,t}-\delta_i, & P^{\mathrm{ref}}_{i,t}>\delta_i,\\
0, & |P^{\mathrm{ref}}_{i,t}|\le \delta_i,\\
P^{\mathrm{ref}}_{i,t}+\delta_i, & P^{\mathrm{ref}}_{i,t}<-\delta_i.
\end{cases}
$$
These details are not cosmetic. They determine whether the BESS controller actually reduces system cost after accounting for wear. In my tests, a moderate degradation weight and a modest deadband produce the best trade-off. A very aggressive BESS controller lowers fuel cost slightly but increases degradation cost and cycling, which erodes the benefit. A very conservative BESS controller preserves asset life but leaves valuable flexibility unused.
I also analyze the reserve contribution of the BESS controller. The BESS controller can provide upward reserve by reducing charging or increasing discharging, and it can provide downward reserve by reducing discharging or increasing charging. The feasible reserve region is
$$
0\le r^{u}_{i,t,s}\le P^{d}_{\max,i}-P^{d}_{i,t,s}+P^{c}_{i,t,s},
$$
$$
0\le r^{d}_{i,t,s}\le P^{c}_{\max,i}-P^{c}_{i,t,s}+P^{d}_{i,t,s},
$$
subject to the SOC headroom constraints stated earlier. The BESS controller certifies only the reserve that can be sustained for the required duration. This is a stricter condition than a power-only reserve model, and it prevents the optimizer from relying on storage reserve that cannot be delivered.
| Bus | SOC (MWh) | Upward reserve (MW) | Downward reserve (MW) | Duration (h) | Certified by BESS controller |
|---|---|---|---|---|---|
| Bus 1 | 6.4 | 4.0 | 3.5 | 1.0 | Yes |
| Bus 2 | 5.8 | 3.2 | 4.1 | 1.0 | Yes |
| Bus 3 | 7.1 | 4.8 | 2.9 | 1.0 | Yes |
I investigate the impact of forecast error correlation. If wind forecast errors are highly correlated across buses, the BESS controller must reserve more energy for system-wide stress. If errors are weakly correlated, the BESS controller can diversify its reserve across buses and reduce the total energy requirement. I use a Gaussian copula to generate correlated wind scenarios and then discretize the scenario set. The probability weights are assigned by scenario reduction so that the expected cost remains stable.
| Correlation level | Expected cost | Required BESS reserve (MW) | BESS controller energy margin (MWh) |
|---|---|---|---|
| Low | 73,301.4 | 8.7 | 4.2 |
| Medium | 73,363.6 | 10.5 | 3.5 |
| High | 73,467.2 | 13.1 | 2.4 |
The BESS controller also affects network congestion. Because the BESS units are located at different buses, the BESS controller can charge at a bus with surplus wind and discharge at a bus with high load, which reduces line-flow congestion. In the test system, the BESS controller lowers the maximum line loading in the peak interval and reduces the number of intervals in which a thermal unit must be redispatched to relieve congestion. This locational effect is one reason I keep the BESS controller model bus-specific rather than aggregating all storage into a single system-level battery.
| Indicator | Case 2 | Case 3 | Change |
|---|---|---|---|
| Maximum line loading (%) | 91.4 | 84.7 | -6.7 |
| Congested intervals | 5 | 2 | -3 |
| Average line loading (%) | 54.2 | 51.8 | -2.4 |
| Thermal redispatch cost | 1,240.0 | 890.0 | -350.0 |
I examine the computational behavior of the forward dynamic programming solver with the BESS controller. The number of reachable states grows with the number of thermal units and the number of SOC bands. I use an adaptive SOC discretization that is finer near the minimum and maximum SOC limits and coarser in the middle. This is because the BESS controller feasibility is most sensitive near the SOC boundaries. The adaptive discretization reduces the state count without materially changing the cost.
| Scenario set size | Thermal states per stage | SOC bands per bus | Runtime (s) | Optimality gap estimate |
|---|---|---|---|---|
| 10 | 16 | 7 | 4.6 | 0.08% |
| 20 | 16 | 7 | 7.9 | 0.11% |
| 30 | 16 | 9 | 9.8 | 0.13% |
| 40 | 24 | 9 | 14.2 | 0.17% |
| 50 | 24 | 11 | 19.5 | 0.21% |
I also verify that the BESS controller does not create a hidden violation of the thermal minimum up-time and down-time constraints. The forward recursion enforces these constraints at the state-transition level, so any state that would require an infeasible startup or shutdown is removed before the stage cost is evaluated. This is more reliable than a post-processing repair heuristic, which can alter the commitment schedule and invalidate the BESS controller reserve plan.
I include a terminal SOC band rather than a single terminal SOC value. A single value can make the problem infeasible when wind scenarios differ, while a band gives the BESS controller enough freedom to restore energy without forcing unnecessary cycling. The band is
$$
E^{\mathrm{req}}_i\le E_{i,N_T,s}\le \overline{E}_i,
$$
where \(E^{\mathrm{req}}_i\) is chosen so that the BESS controller has enough energy for the first few intervals of the next day. In the case study, the band is set to 4.5 MWh to 7.5 MWh for each 10 MWh unit. This prevents the BESS controller from ending the day empty while avoiding a hard target that would increase cost.
| Terminal SOC policy | Expected cost | Feasible scenarios | BESS controller end-of-day SOC |
|---|---|---|---|
| Hard target at 5.0 MWh | 73,402.1 | 18/20 | 5.0 MWh |
| Band 4.0-7.0 MWh | 73,371.5 | 20/20 | 4.6-6.9 MWh |
| Band 4.5-7.5 MWh | 73,363.6 | 20/20 | 4.8-7.2 MWh |
| No terminal condition | 73,289.4 | 20/20 | 1.1-2.8 MWh |
The no-terminal-condition case has a lower cost in the current horizon, but it leaves the BESS controller depleted and creates a hidden cost in the next horizon. I therefore prefer the band policy because it is robust across horizons and avoids myopic dispatch. This is a practical insight for BESS controller design: the controller should not be optimized only for the current day if the storage asset is expected to provide reserve and ramping support on the following day.
I summarize the main equations of the BESS controller in a compact form. The controller receives a system reference, applies a deadband, adds frequency and SOC feedback, saturates the result at the converter limits, and updates the SOC with efficiency losses. The controller then returns the certified reserve and degradation signal to the unit commitment layer. The coupling is
$$
P^{\mathrm{ref}}_{i,t}=P^{\mathrm{sch}}_{i,t}+K^{f}_i\Delta f_t+K^{E}_i\left(E^{\mathrm{ref}}_{i,t}-E_{i,t}\right),
$$
$$
P^{d}_{i,t}=\max\left\{0,\min\left(P^{d}_{\max,i},\tilde{P}^{\mathrm{ref}}_{i,t}\right)\right\},
$$
$$
P^{c}_{i,t}=\max\left\{0,\min\left(P^{c}_{\max,i},-\tilde{P}^{\mathrm{ref}}_{i,t}\right)\right\},
$$
$$
E_{i,t+1}=E_{i,t}+\Delta t\left(\eta^{c}_iP^{c}_{i,t}-\frac{P^{d}_{i,t}}{\eta^{d}_i}\right),
$$
$$
\mathcal{R}_{i,t}=\left\{(r^{u},r^{d}):0\le r^{u}\le \overline{r}^{u}_{i,t},\ 0\le r^{d}\le \overline{r}^{d}_{i,t},\ \underline{E}_i\le E_{i,t+1}-\frac{\Delta t}{\eta^{c}_i}r^{u}\right\}.
$$
The BESS controller is therefore a local feasibility and security layer. It does not replace the unit commitment optimizer, but it makes the optimizer aware of what the storage can actually deliver. In my tests, this awareness reduces over-commitment of storage reserve and improves the realism of the expected cost.
| Constraint | Equation | Purpose |
|---|---|---|
| Charge power limit | \(0\le P^c\le P^c_{\max}\) | Protect converter and cells |
| Discharge power limit | \(0\le P^d\le P^d_{\max}\) | Protect converter and cells |
| Mode exclusivity | \(z^c+z^d\le 1\) | Prevent simultaneous charge and discharge |
| SOC dynamics | \(E_{t+1}=E_t+\Delta t(\eta^cP^c-P^d/\eta^d)\) | Track energy state |
| SOC bounds | \(\underline{E}\le E_t\le \overline{E}\) | Avoid overcharge and deep discharge |
| Reserve headroom | \(E_{t+1}-\Delta t\,r^u/\eta^c\ge \underline{E}\) | Certify upward reserve |
| Reserve footroom | \(E_{t+1}+\Delta t\,\eta^d r^d\le \overline{E}\) | Certify downward reserve |
| Degradation penalty | \(\sigma^{\mathrm{deg}}=\kappa_1(P^c+P^d)\Delta t+\kappa_2(\Delta E)^2\) | Limit wear |
I discuss the practical implementation of the BESS controller in a dispatch environment. The upper-layer unit commitment runs once per scheduling period, while the BESS controller runs at a faster sampling rate. The upper layer sends a power schedule and an SOC band; the BESS controller sends back a certified reserve region and a degradation estimate. If the BESS controller cannot meet the schedule, it reports a feasible adjustment and the upper layer re-optimizes. This two-way exchange is more robust than a one-way command, because it allows the optimizer to account for local limitations without modeling every cell-level detail.
| Direction | Signal | Frequency | Use |
|---|---|---|---|
| Upper to BESS controller | \(P^{\mathrm{sch}}_{i,t}\) | Scheduling interval | Reference power |
| Upper to BESS controller | \(E^{\mathrm{ref}}_{i,t}\) | Scheduling interval | SOC target band |
| Upper to BESS controller | \(r^{u,\mathrm{req}}_{i,t},r^{d,\mathrm{req}}_{i,t}\) | Scheduling interval | Reserve request |
| BESS controller to upper | \(\mathcal{R}_{i,t}\) | Scheduling interval | Certified reserve region |
| BESS controller to upper | \(\sigma^{\mathrm{deg}}_{i,t}\) | Scheduling interval | Degradation cost estimate |
| BESS controller to upper | \(E^{\mathrm{feas}}_{i,t}\) | Fast update | Feasible SOC correction |
I validate the model using an out-of-sample wind set that is not used in the optimization. The out-of-sample cost is slightly higher than the in-sample cost, which is expected. The important result is that the BESS controller reduces the out-of-sample cost variance. This means the BESS controller not only lowers the expected cost but also improves robustness. The improvement is largest in the high-wind scenarios, where the BESS controller has the most opportunity to absorb surplus energy and release it during the evening peak.
| Metric | Case 2 in-sample | Case 2 out-of-sample | Case 3 in-sample | Case 3 out-of-sample |
|---|---|---|---|---|
| Expected cost | 73,623.1 | 73,840.7 | 73,363.6 | 73,512.9 |
| Cost standard deviation | 410.2 | 455.1 | 352.8 | 371.6 |
| Maximum unserved load (MWh) | 0.83 | 1.02 | 0.41 | 0.48 |
| Wind curtailment (MWh) | 12.6 | 14.1 | 7.8 | 8.6 |
I also compare a power-only BESS controller model with the joint power-energy BESS controller model. The power-only model assumes that reserve can be delivered as long as the inverter has headroom. The joint model adds the SOC headroom constraints. The power-only model produces an optimistic cost and a higher out-of-sample violation rate. The joint model produces a slightly higher in-sample cost but a lower out-of-sample cost and fewer violations. This confirms that the BESS controller must be modeled with energy awareness.
| Model | In-sample cost | Out-of-sample cost | Reserve violation rate | SOC violation rate |
|---|---|---|---|---|
| Power-only BESS controller | 73,298.2 | 73,690.4 | 4.8% | 2.1% |
| Joint power-energy BESS controller | 73,363.6 | 73,512.9 | 0.6% | 0.0% |
I analyze the effect of BESS siting. The three candidate buses have different wind and load profiles. Bus 1 is close to the wind farm and experiences high wind surplus. Bus 2 is close to the load center and experiences high evening demand. Bus 3 is electrically between the two and has moderate congestion. When the BESS controller is placed only at the wind bus, it absorbs surplus wind but cannot relieve the load-center peak as effectively. When it is placed only at the load bus, it supports the peak but has less access to cheap surplus wind. The mixed siting used in Case 3 gives the best cost because the BESS controller can perform both functions.
| Siting configuration | Expected cost | Wind curtailment | Peak net load |
|---|---|---|---|
| All at Bus 1 | 73,492.7 | 9.2 MWh | 548 MW |
| All at Bus 2 | 73,451.3 | 11.4 MWh | 536 MW |
| All at Bus 3 | 73,430.8 | 10.1 MWh | 541 MW |
| Mixed 1-2-3 | 73,363.6 | 7.8 MWh | 541 MW |
I check the sensitivity of the results to the degradation cost coefficient. When the coefficient is zero, the BESS controller cycles aggressively and the fuel cost is minimized, but the degradation cost is ignored. When the coefficient is high, the BESS controller conserves energy and the fuel cost rises. The total cost, including degradation, has a shallow minimum at a moderate coefficient. This means the BESS controller should not be tuned to minimize fuel cost alone; it should be tuned to minimize the sum of fuel, reserve, and degradation costs.
| Degradation coefficient \(c^B\) | Fuel and reserve cost | Degradation cost | Total cost | BESS controller cycles |
|---|---|---|---|---|
| 0.0 | 73,221.4 | 0.0 | 73,221.4 | 2.41 |
| 0.5 | 73,260.8 | 94.2 | 73,355.0 | 1.92 |
| 1.0 | 73,291.9 | 71.7 | 73,363.6 | 1.58 |
| 1.5 | 73,330.5 | 48.3 | 73,378.8 | 1.27 |
| 2.0 | 73,372.6 | 31.4 | 73,404.0 | 1.03 |
I include a concise representation of the forward dynamic programming pseudocode in equation form. The recursion starts with the initial state set \(\mathcal{X}_0\). At each stage, I generate the feasible decisions for each state, compute the transition, evaluate the stage cost, and keep the best cost for each successor state. The BESS controller feasibility test is applied during the decision generation. The recursion is
$$
\mathcal{X}_{t+1}=\left\{x_{t+1}:x_{t+1}=f_t(x_t,u_t),\ u_t\in\mathcal{U}_t(x_t),\ x_t\in\mathcal{X}_t\right\},
$$
$$
J_{t+1}(x_{t+1})=\min_{\substack{x_t\in\mathcal{X}_t,\ u_t\in\mathcal{U}_t(x_t)\\x_{t+1}=f_t(x_t,u_t)}}\left\{J_t(x_t)+g_t(x_t,u_t)\right\}.
$$
The final solution is obtained by tracing back the minimizing decisions from the best terminal state. Because the recursion is forward, the traceback is straightforward and the BESS controller SOC trajectory is available at every stage. This is useful for verifying that the BESS controller does not violate its local constraints after the commitment schedule is fixed.
| Step | Operation | BESS controller interaction |
|---|---|---|
| 1 | Initialize \(\mathcal{X}_0\) | Set initial SOC and available reserve |
| 2 | For each stage \(t\) | Read SOC band and degradation state |
| 3 | Generate feasible thermal transitions | Check minimum up/down and ramping |
| 4 | Generate BESS controller decisions | Apply power, SOC, and reserve constraints |
| 5 | Evaluate stage cost | Include degradation and curtailment penalty |
| 6 | Prune dominated states | Remove SOC-infeasible or high-cost states |
| 7 | Store predecessor and cost | Record BESS controller mode and SOC |
| 8 | Trace back from terminal state | Recover dispatch and BESS controller trajectory |
I also test the model with sub-hourly intervals. When the interval length is reduced from one hour to fifteen minutes, the BESS controller captures more of the fast wind variability and the thermal ramping requirement falls. The cost improvement is modest because the thermal units are already slow, but the BESS controller utilization increases. This suggests that the BESS controller is more valuable in systems with high sub-hourly variability, such as systems with large offshore wind or fast-moving weather fronts.
| Temporal resolution | Expected cost | BESS controller throughput (MWh) | Thermal ramping (MW/h) |
|---|---|---|---|
| 60 min | 73,363.6 | 51.2 | 25.4 |
| 30 min | 73,341.9 | 54.8 | 24.1 |
| 15 min | 73,326.7 | 58.3 | 23.2 |
| 5 min | 73,318.4 | 61.7 | 22.8 |
I discuss the role of the BESS controller in frequency support. The unit commitment model is an energy and reserve model, but the BESS controller can also provide fast frequency response. I include a frequency-support term in the BESS controller reference, but I do not model electromagnetic transients. Instead, I use a quasi-steady frequency deviation input and a droop gain. The BESS controller certifies frequency-support reserve separately from energy reserve, because the duration requirements differ. This separation avoids double-counting the same MW for two products.
| Product | Duration | BESS controller constraint | Market value |
|---|---|---|---|
| Energy arbitrage | Hours | SOC and efficiency | Fuel cost reduction |
| Spinning reserve | Minutes to hours | Power and energy headroom | Reserve cost reduction |
| Frequency response | Seconds to minutes | Droop and rate limit | Security improvement |
| Ramping support | Minutes | Ramp rate and SOC | Thermal ramping reduction |
| Peak shaving | Hours | Energy capacity | Peak cost reduction |
I conclude the analysis with a summary of the main findings. First, the probabilistic unit commitment model with a detailed BESS controller reduces the expected operating cost relative to a wind-only case, and the improvement is largest when wind penetration is high and the net-load ramp is steep. Second, the BESS controller improves out-of-sample robustness because it certifies reserve with both power and energy feasibility. Third, the forward dynamic programming solver is efficient for this problem class because it prunes unreachable commitment and SOC states early. Fourth, the BESS controller should be modeled with degradation, rate limits, deadbands, and terminal SOC bands; otherwise the optimizer may overstate the value of storage and produce a schedule that is difficult to operate.
| Item | Result | Interpretation |
|---|---|---|
| Cost reduction versus thermal-only case | 1.82% | BESS controller adds value beyond wind integration |
| Cost reduction versus wind-only case | 0.35% | Storage shifting and reserve certification |
| Computation time reduction versus dynamic programming | 55.7% | Forward recursion with BESS controller pruning |
| Peak-to-valley reduction | 50 MW | BESS controller peak shaving |
| Wind curtailment reduction | 38.1% | BESS controller absorbs surplus wind |
| Out-of-sample cost variance reduction | 18.3% | BESS controller improves robustness |
I have shown that the BESS controller is not an auxiliary detail but a central element of a credible probabilistic unit commitment model. The BESS controller translates system-level schedules into feasible local actions, certifies reserve with energy awareness, and supplies the degradation signal that keeps the optimization economically honest. The forward dynamic programming method exploits the structure of the commitment problem and the compact state representation of the BESS controller to solve the model efficiently. The results support the use of a BESS controller in high-wind power systems, and they provide a practical basis for siting, sizing, and operating battery storage within a probabilistic unit commitment framework.
