Towards a 24/7 Carbon-Free Electric Fleet: A Digital Twin Framework

Mateus Ribeiro, Justin Luke, Sonia Martin, Emmanuel Balogun, Gustavo Cezar, Marco Pavone, Ram Rajagopal2024 · DOI

TL;DR

This paper introduces a "digital twin" framework that co-optimizes electric bus scheduling, on-site solar generation, and battery storage to achieve 24/7 carbon-free fleet operations. By integrating probabilistic energy consumption models with grid emission forecasts, the system can reduce peak charging demand by up to 99% and eliminate operational carbon emissions entirely under ideal conditions.

What Problem Does This Paper Address?

As transit agencies transition to electric vehicle (EV) fleets to meet climate goals, they face a double-edged sword: charging a massive fleet is expensive due to "demand charges" (fees for peak power usage), and if that charging happens when the grid is powered by fossil fuels, the environmental benefits are neutralized.

Coordinating a medium-to-heavy-duty fleet is a complex puzzle. Operators must balance strict bus schedules, varying energy needs per route, fluctuating solar availability, and the "marginal emissions" of the grid (the cleanliness of the next megawatt-hour produced). Existing solutions often focus on cost or emissions, but rarely both, and few effectively integrate stationary battery storage as a buffer.

Methods

The authors propose a Digital Twin framework composed of three main pillars:

  1. Forecasting Modules: The system predicts solar generation (using seasonal moving averages), marginal grid emissions (via CAISO API data), and weather.
  2. Surrogate Model: To handle the uncertainty of how much energy a bus actually uses, the authors employed a Gaussian Process (GP) model. This probabilistic approach accounts for variables like bus size, route, and weather (HVAC usage) to infer a distribution of energy consumption rather than a single static number.
  3. Optimization Module: The "brain" of the system is a Mixed-Integer Linear Program (MILP). It determines the optimal time to charge buses, when to dispatch the stationary battery, and which bus should run which route. The objective function minimizes a combination of electricity energy charges, peak demand charges, and the "social cost of carbon" ($180/ton).

Datasets

The framework was validated using a case study of Stanford University’s Marguerite Shuttle fleet:

  • Bus Telemetry: Real-world energy usage data for 38 electric buses (BYD models K7, K9, and K9M).
  • Solar Data: Generation profiles from a 1.8 MW rooftop PV array at the Stanford bus depot.
  • Grid Data: Historical marginal emissions factors from the California Independent System Operator (CAISO).
  • Weather Data: Local data from the Stanford Western Weather Group (temperature, rain, solar radiation).

Key Insights and Ideas

  • The Midday Shift: In the baseline scenario, buses typically charge in the evening when they return to the depot—exactly when the grid is often at its "dirtiest" and demand is high. The digital twin shifts charging to midday to coincide with peak solar production.
  • Batteries as a Carbon Buffer: The stationary battery isn't just for backup; it’s a tool for "carbon arbitrage." It soaks up excess solar during the day and discharges to buses that must run in the evening, ensuring they stay carbon-free even when the sun is down.
  • The Social Cost of Carbon: By assigning a dollar value to carbon emissions within the optimization model, the authors show that "green" behavior can be incentivized as a financial priority, not just an environmental one.
  • Robustness to Uncertainty: Real life is messy. When the authors replaced "perfect" forecasts with "naive" ones (simulating prediction errors), the system still outperformed the baseline, proving the framework's practical utility.

Key Results

For a simulated week of operations with 38 buses in March:

  • Peak Demand: Reduced by 99% (from 580 kW to nearly zero).
  • Carbon Emissions: Reduced by 100% (saving 6.36 tons of $CO_2$) under perfect forecast conditions.
  • Financials: Total net costs dropped by $3,923 for the week.
  • Under Uncertainty: Even with imperfect forecasts and operational "noise," the platform still achieved a 63% reduction in emissions and saved $784 in utility bills.

Limitations and Future Work

  • Fixed Sizing: The study assumes the solar array and battery sizes are already fixed. Future work could use this framework to determine the optimal size of infrastructure to install.
  • Simulation vs. Reality: While the data is real, the results are currently simulated. The authors plan to validate the platform in a live pilot with the Marguerite Shuttle.
  • Advanced Forecasting: The current forecasts are "naive" (moving averages). The authors suggest that moving to more sophisticated models, such as attention-based neural networks, could further close the gap between simulated and real-world performance.
  • Scalability: While tested on a university fleet, the framework needs to be tested on larger, more complex municipal transit systems with multiple depots.

Summary updated

Abstract

This paper proposes a 24/7 Carbon-Free Electric Fleet digital twin framework for modeling, controlling, and analyzing an electric bus fleet, co-located solar photovoltaic arrays, and a battery energy storage system.The framework consists of forecasting modules for marginal grid emissions factors, solar generation, and bus energy consumption that are input to the optimization module, which determines bus and battery operations at minimal electricity and emissions costs.We present a digital platform based on this framework.For a case study of Stanford University's Marguerite Shuttle, the platform reduced peak charging demand by 99%, electric utility bill by $2779, and associated carbon emissions by 100% for one week of simulated operations for 38 buses.When accounting for operational uncertainty, the platform still reduced the utility bill by $784 and emissions by 63%.
BibTeX
@misc{ribeiro2024towards,
  author = {Mateus Ribeiro and Justin Luke and Sonia Martin and Emmanuel Balogun and Gustavo Cezar and Marco Pavone and Ram Rajagopal},
  title = {{Towards a 24/7 Carbon-Free Electric Fleet: A Digital Twin Framework}},
  year = {2024},
  doi = {10.46855/energy-proceedings-11033},
}
Figure