NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

SOS Construction of Compatible Control Lyapunov and Barrier Functions

Michael Schneeberger, Florian Dörfler, Silvia Mastellone

Introduction

In the design of autonomous and automated systems, two objectives are paramount: stability and safety. Stability ensures that a system will eventually reach its desired equilibrium state, while safety guarantees that the system remains within a predefined set of allowable states (e.g., avoiding physical obstacles or staying within voltage limits). In control theory, these objectives are typically managed using Control Lyapunov Functions (CLFs) for stability and Control Barrier Functions (CBFs) for safety.

However, these two goals often exist in a state of tension. A control action optimized for stability might inadvertently push the system toward an unsafe boundary, while a safety-first maneuver might prevent the system from ever reaching its target. The mathematical challenge lies in finding a single control law that satisfies both conditions simultaneously—a requirement known as the "control-sharing property." This paper introduces a systematic framework for constructing compatible CLFs and CBFs for polynomial systems using Sum of Squares (SOS) programming.

Methodology

The authors focus on polynomial systems that are affine in control, meaning the control input enters the system equations linearly. The core of their approach is the automated synthesis of a rational control law that bridges the gap between stability and safety.

Sum of Squares (SOS) Programming

To handle the complex nonlinearities of polynomial systems, the researchers employ SOS programming. This technique transforms non-convex polynomial inequalities into Semidefinite Programs (SDPs). By leveraging specific versions of Positivstellensatz theorems from algebraic geometry, the authors derive SOS constraints that guarantee the existence of a rational controller—defined as a ratio of two polynomials—capable of satisfying both the CLF and CBF conditions.

The Alternating Optimization Algorithm

The resulting optimization problem is inherently difficult because it contains bilinear terms (products of decision variables), making it non-convex. To solve this, the authors propose an alternating algorithm that iterates between two primary steps:

  1. Function Search: Given a fixed controller, the algorithm searches for the optimal CLF and CBFs.
  2. Controller Search: Given the current CLF and CBFs, the algorithm optimizes the controller parameters.

This approach is proven to be "non-increasing," meaning that if the algorithm begins with a feasible solution, every subsequent iteration will maintain feasibility while improving the quality of the solution.

Volume Maximization

A critical aspect of the method is the maximization of the "safe set." By optimizing a surrogate for the volume of the region defined by the CBFs, the algorithm ensures that the safe invariant set is as large as possible, providing the system with maximum operational flexibility within its constraints.

Experimental Evaluation: DC/AC Power Converters

The methodology was validated using a high-fidelity model of a DC/AC power converter. This three-dimensional nonlinear system is a classic benchmark in power electronics, where maintaining specific current and voltage levels is essential to prevent hardware failure.

Key Results

  • Computational Efficiency: The entire optimization process for the 3D model was completed in approximately 90 seconds on standard hardware, demonstrating the method's potential for practical engineering workflows.
  • Rapid Convergence: The alternating algorithm typically converged to a high-quality solution in just six iterations.
  • Tight Safety Boundaries: The algorithm successfully synthesized a safe set (formed by the intersection of multiple CBFs) that closely adhered to the complex, non-convex safety boundaries of the power converter's state space.
  • Formal Guarantees: The resulting controller was mathematically proven to be Globally Asymptotically Stable (GAS) while ensuring the system never leaves the safe invariant set.

Discussion and Limitations

While the SOS-based approach provides a rigorous path toward automated controller design, several challenges remain. The most significant is the "curse of dimensionality"; as the number of system states or the degree of the polynomials increases, the computational complexity of SOS programming grows exponentially. Furthermore, because the alternating algorithm is a local search method, it may converge to local optima rather than the globally largest possible safe set.

Additionally, the method requires an initial feasible controller to begin the optimization process. For highly complex or unstable systems, finding this initial guess can be a non-trivial task.

Conclusion

This research represents a significant step forward in the automated synthesis of safe and stable controllers for nonlinear systems. By moving beyond simple polynomial controllers to rational ones and utilizing a robust alternating optimization framework, the authors provide a tool that can handle the intricate trade-offs between stability and safety. Future work will focus on improving scalability and incorporating noise-robustness to ensure these mathematical guarantees hold in real-world environments with imperfect sensors and model uncertainty.

Summary updated

BibTeX
@inproceedings{schneeberger2023sos,
  author = {Michael Schneeberger and Florian Dörfler and Silvia Mastellone},
  title = {{SOS Construction of Compatible Control Lyapunov and Barrier Functions}},
  booktitle = {IFAC-PapersOnLine},
  year = {2023},
  doi = {10.1016/j.ifacol.2023.10.1058},
}
Figure