- Introduced by
- Utilities and storage technology developers
- Year
- 2000s
- Type
- Computational pipeline
- Family
- Power system operation and renewable integration
What does it do?
Energy storage dispatch optimization determines when a storage system should charge and when it should discharge to meet an objective such as revenue, grid support, or renewable integration.
The problem matters more as variable renewable generation grows and battery costs fall, because the timing of energy flows then affects both system balance and asset value. It is an operations research formulation applied to power system operation.
The intuition behind the method
Energy storage systems (batteries, pumped hydro, compressed air) can absorb power when supply exceeds demand and release power when demand exceeds supply, bridging temporal mismatches. The core optimization challenge is deciding when to charge (exploit low prices or abundant solar/wind) and when to discharge (capture high prices or offset peak demand). Unlike generators, storage has finite capacity and charging losses, so every decision trades off present revenue against future opportunity. Optimal dispatch balances multiple objectives: revenue maximization, grid reliability, battery degradation cost, and renewable energy utilization.
History
Storage operators have often relied on simple rules, such as charging during low-demand periods and discharging during peak demand. Formal optimization of storage operation developed alongside electricity market restructuring, as operators began to act on wholesale price signals. Later, the growth of variable wind and solar generation shifted attention toward grid stabilisation services. More recently, machine learning approaches such as reinforcement learning have been explored for large portfolios with multiple constraints.
When to use it
Use storage dispatch optimization for a grid-connected battery or other storage asset whose operation can be scheduled against a time-varying signal, such as wholesale prices, a demand charge, or renewable output. It is most useful where the storage asset has enough flexibility to act on that signal and the owner can act on the schedule. Set the objective first: merchant arbitrage emphasises revenue, utility-owned storage often emphasises grid support, and behind-the-meter systems often emphasise self-consumption and demand charges. Do not rely on it where prices hardly vary within the horizon and no service value is available, because the optimization then has little to exploit. It is also a poor fit where no degradation model is available and the owner cannot value cycling, since the revenue-versus-battery-life trade-off then cannot be expressed.
Limitations and considerations
- A schedule is only as good as the forecasts it uses. Forecast error generally grows with lead time, so schedules built on distant forecasts can be suboptimal and lose revenue when the expected price spread does not occur.
- Battery degradation models are empirical and uncertain. The cost of cycling therefore carries wide uncertainty, and so does the trade-off between revenue and battery life.
- Where wholesale prices vary little within the horizon, or do not reflect local scarcity, arbitrage revenue is small and the optimization has little to act on.
- Interactions among day-ahead, real-time and ancillary service markets make joint optimization across them computationally demanding, so most formulations cover one market or a simplified set of them.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Dynamic programming and linear programming give tractable formulations for the short operational horizons over which dispatch is usually re-solved, so schedules can be updated as new data arrives.
- Several services, such as peak reduction and renewable smoothing, can be represented in one formulation, provided their constraints are compatible and the battery's capacity and power are reserved for each.
- Sensitivity analysis shows which forecast (price, load or wind) has the largest effect on the schedule, which helps decide where better forecasting is worth the cost.
- Rolling re-solution lets the dispatch respond to new price and generation data, which a one-off schedule cannot do.
Applications
- Merchant battery revenues: optimizing day-ahead and real-time energy arbitrage for customer-owned or independent-power-producer-owned battery systems to maximise returns.
- Renewable smoothing: coordinating battery dispatch with wind and solar forecasts to reduce ramping stress on thermal generators and transmission congestion.
- Peak demand reduction: charging during off-peak hours and discharging during peak hours to reduce customer demand charges in retail electricity markets.
- Islanded microgrid operation: sequencing battery discharge to maintain voltage and frequency stability when a microgrid transitions to islanded operation.
- Black start capability: reserving battery charge to support restart of grid sections after blackouts or extended outages.
How it works
How it works
Assemble the inputs the schedule depends on: market prices (day-ahead and, where relevant, real-time), load and renewable generation forecasts, the current state of charge (SOC), and battery parameters such as round-trip efficiency and a degradation model. Grid service requirements, such as peak limits or frequency support obligations, are added when they apply.
Express prices and forecasts in consistent units, estimate round-trip efficiency losses, and convert the degradation model into a cost per unit of cycling depth. Set SOC operating bounds appropriate to the battery chemistry and its operating limits; these bounds are a design choice to be justified for the specific system, not a fixed rule. Take round-trip efficiency, SOC bounds and the degradation cost per unit of cycling depth from the specific battery's datasheet or test data. Generic values can mislead the schedule, because small errors in efficiency or degradation cost change which cycles are worth making.
Write the dispatch problem as a linear or nonlinear program. The objective is revenue, reliability, or a weighted combination of them, and the constraints cover SOC limits, power limits and ramp limits. Degradation cost should enter the objective, using the cost parameters obtained in preprocessing. Dynamic programming or convex optimization is used to solve the problem, with the choice depending on the problem's structure and size.
Formula
Revenue = \sum_t (P_t^{charge} - P_t^{discharge}) \cdot Price_t - DegradationCompute the optimal charging and discharging schedule over the forecast horizon (for example 24 hours or 7 days), then estimate the expected revenue and degradation cost under that schedule. Sensitivity analysis on price and renewable forecast errors shows how strongly the schedule and its value depend on each input.
Convert the schedule into a dispatch plan that an operator can follow, and estimate the value of storage to the grid, for example through avoided generation cost or avoided curtailment. Read the result against a no-storage baseline, so that the value reported is the increment storage adds rather than the total revenue of the asset. Use an objective that includes degradation cost, since a schedule that ignores it will overstate value. Report sensitivity to price and renewable forecast errors alongside the central result, and check whether revenue depends on a few high-price intervals; if it does, the value is fragile and depends on a small number of forecast outcomes. Comparing storage technologies is only meaningful when each is evaluated with consistent cost and degradation assumptions.
Common pitfalls
- Solving with perfect foresight of prices and renewable output overstates the revenue that can be achieved. Schedules should be tested against forecast errors, or dispatch should be re-optimised adaptively.
- Optimizing for revenue without a degradation term tends to produce frequent deep cycling, which shortens battery life. The degradation cost must be included in the objective.
- Ignoring the temperature dependence of charging efficiency can place the optimal charging hours in the wrong periods, because cold charging is less efficient.
- Optimizing for a single market, such as day-ahead arbitrage, can miss value available in real-time or ancillary service markets.
Frequently asked questions
What is the difference between energy arbitrage and peak shaving?
Energy arbitrage charges when electricity is cheap and discharges when it is expensive, capturing price spreads. Peak shaving charges during off-peak hours and discharges during peak hours to reduce demand charges. Arbitrage is driven by time-varying wholesale prices, while peak shaving is driven by fixed demand charges or reliability needs. Arbitrage typically requires volatile prices; peak shaving can still be valuable when prices are flat.
How does battery degradation affect dispatch decisions?
Battery degradation increases with cycling depth, meaning the fraction of capacity cycled in each cycle. Aggressive dispatch that cycles daily incurs a high degradation cost. Constraints that limit cycling depth preserve battery life but reduce revenue or grid support. Optimal dispatch includes the degradation cost in the objective function, trading off short-term revenue against long-term battery life.
Why is forecast error such a problem for storage dispatch?
Storage dispatch is planned using forecasts, but actual wind output, solar output and prices differ from them. If an expected price peak does not occur, energy held back for it may be sold at lower prices, or the cycle earns less than planned. Forecast quality generally falls as the horizon lengthens, so longer-horizon schedules are less reliable. Adaptive control, which re-solves the dispatch as new data arrive, and robust optimization, which hedges against worst-case outcomes, both reduce the effect of forecast error.
Can a battery provide both peak shaving and frequency regulation simultaneously?
Yes, if the battery is configured for both. Frequency regulation needs a fast response but only small amounts of energy over short periods, while peak shaving needs energy sustained over longer periods. A battery can reserve part of its capacity and power for regulation and use the rest for peak shaving. Optimizing across both services at once is complex and requires more sophisticated control.
Related methods
Sources
Dunn, B., Kamath, H., & Tarascon, J. M. (2021). Electrical energy storage for the grid: A battery of possibilities. Science, 334(6058), 928-935.
Open publication referenceRamasamy, V., Desai, A. S., & Margolis, R. M. (2015). Co-optimization of Solar PV and Battery Storage: A Review of Co-optimization Models and Frameworks. NREL/TP-6A40-64781.
Open publication referenceStrbac, G. (2002). Demand side management: Benefits and challenges. Energy Policy, 36(12), 4419-4426.
Open DOI reference