Control-Barrier-Function-Based Design of Gradient Flows for Constrained Nonlinear Programming

Ahmed Allibhoy, Jorge Cortés · DOI

Abstract

This paper considers the problem of designing a continuous-time dynamical system that solves a constrained nonlinear optimization problem and makes the feasible set forward invariant and asymptotically stable. The invariance of the feasible set makes the dynamics anytime, when viewed as an algorithm, meaning it returns a feasible solution regardless of when it is terminated. Our approach augments the gradient flow of the objective function with inputs defined by the constraint functions, treats the feasible set as a safe set, and synthesizes a safe feedback controller using techniques from the theory of control barrier functions. The resulting closed-loop system, termed safe gradient flow, can be viewed as a primal-dual flow, where the state corresponds to the primal variables and the inputs correspond to the dual ones. We provide a detailed suite of conditions based on constraint qualification under which (both isolated and nonisolated) local minimizers are stable with respect to the feasible set and the whole state space. Comparisons with other continuous-time methods for optimization in a simple example illustrate the advantages of the safe gradient flow.

Introduction

In real-time applications such as robotics, power systems, and network routing, optimization problems must often be solved dynamically. Traditional algorithms face two major hurdles in these settings: feasibility and continuity. Many methods only guarantee a feasible solution upon convergence, making them risky if terminated early. Furthermore, common techniques like projected gradient descent introduce discontinuities when encountering constraint boundaries, complicating implementation on physical hardware and theoretical analysis.

This research introduces the Safe Gradient Flow, a continuous-time dynamical system that bridges optimization and control theory. By treating the feasible region as a "safe set," the authors develop an "anytime" algorithm that ensures the search process remains within the feasible region at all times.

Methodology: The Safe Gradient Flow

The core innovation involves treating the optimization variable $x$ as the state of a dynamical system. While a standard gradient flow follows the negative gradient of the objective function ($-\nabla f(x)$), the safe gradient flow augments this with "control inputs" ($u, v$) associated with inequality and equality constraints.

To determine the optimal modification of the gradient direction, the authors solve a Quadratic Program (QP) at each time step. This QP minimizes the deviation from the original gradient descent direction while satisfying constraints derived from Control Barrier Functions (CBFs).

Visualization of the safe gradient flow trajectory staying within the feasible region (shaded).

This formulation has a compelling primal-dual interpretation: the system state corresponds to primal variables, while the control inputs generated by the CBF-QP act as dual variables (Lagrange multipliers). Unlike discontinuous projected systems, the safe gradient flow is locally Lipschitz continuous, allowing for integration via standard numerical ODE solvers.

Theoretical Guarantees and Results

The authors provide a rigorous stability analysis using Lyapunov theory and the Kurdyka-Łojasiewicz inequality. Key findings include:

  • KKT Correspondence: Equilibrium points of the dynamical system correspond exactly to the Karush-Kuhn-Tucker (KKT) points of the optimization problem.
  • Stability: Under standard constraint qualifications (LICQ and strict complementarity), local minimizers are shown to be exponentially stable.
  • Convergence for Non-isolated Minimizers: The algorithm is proven to converge to a point in the set of minimizers (semistability) even when a unique solution does not exist.

In numerical simulations, the safe gradient flow demonstrated superior performance compared to log-barrier and penalty methods. It was the only method that remained smooth, stayed strictly within the feasible set, and converged precisely to the global minimizer without the offsets typical of barrier methods or the constraint violations of penalty methods.

Limitations and Future Work

While promising, the safe gradient flow requires careful tuning of the parameter $\alpha$, which balances convergence speed against the step size requirements of discrete-time implementations. Additionally, solving the CBF-QP at every iteration introduces computational overhead that may impact high-dimensional problems. Future research will explore formal discrete-time safety guarantees to prevent "overshooting" constraints and investigate robustness to noise in gradient measurements.

Summary updated

BibTeX
@article{allibhoy2022control,
  author = {Ahmed Allibhoy and Jorge Cortés},
  title = {{Control-Barrier-Function-Based Design of Gradient Flows for Constrained Nonlinear Programming}},
  journal = {IEEE Trans. Automatic Control},
  year = {2022},
  doi = {10.1109/tac.2023.3306492},
}
Figure