Definitionresearch
Control barrier function
Also called CBF.
A function whose zero superlevel set some input can keep forward invariant, used to state safety the way a CLF states stability.
A control barrier function (CBF) for a system with an input is a function such that, at each state, some input keeps from falling too fast. The safe set is . If the input always satisfies the CBF condition, a state that starts in stays in . A control Lyapunov function says that some input can make a function decrease to zero, which gives stability. A CBF says that some input can stop a function from becoming negative, which gives safety. The condition is linear in the input for a control-affine system, so it fits in a quadratic program: the CBF safety filter is the controller that uses it. A barrier certificate is a different object: it proves that a system without a free input, or with a fixed feedback, never reaches an unsafe set.
Definition
Setting. The system is with , , and , locally Lipschitz. The function is continuously differentiable on an open set , and the safe set is , with closed. The Lie derivatives are and , so along a solution.
Extended class K function. A function , with , is an extended class K function if it is continuous, strictly increasing and . It is extended class K infinity if it is defined on all of and as . The common choice is with .
Definition (zeroing CBF, Ames et al. 2017). is a control barrier function on if there is an extended class K function with
The set of good inputs at is . With the supremum is when , so the condition reduces to
What it gives (theorem, Ames et al. 2017). If is a CBF on and is a locally Lipschitz feedback with for all , then is forward invariant for : a solution that starts in stays in while it exists. The proof is the comparison argument: along the solution, and the solution of from never becomes negative. The full proof is on the CBF safety filter page. The positively invariant set page gives the general notion.
Reading the condition. Inside , where , the term is positive, so may decrease, but less fast as it nears 0. On the boundary , the condition says for some input. Outside but in , , so the condition asks that increase, and a state that starts a little outside is pushed back. This is why is an open set that is larger than . It makes the condition robust to small errors.
Other forms.
- Reciprocal CBF. A function that goes to at the boundary of , with for some input. Ames et al. (2014, 2017) defined it before the zeroing form. It is not defined outside , so it has no robustness margin, and it is less used now.
- Bounded inputs. With a bounded , the reduction to the test on fails, and may be a CBF for but not for (see the second example).
- High relative degree. If on all of , the input does not appear in , and the condition is a constraint on the state, not on the input. Exponential CBFs (Nguyen and Sreenath 2016) and high-order CBFs (Xiao and Belta 2019) apply the condition to a chain of derivatives of instead. The number of derivatives is the relative degree of .
Examples and non-examples
Interval with a free input. For with and , . and . only at , where and . So is a CBF on for every extended class K infinity .
The same set with a bounded input. Take and . The supremum over of is , which is nonnegative for . So is a CBF on , an open set that contains .
Unstable system, bounded input: a non-example. For and , and . With , everywhere, so is a CBF on . With , the supremum at is , so is not a CBF for any . At every allowed input gives , and the state leaves . The set cannot be kept invariant.
The same system with a smaller set. With , the set is the largest set of the form that the input can hold, because at needs . Take and . The supremum is , which is nonnegative for . So is a CBF on . The gap between and the largest holdable set gives the margin.
Relative degree 2: a non-example. For the double integrator , and (stay at ), everywhere and . The condition reads , which fails at states with and a large , for every . So is not a CBF, and the set is not even holdable: at the state leaves for every input. The function with has , so it is a CBF on , and its safe set intersected with is a set that the input can hold. This is the construction of exponential and high-order CBFs.
The case without an input. For , has , so holds on with no input to choose. Here the CBF condition is the condition of a barrier certificate, and it proves that is invariant. The two notions differ only when there is an input: a CBF says that a good input exists, and a barrier certificate says that the system is safe as it is.
Related definitions
- Control Lyapunov function. A CLF asks for away from the origin; a CBF asks for on . A CLF is positive definite; a CBF changes sign at the boundary of . Both are combined in one quadratic program with the CLF condition relaxed by a slack variable, so that safety wins when the two conflict (Ames et al. 2017).
- Barrier certificate. A function that proves safety of a system without a free input, often found by sum of squares programming. A CBF certifies that an input exists that keeps the system safe.
- Control invariant set. A set that some input can keep invariant. If is a CBF and a locally Lipschitz selection of exists, is control invariant. The largest control invariant subset of a constraint set is what Hamilton-Jacobi reachability computes.
- CBF safety filter. The quadratic program over . It is the standard way to use a CBF.
- Sontag-like formulas. Wieland and Allgöwer (2007) gave a formula for a safe feedback from a CBF, in the style of Sontag's universal formula for CLFs.
References
- Aaron D. Ames, Xiangru Xu, Jessy W. Grizzle and Paulo Tabuada, Control barrier function based quadratic programs for safety critical systems, IEEE Transactions on Automatic Control 62(8), 3861-3876, 2017, the definitions of reciprocal and zeroing control barrier functions and the forward invariance results
- Aaron D. Ames, Samuel Coogan, Magnus Egerstedt, Gennaro Notomista, Koushil Sreenath and Paulo Tabuada, Control barrier functions: theory and applications, European Control Conference, 3420-3431, 2019, the definition with an extended class K infinity function, the safety theorem, and high relative degree
- Constructive safety using control barrier functions, the first definition of a control barrier function, by analogy with control Lyapunov functions
- Hassan K. Khalil, Nonlinear Systems, third edition, Prentice Hall, 2002, Section 3.4, the comparison principle, used in the proof of forward invariance
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag 5DRK8N Edit this page History Report an error Markdown