Predictive control barrier functions for piecewise affine systems with non-smooth constraints
Kanghui He, Anil Alan, Shengling Shi, Ton van den Boom, Bart De Schutter
TL;DR
This work addresses safety for constrained nonlinear systems, focusing on continuous-time piecewise affine (PWA) dynamics with non-smooth state and input constraints. It introduces a predictive safety filter (PSF) framework that uses generalized Clarke derivatives to enforce safety across all derivative elements, plus an Aumann-sensitivity-based implementation for tractable flow derivatives. An explicit PSF approximation is proposed to render online computation feasible, and the theory extends classical, smooth-CBF safety guarantees to Lipschitz, non-smooth CBFs with general nonlinear dynamics. The approach is validated on an inverted pendulum and a multi-room temperature-control case that show reduced conservatism and substantial computational savings, highlighting practical viability for real-time safety-critical control. The method positions PSFs as an online counterpart to Hamilton-Jacobi reachability, with potential extensions to broader Lipschitz systems and probabilistic safety under uncertainty.
Abstract
Obtaining control barrier functions (CBFs) with large safe sets for complex nonlinear systems and constraints is a challenging task. Predictive CBFs address this issue by using an online finite-horizon optimal control problem that implicitly defines a large safe set. The optimal control problem, also known as the predictive safety filter (PSF), involves predicting the system's flow under a given backup control policy. However, for non-smooth systems and constraints, some key elements, such as CBF gradients and the sensitivity of the flow, are not well-defined, making the current methods inadequate for ensuring safety. Additionally, for control-non-affine systems, the PSF is generally nonlinear and non-convex, posing challenges for real-time computation. This paper considers piecewise affine systems, which are usually control-non-affine, under nonlinear state and polyhedral input constraints. We solve the safety issue by incorporating set-valued generalized Clarke derivatives in the PSF design. We show that enforcing CBF constraints across all elements of the generalized Clarke derivatives suffices to guarantee safety. Moreover, to lighten the computational overhead, we propose an explicit approximation of the PSF. The resulting control methods are demonstrated through numerical examples.
