Safe Controller Synthesis Using Lyapunov-based Barriers for Linear Hybrid Systems with Simplex Architecture
Sunandan Adhikary, Soumyajit Dey
TL;DR
The paper tackles safety guarantees for hybrid cyber-physical systems under real-time constraints by designing backup safe controllers (BSCs) within a simplex architecture. It combines Lyapunov-based decay (via quadratic Lyapunov functions) with barrier-function safety to synthesize multiple BSCs at different sampling rates, each ensuring recovery to the primary operating region within a specified deadline while remaining inside the safe region. A state-dependent switching policy (SCAP) and a resource-aware runtime mechanism (GLBF) enable safe, adaptive switching between BSCs and the primary controller under bandwidth limits. The proposed SDP-based synthesis achieves larger safe forward-invariant regions and timely convergence with favorable computation times, as demonstrated on aircraft longitudinal dynamics and inverted pendulum benchmarks. This approach provides a practical, schedulable pathway to ensure safety with minimal resource overhead in real-time embedded control systems.
Abstract
Modern cyber-physical systems often have a two-layered design, where the primary controller is AI-enabled or an analytical controller optimising some specific cost function. If the resulting control action is perceived as unsafe, a secondary safety-focused backup controller is activated. The existing backup controller design schemes do not consider a real-time deadline for the course correction of a potentially unsafe system trajectory or constrain maximisation of the safe operating region as a synthesis criterion. This essentially implies an eventual safety guarantee over a small operating region. This paper proposes a novel design method for backup safe controllers (BSCs) that ensure invariance across the largest possible region in the safe state space, along with a guarantee for timely recovery when the system states deviate from their usual behaviour. This is the first work to synthesise safe controllers that ensure maximal safety and timely recovery while aiming at minimal resource usage by switching between BSCs with different execution rates. An online safe controller activation policy is also proposed to switch between BSCs (and the primary optimal controller) to optimise processing bandwidth for control computation. To establish the efficacy of the proposed method, we evaluate the safety and recovery time of the proposed safe controllers, as well as the activation policy, in closed loops with linear hybrid dynamical systems under budgeted bandwidth.
