Research notebook

When a Barrier Filter’s Assumptions Break notebook

Edit a Python cell and run it here. Your code runs in this browser tab; the notebook runtime and packages are served by this site.

Python starts when you choose Run.

When a Barrier Filter’s Assumptions Break

A scalar control barrier filter makes its assumptions visible: continuous feedback, sampled commands, model bias, and actuator feasibility.

Scalar first-order margin dynamics and an analytic projection, entirely in arithmetic simulation. Diagnostic continuation after infeasibility is not a valid CBF solution or a real-system safety guarantee.

The code uses Python 3 and the standard library. Saved output is from the checked CPU run.

Python · cell 1
dt=0.10 bias=0.0 filter=False min_h=-5.0000 negative_samples=50 infeasible=0
dt=0.10 bias=0.0 filter=True min_h=0.0000 negative_samples=0 infeasible=0
dt=0.75 bias=0.0 filter=True min_h=-0.1250 negative_samples=4 infeasible=0
dt=0.10 bias=0.2 filter=True min_h=-0.1000 negative_samples=48 infeasible=0
dt=0.10 bias=2.0 filter=True min_h=-5.8412 negative_samples=57 infeasible=53

Sources

  • Control Barrier Function Based Quadratic Programs for Safety Critical Systems: https://arxiv.org/abs/1609.06408

Python runs locally in this page. Saved results and figures are visible before execution.

Download full experiment notebook