Dynamic locational marginal emissions via implicit differentiation

Lucas Fuentes Valenzuela, Anthony Degleris, Abbas El Gamal, Marco Pavone, Ram Rajagopal

This paper, recently published by researchers at Stanford University, introduces a robust mathematical framework for calculating Locational Marginal Emissions (LMEs)—a metric that tells us exactly how much total grid emissions change when power demand shifts at a specific location and time.

TL;DR

By applying implicit differentiation to power system dispatch models, the authors have created a way to calculate marginal emissions that accounts for "dynamic" constraints like battery storage and generator ramping. Their results show that ignoring these time-dependent factors can lead to a nearly 30% error in emissions estimates, making this a vital tool for accurate carbon accounting in modern grids.

What Problem Does This Paper Address?

As we move toward a decarbonized grid, policy-makers and engineers need to know the impact of local interventions—like installing a fleet of EV chargers or a neighborhood battery. Currently, they use LMEs to measure this.

However, existing methods for calculating LMEs have a major blind spot: they are mostly static. They look at the grid as a series of independent snapshots in time. In reality, the grid is dynamic. If a battery charges at 2:00 PM, it changes the available supply at 6:00 PM. If a coal plant takes four hours to ramp up, a change in demand now affects emissions hours later. Until now, there wasn't a generalized, computationally efficient way to include these "temporal couplings" into marginal emissions calculations.

Methods

The authors treat the electricity dispatch problem as a convex optimization problem. To find the LME, one essentially needs the gradient (the rate of change) of the total emissions with respect to demand.

The core innovation is the use of the Implicit Function Theorem. Instead of re-solving the massive optimization problem for every tiny change in demand (which is computationally "expensive"), the authors differentiate the Karush-Kuhn-Tucker (KKT) conditions—the mathematical requirements for an optimal solution.

This "model-agnostic" approach allows them to:

  1. Calculate the Jacobian of the solution map directly.
  2. Incorporate any constraint that can be expressed in a convex form, such as battery state-of-charge, ramping limits, and transmission line capacities.
  3. Generalize previous analytical methods that only worked for much simpler, static models.

Datasets

The study validated its approach using two primary sources:

  • U.S. Western Interconnection (2016): A dataset containing real-world hourly demand, generator costs, and carbon emissions for the Western U.S.
  • 240-bus WECC Model (2018): A realistic, reduced-order model of the Western Electricity Coordinating Council (WECC) grid. This includes detailed transmission topology, generator ramping rates, and four large pumped-hydro storage units.

Key Insights and Ideas

  • The "Storage Effect": In a grid with storage, an LME at 10:00 AM is no longer just about what generators are running at 10:00 AM; it’s about how that demand affects the battery’s ability to offset a dirty "marginal" generator at 6:00 PM.
  • Spatial Heterogeneity: Emissions aren't uniform. Because of transmission bottlenecks, a MWh of energy consumed in San Francisco might have a vastly different carbon footprint than one consumed in Sacramento, even if they are on the same regional grid.
  • Dynamic vs. Static: The authors demonstrate that "static" LMEs (the current industry standard) are often poor approximations. In systems with significant storage or ramping constraints, the static model simply misses the "ripple effect" of demand changes across time.

Key Results

  • Improved Accuracy: When validated against real-world data from the U.S. Western Interconnection, incorporating dynamic "unit-commitment" constraints improved the accuracy of emissions modeling by 8.2% over state-of-the-art merit-order models.
  • Significant Deviation: In simulations on the 240-bus WECC model, the difference between static and dynamic LMEs was 28.4% on average. This suggests that as we add more batteries to the grid, static LME models will become increasingly obsolete.
  • Computational Efficiency: Despite the complexity, the method is fast. It can solve a 240-node network dispatch and compute all LMEs for a 24-hour horizon in about two minutes on a standard laptop.

Limitations and Future Work

The authors identify a few hurdles for widespread adoption:

  • Interpretability: Dynamic LMEs are mathematically elegant but can be counter-intuitive. Explaining why a demand change now affects emissions tonight is a challenge for grid operators and the public.
  • Data Access: The method requires a detailed model of the grid's topology and generator costs. This information is often proprietary or classified as "Critical Energy Infrastructure Information" (CEII), making it hard for third-party researchers to use the tool without cooperation from utilities.
  • Scaling: While efficient for 240 nodes, the authors suggest that "full-scale" regional grids (thousands of nodes) might require distributed computing or further algorithmic optimization to run in real-time.

Summary updated

Abstract

Locational marginal emissions rates (LMEs) estimate the rate of change in emissions due to a small change in demand in a transmission network, and are an important metric for assessing the impact of various energy policies or interventions. In this work, we develop a new method for computing the LMEs of an electricity system via implicit differentiation. The method is model agnostic; it can compute LMEs for any convex optimization-based dispatch model, including some of the complex dispatch models employed by system operators in real electricity systems. In particular, this method lets us derive LMEs for dynamic dispatch models, i.e., models with temporal constraints such as ramping and storage. Using real data from the U.S. electricity system, we validate the proposed method against a state-of-the-art merit-order-based method and show that incorporating dynamic constraints improves model accuracy by 8.2%. Finally, we use simulations on a realistic 240-bus model of WECC to demonstrate the flexibility of the tool and the importance of incorporating dynamic constraints. Namely, static LMEs and dynamic LMEs exhibit a normalized average RMS deviation of 28.40%, implying dynamic constraints are essential to accurately modeling emissions rates.
BibTeX
@article{valenzuela2023dynamic,
  author = {Lucas Fuentes Valenzuela and Anthony Degleris and Abbas El Gamal and Marco Pavone and Ram Rajagopal},
  title = {{Dynamic locational marginal emissions via implicit differentiation}},
  journal = {IEEE Transactions on Power Systems},
  year = {2023},
  doi = {10.1109/tpwrs.2023.3247345},
}
Figure