solve
R2026bDescription
[
finds the safe control action ustar,exitflag] = solve(cbf,x,u)ustar that satisfies control barrier
function safety constraints defined in cbf while minimizing the
deviation from the nominal action u. The function defines linear
inequality constraints by evaluating the control barrier function and its Lie
derivatives at run time. It then constructs a quadratic programming problem and solves
it using the quadprog function, which requires Optimization Toolbox™ software.
This function requires Optimization Toolbox software.
Examples
Input Arguments
Name-Value Arguments
Output Arguments
Algorithms
The solve function uses a quadratic programming (QP) solver to find
the control action u that minimizes the function . Here, u0 is the unmodified
control action.
The solver applies the following constraints to the optimization problem.
Here:
fx and gx are functions defined by the plant dynamics .
hx is the control barrier function defined in
cbf.Constraints.BarrierFunction.qx is the partial derivative of the control barrier function over states x.
γ is the constraint factor defined in
cbf.Constraints.ConstraintFactor.β is the constraint power defined in
cbf.Constraints.ConstraintPower.umin is a lower bound for the control action, which you specify using
ActionMin.umax is an upper bound for the control action, which you specify using
ActionMax.
Version History
Introduced in R2026b