PDF

End-to-End Battery Dispatch with Exact Rainflow Degradation via Mixed-Integer Differentiable Predictive Control

Eshagh Safarzadeh Ravajiri, Ján Drgoňa

2025enbatterydegradationoptimizationcontrolpredictive

Abstract

Language:

Optimal dispatch of battery energy storage systems requires balancing energy arbitrage against cycle-induced degradation, which is accurately quantified through rainflow cycle counting. However, rainflow’s combinatorial, nondifferentiable algorithm is incompatible with both convex optimization and gradient-based neural network training. We present a self-supervised mixed-integer differentiable predictive control framework that trains neural policies directly on exact rainflow degradation through a novel differentiable rainflow layer combining exact gradients at state-of-charge extrema with dense proxy gradients on incremental changes, enabling stable end-to-end training while preserving true degradation physics. A mixed-integer differentiable architecture enforces power balance, dynamics, and mode exclusivity, with a safety filter guaranteeing constraint satisfaction. We evaluate the framework on 3,650 real battery-day scenarios (a 10-battery fleet over 365 days) spanning three utility regions (SDG&E California, Xcel Energy Colorado, APS Arizona) with diverse time-of-use pricing structures. A single-battery trained policy achieves a 0.35% performance gap on its training distribution with over 200×speedup, while fleet-wide training generalizes across all households and utility regions, achieving a 3.33% performance gap with 564×computational speedup (62 seconds vs. 9.7 hours) and 100% feasibility. The millisecond-scale inference reduces computation by over two orders of magnitude compared to mixed-integer solvers, enabling practical deployment at scale.

Download

Cite This Work

@article{421d7b68-abce-4337-a73a-bcb16800132a,
  title={End-to-End Battery Dispatch with Exact Rainflow Degradation via Mixed-Integer Differentiable Predictive Control},
  author={Eshagh Safarzadeh Ravajiri and Ján Drgoňa},
  year={2025},
  language={en}
}
TY  - JOUR
TI  - End-to-End Battery Dispatch with Exact Rainflow Degradation via Mixed-Integer Differentiable Predictive Control
AU  - Eshagh Safarzadeh Ravajiri
AU  - Ján Drgoňa
PY  - 2025
LA  - en
ER  -

Similar Items

Constructing reliable clean energy facility network under ambiguous distribution information

Qiansa Wang, Yanjiao Wang

In the context of the transition from clean energy to sustainable development, as an emerging low-carbon energy carrier, hydrogen is of crucial import

2025enPDF

Bridging the climate to energy data gap: simulated annealing for representative climate year selection

Bram van Duinen, Karin van der Wiel

Energy system models are increasingly dependent on representative climate input. Yet, a fundamental mismatch persists between the hundreds of simulate

2026enPDF

BLAST FURNACE IRONMAKING: Analysis, Control, and Optimization

Ian Cameron, Mitren Sukhram

This book delves into the intricate processes involved in blast furnace ironmaking, emphasizing the analysis, control, and optimization of operations.

2020enPDF

Tariffs, energy contracts, and optimal Distributed Energy Resources investment in campus microgrids

Juan Manuel Alemany, Bruno Bignotti

Large institutional electricity consumers such as university campuses face a planning problem that cannot be reduced to photovoltaic sizing alone. The

2026esPDF

Metal Casting Processes

Unknown, Unknown

This chapter discusses metal casting processes, highlighting the diversity and common characteristics among them. The objective is to elucidate the fu

2023enPDF

Artificial intelligence-aided materials design: AI-algorithms and case studies on alloys and metallurgical processes

Rajesh Jha, Bimal Kumar Jha

This book describes the application of artificial intelligence (AI) and machine learning (ML) concepts to develop predictive models that can be used t

2022enPDF