Advanced safety filter based on SOS Control Barrier and Lyapunov Functions
Michael Schneeberger, Silvia Mastellone, Florian Dörfler
TL;DR
This work addresses safely augmenting a pre-existing controller without altering its nominal behavior. It proposes an SOS-based framework that jointly synthesizes multiple CBFs and a CLF to define a safe set $\mathcal{X}_s$ and a nominal region $\mathcal{X}_n$, while enforcing forward invariance and finite-time convergence toward $\mathcal{X}_n$. A two-stage approach then yields a Lipschitz safety filter $u_s(x)$ that coincides with the legacy action on $\mathcal{X}_n$ and satisfies CBF/CLF conditions on $\mathcal{X}_s$; quadratic input constraints are accommodated via a QCQP formulation with state-dependent slack $r(x)$. The framework is demonstrated on a three-phase AC/DC power converter, showing formal guarantees of safety and minimal intervention, with an accompanying software framework for automated design. This approach offers a principled, automatable path toward industrially deployable safety filters that preserve established control behavior while enforcing hard state and input constraints.
Abstract
This paper presents a novel safety filter framework that ensures both safety and the preservation of the legacy control action within a nominal region. This modular design allows the safety filter to be integrated into the control hierarchy without compromising the performance of the existing legacy controller during nominal operation. For a control-affine system, this is accomplished by formulating multiple Control Barrier Functions (CBFs) and Control Lyapunov-like Functions (CLFs) conditions, alongside a forward invariance condition for the legacy controller, as sum-of-squares constraints. Additionally, the state-dependent inequality constraints of the resulting Quadratic Program (QP) -- encoding the CBF and CLF conditions -- are designed to remain inactive within the nominal region, ensuring preservation of the legacy control action and performance. Our safety filter design is also the first to include quadratic input constraints, and does not need an explicit specification of the attractor, as it is implicitly defined by the legacy controller. To avoid the chattering effect and guarantee the uniqueness and Lipschitz continuity of solutions, the state-dependent inequality constraints of the Quadratic Program are selected to be regular. Finally, we demonstrate the method in a detailed case study involving the control of a three-phase ac/dc power converter.
