Create and explore imaginative 3D worlds with our new product Dreamfield (opens in a new tab)
Papers
Topics
Authors
Recent
Search
2000 character limit reached

Control Barrier Function Filters

Updated 25 March 2026
  • Control Barrier Function Filters are real-time algorithms that adjust nominal control inputs to ensure state safety by keeping trajectories within defined safe sets.
  • They leverage barrier functions and semidefinite programming, including matrix-valued formulations, to handle complex, nonsmooth, and Boolean-composite safety constraints.
  • Applications such as drone connectivity and obstacle avoidance showcase their ability to maintain continuous, robust control in safety-critical environments.

A control barrier function (CBF) filter is a real-time control algorithm that enforces system safety by minimally modifying the control input produced by a nominal controller to guarantee that the closed-loop state remains within a safe set defined by barrier functions. CBF filters are central to the modularization of safety in control, enabling complex or learning-based systems to meet safety-critical requirements in a modular, computationally tractable manner. Recent advances generalize the classical (scalar) CBF paradigm through matrix-valued barrier functions and the synthesis of safety filters via semidefinite programming (SDP), enabling the treatment of more general, possibly nonsmooth or Boolean-composite safe sets while guaranteeing continuous, real-time implementable safety filters (Ong et al., 15 Aug 2025).

1. Matrix Control Barrier Functions: Definitions and Safe Set Classes

Matrix Control Barrier Functions (MCBFs) extend the standard CBF framework from scalar-valued to matrix-valued functions:

  • Let H:Rn→SpH : \mathbb{R}^n \to \mathbb{S}^p be a continuously differentiable mapping from state space to the space of p×pp \times p symmetric matrices.
  • The associated semidefinite safe set is defined as

C={x∈Rn∣H(x)⪰0}\mathcal{C} = \{ x \in \mathbb{R}^n \mid H(x) \succeq 0 \}

where ⪰0\succeq 0 denotes positive semidefiniteness.

MCBFs enable the description of a richer class of safe sets:

  • Spectrahedral sets and sets defined by linear matrix inequalities (LMIs), notably encompassing connectivity constraints (e.g., weighted Laplacian eigenvalues for multi-agent networks).
  • Safe sets defined by Boolean combinations of simpler sets (e.g., disjunctions via the maximum eigenvalue of diagonal H(x)H(x)).
  • Nonsmooth or piecewise-composite sets (e.g., union of polytopes or intersection of complex regions).

For indefinite safe sets, H(x)H(x) can be indefinite and C={x∣λp(x)≥0}\mathcal{C} = \{x \mid \lambda_p(x) \ge 0\}, with λp(x)\lambda_p(x) the largest eigenvalue of H(x)H(x).

2. MCBF Conditions and Forward Invariance

For dynamics xË™=F(x)\dot{x} = F(x), define the matrix Lie derivative (applied componentwise):

p×pp \times p0

The key MCBF invariance condition is:

  • Exponential Matrix Barrier Condition: If p×pp \times p1 such that

p×pp \times p2

then the safe set p×pp \times p3 is forward-invariant; i.e., trajectories starting in p×pp \times p4 remain in p×pp \times p5 for all p×pp \times p6.

For control-affine dynamics p×pp \times p7, require that for each p×pp \times p8, there exists p×pp \times p9 such that

C={x∈Rn∣H(x)⪰0}\mathcal{C} = \{ x \in \mathbb{R}^n \mid H(x) \succeq 0 \}0

For indefinite (OR-type) MCBFs, the barrier condition becomes

C={x∈Rn∣H(x)⪰0}\mathcal{C} = \{ x \in \mathbb{R}^n \mid H(x) \succeq 0 \}1

with C={x∈Rn∣H(x)⪰0}\mathcal{C} = \{ x \in \mathbb{R}^n \mid H(x) \succeq 0 \}2 an extended class–C={x∈Rn∣H(x)⪰0}\mathcal{C} = \{ x \in \mathbb{R}^n \mid H(x) \succeq 0 \}3 function and C={x∈Rn∣H(x)⪰0}\mathcal{C} = \{ x \in \mathbb{R}^n \mid H(x) \succeq 0 \}4.

The standard CBF conditions for scalar safe sets are recovered as special cases (when C={x∈Rn∣H(x)⪰0}\mathcal{C} = \{ x \in \mathbb{R}^n \mid H(x) \succeq 0 \}5).

3. SDP-Based Synthesis of Continuous Safety Filters

At each control interval and state C={x∈Rn∣H(x)⪰0}\mathcal{C} = \{ x \in \mathbb{R}^n \mid H(x) \succeq 0 \}6:

C={x∈Rn∣H(x)⪰0}\mathcal{C} = \{ x \in \mathbb{R}^n \mid H(x) \succeq 0 \}7

where C={x∈Rn∣H(x)⪰0}\mathcal{C} = \{ x \in \mathbb{R}^n \mid H(x) \succeq 0 \}8 is the nominal (possibly unsafe) control.

  • For generalized barrier conditions (class–C={x∈Rn∣H(x)⪰0}\mathcal{C} = \{ x \in \mathbb{R}^n \mid H(x) \succeq 0 \}9, indefinite), replace ⪰0\succeq 00 by the appropriate matrix–function.
  • In the case of OR-composed CBFs (e.g., ⪰0\succeq 01), the SDP constraint enforces that at least one constituent ⪰0\succeq 02, corresponding to the semantic disjunction.

Computational complexity is ⪰0\succeq 03 per SDP solve, practical for moderate ⪰0\succeq 04.

4. Continuity and Robustness of the SDP Safety Filter

The MCBF-SDP filter enjoys strong continuity properties:

  • The feasible set ⪰0\succeq 05 in ⪰0\succeq 06 is convex, lower-semicontinuous, and has nonempty interior due to the strict ⪰0\succeq 07 in the barrier conditions.
  • The objective ⪰0\succeq 08 is strictly convex in ⪰0\succeq 09 and continuous in H(x)H(x)0.
  • By parametric convex optimization theory, the argmin mapping H(x)H(x)1 is continuous on a neighborhood of H(x)H(x)2.

Consequently, the filtered control law is continuous, avoiding chattering or discontinuities even in the presence of eigenvalue crossings or Boolean compositions (unlike standard scalar CBF-QPs, where such transitions may induce nonsmooth behavior).

5. Practical Procedure and Algorithm Architecture

The online MCBF safety filter operates as follows:

  1. State Measurement: Obtain H(x)H(x)3 (state estimate at control step H(x)H(x)4).
  2. Nominal Control: Compute H(x)H(x)5.
  3. Barrier Evaluation: Evaluate H(x)H(x)6, H(x)H(x)7, and H(x)H(x)8 for all H(x)H(x)9.
  4. SDP Assembly: Construct the SDP constraint as dictated by the MCBF type (exponential, class–K, or indefinite).
  5. SDP Solve: Solve (typically via interior-point SDP solvers, e.g., Clarabel or MOSEK), obtaining H(x)H(x)0.
  6. Actuation: Apply H(x)H(x)1 until the next update.

For H(x)H(x)2, solve times are 1–2 ms on modern CPUs, suitable for control frequencies in the hundreds of Hz.

6. Applications: Drone Connectivity and Non-Smooth Obstacles

6.1 Drone Network Connectivity Maintenance

  • Safety Objective: Maintain graph connectivity in a multi-UAV network.
  • Barrier Construction: For a set of H(x)H(x)3 drones, the safe set is defined by the nonnegativity of the second-smallest Laplacian eigenvalue, encoding network connectivity.
  • MCBF Encoding: H(x)H(x)4 is the modified weighted Laplacian plus perturbation; H(x)H(x)5 is the set where H(x)H(x)6.
  • Empirical Results: Both simulation and hardware (Crazyflie quadrotor swarm) confirm that MCBF-SDP centrally enforces continuous, connectivity-preserving controls without eigenvalue-chattering.

6.2 Nonsmooth Obstacle Avoidance via OR-CBF SDP

  • Scenario: Enforce that the state stays outside the union of objects, e.g., keeping outside cylinder and plane constraints.
  • OR-Composition: H(x)H(x)7 block-diagonalizes scalar functions; enforcement via a single indefinite MCBF-SDP encodes the disjunction exactly.
  • Observations: The resulting filter yields continuous, minimally relaxing safe controls—unlike soft-max or penalty methods, no relaxation of the true Boolean safe set is incurred.

7. Comparative and Broader Implications

MCBF filters unify and generalize many scalar CBF approaches:

  • All OR-compositions and Boolean constraint logic are handled natively in the SDP, unlike in QP-based scalar CBFs which typically require soft-min/max relaxations or multi-stage logic.
  • Matrix-valued representation conveniently encodes constraints with spectral, graph-theoretic, or multidimensional geometric semantics, such as connectivity or spectrahedral obstacles.
  • The continuous dependence on state and control input underpins robust, chattering-free real-time operation, critical for hardware deployment.

In summary, the MCBF-SDP framework establishes a rigorous, computationally viable safety filtering paradigm applicable to a broad range of safety-critical systems with high-dimensional, composite, or nonsmooth safety requirements (Ong et al., 15 Aug 2025).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Control Barrier Function (CBF) Filters.