High-Order Control Barrier Function
R2026bModify control actions to satisfy high-order control barrier function (CBF) constraints and action bounds
Since R2026a
Libraries:
Simulink Control Design /
Constraint Control
Description
The High-Order Control Barrier Function block computes the modified control actions that are closest to specified control actions subject to high-order control barrier function constraints and action bounds.
A control barrier function defines a safety set h(x) ≥ 0 based on the system state x. If the initial system start within the safety set, the High-Order Control Barrier Function block adjusts the control actions to keep the states within the safety set. The block uses a quadratic programming (QP) solver to find the control action u that minimizes in real time. Here, u0 is the original control action from the controller.
The solver applies constraints based on the barrier function relative order.
| Barrier Function Relative Order | Constraint Equation |
|---|---|
| First | |
| Second | |
| Third | |
| Fourth |
Here:
f(x) and g(x) are the drift and control vector fields of the plant dynamics equation , respectively.
h(x) is the barrier function.
Lfih is the i-th Lie derivative of hx with respect to x, with and .
LgLfih is given by .
γi and βi are parameters for controlling the effect of the barrier certificate.
umin is a lower bound for the control action.
umax is an upper bound for the control action.
The High-Order Control Barrier Function block requires Optimization Toolbox™ software.
For more information on control barrier function enforcement, see Enforce Safety Constraints with Control Barrier Functions.
Examples
Extended Examples
Ports
Input
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"slctrl_constraint/High-Order Control Barrier Function"
Example: add_block("slctrl_constraint/High-Order Control Barrier Function","myModel/myBlock",MakeNameUnique="on")
For information about programmatic access to individual block parameters, see the Programmatic Use section of parameter descriptions on this page.
Extended Capabilities
Version History
Introduced in R2026a







