Advanced Safety Filter for Smooth Transient Operation of a Battery Energy Storage System

Michael Schneeberger, Florian Dörfler, Silvia Mastellone · DOI

TL;DR

This paper presents an advanced safety filter for Battery Energy Storage Systems (BESS) that ensures hardware protection during grid transients without the "chattering" common in traditional controllers. By leveraging Control Barrier Functions (CBF) and Control Lyapunov Functions (CLF) optimized via Sum-of-Squares (SOS) programming, the authors create a filter that smoothly limits current and guarantees a finite-time return to nominal grid-forming operation.

What Problem Does This Paper Address?

As we move toward a grid dominated by renewables, BESS units are increasingly responsible for maintaining stability through Grid-Forming (GFM) control. However, during sudden events—like a fault or a massive load step—the current in these systems can spike, potentially damaging the power electronics.

The industry standard for protecting these systems is "vector current control," which often uses a PI controller with an anti-windup mechanism. The problem? These controllers are hard to tune for every possible fault and frequently cause "chattering"—rapid, jerky switching between the main controller and the safety limiter. This paper seeks a way to enforce safety (current limits) while ensuring a smooth, mathematically guaranteed transition back to normal operation.

Methods

The authors propose an Advanced Safety Filter that sits between the nominal controller (Enhanced Direct Power Control, or EDPC) and the physical inverter.

  1. Nominal Control: They use EDPC, which mimics the behavior of a synchronous generator to provide grid stability.
  2. Safety & Convergence: They employ two mathematical constructs:
  3. Control Barrier Functions (CBF): These define a "safe set" of states (current limits) and ensure the system never leaves this set.
  4. Control Lyapunov Functions (CLF): These ensure that if the system is pushed away from its ideal state, it will converge back to a "nominal region" in finite time.
  5. Optimization (SOS): Finding the right polynomial functions for CBFs and CLFs is non-trivial. The authors use Sum-of-Squares (SOS) optimization to numerically derive these functions while accounting for input constraints (like the maximum voltage the inverter can produce).
  6. Real-time Execution: The filter is implemented as a Quadratically Constrained Quadratic Program (QCQP). Every 200 microseconds, the system solves this optimization problem to find the "closest" control action to the nominal reference that still satisfies safety and convergence constraints.

Datasets

The paper does not use external datasets; instead, it evaluates the approach using a high-fidelity simulation of a three-phase power inverter system.

  • Scenario: A load step at the Point of Common Coupling (PCC) occurring at $t = 0.6s$.
  • Parameters: Detailed in Table I, including transformer impedance ($0.16$ p.u.), current limits ($1.24$ p.u.), and sampling time ($200 \mu s$).

Key Insights and Ideas

  • The "Nominal Region" Philosophy: Unlike traditional filters that might always be "on," this filter is designed to be inactive within a specific "nominal region." This ensures that the GFM properties of the EDPC controller are preserved entirely during normal operation.
  • Finite-Time Convergence: A major contribution is the guarantee that the system won't just stay "safe" forever while performing poorly; it is mathematically forced to return to the nominal control regime as quickly as possible.
  • Handling Quadratic Constraints: By using a QCQP instead of a standard Quadratic Program (QP), the authors can directly encode the circular (quadratic) nature of current and voltage limits in dq-coordinates, leading to more accurate and less conservative safety boundaries.

Key Results

The authors compared their advanced safety filter against a standard vector current controller:

  • Elimination of Chattering: The standard controller exhibited significant oscillations and abrupt interventions (Fig 6). The advanced safety filter provided a much smoother response (Fig 7).
  • Superior Transient Handling: The safety filter didn't just limit the peak current; the CLF component actually helped mitigate the "current dip" immediately following the load step, leading to a more stable recovery.
  • Smooth Intervention: The intervention term ($\Delta u$)—the difference between what the nominal controller wanted and what the filter allowed—was significantly smaller in magnitude and smoother in profile compared to the vector controller.

Limitations and Future Work

  • Model Dependency: The safety filter relies on a reduced-order model of the grid. While the authors added "margins" to the safe sets to handle uncertainty, a highly volatile or poorly modeled grid could still pose challenges.
  • Computational Complexity: Solving a QCQP every $200 \mu s$ is more computationally demanding than a simple PI loop. While feasible for modern power electronics controllers, it remains a factor for lower-cost hardware.
  • Future Work: The authors suggest that further testing under more complex grid models and physical hardware-in-the-loop (HIL) setups would be the next step toward commercial deployment.

Summary updated

BibTeX
@inproceedings{schneeberger2024advanced,
  author = {Michael Schneeberger and Florian Dörfler and Silvia Mastellone},
  title = {{Advanced Safety Filter for Smooth Transient Operation of a Battery Energy Storage System}},
  booktitle = {CDC},
  year = {2024},
  doi = {10.1109/cdc56724.2024.10886256},
}
Figure