
Control Synthesis for Stability and Safety by Differential
Complementarity Problem
Yinzhuang Yi, Shumon Koga, Bogdan Gavrea, and Nikolay Atanasov
Abstract—This paper develops a novel control synthesis
method for safe stabilization of control-affine systems as
a Differential Complementarity Problem (DCP). Our design
uses a control Lyapunov function (CLF) and a control bar-
rier function (CBF) to define complementarity constraints in
the DCP formulation to certify stability and safety, respec-
tively. The CLF-CBF-DCP controller imposes stability as a
soft constraint, which is automatically relaxed when the
safety constraint is active, without the need for parameter
tuning or optimization. We study the closed-loop system
behavior with the CLF-CBF-DCP controller and identify con-
ditions on the existence of local equilibria. Although in cer-
tain cases the controller yields undesirable local equilibria,
those can be confined to a small subset of the safe set
boundary by proper choice of the control parameters. Then,
our method can avoid undesirable equilibria that CLF-CBF
quadratic programming techniques encounter.
Index Terms—Constrained control, Stability of nonlinear
systems, Differential-algebraic systems
I. INTRODUCTION
STABILITY verification and stabilizing control design are
fundamental problems in control theory that have im-
pacted numerous industrial systems. One of the main tools
for constructing control laws that stabilize nonlinear systems
is a control Lyapunov function (CLF) [1], [2]. As control sys-
tems are increasingly deployed in less structured, yet safety-
critical settings, in addition to stability, control designs need
to guarantee safety. Inspired by the property of CLFs to yield
invariant level sets, control barrier functions (CBFs) [3] have
been developed to enforce that a desired safe subset of the state
space is invariant. While various techniques for guaranteeing
safety and stability exist, important challenges remain when
both requirements are considered simultaneously. They include
conditions under which it is possible to obtain a single
control policy that guarantees CLF stability and CBF safety
simultaneously (compatibility [4]), existence and uniqueness
of the closed-loop system trajectories (well-posedness), con-
vergence to points other than the origin (undesired equilibria),
identification of initial conditions that ensure joint stability and
safety (region of attraction).
The design of stabilizing control with guaranteed safety is
studied in [7]. The authors define a Control Lyapunov Barrier
Function (CLBF), whose existence enables joint stabilization
We gratefully acknowledge support from NSF RI IIS-2007141.
Y. Yi, S. Koga, and N. Atanasov are with the Department of Electrical
and Computer Engineering, UC San Diego, 9500 Gilman Drive, La Jolla,
CA, 92093, USA (e-mails: {yiyi,skoga,natanasov}@ucsd.edu).
B. Gavrea is with the Department of Mathematics, Technical
University of Cluj-Napoca, Cluj-Napoca, 400114, Romania (e-mail:
bogdan.gavrea@math.utcluj.ro).
Fig. 1: Comparison of the closed-loop trajectories resulting from our
CLF-CBF-DCP control approach (orange), two recent CLF-CBF-QP
techniques (blue [4] and red [5]) and Lyapunov shaping (brown [6])
with a concave obstacle (green) for three initial conditions (black
dots). Existing CLF-CBF-QP techniques converge to an undesired
equilibrium on the obstacle boundary (black cross). Lyapunov shap-
ing converges to a different undesired equilibrium on the obstacle
boundary near the black cross for different initial conditions. Our
approach stabilizes the system at the origin.
and safety. However, constructing a CLBF may be challenging
and may require modification of the safe set. A comprehensive
overview of CBF techniques and their use as safety constraints
in quadratic programs (QPs) for control synthesis is provided
in [3]. Garg and Panagou [8] propose a fixed-time CLF and
analyze conditions for finite-time stabilization to a region of
interest with safety guarantees. Local asymptotic stability for
a particular CLF-CBF QP was proven in [9]. Reis et al. [6]
show that a CLF-CBF-QP controller introduces equilibria
other than the origin. The authors develop a new formulation
by introducing a new parameter in the CLF constraint and
an additional CBF constraint, aimed at avoiding undesired
equilibria on the safe set boundary. In [5], it is shown that
minimizing the distance to a nominal controller satisfying the
CLF condition as the objective of a CLF-CBF QP ensures
local stability of the origin without any additional assumptions.
However, the region of attraction of this controller has not
be characterized yet. Compatibility between CLF and CBF
constraints is considered in [10]. The authors define a CBF-
stabilizable sublevel set of the CLF and characterize the con-
ditions under which the closed-loop system is asymptotically
stable with respect to the origin. Mestres and Cort´
es [4]
develop a penalty method to incorporate the CLF condition
as a soft constraint in a QP, identify conditions on the penalty
parameter that eliminate undesired equilibria, and provide an
inner approximation of the region of attraction, where joint
stability and safety is ensured. As illustrated in Fig. 1, however,
the regions of attraction guaranteed by recent CLF-CBF-QP
techniques remain conservative, and initial conditions inside
arXiv:2210.01978v3 [math.OC] 9 Dec 2022