generateLieDerivativeFcn
R2026bSyntax
Description
The generateLieDerivativeFcn function generates MATLAB® functions that compute the Lie derivatives of a control barrier function
represented by a ControlBarrierFunction object.
You can programmatically define a control barrier function using a
ControlBarrierFunction object and use the
generateLieDreivativeFcn function to generate Lie derivatives using
auto-differentiation. You can then solve for modified control actions using the
solve function. For an example, see Safe PID Tracking and Obstacle Avoidance Using Control Barrier Function.
Also, you can use the generateLieDerivativeFcn function to generate
Lie derivatives for control barrier functions modeled in Simulink® using the Control Barrier Function or High-Order
Control Barrier Function blocks. For an example, see Safe PID Controller for Two Link Robot using High-Order Control Barrier Function.
generates MATLAB function files that compute the Lie derivative Jacobians of the barrier
function defined in cbfNew = generateLieDerivativeFcn(cbf,mdlFcn)cbf with respect to the system dynamics
specified by model function mdlFcn. The generated files are saved
to the same directory as the model function file. The method updates
cbf.Constraints.LieDerivativeFcn with the default output
function name.
The barrier function and model function must both use only supported auto-differentiation operations. For more information, see Supported Operations on Expressions.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2026b