This work was supported by AFOSR Award FA9550-23-1-0740.
Introduction
Certificate-based methods provide powerful tools for enforcing and certifying desirable closed-loop dynamical properties, such as stability and safety. Control Lyapunov functions (CLFs) [1 , 2 ] certify the existence of stabilizing inputs, while control barrier functions (CBFs) [3 , 4 ] certify the existence of inputs that render a prescribed safe set forward invariant. In both cases, these certificates translate the desired closed-loop properties into state-dependent constraints on the control inputs. As a result, controller design can be viewed as a selection problem consisting of selecting at each state an admissible control input from the set defined by the constraints.
These selection problems can be approached using optimization, formulating the control design as a state-wise optimization subject to the control-theoretic constraints. Such ideas have long been employed in nonlinear control [2 ] , but have become especially prominent over the past decade in the safety-critical control literature via CLF-CBF-based quadratic programs [3 ] . This optimization framework is appealing due to its modularity, computational tractability, and its ability to accommodate multiple constraints, making it well suited for real-time safety-critical applications. Despite its advantages, optimization-based controllers often fail to be differentiable [5 , 6 , 7 ] . This nonsmoothness is already evident from the closed-form expressions in the single-constraint case [8 ] , and persists in more general explicit CBF-based safety filters [9 ] .
In many settings, it is desirable for the feedback controller to be smooth. In particular, smoothness enables recursive and compositional control constructions in which the controller itself is an intermediate design step within a broader control design framework or hierarchy. Examples include backstepping [10 ] , which has recently been extended to safety-critical control [11 , 12 ] . Other examples include the backup CBF framework [13 ] — in which a safe backup policy is used to dynamically generate an implicit control invariant set — where the backup controller must be continuously differentiable to reliably compute gradients of the resulting implicit CBF.
Smooth feedback design has long appeared in the literature of nonlinear stabilization. In particular, Artstein’s theorem [14 ] establishes the existence of a continuous stabilizing controller from a CLF. Although not stated explicitly, the same selection method can be extended more generally to obtain smooth feedback [15 ] . Unfortunately, these existence results are nonconstructive. Sontag’s universal formula [16 ] addresses this limitation by providing an explicit feedback construction from a CLF. The formula, however, is tailored to a single CLF constraint. Subsequent works [17 ] and [18 ] extend the universal formula to handle additional constraints such as u ∈ [ 0 , ∞ ) u \in[0,\infty) u ∈ [ 0 , ∞ ) and u ∈ [ 0 , 1 ] u \in[0,1] u ∈ [ 0 , 1 ] , respectively. However, these methods do not handle additional constraints that are state-dependent, such as those induced by CBFs.
Motivated in part by the introduction of CBFs, more recent works have revisited universal-formula constructions. Earlier work applies the Sontag’s formula in settings where both stability and safety objectives can be encoded together with control Lyapunov barrier functions [19 , 20 ] . The implicit-function-theorem viewpoint underlying Sontag’s formula has been used to characterize and construct smooth safety filters for single affine constraints [21 ] . Other works [22 , 23 ] study how the Sontag’s formula can be tuned toward minimum-norm controllers while retaining smoothness or inverse optimality [24 ] . Extensions to safe stabilization with both CLF and CBF constraints have also been developed. For instance, [25 ] proposes a Sontag-type formula that handles both constraints, albeit for single-input systems. Alternatively, multiple constraints with multiple inputs can be handled by reformulating the selection problem as an unconstrained optimization problem whose optimizer varies smoothly with the state [26 ] . While this provides a smooth selection mechanism, it does not yield an explicit closed-form formula.
Statement of Contributions: The present paper develops a general weighted-centroid methodology for constructing explicit smooth feedback formulas that select admissible control inputs from state-dependent affine constraints. The work builds on our earlier conference version of the paper [27 ] , which introduced a Gaussian-weighted centroid formula for smooth safe stabilization with one CLF and one CBF. Here, we generalize the core idea into a broader framework in which the choice of weight function becomes a mechanism for generating explicit feedback formulas.
The first contribution is the introduction of the weighted-centroid perspective as a constructive methodology for control design. In contrast to [27 ] , where smoothness followed from known closed-form expressions for truncated Gaussian means, the present smoothness results apply to general classes of weight functions. In particular, we identify sufficient conditions for smoothness of the admissible control maps and weight functions, covering the following cases: single affine constraints, mirrored constraints (two affine constraints with anti-parallel normals), multiple constraints with linearly independent constraint normals, structured linearly dependent constraints arising from mirrored pairs, and the general two affine constraints using Gaussian weights. For linearly independent cases, we provide continuity guarantees at states where constraint normals vanish, provided the remaining nonzero constraint normals remain linearly independent.
The second contribution is the use of the proposed methodology to derive explicit feedback formulas, beyond Gaussian-weighted constructions in [27 ] . Notably, we show that Sontag’s universal formula can be recovered as a weighted centroid of the admissible control set induced by a single affine constraint. This interpretation allows us to extend Sontag’s formula to handle mirrored constraints while retaining an explicit closed-form expression, rather than an optimization-based formulation. Beyond Sontag-type constructions, we derive additional explicit formulas using Gaussian weights and various polynomial weights. We also develop a compactly supported formula that respects state-independent input bounds.
The third contribution is the specialization of the framework to control-theoretic settings with CLFs and CBFs. The resulting constructions yield explicit smooth formulas for safety filtering, stabilization, and safe stabilization by satisfying the corresponding CLF and/or CBF constraints under suitable compatibility assumptions. For the CLF stabilization setting, we characterize classes of weight functions for which the resulting formula is continuous at the origin under the small control property, and propose a state-dependent scaling method for modifying existing weight functions to fit this class.
Finally, we demonstrate the practical implications of the proposed methodology through both simulation and hardware experiments on a quadrotor. The simulation study uses higher-order tracking dynamics to illustrate how nonsmooth safety-filter commands can repeatedly excite tracking transients, whereas the proposed smooth formula avoids this effect. Complementary hardware experiments on a small quadrotor show that our approach provides an inherent robustness margin against residual tracking and implementation errors.
Admissible Control Map Selection
This section introduces the problem of designing a controller to satisfy state-dependent control constraints. Consider a nonlinear control-affine system1 :
x ˙ = f ( x ) + g ( x ) u , (1) \dot{\mathbf{x}}=\mathbf{f}(\mathbf{x})+\mathbf{g}(\mathbf{x})\mathbf{u}, \tag*{(1)} x ˙ = f ( x ) + g ( x ) u , (1)
where x ∈ R n \mathbf{x} \in\mathbb{R}^{n} x ∈ R n is the state and u ∈ R m \mathbf{u} \in\mathbb{R}^{m} u ∈ R m is the control input. The drift vector field f : R n → R n \mathbf{f}:\mathbb{R}^{n} \to\mathbb{R}^{n} f : R n → R n and the control matrix-valued function g : R n → R n × m \mathbf{g}:\mathbb{R}^{n} \to\mathbb{R}^{n \times m} g : R n → R n × m are assumed to be smooth. Given a locally Lipschitz feedback controller k : R n → R m \mathbf{k}:\mathbb{R}^{n} \to\mathbb{R}^{m} k : R n → R m , the closed-loop system is: x ˙ = f ( x ) + g ( x ) k ( x ) \dot{\mathbf{x}}=\mathbf{f}(\mathbf{x})+\mathbf{g}(\mathbf{x})\mathbf{k}(\mathbf{x}) x ˙ = f ( x ) + g ( x ) k ( x ) .
In many situations, the choice of u \mathbf{u} u is limited to a specific set U ⊂ R m \mathcal{U} \subset\mathbb{R}^{m} U ⊂ R m . In the simplest case, the set U \mathcal{U} U is fixed, e.g., when the input has hard actuation limits. In general, however, the constraint set is described by a set-valued map U : R n ⇉ R m \mathcal{U}:\mathbb{R}^{n} \rightrightarrows\mathbb{R}^{m} U : R n ⇉ R m that captures dependency on the state. This naturally arises in control design problems that enforce performance or safety specifications. For example, control Lyapunov functions (CLFs) [1 ] and control barrier functions (CBFs) [3 ] impose inequality constraints on u \mathbf{u} u that depend explicitly on the state. Although the results in this paper apply to general state-dependent affine constraints, we focus on those induced by CLFs and CBFs, given their relevance in control theory.
Control Lyapunov and Control Barrier Functions
The concept of a CLF builds on Lyapunov theory by incorporating the control input u \mathbf{u} u to certify the existence of stabilizing controllers. Throughout this section, we assume that the system (1) admits an equilibrium under zero input. Without loss of generality, we shift coordinates so that the equilibrium of interest is located at the origin x = 0 \mathbf{x}=0 x = 0 , i.e., f ( 0 ) = 0 \mathbf{f}(0)=0 f ( 0 ) = 0 .
Definition 1. ([2 Section 3.3.1] ): A continuously differentiable function V : R n → R V:\mathbb{R}^{n} \to\mathbb{R} V : R n → R is a control Lyapunov function for the control-affine system (1) if there exists class-K ∞ \mathcal{K}_{\infty} K ∞ functions α \alpha α and α ‾ \overline{\alpha} α such that for all x ∈ R n \mathbf{x} \in\mathbb{R}^{n} x ∈ R n :
α ( ∥ x ∥ ) ≤ V ( x ) ≤ α ‾ ( ∥ x ∥ ) , \alpha(\lVert\mathbf{x}\rVert) \leq V(\mathbf{x}) \leq\overline{\alpha}(\lVert\mathbf{x}\rVert), α (∥ x ∥) ≤ V ( x ) ≤ α (∥ x ∥) , and, there exists a class-K \mathcal{K} K function α \alpha α such that, for each x ∈ R n ∖ { 0 } \mathbf{x} \in\mathbb{R}^{n} \setminus\{0\} x ∈ R n ∖ { 0 } , there exists u ∈ R m \mathbf{u} \in\mathbb{R}^{m} u ∈ R m satisfying CLF constraint:
L f V ( x ) + L g V ( x ) u < − α ( V ( x ) ) (2) \mathcal{L}_{\mathbf{f}}V(\mathbf{x})+\mathcal{L}_{\mathbf{g}}V(\mathbf{x})\mathbf{u} < -\alpha(V(\mathbf{x})) \tag*{(2)} L f V ( x ) + L g V ( x ) u < − α ( V ( x )) (2)
At each x ∈ R n \mathbf{x} \in\mathbb{R}^{n} x ∈ R n , the CLF constraint (2) ensures the existence of a control u \mathbf{u} u that makes the time derivative of the function V V V negative, as required to make V V V a Lyapunov function. Importantly, CLFs facilitate the selection of control inputs to enforce stability of the closed-loop system.
Lemma II.1. (Stabilizing Controller ): Consider the control-affine system (1) and a CLF V : R n → R V : \mathbb{R}^{n} \to\mathbb{R} V : R n → R . Define a state-dependent admissible control map Ω C L F : R n ⇉ R m \Omega_{\mathrm{CLF}} : \mathbb{R}^{n} \rightrightarrows\mathbb{R}^{m} Ω CLF : R n ⇉ R m such that for all x ≠ 0 \mathbf{x} \ne0 x = 0 :
Ω C L F ( x ) = { u ∈ R m ∣ L f V ( x ) + L g V ( x ) u ≤ − α ( V ( x ) ) } . \Omega_{\mathrm{CLF}}(\mathbf{x}) = \left\{ \mathbf{u} \in\mathbb{R}^{m} \mid L_f V(\mathbf{x}) + L_g V(\mathbf{x})\mathbf{u} \le-\alpha(V(\mathbf{x})) \right\}. Ω CLF ( x ) = { u ∈ R m ∣ L f V ( x ) + L g V ( x ) u ≤ − α ( V ( x )) } . Given a function k : R n → R m \mathbf{k} : \mathbb{R}^{n} \to\mathbb{R}^{m} k : R n → R m such that k ( 0 ) = 0 \mathbf{k}(0) = 0 k ( 0 ) = 0 , k \mathbf{k} k is locally Lipschitz on R n ∖ { 0 } \mathbb{R}^{n} \setminus\{0\} R n ∖ { 0 } , and k ( x ) ∈ Ω C L F ( x ) \mathbf{k}(\mathbf{x}) \in\Omega_{\mathrm{CLF}}(\mathbf{x}) k ( x ) ∈ Ω CLF ( x ) for each x ∈ R n ∖ { 0 } \mathbf{x} \in\mathbb{R}^{n} \setminus\{0\} x ∈ R n ∖ { 0 } , the feedback law u = k ( x ) \mathbf{u} = \mathbf{k}(\mathbf{x}) u = k ( x ) renders the origin asymptotically stable.
The set-valued map Ω C L F \Omega_{\mathrm{CLF}} Ω CLF specifies, at each x \mathbf{x} x , the set of all admissible inputs u \mathbf{u} u that lead to the decrease of V V V . Note that although the constraint (2) is stated with a strict inequality, the admissible control set Ω C L F \Omega_{\mathrm{CLF}} Ω CLF is defined using the non-strict condition (≤ \le ≤ ). The strict inequality in the definition not only guarantees that the set Ω C L F ( x ) \Omega_{\mathrm{CLF}}(\mathbf{x}) Ω CLF ( x ) is nonempty but also ensures the existence of a smooth feedback controller satisfying the constraint, see also Lemma II.3 discussed shortly.
We next review the concepts of safety and CBFs. For (1), suppose S ⊂ R n S \subset\mathbb{R}^{n} S ⊂ R n is a safe set and the control objective is to design a feedback controller such that the safe set S S S is forward invariant for the closed-loop system. In other words, the set S S S is safe if the solution to the closed-loop system is such that x ( t ) ∈ S \mathbf{x}(t) \in S x ( t ) ∈ S at all time in its interval of existence for any given initial condition x 0 ∈ S \mathbf{x}_0 \in S x 0 ∈ S . The concept of a CBF facilitates the construction of controllers enforcing safety.
Definition 2. (Control Barrier Function [3 ] ): A continuously differentiable function h : R n → R h : \mathbb{R}^{n} \to\mathbb{R} h : R n → R is a control barrier function for the set S S S under the control-affine system (1) if its 0-superlevel set defines S S S :
S = { x ∈ R n ∣ h ( x ) ≥ 0 } ; (3) S = \left\{ \mathbf{x} \in\mathbb{R}^{n} \mid h(\mathbf{x}) \ge0 \right\}; \tag*{(3)} S = { x ∈ R n ∣ h ( x ) ≥ 0 } ; (3) and, there exists a class-K e \mathcal{K}^{e} K e function α h \alpha_h α h such that, for each x ∈ S \mathbf{x} \in S x ∈ S , there exists u ∈ R m \mathbf{u} \in\mathbb{R}^{m} u ∈ R m satisfying the CBF constraint:
L f h ( x ) + L g h ( x ) u > − α h ( h ( x ) ) , (4) L_f h(\mathbf{x}) + L_g h(\mathbf{x})\mathbf{u} > -\alpha_h(h(\mathbf{x})), \tag*{(4)} L f h ( x ) + L g h ( x ) u > − α h ( h ( x )) , (4)
The concept of a CBF builds on that of a barrier certificate [28 ] , which has traditionally been used for safety verification of autonomous systems, by extending such a certificate function to incorporate control inputs. The CBF constraint (4) guarantees that there exists a control u \mathbf{u} u that does just that. Furthermore, the function α h \alpha_h α h on the right-hand side of (4) allows the value of h h h to decrease at points where h ( x ) > 0 h(\mathbf{x}) > 0 h ( x ) > 0 , i.e., in the interior of S S S . Consequently, there are more possible choices of control input u \mathbf{u} u that help render the set S S S safe. We formally state the safety result using CBFs below.
Lemma II.2. (Safeguarding Controller ): Consider the control-affine system (1) and a CBF h : R n → R h : \mathbb{R}^{n} \to\mathbb{R} h : R n → R . Define a state-dependent admissible control map Ω C B F : S ⇉ R m \Omega_{\mathrm{CBF}} : S \rightrightarrows\mathbb{R}^{m} Ω CBF : S ⇉ R m as:
Ω C B F ( x ) = { u ∈ R m ∣ L f h ( x ) + L g h ( x ) u ≥ − α h ( h ( x ) ) } . \Omega_{\mathrm{CBF}}(\mathbf{x}) = \left\{ \mathbf{u} \in\mathbb{R}^{m} \mid L_f h(\mathbf{x}) + L_g h(\mathbf{x})\mathbf{u} \ge-\alpha_h(h(\mathbf{x})) \right\}. Ω CBF ( x ) = { u ∈ R m ∣ L f h ( x ) + L g h ( x ) u ≥ − α h ( h ( x )) } . Given a function k : R n → R m \mathbf{k} : \mathbb{R}^{n} \to\mathbb{R}^{m} k : R n → R m such that k \mathbf{k} k is locally Lipschitz on S S S and k ( x ) ∈ Ω C B F ( x ) \mathbf{k}(\mathbf{x}) \in\Omega_{\mathrm{CBF}}(\mathbf{x}) k ( x ) ∈ Ω CBF ( x ) for each x ∈ S \mathbf{x} \in S x ∈ S , the feedback u = k ( x ) \mathbf{u} = \mathbf{k}(\mathbf{x}) u = k ( x ) renders the set S S S safe.
Lemma II.2 uses a CBF to guarantee safety by limiting the admissible inputs at each state. Similar to CLFs, CBFs induce a set-valued map Ω C B F \Omega_{\mathrm{CBF}} Ω CBF that specifies admissible control inputs. The use of a strict inequality in the CBF constraint (4), while the safety result only requires the non-strict condition defining Ω C B F \Omega_{\mathrm{CBF}} Ω CBF , parallels the discussion following Lemma II.1.
Problem Statement
Motivated by the CLF and CBF constructions above, we consider a general class of affine inequality constraints. Abstracting this structure, we define admissible control maps Ω i : S i ⇉ R m \Omega_i : S_i \rightrightarrows\mathbb{R}^{m} Ω i : S i ⇉ R m on domains S i ⊆ R n S_i \subseteq\mathbb{R}^{n} S i ⊆ R n as:
Ω i ( x ) = { u ∈ R m ∣ a i ( x ) + b i ( x ) u ≤ 0 (or < 0) } . (5) \Omega_i(\mathbf{x}) = \left\{ \mathbf{u} \in\mathbb{R}^{m} \mid a_i(\mathbf{x}) + b_i(\mathbf{x})\mathbf{u} \le0\ \text{(or < 0)} \right\}. \tag*{(5)} Ω i ( x ) = { u ∈ R m ∣ a i ( x ) + b i ( x ) u ≤ 0 (or < 0) } . (5)
with state-dependent functions a i : R n → R a_i : \mathbb{R}^{n} \to\mathbb{R} a i : R n → R (constraint bias ) and b i : R n → R 1 × m b_i : \mathbb{R}^{n} \to\mathbb{R}^{1 \times m} b i : R n → R 1 × m (constraint normal ). Given a collection of q q q admissible control maps { Ω i } i = 1 q \{\Omega_i\}_{i=1}^{q} { Ω i } i = 1 q , we address the selection problem : finding a function k : R n → R m \mathbf{k} : \mathbb{R}^{n} \to\mathbb{R}^{m} k : R n → R m such that k ( x ) ∈ Ω i ( x ) \mathbf{k}(\mathbf{x}) \in\Omega_i(\mathbf{x}) k ( x ) ∈ Ω i ( x ) , ∀ i ∈ [ q ] \forall i \in[q] ∀ i ∈ [ q ] . To this end, we introduce compatibility .
Definition 3. (Compatibility ): The admissible control maps { Ω i } i = 1 q \{\Omega_i\}_{i=1}^{q} { Ω i } i = 1 q are (strictly ) compatible on S S S if, for each x ∈ S \mathbf{x} \in S x ∈ S , there exists a control input u ∈ R m \mathbf{u} \in\mathbb{R}^{m} u ∈ R m such that a i ( x ) + b i ( x ) u ≤ 0 a_i(\mathbf{x}) + b_i(\mathbf{x})\mathbf{u} \le0 a i ( x ) + b i ( x ) u ≤ 0 (or < 0 < 0 < 0 ) for all i ∈ [ q ] i \in[q] i ∈ [ q ] .
Indeed, compatibility among the admissible control maps is required for the existence of a selection function k \mathbf{k} k . However, we will make a slightly stronger assumption of strict compatibility among the admissible control maps, which is closely related to the possibility of finding a selection function k \mathbf{k} k that is also smooth. The existence of a smooth selection is guaranteed by the following result.
Lemma II.3. (Generalization of Artstein’s Theorem [14 ] ): Let { U i : R n ⇉ R m } i = 1 q \{\mathcal{U}_i : \mathbb{R}^{n} \rightrightarrows\mathbb{R}^{m}\}_{i=1}^{q} { U i : R n ⇉ R m } i = 1 q be a set of q q q admissible control maps:
U i ( x ) = { u ∈ R m ∣ γ i ( x , u ) ≤ 0 (or < 0) } (6) \mathcal{U}_i(\mathbf{x}) = \left\{ \mathbf{u} \in\mathbb{R}^{m} \mid\gamma_i(\mathbf{x},\mathbf{u}) \le0\ \text{(or < 0)} \right\} \tag*{(6)} U i ( x ) = { u ∈ R m ∣ γ i ( x , u ) ≤ 0 (or < 0) } (6) with constraint functions γ i : R n × R m → R \gamma_i : \mathbb{R}^{n} \times\mathbb{R}^{m} \to\mathbb{R} γ i : R n × R m → R . Consider the intersection U = ⋂ i = 1 q U i \mathcal{U} = \bigcap_{i=1}^{q} \mathcal{U}_i U = ⋂ i = 1 q U i and assume the following hold:
γ i \gamma_i γ i are continuous for all i ∈ [ q ] i \in[q] i ∈ [ q ] ;
U \mathcal{U} U is convex-valued;
the maps { U i } i = 1 q \{\mathcal{U}_i\}_{i=1}^{q} { U i } i = 1 q are strictly compatible on S = ⋂ i = 1 q S i S = \bigcap_{i=1}^{q} S_i S = ⋂ i = 1 q S i
Then there exists a C ∞ C^\infty C ∞ selection function k : S → R m \mathbf{k} : S \to\mathbb{R}^{m} k : S → R m such that k ( x ) ∈ U ( x ) \mathbf{k}(\mathbf{x}) \in\mathcal{U}(\mathbf{x}) k ( x ) ∈ U ( x ) for all x ∈ S \mathbf{x} \in S x ∈ S .
In the context of control, where the selection function k \mathbf{k} k is the controller, it is important for the k \mathbf{k} k to be smooth or, at the very least, locally Lipschitz continuous, to guarantee existence and uniqueness of solutions. Similarly, many results in control theory often require Lipschitzness, e.g., Lemmas II.1 and II.2, and others may even require smoothness, e.g., backstepping [10 ] . We summarize the design problem below.
Problem 1. (Smooth Selection Problem ): Consider the control-affine system (1) with admissible control maps { Ω i } i = 1 q \{\Omega_i\}_{i=1}^{q} { Ω i } i = 1 q defined in (5). Assume that the admissible control maps are strictly compatible on S = ⋂ i = 1 q S i S = \bigcap_{i=1}^{q} S_i S = ⋂ i = 1 q S i . Design a smooth feedback controller k : S → R m \mathbf{k} : S \to\mathbb{R}^{m} k : S → R m such that k ( x ) ∈ U ( x ) = ⋂ i = 1 q Ω i ( x ) \mathbf{k}(\mathbf{x}) \in\mathcal{U}(\mathbf{x}) = \bigcap_{i=1}^{q}\Omega_i(\mathbf{x}) k ( x ) ∈ U ( x ) = ⋂ i = 1 q Ω i ( x ) for all x ∈ S \mathbf{x} \in S x ∈ S .
The remainder of the paper is organized as follows. Section III introduces our proposed selection methodology and develops the construction in the case of a single constraint or single-input systems. Section IV extends the approach to the general case with multiple constraints and inputs. Section V specializes the results to control applications, providing corollaries for the simultaneous enforcement of stabilization and safety objectives. Finally, Section VI demonstrates the proposed approach through a higher-order quadrotor simulation and hardware experiments on a small quadrotor platform.
Weighted Centroid Selection Methodology
Our approach to the selection problem hinges on the convexity (in u \mathbf{u} u ) of the admissible control maps. In particular, we rely on the fact that a weighted centroid of a convex set is always inside the set [29 p. 25] . This property suggests a natural way to construct a controller: by selecting, at each state x \mathbf{x} x , the weighted centroid of the feasible control map U ( x ) \mathcal{U}(\mathbf{x}) U ( x ) .
A weighted centroid μ : R n → R m \boldsymbol{\mu} : \mathbb{R}^{n} \to\mathbb{R}^{m} μ : R n → R m of a feasible control map U : R n ⇉ R m \mathcal{U} : \mathbb{R}^{n} \rightrightarrows\mathbb{R}^{m} U : R n ⇉ R m is defined as:
μ ( x ; U ) = ∫ U ( x ) u p ( x , u ) d u ∫ U ( x ) p ( x , u ) d u , (7) \boldsymbol{\mu}(\mathbf{x};\mathcal{U}) = \frac{\int_{\mathcal{U}(\mathbf{x})} \mathbf{u}p(\mathbf{x},\mathbf{u})\mathrm{d}\mathbf{u}}{\int_{\mathcal{U}(\mathbf{x})} p(\mathbf{x},\mathbf{u})\mathrm{d}\mathbf{u}}, \tag*{(7)} μ ( x ; U ) = ∫ U ( x ) p ( x , u ) d u ∫ U ( x ) u p ( x , u ) d u , (7)
where p : R n × R m → R > 0 p : \mathbb{R}^{n} \times\mathbb{R}^{m} \to\mathbb{R}_{>0} p : R n × R m → R > 0 is a positive weight function that assigns a weight to each control u \mathbf{u} u at state x \mathbf{x} x . Our intuition is that if the boundaries of the set change smoothly, then the weighted centroid will change smoothly as well. While this idea may seem simple, formally developing the associated theory requires care, which we begin in this section by focusing on systems with a single input.
Remark 1. (Support of Weight Functions ): For the weighted centroid (7) to be well defined, the denominator must be nonzero. Since we only place mild structural assumptions on U \mathcal{U} U , we restrict the weight function p p p to be strictly positive for all ( x , u ) (\mathbf{x},\mathbf{u}) ( x , u ) , i.e., its support is R m \mathbb{R}^{m} R m , for any x \mathbf{x} x . This restriction can be relaxed if there exists a known region W ⊂ R m \mathcal{W} \subset\mathbb{R}^{m} W ⊂ R m such that W ∩ U ( x ) \mathcal{W} \cap\mathcal{U}(\mathbf{x}) W ∩ U ( x ) is nonempty for all x \mathbf{x} x , in which case the support (in u \mathbf{u} u ) of p p p need only be W \mathcal{W} W . This is the case, for example, when we have CLFs and CBFs for systems with bounded inputs. •
To begin our exposition, we consider the case when system (1) has a single input (m = 1 m = 1 m = 1 ). For this one-dimensional case, regardless of the number of constraints q q q , the domain of integration is simply an interval on the real line:
U ( x ) ≜ ⋂ i ∈ [ q ] Ω i ( x ) = { u ∈ R ∣ c ( x ) ≤ u ≤ d ( x ) } . (8) \mathcal{U}(\mathbf{x}) \triangleq\bigcap_{i\in[q]}\Omega_i(\mathbf{x}) = \{u \in\mathbb{R} \mid c(\mathbf{x}) \le u \le d(\mathbf{x})\}. \tag*{(8)} U ( x ) ≜ i ∈ [ q ] ⋂ Ω i ( x ) = { u ∈ R ∣ c ( x ) ≤ u ≤ d ( x )} . (8)
for endpoint functions c , d : R n → R c,d : \mathbb{R}^{n} \to\mathbb{R} c , d : R n → R . The following result characterizes the smoothness of the weighted centroid (7).
Lemma III.1. (Single Input - Bounded ): Consider the weighted centroid (7) of the admissible control map (8) with a single input m = 1 m = 1 m = 1 . Suppose that:
the functions c c c , d d d , and p p p are C ℓ C^\ell C ℓ at x ∗ \mathbf{x}^{*} x ∗ ;
the maps { Ω i } i = 1 q \{\Omega_i\}_{i=1}^{q} { Ω i } i = 1 q are strictly compatible at x ∗ \mathbf{x}^{*} x ∗ .
Then μ \boldsymbol{\mu} μ is C ℓ C^\ell C ℓ at x ∗ \mathbf{x}^{*} x ∗ .
Proof. First, we note that strict compatibility guarantees c ( x ∗ ) ≠ d ( x ∗ ) c(\mathbf{x}^{*}) \ne d(\mathbf{x}^{*}) c ( x ∗ ) = d ( x ∗ ) . Since c c c and d d d are continuous, there exists δ > 0 \delta> 0 δ > 0 such that c ( x ) ≠ d ( x ) c(\mathbf{x}) \ne d(\mathbf{x}) c ( x ) = d ( x ) for all x ∈ B δ ( x ∗ ) \mathbf{x} \in\mathcal{B}_{\delta}(\mathbf{x}^{*}) x ∈ B δ ( x ∗ ) . Thus, the function μ \boldsymbol{\mu} μ is well-defined on B δ ( x ∗ ) \mathcal{B}_{\delta}(\mathbf{x}^{*}) B δ ( x ∗ ) . To establish that the partial derivatives of μ \boldsymbol{\mu} μ exist and are continuous on x ∈ B δ ( x ∗ ) \mathbf{x} \in\mathcal{B}_{\delta}(\mathbf{x}^{*}) x ∈ B δ ( x ∗ ) , we apply the Leibniz integral rule [30 ] to show:
∂ ∂ x i ∫ c ( x ) d ( x ) ψ ( x , u ) d u = ∫ c ( x ) d ( x ) ∂ ψ ∂ x i ( x , u ) d u + ψ ( x , d ( x ) ) ∂ d ∂ x i ( x ) − ψ ( x , c ( x ) ) ∂ c ∂ x i ( x ) . (9) \frac{\partial}{\partial x_i}\int_{c(\mathbf{x})}^{d(\mathbf{x})}\psi(\mathbf{x},u)\mathrm{d}u
=
\int_{c(\mathbf{x})}^{d(\mathbf{x})}\frac{\partial\psi}{\partial x_i}(\mathbf{x},u)\mathrm{d}u
+\psi(\mathbf{x},d(\mathbf{x}))\frac{\partial d}{\partial x_i}(\mathbf{x})
-\psi(\mathbf{x},c(\mathbf{x}))\frac{\partial c}{\partial x_i}(\mathbf{x}). \tag*{(9)} ∂ x i ∂ ∫ c ( x ) d ( x ) ψ ( x , u ) d u = ∫ c ( x ) d ( x ) ∂ x i ∂ ψ ( x , u ) d u + ψ ( x , d ( x )) ∂ x i ∂ d ( x ) − ψ ( x , c ( x )) ∂ x i ∂ c ( x ) . (9)
where ψ \psi ψ is any smooth function. Because the functions c c c , d d d , and ψ \psi ψ are smooth, each term on the right hand side exists and is continuous. Thus, using the Leibniz integral rule with p p p and u ⋅ p u\cdot p u ⋅ p as ψ \psi ψ , μ \boldsymbol{\mu} μ is continuously differentiable via the quotient rule of partial differentiation. Note that under the quotient rule, the denominator in each derivative remains simply some power of the original denominator, so it never takes the value of zero. We can then continue to use the Leibniz integral rule in order to show the existence and continuity of higher-order partial derivatives. This concludes the proof. □
Lemma III.1 confirms our intuition on the smoothness of the weighted centroid selection function for the single-input case: μ \boldsymbol{\mu} μ inherits the smoothness properties from the endpoints c c c and d d d . Although the proof using the Leibniz integral rule does not generalize to higher input dimensions, it reveals some issues that we shall discuss before proceeding to more general cases.
Proper Weight Functions
Lemma III.1 does not apply when the integral bound c ( x ) = − ∞ c(\mathbf{x}) = -\infty c ( x ) = − ∞ or d ( x ) = ∞ d(\mathbf{x}) = \infty d ( x ) = ∞ becomes unbounded, which can happen when b i ( x ) = 0 b_i(\mathbf{x}) = 0 b i ( x ) = 0 for some i ∈ [ q ] i \in[q] i ∈ [ q ] . In fact, neither of the functions c c c nor d d d are well-defined there, let alone enjoy a notion of continuity or smoothness. In addition, when the interval of integration is unbounded, there is a question of whether the integrals in (7) converge. We will address these issues by carefully choosing the weight function p p p .
Without loss of generality (through scaling), the weight functions p p p that ensure the integrals defining the weighted centroid (7) converge are probability density functions (PDFs). From this perspective, our weighted centroid is simply the expected value over the distribution, truncated by (5).
Example 1 (Gaussian Formula). The first natural choice to consider is the normal distribution PDF:
p g a u 1 ( x , u ) = ( ( 2 π ) 1 / 2 σ ( x ) ) − 1 exp ( − 1 2 u 2 σ ( x ) 2 ) , (10) p_{\mathrm{gau}}^{1}(\mathbf{x},u) = \left((2\pi)^{1/2}\sigma(\mathbf{x})\right)^{-1}\exp\left(-\frac{1}{2}\frac{u^{2}}{\sigma(\mathbf{x})^{2}}\right), \tag*{(10)} p gau 1 ( x , u ) = ( ( 2 π ) 1/2 σ ( x ) ) − 1 exp ( − 2 1 σ ( x ) 2 u 2 ) , (10)
where σ : R n → R \sigma: \mathbb{R}^{n} \to\mathbb{R} σ : R n → R represents the (potentially state-dependent) standard deviation. Here we consider the single-input case m = 1 m = 1 m = 1 . The expected value (in u u u ) of a truncated Gaussian distribution is given by:
μ g a u ( x ; U ) = σ ( x ) p g a u 1 ( c ( x ) / σ ( x ) ) − p g a u 1 ( d ( x ) / σ ( x ) ) Φ ( d ( x ) / σ ( x ) ) − Φ ( c ( x ) / σ ( x ) ) , \mu_{\mathrm{gau}}(\mathbf{x};\mathcal{U}) = \sigma(\mathbf{x})\frac{p_{\mathrm{gau}}^{1}(c(\mathbf{x})/\sigma(\mathbf{x})) - p_{\mathrm{gau}}^{1}(d(\mathbf{x})/\sigma(\mathbf{x}))}{\Phi(d(\mathbf{x})/\sigma(\mathbf{x})) - \Phi(c(\mathbf{x})/\sigma(\mathbf{x}))}, μ gau ( x ; U ) = σ ( x ) Φ ( d ( x ) / σ ( x )) − Φ ( c ( x ) / σ ( x )) p gau 1 ( c ( x ) / σ ( x )) − p gau 1 ( d ( x ) / σ ( x )) ,
where Φ \Phi Φ is the standard cumulative distribution function (zero-mean and unit variance). This solution confirms the conclusion of Lemma III.1. In addition, its derivatives are well-defined and converge smoothly as c c c or d d d go unbounded. •
Single Inequality Constraint
We now consider the case of a single constraint (q = 1 q = 1 q = 1 ) with multiple inputs (m ≥ 1 m \ge1 m ≥ 1 ). Here, the admissible control set is defined by a single affine inequality a 1 ( x ) + b 1 ( x ) u ≤ 0 a_1(\mathbf{x}) + \mathbf{b}_1(\mathbf{x})\mathbf{u} \le0 a 1 ( x ) + b 1 ( x ) u ≤ 0 . A common approach, cf. [16 ] , is to restrict the input via a parametrization, u = b 1 T ( x ) v \mathbf{u} = \mathbf{b}_1^{\mathsf{T}}(\mathbf{x})v u = b 1 T ( x ) v , so that it lies in the direction of the constraint normal b 1 ( x ) \mathbf{b}_1(\mathbf{x}) b 1 ( x ) . Effectively, the restriction reduces the control affine inequality to:
a 1 ( x ) + b 1 ( x ) u ⟹ u = b 1 T ( x ) v a 1 ( x ) + ∥ b 1 ( x ) ∥ 2 v ≤ 0 , a_1(\mathbf{x}) + \mathbf{b}_1(\mathbf{x})\mathbf{u} \underset{\mathbf{u}=\mathbf{b}_1^{\mathsf{T}}(\mathbf{x})v}{\Longrightarrow} a_1(\mathbf{x}) + \lVert\mathbf{b}_1(\mathbf{x})\rVert^2v \le0, a 1 ( x ) + b 1 ( x ) u u = b 1 T ( x ) v ⟹ a 1 ( x ) + ∥ b 1 ( x ) ∥ 2 v ≤ 0 ,
which is now a scalar inequality in v ∈ R v \in\mathbb{R} v ∈ R .
Example 2 (Sontag’s Formula). To apply the weighted centroid methodology in this reduced problem, we choose a weight function for the new scalar variable v v v :
p s t g ( x , v ) = ( 1 / 2 ) ( v 2 + 1 ) − 3 / 2 . p_{\mathrm{stg}}(\mathbf{x},v) = (1/2)(v^2+1)^{-3/2}. p stg ( x , v ) = ( 1/2 ) ( v 2 + 1 ) − 3/2 .
We may evaluate the weighted centroid (7) as:
μ s t g , v ( x ; Ω 1 ) = ∫ − ∞ d ( x ) v p s t g ( x , v ) d v ∫ − ∞ d ( x ) p s t g ( x , v ) d v = − 1 2 d ( x ) 2 + 1 1 2 ( d ( x ) d ( x ) 2 + 1 + 1 ) = − 1 d ( x ) + d ( x ) 2 + 1 = d ( x ) − d ( x ) 2 + 1 . \mu_{\mathrm{stg},v}(\mathbf{x};\Omega_1) = \frac{\int_{-\infty}^{d(\mathbf{x})}vp_{\mathrm{stg}}(\mathbf{x},v)\,\mathrm{d}v}{\int_{-\infty}^{d(\mathbf{x})}p_{\mathrm{stg}}(\mathbf{x},v)\,\mathrm{d}v}
= \frac{-\frac{1}{2\sqrt{d(\mathbf{x})^2+1}}}{\frac{1}{2}\left(\frac{d(\mathbf{x})}{\sqrt{d(\mathbf{x})^2+1}}+1\right)}
= \frac{-1}{d(\mathbf{x})+\sqrt{d(\mathbf{x})^2+1}}
= d(\mathbf{x})-\sqrt{d(\mathbf{x})^2+1}. μ stg , v ( x ; Ω 1 ) = ∫ − ∞ d ( x ) p stg ( x , v ) d v ∫ − ∞ d ( x ) v p stg ( x , v ) d v = 2 1 ( d ( x ) 2 + 1 d ( x ) + 1 ) − 2 d ( x ) 2 + 1 1 = d ( x ) + d ( x ) 2 + 1 − 1 = d ( x ) − d ( x ) 2 + 1 .
where d ( x ) = − a 1 ( x ) / ∥ b 1 ( x ) ∥ 2 d(\mathbf{x})=-a_1(\mathbf{x})/\lVert\mathbf{b}_1(\mathbf{x})\rVert^2 d ( x ) = − a 1 ( x ) / ∥ b 1 ( x ) ∥ 2 . We then convert this to the original input coordinate with u = b 1 T ( x ) v \mathbf{u}=\mathbf{b}_1^{\mathsf{T}}(\mathbf{x})v u = b 1 T ( x ) v to obtain:
μ s t g ( x ; Ω 1 ) = − a 1 ( x ) − a 1 ( x ) 2 + ∥ b 1 ( x ) ∥ 4 ∥ b 1 ( x ) ∥ 2 b 1 T ( x ) , (11) \mu_{\mathrm{stg}}(\mathbf{x};\Omega_1) = \frac{-a_1(\mathbf{x})-\sqrt{a_1(\mathbf{x})^2+\lVert\mathbf{b}_1(\mathbf{x})\rVert^4}}{\lVert\mathbf{b}_1(\mathbf{x})\rVert^2}\mathbf{b}_1^{\mathsf{T}}(\mathbf{x}), \tag*{(11)} μ stg ( x ; Ω 1 ) = ∥ b 1 ( x ) ∥ 2 − a 1 ( x ) − a 1 ( x ) 2 + ∥ b 1 ( x ) ∥ 4 b 1 T ( x ) , (11)
which is Sontag’s universal formula for stabilization, cf. [16 ] , that constructively provides an analytic controller for Artstein’s theorem, albeit limited to the one-constraint case. This derivation shows that Sontag’s formula can be interpreted as a weighted centroid of the admissible control set.
While Sontag’s formula is known to be smooth, this property follows from its original derivation using tools such as the Implicit Function Theorem (see also [21 ] ). In contrast, within the weighted centroid framework, smoothness is not immediate due to the possibility of state-dependent integration endpoint d ( x ) d(\mathbf{x}) d ( x ) going unbounded, e.g., as b 1 ( x ) → 0 \mathbf{b}_1(\mathbf{x}) \to0 b 1 ( x ) → 0 . In particular, establishing smoothness requires understanding how differentiation interacts with the integrals. To this end, we introduce the notion of integrable differentiability .
Definition 4. Let ψ : R n × R → R \psi:\mathbb{R}^n\times\mathbb{R}\to\mathbb{R} ψ : R n × R → R be a C ℓ C^\ell C ℓ function. Denote by D ℓ ( ψ ) \mathcal{D}^\ell(\psi) D ℓ ( ψ ) the collection of all of its partial derivatives up to order ℓ \ell ℓ , including ψ \psi ψ itself. We say that ψ \psi ψ is ℓ \ell ℓ -integrably differentiable if, for any φ ∈ D ℓ \varphi\in\mathcal{D}^\ell φ ∈ D ℓ , the integral:
∫ − ∞ ∞ ∣ φ ( x , v ) ∣ d v (12) \int_{-\infty}^{\infty}|\varphi(\mathbf{x},v)|\,\mathrm{d}v \tag*{(12)} ∫ − ∞ ∞ ∣ φ ( x , v ) ∣ d v (12)
converges for each x \mathbf{x} x .
Integrable differentiability enables the following result.
Theorem III.2. (Single Input - Unbounded ): Consider a single (q = 1 q=1 q = 1 ) admissible control map (5). Suppose that:
the functions a 1 a_1 a 1 , b 1 \mathbf{b}_1 b 1 , and p p p are C ℓ C^\ell C ℓ on S 1 S_1 S 1 ;
the map Ω 1 \Omega_1 Ω 1 is strictly compatible on S 1 S_1 S 1 ;
both functions ( x , v ) ↦ p ( x , v ) (\mathbf{x},v)\mapsto p(\mathbf{x},v) ( x , v ) ↦ p ( x , v ) and ( x , v ) ↦ v p ( x , v ) (\mathbf{x},v)\mapsto vp(\mathbf{x},v) ( x , v ) ↦ v p ( x , v ) are ℓ \ell ℓ -integrably differentiable in x \mathbf{x} x ;
the following limit converges for all ϕ ∈ D ℓ − 1 ( p ) \phi\in\mathcal{D}^{\ell-1}(p) ϕ ∈ D ℓ − 1 ( p ) :
lim v → − ∞ v ℓ + 2 ϕ ( x , v ) (13) \lim_{v\to-\infty}v^{\ell+2}\phi(\mathbf{x},v) \tag*{(13)} v → − ∞ lim v ℓ + 2 ϕ ( x , v ) (13)
Then, the controller:
k ( x ) = b 1 ( x ) T μ ( x ; Ω v ) , (14) \mathbf{k}(\mathbf{x})=\mathbf{b}_1(\mathbf{x})^{\mathsf{T}}\mu(\mathbf{x};\Omega_v), \tag*{(14)} k ( x ) = b 1 ( x ) T μ ( x ; Ω v ) , (14)
Ω v ( x ) = { v ∈ R ∣ − ∞ < v ≤ − a 1 ( x ) ∥ b 1 ( x ) ∥ 2 } , \Omega_v(\mathbf{x})=\left\{v\in\mathbb{R}\mid-\infty<v\le-\frac{a_1(\mathbf{x})}{\lVert\mathbf{b}_1(\mathbf{x})\rVert^2}\right\}, Ω v ( x ) = { v ∈ R ∣ − ∞ < v ≤ − ∥ b 1 ( x ) ∥ 2 a 1 ( x ) } ,
with μ \mu μ , the weighted centroid function given by (7) , is a C ℓ C^\ell C ℓ function on S 1 S_1 S 1 and satisfies:
a 1 ( x ) + b 1 ( x ) k ( x ) ≤ 0 , ∀ x ∈ S 1 . a_1(\mathbf{x})+\mathbf{b}_1(\mathbf{x})\mathbf{k}(\mathbf{x})\le0,\qquad\forall\mathbf{x}\in S_1. a 1 ( x ) + b 1 ( x ) k ( x ) ≤ 0 , ∀ x ∈ S 1 .
Proof. Our proof focuses on first-order differentiability with ℓ = 1 \ell=1 ℓ = 1 . This same process can be repeated for higher-order derivatives using the assumptions outlined in the statement. Following similar steps to the proof of Lemma III.1:
∂ ∂ x i ∫ − ∞ d ( x ) ψ ( x , v ) d v = ∫ − ∞ d ( x ) ∂ ψ ∂ x i ( x , v ) d v + ψ ( x , d ( x ) ) ∂ d ∂ x i ( x ) , (15) \frac{\partial}{\partial x_i}\int_{-\infty}^{d(\mathbf{x})}\psi(\mathbf{x},v)\,\mathrm{d}v
=\int_{-\infty}^{d(\mathbf{x})}\frac{\partial\psi}{\partial x_i}(\mathbf{x},v)\,\mathrm{d}v
+\psi(\mathbf{x},d(\mathbf{x}))\frac{\partial d}{\partial x_i}(\mathbf{x}), \tag*{(15)} ∂ x i ∂ ∫ − ∞ d ( x ) ψ ( x , v ) d v = ∫ − ∞ d ( x ) ∂ x i ∂ ψ ( x , v ) d v + ψ ( x , d ( x )) ∂ x i ∂ d ( x ) , (15)
where d ( x ) : = − a 1 ( x ) / β ( x ) d(\mathbf{x}):=-a_1(\mathbf{x})/\beta(\mathbf{x}) d ( x ) := − a 1 ( x ) / β ( x ) and β ( x ) : = ∥ b 1 ( x ) ∥ 2 \beta(\mathbf{x}):=\lVert\mathbf{b}_1(\mathbf{x})\rVert^2 β ( x ) := ∥ b 1 ( x ) ∥ 2 . We now illustrate that the above expression is continuous for all x ∈ S 1 \mathbf{x}\in S_1 x ∈ S 1 . We consider two separate cases.
b 1 ( x ) ≠ 0 \mathbf{b}_1(\mathbf{x})\ne0 b 1 ( x ) = 0 : In this case, d d d is continuous at x \mathbf{x} x , and is locally lower bounded by some constant c ∈ R c\in\mathbb{R} c ∈ R . The integral over the domain ( − ∞ , d ( x ) ] (-\infty,d(\mathbf{x})] ( − ∞ , d ( x )] is the sum of the integral over the domains ( − ∞ , c ] (-\infty,c] ( − ∞ , c ] and [ c , d ( x ) ] [c,d(\mathbf{x})] [ c , d ( x )] . From these summands, the former is a finite constant from integrable differentiability. As for the latter, the integral adopts continuity from all the functions involved. Therefore, the sum is continuous.
b 1 ( x ) = 0 \mathbf{b}_1(\mathbf{x})=0 b 1 ( x ) = 0 : We establish differentiability of k \mathbf{k} k by considering the limiting behavior as b 1 ( x ) → 0 \mathbf{b}_1(\mathbf{x})\to0 b 1 ( x ) → 0 or, equivalently, as d ( x ) → ∞ d(\mathbf{x})\to\infty d ( x ) → ∞ since we must have a 1 ( x ) < 0 a_1(\mathbf{x})<0 a 1 ( x ) < 0 as b 1 ( x ) → 0 \mathbf{b}_1(\mathbf{x})\to0 b 1 ( x ) → 0 from the strict compatibility assumption.
First, by integrable differentiability, for ψ ( x , v ) = p ( x , v ) \psi(\mathbf{x},v)=p(\mathbf{x},v) ψ ( x , v ) = p ( x , v ) and ψ ( x , v ) = v p ( x , v ) \psi(\mathbf{x},v)=vp(\mathbf{x},v) ψ ( x , v ) = v p ( x , v ) , the term:
∫ − ∞ ∞ ∂ ψ ∂ x i ( x , v ) d v = lim d ( x ) → ∞ ∫ − ∞ d ( x ) ∂ ψ ∂ x i ( x , v ) d v , \int_{-\infty}^{\infty}\frac{\partial\psi}{\partial x_i}(\mathbf{x},v)\,\mathrm{d}v
=\lim_{d(\mathbf{x})\to\infty}\int_{-\infty}^{d(\mathbf{x})}\frac{\partial\psi}{\partial x_i}(\mathbf{x},v)\,\mathrm{d}v, ∫ − ∞ ∞ ∂ x i ∂ ψ ( x , v ) d v = d ( x ) → ∞ lim ∫ − ∞ d ( x ) ∂ x i ∂ ψ ( x , v ) d v ,
is well defined. Next, note that with d ( x ) = − a 1 ( x ) / β ( x ) d(\mathbf{x})=-a_1(\mathbf{x})/\beta(\mathbf{x}) d ( x ) = − a 1 ( x ) / β ( x ) we have:
∂ d ∂ x i ( x ) = − 1 β ( x ) ∂ a 1 ∂ x i ( x ) + ∂ β ∂ x i ( x ) a 1 ( x ) β 2 ( x ) . \frac{\partial d}{\partial x_i}(\mathbf{x})
=-\frac{1}{\beta(\mathbf{x})}\frac{\partial a_1}{\partial x_i}(\mathbf{x})
+\frac{\partial\beta}{\partial x_i}(\mathbf{x})\frac{a_1(\mathbf{x})}{\beta^2(\mathbf{x})}. ∂ x i ∂ d ( x ) = − β ( x ) 1 ∂ x i ∂ a 1 ( x ) + ∂ x i ∂ β ( x ) β 2 ( x ) a 1 ( x ) .
Now, let x 0 \mathbf{x}_0 x 0 be any point satisfying b 1 ( x 0 ) = 0 \mathbf{b}_1(\mathbf{x}_0)=0 b 1 ( x 0 ) = 0 and note that since a 1 ( x ) < 0 a_1(\mathbf{x})<0 a 1 ( x ) < 0 whenever b 1 ( x ) = 0 \mathbf{b}_1(\mathbf{x})=0 b 1 ( x ) = 0 , there exists ε > 0 \varepsilon>0 ε > 0 such that a 1 ( x ) < 0 a_1(\mathbf{x})<0 a 1 ( x ) < 0 for all x ∈ B ε ( x 0 ) \mathbf{x}\in\mathcal{B}_\varepsilon(\mathbf{x}_0) x ∈ B ε ( x 0 ) . Hence, for x ∈ B ε ( x 0 ) ∖ { x 0 } \mathbf{x}\in\mathcal{B}_\varepsilon(\mathbf{x}_0)\setminus\{\mathbf{x}_0\} x ∈ B ε ( x 0 ) ∖ { x 0 } , we have:
ψ ( x , d ( x ) ) ∂ d ∂ x i ( x ) = ψ ( x , d ( x ) ) a 1 ( x ) [ − a 1 ( x ) β ( x ) ∂ a 1 ∂ x i ( x ) + a 1 2 ( x ) β 2 ( x ) ∂ β ∂ x i ( x ) ] = ψ ( x , d ( x ) ) a 1 ( x ) [ d ( x ) ∂ a 1 ∂ x i ( x ) + d 2 ( x ) ∂ β ∂ x i ( x ) ] . \psi(\mathbf{x},d(\mathbf{x}))\frac{\partial d}{\partial x_i}(\mathbf{x})
=\frac{\psi(\mathbf{x},d(\mathbf{x}))}{a_1(\mathbf{x})}\left[-\frac{a_1(\mathbf{x})}{\beta(\mathbf{x})}\frac{\partial a_1}{\partial x_i}(\mathbf{x})+\frac{a_1^2(\mathbf{x})}{\beta^2(\mathbf{x})}\frac{\partial\beta}{\partial x_i}(\mathbf{x})\right]
=\frac{\psi(\mathbf{x},d(\mathbf{x}))}{a_1(\mathbf{x})}\left[d(\mathbf{x})\frac{\partial a_1}{\partial x_i}(\mathbf{x})+d^2(\mathbf{x})\frac{\partial\beta}{\partial x_i}(\mathbf{x})\right]. ψ ( x , d ( x )) ∂ x i ∂ d ( x ) = a 1 ( x ) ψ ( x , d ( x )) [ − β ( x ) a 1 ( x ) ∂ x i ∂ a 1 ( x ) + β 2 ( x ) a 1 2 ( x ) ∂ x i ∂ β ( x ) ] = a 1 ( x ) ψ ( x , d ( x )) [ d ( x ) ∂ x i ∂ a 1 ( x ) + d 2 ( x ) ∂ x i ∂ β ( x ) ] .
Then since the limits (13) exists, the following limit:
lim x → x 0 ψ ′ ( x , d ( x ) ) d j ( x ) , j ∈ { 1 , 2 } , \lim_{x \to x_0}\psi'(x,d(x))d^{j}(x),\quad j\in\{1,2\}, x → x 0 lim ψ ′ ( x , d ( x )) d j ( x ) , j ∈ { 1 , 2 } ,
with ψ ( x , v ) = p ( x , v ) \psi(x,v)=p(x,v) ψ ( x , v ) = p ( x , v ) or ψ ( x , v ) = v p ( x , v ) \psi(x,v)=vp(x,v) ψ ( x , v ) = v p ( x , v ) also exists. Consequently, with a 1 a_1 a 1 and b 1 b_1 b 1 being continuous at x x x , each term on the right hand side in (15) converges as x → x 0 x\to x_0 x → x 0 . That is, all (first-order) partial derivatives are well-defined as b ( x ) → 0 \mathbf{b}(x)\to0 b ( x ) → 0 . Since all partial derivatives exist and are continuous on any open set such that b 1 ( x ) ≠ 0 b_1(x)\ne0 b 1 ( x ) = 0 (from Case (i)) and the limit of these partial derivatives exists as x x x tends to points such that b 1 ( x ) = 0 b_1(x)=0 b 1 ( x ) = 0 , it follows that all partial derivatives exists and are continuous at such points as well, thereby ensuring that μ \mu μ as defined in (7) is continuously differentiable. For higher-order derivatives, we can take the derivative of (15) using the product rule and the Leibniz rule of differentiation, and apply the set of assumptions outlined in the statement to establish the existence of such higher-order derivatives.
Since μ \mu μ is a weighted centroid of the convex set Ω v ( x ) \Omega_v(x) Ω v ( x ) , it satisfies μ ( x ; Ω v ) ∈ Ω v ( x ) \mu(x;\Omega_v)\in\Omega_v(x) μ ( x ; Ω v ) ∈ Ω v ( x ) for all x ∈ S 1 x\in S_1 x ∈ S 1 [29 p. 25] . Hence, for all x ∈ S 1 x\in S_1 x ∈ S 1 , we can show the controller k k k satisfies:
a 1 ( x ) + b 1 ( x ) k ( x ) = a 1 ( x ) + μ ( x , Ω v ) ∥ b 1 ( x ) ∥ 2 . a_1(x)+b_1(x)k(x)=a_1(x)+\mu(x,\Omega_v)\lVert b_1(x)\rVert^2. a 1 ( x ) + b 1 ( x ) k ( x ) = a 1 ( x ) + μ ( x , Ω v ) ∥ b 1 ( x ) ∥ 2 .
When b 1 ( x ) = 0 b_1(x)=0 b 1 ( x ) = 0 we have a 1 ( x ) < 0 a_1(x)<0 a 1 ( x ) < 0 by assumption, and when b 1 ( x ) ≠ 0 b_1(x)\ne0 b 1 ( x ) = 0 we have:
a 1 ( x ) + b 1 ( x ) k ( x ) ≤ a 1 ( x ) − a 1 ( x ) ∥ b ( x ) ∥ 2 ∥ b 1 ( x ) ∥ 2 = 0 , a_1(x)+b_1(x)k(x)\le a_1(x)-\frac{a_1(x)}{\lVert b(x)\rVert^2}\lVert b_1(x)\rVert^2=0, a 1 ( x ) + b 1 ( x ) k ( x ) ≤ a 1 ( x ) − ∥ b ( x ) ∥ 2 a 1 ( x ) ∥ b 1 ( x ) ∥ 2 = 0 ,
for all x ∈ S 1 x\in S_1 x ∈ S 1 , as desired.
Theorem III.2 outlines assumptions under which each term in the Leibniz integral rule (15) converges. For differentiability with ℓ = 1 \ell=1 ℓ = 1 , the assumptions are not too restrictive. In addition to regularity assumptions, (13) imposes that the original probability distribution is not too tail-heavy. One may verify that these conditions hold for (16) and the Gaussian distribution (10) . Beyond first derivatives, the number of terms whose convergence must be verified grows combinatorially, making such conditions increasingly difficult to verify in practice.
Note, however, that the assumptions made in Theorem III.2 are not necessary conditions. For instance, one may verify that, beyond first derivatives, individual terms derived from the Sontag’s weight function p s t g p_{\mathrm{stg}} p stg do not converge, yet the weighted centroid associated with Sontag’s formula is known to be an analytic function [16 ] . On the other hand, weight functions with sufficiently fast decay, e.g., from the exponential family, ensure convergence of all terms due to the dominance of exponential tails over polynomials.
Example 3 (Sontag-like Formulas). Theorem III.2 provides insight into choosing weight functions: condition (13) requires sufficient decay of the weight function at infinity. Motivated by this, we consider a family of weight functions of the form:
p ( x , v ) = ( v 2 + 1 ) − r / 2 , (16) p(x,v)=(v^2+1)^{-r/2}, \tag*{(16)} p ( x , v ) = ( v 2 + 1 ) − r /2 , (16)
with r ≥ 3 r\ge3 r ≥ 3 . For example, with r = 5 r=5 r = 5 we have:
μ ( x ; Ω 1 ) = − b 1 T ( x ) d ( x ) ( 2 d ( x ) + 3 ) + 2 ( d ( x ) 2 + 1 ) 3 / 2 . \mu(x;\Omega_1)=\frac{-\mathbf{b}_1^{\mathsf{T}}(x)}{d(x)(2d(x)+3)+2(d(x)^2+1)^{3/2}}. μ ( x ; Ω 1 ) = d ( x ) ( 2 d ( x ) + 3 ) + 2 ( d ( x ) 2 + 1 ) 3/2 − b 1 T ( x ) .
and with r = 7 r=7 r = 7 the weighted centroid becomes:
μ ( x ; Ω 1 ) = − 3 b 1 T ( x ) 8 d ( x ) 5 + 20 d ( x ) 3 + 8 ( d ( x ) 2 + 1 ) 5 / 2 + 15 d ( x ) . \mu(x;\Omega_1)=\frac{-3\mathbf{b}_1^{\mathsf{T}}(x)}{8d(x)^5+20d(x)^3+8(d(x)^2+1)^{5/2}+15d(x)}. μ ( x ; Ω 1 ) = 8 d ( x ) 5 + 20 d ( x ) 3 + 8 ( d ( x ) 2 + 1 ) 5/2 + 15 d ( x ) − 3 b 1 T ( x ) .
As r r r increases, (13) is satisfied for higher values of ℓ \ell ℓ , improving the order of differentiability of the resulting formulas. As r → ∞ r\to\infty r → ∞ , (16) approaches the Gaussian weight, which satisfies the assumptions for all orders due to its exponential decay. ●
Mirrored Constraints
The preceding result allows for constructing smooth controllers satisfying a single affine inequality constraint. While controllers that can achieve this have been around for quite a while (e.g., dating back to Sontag’s original formulation in [16 ] ), the weighted centroid perspective taken herein allows for extending such ideas to the multi-constraint case. In particular, without any modification, the results of this section may be directly used to construct smooth controllers satisfying a class of constraints which we refer to as mirrored.
Definition 5. (Mirrored Constraints ): A pair of affine constraints { a i ( x ) + b i ( x ) u ≤ 0 } i ∈ [ 2 ] \{a_i(x)+b_i(x)u\le0\}_{i\in[2]} { a i ( x ) + b i ( x ) u ≤ 0 } i ∈ [ 2 ] is mirrored for ( 1 ) (1) ( 1 ) if the constraints normals satisfy b 2 ( x ) = − b 1 ( x ) b_2(x)=-b_1(x) b 2 ( x ) = − b 1 ( x ) for all x ∈ R n x\in\mathbb{R}^n x ∈ R n . ◇
When a pair of constraints is mirrored, we may parameterize the input as u = b 1 ( x ) T v u=b_1(x)^{\mathsf{T}}v u = b 1 ( x ) T v , v ∈ R v\in\mathbb{R} v ∈ R , to recast the constraints as:
a 1 ( x ) + ∥ b 1 ( x ) ∥ 2 v ≤ 0 , a_1(x)+\lVert b_1(x)\rVert^2v\le0, a 1 ( x ) + ∥ b 1 ( x ) ∥ 2 v ≤ 0 ,
a 2 ( x ) − ∥ b 1 ( x ) ∥ 2 v ≤ 0 , a_2(x)-\lVert b_1(x)\rVert^2v\le0, a 2 ( x ) − ∥ b 1 ( x ) ∥ 2 v ≤ 0 ,
leading to the admissible control map:
Ω v ( x ) = { v ∈ R : a 2 ( x ) ∥ b 1 ( x ) ∥ 2 ≤ v ≤ − a 1 ( x ) ∥ b 1 ( x ) ∥ 2 } , (17) \Omega_v(x)=\left\{v\in\mathbb{R}:\frac{a_2(x)}{\lVert b_1(x)\rVert^2}\le v\le\frac{-a_1(x)}{\lVert b_1(x)\rVert^2}\right\},\qquad\text{(17)} Ω v ( x ) = { v ∈ R : ∥ b 1 ( x ) ∥ 2 a 2 ( x ) ≤ v ≤ ∥ b 1 ( x ) ∥ 2 − a 1 ( x ) } , (17)
whose weighted centroid yields a smooth controller satisfying the original pair of constraints.
Proposition III.3. (Single Mirrored Pair ): Consider a pair of affine constraints a i ( x ) + b i ( x ) u ≤ 0 a_i(x)+b_i(x)u\le0 a i ( x ) + b i ( x ) u ≤ 0 , i ∈ { 1 , 2 } i\in\{1,2\} i ∈ { 1 , 2 } , that are mirrored and strictly compatible on S 1 ⊆ S 2 S_1\subseteq S_2 S 1 ⊆ S 2 . Provided a i a_i a i , b i b_i b i , i ∈ { 1 , 2 } i\in\{1,2\} i ∈ { 1 , 2 } are C ℓ C^\ell C ℓ and b i ( x ) ≠ 0 \mathbf{b}_i(x)\ne0 b i ( x ) = 0 on S S S , then the controller k ( x ) = μ ( x ; Ω v ) b 1 ( x ) T k(x)=\mu(x;\Omega_v)b_1(x)^{\mathsf{T}} k ( x ) = μ ( x ; Ω v ) b 1 ( x ) T , with μ \mu μ the weighted centroid function given by (7) of the set Ω v \Omega_v Ω v as in (17), is C ℓ C^\ell C ℓ on S S S and satisfies a i ( x ) + b i ( x ) k ( x ) ≤ 0 a_i(x)+b_i(x)k(x)\le0 a i ( x ) + b i ( x ) k ( x ) ≤ 0 for i ∈ { 1 , 2 } i\in\{1,2\} i ∈ { 1 , 2 } .
Proof. Since a i a_i a i and b i b_i b i are C ℓ C^\ell C ℓ and b i ( x ) ≠ 0 b_i(x)\ne0 b i ( x ) = 0 , it follows that c c c and d d d as defined in (17) are C ℓ C^\ell C ℓ . The claim that resulting controller is C ℓ C^\ell C ℓ then follows directly from Lemma III.1. Furthermore, since μ ( x , Ω v ) \mu(x,\Omega_v) μ ( x , Ω v ) is the weighted centroid of a convex set, we have μ ( x , Ω v ) ∈ Ω v \mu(x,\Omega_v)\in\Omega_v μ ( x , Ω v ) ∈ Ω v and constraint satisfaction follows a similar argument to that in Theorem III.2. □
Proposition III.4. (Single Mirrored Pair with vanishing normals ): Let the conditions of Proposition III.3 hold with the exception of the assumption that b i ( x ) ≠ 0 b_i(x)\ne0 b i ( x ) = 0 for all x ∈ S x\in S x ∈ S (i.e., there may exist points where b i ( x ) = 0 b_i(x)=0 b i ( x ) = 0 ). Suppose the assumptions of Theorem III.2 hold with the changes of strict compatibility to between the maps { Ω 1 , Ω 2 } \{\Omega_1,\Omega_2\} { Ω 1 , Ω 2 } on S S S and the limit (13) to also hold as v → − ∞ v\to-\infty v → − ∞ . Then, the controller k ( x ) = μ ( x ; Ω v ) b 1 ( x ) T k(\mathbf{x})=\mu(\mathbf{x};\Omega_v)\mathbf{b}_1(\mathbf{x})^{\mathsf{T}} k ( x ) = μ ( x ; Ω v ) b 1 ( x ) T , with Ω v \Omega_v Ω v as in (17), is C 1 C^1 C 1 on S \mathcal{S} S and satisfies a i ( x ) + b i ( x ) k ( x ) ≤ 0 a_i(\mathbf{x})+\mathbf{b}_i(\mathbf{x})k(\mathbf{x})\leq0 a i ( x ) + b i ( x ) k ( x ) ≤ 0 for i ∈ { 1 , 2 } i\in\{1,2\} i ∈ { 1 , 2 } .
Proof. The proof follows the same steps as those in Theorem III.2 and is omitted for brevity.
Proposition III.4 is our first result towards extending our single constraint results to the multi-constraint setting. We now extend Sontag’s formula to mirrored constraints.
Example 4 (Mirrored Sontag’s formula). Using the results of this section, Sontag’s formula from Example 2 may be extended to handle mirrored constraints. We have:
∫ c ( x ) d ( x ) p s t g ( x , v ) d v = 1 2 ( d ( x ) d ( x ) 2 + 1 − c ( x ) c ( x ) 2 + 1 ) , \int_{c(\mathbf{x})}^{d(\mathbf{x})}p_{\mathrm{stg}}(\mathbf{x},v)\,\mathrm{d}v
=\frac{1}{2}\left(\frac{d(\mathbf{x})}{\sqrt{d(\mathbf{x})^2+1}}-\frac{c(\mathbf{x})}{\sqrt{c(\mathbf{x})^2+1}}\right), ∫ c ( x ) d ( x ) p stg ( x , v ) d v = 2 1 ( d ( x ) 2 + 1 d ( x ) − c ( x ) 2 + 1 c ( x ) ) ,
∫ c ( x ) d ( x ) v p s t g ( x , v ) d v = 1 2 ( 1 c ( x ) 2 + 1 − 1 d ( x ) 2 + 1 ) . \int_{c(\mathbf{x})}^{d(\mathbf{x})}v p_{\mathrm{stg}}(\mathbf{x},v)\,\mathrm{d}v
=\frac{1}{2}\left(\frac{1}{\sqrt{c(\mathbf{x})^2+1}}-\frac{1}{\sqrt{d(\mathbf{x})^2+1}}\right). ∫ c ( x ) d ( x ) v p stg ( x , v ) d v = 2 1 ( c ( x ) 2 + 1 1 − d ( x ) 2 + 1 1 ) .
yielding the weighted centroid for the case b 1 ( x ) ≠ 0 \mathbf{b}_1(\mathbf{x})\neq0 b 1 ( x ) = 0 and b 2 ( x ) ≠ 0 \mathbf{b}_2(\mathbf{x})\neq0 b 2 ( x ) = 0 , in the v v v -coordinate as:
μ m , v ( x ; Ω v ) = 1 c ( x ) 2 + 1 − 1 d ( x ) 2 + 1 d ( x ) d ( x ) 2 + 1 − c ( x ) c ( x ) 2 + 1 , (17) \mu_{\mathrm{m},v}(\mathbf{x};\Omega_v)
=
\frac{\dfrac{1}{\sqrt{c(\mathbf{x})^2+1}}-\dfrac{1}{\sqrt{d(\mathbf{x})^2+1}}}
{\dfrac{d(\mathbf{x})}{\sqrt{d(\mathbf{x})^2+1}}-\dfrac{c(\mathbf{x})}{\sqrt{c(\mathbf{x})^2+1}}}, \tag*{(17)} μ m , v ( x ; Ω v ) = d ( x ) 2 + 1 d ( x ) − c ( x ) 2 + 1 c ( x ) c ( x ) 2 + 1 1 − d ( x ) 2 + 1 1 , (17)
which is continuously differentiable by Proposition III.4 with ℓ = 1 \ell=1 ℓ = 1 . We now derive the formula in u \mathbf{u} u -coordinates as:
μ m ( x ; U ) = { 0 , b 1 ( x ) = b 2 ( x ) = 0 , μ s t g ( x ; Ω 1 ) , b 2 ( x ) = 0 , μ s t g ( x ; Ω 2 ) , b 1 ( x ) = 0 , μ m , v ( x ; Ω v ) b 1 ( x ) T , otherwise (18) \mu_{\mathrm{m}}(\mathbf{x};\mathcal{U})=
\begin{cases}
0, & \mathbf{b}_1(\mathbf{x})=\mathbf{b}_2(\mathbf{x})=0,\\
\mu_{\mathrm{stg}}(\mathbf{x};\Omega_1), & \mathbf{b}_2(\mathbf{x})=0,\\
\mu_{\mathrm{stg}}(\mathbf{x};\Omega_2), & \mathbf{b}_1(\mathbf{x})=0,\\
\mu_{\mathrm{m},v}(\mathbf{x};\Omega_v)\mathbf{b}_1(\mathbf{x})^{\mathsf{T}}, & \text{otherwise}
\end{cases} \tag*{(18)} μ m ( x ; U ) = ⎩ ⎨ ⎧ 0 , μ stg ( x ; Ω 1 ) , μ stg ( x ; Ω 2 ) , μ m , v ( x ; Ω v ) b 1 ( x ) T , b 1 ( x ) = b 2 ( x ) = 0 , b 2 ( x ) = 0 , b 1 ( x ) = 0 , otherwise (18)
where μ s t g \mu_{\mathrm{stg}} μ stg is defined in (11) . •
Proposition III.4 is limited to only two constraints that are mirrored due to an obstruction we discuss next.
Nonsmoothness from Constraint Switching
The smoothness requirement of the endpoint functions c c c and d d d in Lemma III.1 restricts the scope of our result. Even when all biases a i ′ a_i' a i ′ s and normals b i ′ b_i' b i ′ s are smooth, c c c and d d d may not be smooth. For example, consider the following collection of admissible control maps with b i ( x ) ≡ 1 \mathbf{b}_i(\mathbf{x})\equiv1 b i ( x ) ≡ 1 :
Ω 1 ( x ) = { u ∈ R ∣ u ≤ − a 1 ( x ) } \Omega_1(\mathbf{x})=\{u\in\mathbb{R}\mid u\leq-a_1(\mathbf{x})\} Ω 1 ( x ) = { u ∈ R ∣ u ≤ − a 1 ( x )}
Ω 2 ( x ) = { u ∈ R ∣ u ≤ − a 2 ( x ) } \Omega_2(\mathbf{x})=\{u\in\mathbb{R}\mid u\leq-a_2(\mathbf{x})\} Ω 2 ( x ) = { u ∈ R ∣ u ≤ − a 2 ( x )}
⟹ U ( x ) = { u ∈ R ∣ u ≤ min { − a 1 ( x ) , − a 2 ( x ) } } \Longrightarrow\mathcal{U}(\mathbf{x})=\{u\in\mathbb{R}\mid u\leq\min\{-a_1(\mathbf{x}),-a_2(\mathbf{x})\}\} ⟹ U ( x ) = { u ∈ R ∣ u ≤ min { − a 1 ( x ) , − a 2 ( x )}}
Here, d ( x ) = min { − a 1 ( x ) , − a 2 ( x ) } d(\mathbf{x})=\min\{-a_1(\mathbf{x}),-a_2(\mathbf{x})\} d ( x ) = min { − a 1 ( x ) , − a 2 ( x )} , which is not necessarily smooth if a 1 ( x ) = a 2 ( x ) a_1(\mathbf{x})=a_2(\mathbf{x}) a 1 ( x ) = a 2 ( x ) . This example illustrates how nonsmoothness can arise from switching in constraints that define the boundary of the feasible set. Such switching can occur when some of the constraint normals are linearly dependent.
The loss of smoothness is fundamentally driven by a constraint regularity issue, rather than simply the smoothness of individual constraint bias and normal functions. Such questions are classically studied in optimization via constraint qualification conditions. This connection is especially relevant in control, where optimization-based controllers are used to satisfy CLF and CBF constraints. In such settings, linear independence constraint qualification (LICQ) [31 ] guarantees the local Lipschitzness of the controller [5 ] . Although the weighted centroid construction does not rely on solving an optimization problem, the same geometric obstruction involving linear dependency appears, motivating our focus in the next section on constraints with linearly independent normals.
General Multiple-Constraint Cases
In this section, we generalize the weighted centroid methodology to an arbitrary number of admissible control maps. The main difficulty in establishing smoothness of the weighted centroid comes from the dependency of the domain of integration U ( x ) = ⋂ i ∈ I Ω i ( x ) \mathcal{U}(\mathbf{x})=\bigcap_{i\in\mathcal{I}}\Omega_i(\mathbf{x}) U ( x ) = ⋂ i ∈ I Ω i ( x ) on the state x \mathbf{x} x . In the single-input case, this dependency is handled using the Leibniz integral rule to analyze the derivatives, but such an approach does not extend easily to higher-dimensional input spaces.
We begin with the case where the constraint normals b i \mathbf{b}_i b i are linearly independent, allowing us to effectively decouple the constraints through a local coordinate transformation and apply the previous results. Then, we turn to the subtler linearly dependent case, where degeneracies arise, and show that we can recover smoothness with Gaussian weight functions.
Linearly Independent Constraint Normals
For a state x ∗ \mathbf{x}^* x ∗ , let A \mathcal{A} A be a set of indices where the constraint normals { b i ( x ∗ ) } i ∈ A \{\mathbf{b}_i(\mathbf{x}^*)\}_{i\in\mathcal{A}} { b i ( x ∗ ) } i ∈ A are linearly independent. Without loss of generality, relabel the indices so A = { 1 , … , ∣ A ∣ } \mathcal{A}=\{1,\ldots,|\mathcal{A}|\} A = { 1 , … , ∣ A ∣ } . Define:
a ( x ∗ ) = [ a 1 ( x ∗ ) ⋮ a ∣ A ∣ ( x ∗ ) ] , B ( x ∗ ) = [ b 1 ( x ∗ ) ⋮ b ∣ A ∣ ( x ∗ ) ] . \mathbf{a}(\mathbf{x}^*)=
\begin{bmatrix}
a_1(\mathbf{x}^*)\\
\vdots\\
a_{|\mathcal{A}|}(\mathbf{x}^*)
\end{bmatrix},
\qquad
\mathbf{B}(\mathbf{x}^*)=
\begin{bmatrix}
\mathbf{b}_1(\mathbf{x}^*)\\
\vdots\\
\mathbf{b}_{|\mathcal{A}|}(\mathbf{x}^*)
\end{bmatrix}. a ( x ∗ ) = a 1 ( x ∗ ) ⋮ a ∣ A ∣ ( x ∗ ) , B ( x ∗ ) = b 1 ( x ∗ ) ⋮ b ∣ A ∣ ( x ∗ ) .
Since the constraint normals { b i ( x ∗ ) } i ∈ A \{\mathbf{b}_i(\mathbf{x}^*)\}_{i\in\mathcal{A}} { b i ( x ∗ ) } i ∈ A are linearly independent, we can find a subset of standard unit vectors { e ^ j } ∣ A ∣ + 1 ≤ j ≤ m \{\hat{\mathbf{e}}_j\}_{|\mathcal{A}|+1\leq j\leq m} { e ^ j } ∣ A ∣ + 1 ≤ j ≤ m (relabeled without loss of generality) that completes the basis of R m \mathbb{R}^m R m at x ∗ \mathbf{x}^* x ∗ . By continuity, the row vectors { b i ( x ∗ ) } i ∈ A \{\mathbf{b}_i(\mathbf{x}^*)\}_{i\in\mathcal{A}} { b i ( x ∗ ) } i ∈ A together with { e ^ j } ∣ A ∣ + 1 ≤ j ≤ m \{\hat{\mathbf{e}}_j\}_{|\mathcal{A}|+1\leq j\leq m} { e ^ j } ∣ A ∣ + 1 ≤ j ≤ m remain linearly independent locally on a sufficiently small ball B δ ( x ∗ ) \mathcal{B}_\delta(\mathbf{x}^*) B δ ( x ∗ ) .
Applying the Gram–Schmidt orthogonalization process to the vectors { e ^ j } ∣ A ∣ + 1 ≤ j ≤ m \{\hat{\mathbf{e}}_j\}_{|\mathcal{A}|+1\leq j\leq m} { e ^ j } ∣ A ∣ + 1 ≤ j ≤ m relative to the constraint normals { b i ( x ) } i ∈ A \{\mathbf{b}_i(\mathbf{x})\}_{i\in\mathcal{A}} { b i ( x ) } i ∈ A for x ∈ B δ ( x ∗ ) \mathbf{x}\in\mathcal{B}_\delta(\mathbf{x}^*) x ∈ B δ ( x ∗ ) , we obtain smooth orthogonal vectors { T i ( x ; x ∗ ) } ∣ A ∣ + 1 ≤ i ≤ m \{\mathbf{T}_i(\mathbf{x};\mathbf{x}^*)\}_{|\mathcal{A}|+1\leq i\leq m} { T i ( x ; x ∗ ) } ∣ A ∣ + 1 ≤ i ≤ m . This yields a smooth local coordinate transformation matrix:
T ( x ; x ∗ ) = [ B ( x ) T ∣ A ∣ + 1 ( x ; x ∗ ) ⋮ T m ( x ; x ∗ ) ] , \mathbf{T}(\mathbf{x};\mathbf{x}^*)=
\begin{bmatrix}
\mathbf{B}(\mathbf{x})\\
\mathbf{T}_{|\mathcal{A}|+1}(\mathbf{x};\mathbf{x}^*)\\
\vdots\\
\mathbf{T}_m(\mathbf{x};\mathbf{x}^*)
\end{bmatrix}, T ( x ; x ∗ ) = B ( x ) T ∣ A ∣ + 1 ( x ; x ∗ ) ⋮ T m ( x ; x ∗ ) ,
for the following input transformation into a new coordinate:
w = [ a ( x ) 0 ] + T ( x ; x ∗ ) u . (19) \mathbf{w}=
\begin{bmatrix}
\mathbf{a}(\mathbf{x})\\
\mathbf{0}
\end{bmatrix}
+\mathbf{T}(\mathbf{x};\mathbf{x}^*)\mathbf{u}. \tag*{(19)} w = [ a ( x ) 0 ] + T ( x ; x ∗ ) u . (19)
Although the transformation is only valid locally, it is sufficient for establishing smoothness of the weighted centroid at x \mathbf{x} x . Particularly, the constraint map U A ( x ) = ⋂ i ∈ A Ω i ( x ) \mathcal{U}_{\mathcal{A}}(\mathbf{x})=\bigcap_{i\in\mathcal{A}}\Omega_i(\mathbf{x}) U A ( x ) = ⋂ i ∈ A Ω i ( x ) is constant in the state x \mathbf{x} x when expressed in the new coordinate:
Ω 0 = { w ∈ R m ∣ w i ≤ 0 , ∀ i ∈ A } , (20) \Omega_0=\{\mathbf{w}\in\mathbb{R}^m\mid w_i\leq0,\ \forall i\in\mathcal{A}\}, \tag*{(20)} Ω 0 = { w ∈ R m ∣ w i ≤ 0 , ∀ i ∈ A } , (20)
for each x ∈ B δ ( x ∗ ) \mathbf{x} \in\mathcal{B}_{\delta}(\mathbf{x}^{*}) x ∈ B δ ( x ∗ ) . Hence, we may express an integral of any smooth function ψ : R n × R m → R \psi: \mathbb{R}^{n} \times\mathbb{R}^{m} \to\mathbb{R} ψ : R n × R m → R in w \mathbf{w} w coordinates as
∫ U A ( x ) ψ ( x , u ) d u = ∫ Ω 0 ψ ( x , T − 1 ( x ; x ∗ ) ( w − [ a ( x ) 0 ] ) ) det ( T − 1 ( x ; x ∗ ) ) d w . \int_{\mathcal{U}_{\mathcal{A}}(\mathbf{x})} \psi(\mathbf{x},\mathbf{u})\,\mathrm{d}\mathbf{u}
=
\int_{\Omega_{0}} \psi\left(\mathbf{x},\mathbf{T}^{-1}(\mathbf{x};\mathbf{x}^{*})\left(\mathbf{w}-\begin{bmatrix}\mathbf{a}(\mathbf{x})\\0\end{bmatrix}\right)\right)\det\left(\mathbf{T}^{-1}(\mathbf{x};\mathbf{x}^{*})\right)\,\mathrm{d}\mathbf{w}. ∫ U A ( x ) ψ ( x , u ) d u = ∫ Ω 0 ψ ( x , T − 1 ( x ; x ∗ ) ( w − [ a ( x ) 0 ] ) ) det ( T − 1 ( x ; x ∗ ) ) d w .
With a constant domain of integration, the analysis of the smoothness of the weighted centroid simplifies as we can rely on the dominated convergence theorem to swap the order of differentiation and integration. As a result, we derive the following sufficient conditions that ensures smoothness.
Proposition IV.1. (Smoothness from Linear Independence ): Let A ⊆ [ q ] \mathcal{A} \subseteq[q] A ⊆ [ q ] be a subset of indices of the admissible control maps { Ω i } i ∈ [ q ] \{\Omega_i\}_{i\in[q]} { Ω i } i ∈ [ q ] in (5). Consider the weighted centroid (7) of the intersection U A ( x ) = ⋂ i ∈ A Ω i ( x ) \mathcal{U}_{\mathcal{A}}(\mathbf{x}) = \bigcap_{i\in\mathcal{A}}\Omega_i(\mathbf{x}) U A ( x ) = ⋂ i ∈ A Ω i ( x ) of admissible control maps with only indices from A \mathcal{A} A . Let x ∗ ∈ R n \mathbf{x}^{*} \in\mathbb{R}^{n} x ∗ ∈ R n . Assume that:
the functions { a i } i = 1 A \{a_i\}_{i=1}^{\mathcal{A}} { a i } i = 1 A , { b i } i = 1 A \{b_i\}_{i=1}^{\mathcal{A}} { b i } i = 1 A and p p p , are C ℓ C^{\ell} C ℓ ;
for every partial derivative ϕ ∈ D ℓ ( p ) \phi\in\mathcal{D}^{\ell}(p) ϕ ∈ D ℓ ( p ) of p p p , the integral:
∫ R m P ℓ + 1 ( u ) ϕ ( x , u ) d u (21) \int_{\mathbb{R}^{m}} \mathcal{P}^{\ell+1}(\mathbf{u})\phi(\mathbf{x},\mathbf{u})\,\mathrm{d}\mathbf{u} \tag*{(21)} ∫ R m P ℓ + 1 ( u ) ϕ ( x , u ) d u (21) converges for all x \mathbf{x} x , where P ℓ + 1 ( u ) \mathcal{P}^{\ell+1}(\mathbf{u}) P ℓ + 1 ( u ) denotes any ℓ + 1 \ell+1 ℓ + 1 -th order polynomial of u \mathbf{u} u ;
the constraint normals { b i ( x ∗ ) } i ∈ A \{\mathbf{b}_i(\mathbf{x}^{*})\}_{i\in\mathcal{A}} { b i ( x ∗ ) } i ∈ A are linearly independent.
Then μ ( ⋅ ; U A ) \mu(\cdot;\mathcal{U}_{\mathcal{A}}) μ ( ⋅ ; U A ) is C ℓ C^{\ell} C ℓ at x ∗ \mathbf{x}^{*} x ∗ . Thus, if the assumptions are satisfied with A = [ q ] \mathcal{A}=[q] A = [ q ] , the weighted centroid μ ( ⋅ ; U ) \mu(\cdot;\mathcal{U}) μ ( ⋅ ; U ) is C ℓ C^{\ell} C ℓ at x ∗ \mathbf{x}^{*} x ∗ .
Proof. To compute the derivatives of μ \mu μ defined in (7), we express the integrals in the w \mathbf{w} w coordinates where we may apply Lebesgue’s dominated convergence theorem [32 Thm. 1.34] to differentiate under the integral sign, after which we can convert back to the u \mathbf{u} u coordinates as follows:
∂ ∂ x i ∫ U A ( x ) ψ ( x , u ) d u = ∂ ∂ x i ( det ( T − 1 ( x ) ) ) ∫ Ω 0 ψ ( x , T − 1 ( x ) ( w − [ a ( x ) 0 ] ) ) d w + det ( T − 1 ( x ) ) [ ∫ Ω 0 ∂ ψ ∂ x i ( x , T − 1 ( x ) ( w − [ a ( x ) 0 ] ) ) d w + ∫ Ω 0 ∂ ψ ∂ u ( x , T − 1 ( x ) ( w − [ a ( x ) 0 ] ) ) × ( ∂ T − 1 ∂ x i ( x ) ( w − [ a ( x ) 0 ] ) − T − 1 ( x ) [ ∂ a ∂ x i ( x ) 0 ] ) d w ] = 1 det ( T − 1 ( x ) ) ∂ ∂ x i ( det ( T − 1 ( x ) ) ) ∫ U A ( x ) ψ ( x , u ) d u + ∫ U A ( x ) ∂ ψ ∂ x i ( x , u ) d u + ∫ U A ( x ) ∂ ψ ∂ u ( x , u ) × ( ∂ T − 1 ∂ x i ( x ) T ( x ) u − T − 1 ( x ) [ ∂ a ∂ x i ( x ) 0 ] ) d u . (22) \begin{aligned}
\frac{\partial}{\partial x_i}\int_{\mathcal{U}_{\mathcal{A}}(\mathbf{x})}\psi(\mathbf{x},\mathbf{u})\,\mathrm{d}\mathbf{u}
={}&\frac{\partial}{\partial x_i}\left(\det(\mathbf{T}^{-1}(\mathbf{x}))\right)\int_{\Omega_0}\psi\left(\mathbf{x},\mathbf{T}^{-1}(\mathbf{x})\left(\mathbf{w}-\begin{bmatrix}\mathbf{a}(\mathbf{x})\\0\end{bmatrix}\right)\right)\,\mathrm{d}\mathbf{w}\\
&+\det(\mathbf{T}^{-1}(\mathbf{x}))\left[\int_{\Omega_0}\frac{\partial\psi}{\partial x_i}\left(\mathbf{x},\mathbf{T}^{-1}(\mathbf{x})\left(\mathbf{w}-\begin{bmatrix}\mathbf{a}(\mathbf{x})\\0\end{bmatrix}\right)\right)\,\mathrm{d}\mathbf{w}\right.\\
&\left.\quad+\int_{\Omega_0}\frac{\partial\psi}{\partial\mathbf{u}}\left(\mathbf{x},\mathbf{T}^{-1}(\mathbf{x})\left(\mathbf{w}-\begin{bmatrix}\mathbf{a}(\mathbf{x})\\0\end{bmatrix}\right)\right)\right.\\
&\left.\quad\times\left(\frac{\partial\mathbf{T}^{-1}}{\partial x_i}(\mathbf{x})\left(\mathbf{w}-\begin{bmatrix}\mathbf{a}(\mathbf{x})\\0\end{bmatrix}\right)-\mathbf{T}^{-1}(\mathbf{x})\begin{bmatrix}\frac{\partial\mathbf{a}}{\partial x_i}(\mathbf{x})\\0\end{bmatrix}\right)\,\mathrm{d}\mathbf{w}\right]\\
={}&\frac{1}{\det(\mathbf{T}^{-1}(\mathbf{x}))}\frac{\partial}{\partial x_i}\left(\det(\mathbf{T}^{-1}(\mathbf{x}))\right)\int_{\mathcal{U}_{\mathcal{A}}(\mathbf{x})}\psi(\mathbf{x},\mathbf{u})\,\mathrm{d}\mathbf{u}\\
&+\int_{\mathcal{U}_{\mathcal{A}}(\mathbf{x})}\frac{\partial\psi}{\partial x_i}(\mathbf{x},\mathbf{u})\,\mathrm{d}\mathbf{u}
+\int_{\mathcal{U}_{\mathcal{A}}(\mathbf{x})}\frac{\partial\psi}{\partial\mathbf{u}}(\mathbf{x},\mathbf{u})\\
&\quad\times\left(\frac{\partial\mathbf{T}^{-1}}{\partial x_i}(\mathbf{x})\mathbf{T}(\mathbf{x})\mathbf{u}-\mathbf{T}^{-1}(\mathbf{x})\begin{bmatrix}\frac{\partial\mathbf{a}}{\partial x_i}(\mathbf{x})\\0\end{bmatrix}\right)\,\mathrm{d}\mathbf{u}. \tag*{(22)}
\end{aligned} ∂ x i ∂ ∫ U A ( x ) ψ ( x , u ) d u = = ∂ x i ∂ ( det ( T − 1 ( x )) ) ∫ Ω 0 ψ ( x , T − 1 ( x ) ( w − [ a ( x ) 0 ] ) ) d w + det ( T − 1 ( x )) [ ∫ Ω 0 ∂ x i ∂ ψ ( x , T − 1 ( x ) ( w − [ a ( x ) 0 ] ) ) d w + ∫ Ω 0 ∂ u ∂ ψ ( x , T − 1 ( x ) ( w − [ a ( x ) 0 ] ) ) × ( ∂ x i ∂ T − 1 ( x ) ( w − [ a ( x ) 0 ] ) − T − 1 ( x ) [ ∂ x i ∂ a ( x ) 0 ] ) d w ] det ( T − 1 ( x )) 1 ∂ x i ∂ ( det ( T − 1 ( x )) ) ∫ U A ( x ) ψ ( x , u ) d u + ∫ U A ( x ) ∂ x i ∂ ψ ( x , u ) d u + ∫ U A ( x ) ∂ u ∂ ψ ( x , u ) × ( ∂ x i ∂ T − 1 ( x ) T ( x ) u − T − 1 ( x ) [ ∂ x i ∂ a ( x ) 0 ] ) d u . (22)
Using the identity above, we find that repeated partial derivatives in x \mathbf{x} x result in a sum of integrals of partial derivatives ϕ ∈ D ℓ \phi\in\mathcal{D}^{\ell} ϕ ∈ D ℓ multiplying with polynomials in u \mathbf{u} u (whose coefficients depend smoothly on x \mathbf{x} x ). By the second assumption in the statement, these integrals converge to finite values. Hence, the partial derivatives exist and are continuous on B δ ( x ∗ ) \mathcal{B}_{\delta}(\mathbf{x}^{*}) B δ ( x ∗ ) . Consequently, μ \mu μ is smooth at x ∗ \mathbf{x}^{*} x ∗ . □
Given a weight function p p p with sufficient regularity (e.g., a Gaussian weight), Proposition IV.1 ensures the weighted centroid function μ \mu μ is smooth at any state x \mathbf{x} x for which { b i ( x ) } i ∈ [ q ] \{\mathbf{b}_i(\mathbf{x})\}_{i\in[q]} { b i ( x ) } i ∈ [ q ] are linearly independent. It is worth noting that this same assumption also makes it possible to select the “vertex” control obtained by solving a ( x ) + B ( x ) u = 0 \mathbf{a}(\mathbf{x})+\mathbf{B}(\mathbf{x})\mathbf{u}=0 a ( x ) + B ( x ) u = 0 , which is itself a smooth selection under linear independence. However, such a vertex control often requires unnecessarily large inputs or cancels beneficial dynamics when some a i ( x ) a_i(\mathbf{x}) a i ( x ) are already strictly negative. In contrast, the weighted centroid incorporates the distributional information encoded in p p p , biasing the controller toward more desirable regions of the admissible control set while still retaining smoothness.
Furthermore, the weighted centroid framework is flexible enough to handle certain linearly dependent cases where smoothness can still be recovered through appropriate coordinate transformation or weight-function design. We examine these structured cases next before addressing the fully degenerate situation in which some constraint normals b i ( x ) \mathbf{b}_i(\mathbf{x}) b i ( x ) vanish.
Structured Linearly Dependent Inequalities
A common source of linear dependence arises when inequality constraints appear in mirrored pairs, e.g., when certain quantities are constrained from both sides. Let A ⊆ [ q ] \mathcal{A} \subseteq[q] A ⊆ [ q ] denote the index set of “primary” constraints. We then assume that there is a subset I ⊆ + A \mathcal{I}^{+}_{\subseteq}\mathcal{A} I ⊆ + A such that each i + ∈ I + i^{+}\in\mathcal{I}^{+} i + ∈ I + has a unique mirrored counterpart indexed by i − ∉ A i^{-}\notin\mathcal{A} i − ∈ / A such that:
b i − ( x ) = − b i + ( x ) , ∀ x ∈ S . \mathbf{b}_{i^{-}}(\mathbf{x})=-\mathbf{b}_{i^{+}}(\mathbf{x}),\quad\forall\mathbf{x}\in\mathcal{S}. b i − ( x ) = − b i + ( x ) , ∀ x ∈ S .
We collect all such mirrored indices in the set I − \mathcal{I}^{-} I − . Although each mirrored pair of constraints indexed { i + , i − } \{i^{+},i^{-}\} { i + , i − } are linearly dependent, the associated halfspaces { Ω i + , Ω i − } \{\Omega_{i^{+}},\Omega_{i^{-}}\} { Ω i + , Ω i − } have a useful geometric decomposition that allows us to avoid dealing with their intersection directly. This is formalized next.
Lemma IV.2. (Decomposition of Mirrored Halfspaces ): Consider a pair of affine constraints a i − ( x ) + b i − ( x ) u ≤ 0 a_{i^{-}}(\mathbf{x})+\mathbf{b}_{i^{-}}(\mathbf{x})\mathbf{u}\leq0 a i − ( x ) + b i − ( x ) u ≤ 0 , i ∈ { i + , i − } i\in\{i^{+},i^{-}\} i ∈ { i + , i − } and suppose that these constraints are mirrored and strictly compatible at x \mathbf{x} x . Then the following identity holds:
Ω i + ( x ) ∩ Ω i − ( x ) = Ω i + ( x ) ∖ Ω i − c ( x ) . (23) \Omega_{i^{+}}(\mathbf{x})\cap\Omega_{i^{-}}(\mathbf{x})=\Omega_{i^{+}}(\mathbf{x})\setminus\Omega_{i^{-}}^{c}(\mathbf{x}). \tag*{(23)} Ω i + ( x ) ∩ Ω i − ( x ) = Ω i + ( x ) ∖ Ω i − c ( x ) . (23) Proof. Strict compatibility of the mirrored pair implies:
a i − ( x ) < b i + ( x ) u < − a i + ( x ) . a_{i^{-}}(\mathbf{x})<\mathbf{b}_{i^{+}}(\mathbf{x})\mathbf{u}<-a_{i^{+}}(\mathbf{x}). a i − ( x ) < b i + ( x ) u < − a i + ( x ) . Thus, the intersection of the complement sets Ω i + c ∩ Ω i − c \Omega_{i^{+}}^{c}\cap\Omega_{i^{-}}^{c} Ω i + c ∩ Ω i − c must be empty since, otherwise, there would exist a u \mathbf{u} u such that:
a i − ( x ) ≥ b i + ( x ) u ≥ − a i + ( x ) , a_{i^{-}}(\mathbf{x})\geq\mathbf{b}_{i^{+}}(\mathbf{x})\mathbf{u}\geq-a_{i^{+}}(\mathbf{x}), a i − ( x ) ≥ b i + ( x ) u ≥ − a i + ( x ) , which would be a contradiction. Consequently, we have:
Ω i − c ( x ) = ( Ω i + ( x ) ∩ Ω i − c ( x ) ) ∪ ( Ω i + c ( x ) ∩ Ω i − c ( x ) ) = Ω i + ( x ) ∩ Ω i − c ( x ) , \begin{aligned}
\Omega_{i^{-}}^{c}(\mathbf{x})
&=\left(\Omega_{i^{+}}(\mathbf{x})\cap\Omega_{i^{-}}^{c}(\mathbf{x})\right)\cup\left(\Omega_{i^{+}}^{c}(\mathbf{x})\cap\Omega_{i^{-}}^{c}(\mathbf{x})\right)\\
&=\Omega_{i^{+}}(\mathbf{x})\cap\Omega_{i^{-}}^{c}(\mathbf{x}),
\end{aligned} Ω i − c ( x ) = ( Ω i + ( x ) ∩ Ω i − c ( x ) ) ∪ ( Ω i + c ( x ) ∩ Ω i − c ( x ) ) = Ω i + ( x ) ∩ Ω i − c ( x ) ,
and therefore, we can decompose:
Ω i + ( x ) = ( Ω i + ( x ) ∩ Ω i − ( x ) ) ∪ ( Ω i + ( x ) ∩ Ω i − c ( x ) ) = ( Ω i + ( x ) ∩ Ω i − ( x ) ) ∪ Ω i − c ( x ) . \Omega_{i+}(x) = \left(\Omega_{i+}(x) \cap\Omega_{i-}(x)\right) \cup\left(\Omega_{i+}(x) \cap\Omega_{i-}^{c}(x)\right)
= \left(\Omega_{i+}(x) \cap\Omega_{i-}(x)\right) \cup\Omega_{i-}^{c}(x). Ω i + ( x ) = ( Ω i + ( x ) ∩ Ω i − ( x ) ) ∪ ( Ω i + ( x ) ∩ Ω i − c ( x ) ) = ( Ω i + ( x ) ∩ Ω i − ( x ) ) ∪ Ω i − c ( x ) .
Since Ω i + ( x ) ∩ Ω i − ( x ) \Omega_{i+}(x) \cap\Omega_{i-}(x) Ω i + ( x ) ∩ Ω i − ( x ) is a subset of Ω i − ( x ) \Omega_{i-}(x) Ω i − ( x ) , it is disjoint from Ω i − c ( x ) \Omega_{i-}^{c}(x) Ω i − c ( x ) . As such, we have the identity in (23).
Lemma IV.2 allows us to exploit the mirrored structure to simplify the region of integration. The identity in (23) shows that the intersection of a mirrored pair can be expressed as the difference of two individual halfspaces. Consequently, an integral over the feasible control map U ( x ) = ⋂ i ∈ A ∪ I − Ω i ( x ) \mathcal{U}(x) = \bigcap_{i\in A\cup I^-} \Omega_i(x) U ( x ) = ⋂ i ∈ A ∪ I − Ω i ( x ) can be equivalently decomposed into a combination (with additions and subtractions) of integrals, each taken over a region defined by only one constraint from each mirrored pair. As a result, we obtain the following smoothness property for weighted centroids of independent mirrored constraints.
Theorem IV.3. (Independent Mirrored Pairs): Let A ⊆ [ q ] A \subseteq[q] A ⊆ [ q ] be a subset of indices of the admissible control maps { Ω i } i ∈ [ q ] \{\Omega_i\}_{i\in[q]} { Ω i } i ∈ [ q ] in (5), let I + ⊆ A I^+ \subseteq A I + ⊆ A be a subset of indices that have unique mirrored counterparts, and let the set I − ⊂ [ q ] I^- \subset[q] I − ⊂ [ q ] denote those mirrored indices. Consider the weighted centroid (7) of the intersection U A ∪ I − ( x ) = ⋂ i ∈ A ∪ I − Ω i ( x ) \mathcal{U}_{A\cup I^-}(x) = \bigcap_{i\in A\cup I^-} \Omega_i(x) U A ∪ I − ( x ) = ⋂ i ∈ A ∪ I − Ω i ( x ) of admissible control maps with only indices from A ∪ I − A\cup I^- A ∪ I − . Assume that:
the functions a i a_i a i , b i b_i b i , ∀ i ∈ A ∪ I − \forall i \in A\cup I^- ∀ i ∈ A ∪ I − , and p p p , are C ℓ C^\ell C ℓ ;
for every partial derivative ϕ ∈ D ℓ ( p ) \phi\in\mathcal{D}^\ell(p) ϕ ∈ D ℓ ( p ) of p p p , the integral:
∫ R m P ℓ + 1 ( u ) ϕ ( x , u ) d u (24) \int_{\mathbb{R}^m} \mathcal{P}^{\ell+1}(u)\phi(x,u)\,\mathrm{d}u \tag*{(24)} ∫ R m P ℓ + 1 ( u ) ϕ ( x , u ) d u (24) converges for all x x x , where P ℓ + 1 ( u ) \mathcal{P}^{\ell+1}(u) P ℓ + 1 ( u ) denotes any ℓ + 1 \ell+1 ℓ + 1 -th order polynomial of $u;
the vectors { b i ( x ∗ ) } i ∈ A \{b_i(x^*)\}_{i\in A} { b i ( x ∗ ) } i ∈ A are linearly independent.
Then μ ( ⋅ ; U A ∪ I − ) \mu(\cdot;\mathcal{U}_{A\cup I^-}) μ ( ⋅ ; U A ∪ I − ) is C ℓ C^\ell C ℓ at x ∗ x^* x ∗ . Consequently, if the assumptions are satisfied with A ∪ I − = [ q ] A\cup I^- = [q] A ∪ I − = [ q ] , the weighted centroid μ ( ⋅ ; U ) \mu(\cdot;\mathcal{U}) μ ( ⋅ ; U ) is C ℓ C^\ell C ℓ at x ∗ x^* x ∗ .
Proof. Suppose i + ∈ I + i^+ \in I^+ i + ∈ I + and i − ∈ I − i^- \in I^- i − ∈ I − are indices corresponding to mirrored constraints. Then using Lemma IV.2, the region of integration is equivalently given by:
U A ∪ I − ( x ) = ⋂ i ∈ A ∪ I − Ω i ( x ) = ( ⋂ i ∈ ( A ∪ I − ) ∖ { i + , i − } Ω i ( x ) ) ∩ ( Ω i + ( x ) ∩ Ω i − ( x ) ) = ( ⋂ i ∈ ( A ∪ I − ) ∖ { i + , i − } Ω i ( x ) ) ∩ ( Ω i + ( x ) ∖ Ω i − c ( x ) ) = ( ⋂ i ∈ ( A ∪ I − ) ∖ { i − } Ω i ( x ) ) ∖ ( ⋂ i ∈ ( A ∪ I − ) ∖ { i + , i − } Ω i ( x ) ∩ Ω i − c ( x ) ) . \begin{aligned}
\mathcal{U}_{A\cup I^-}(x)
&= \bigcap_{i\in A\cup I^-} \Omega_i(x) \\
&= \left(\bigcap_{i\in(A\cup I^-)\setminus\{i^+,i^-\}} \Omega_i(x)\right) \cap\left(\Omega_{i+}(x)\cap\Omega_{i-}(x)\right) \\
&= \left(\bigcap_{i\in(A\cup I^-)\setminus\{i^+,i^-\}} \Omega_i(x)\right) \cap\left(\Omega_{i+}(x)\setminus\Omega_{i-}^{c}(x)\right) \\
&= \left(\bigcap_{i\in(A\cup I^-)\setminus\{i^-\}} \Omega_i(x)\right) \setminus\left(\bigcap_{i\in(A\cup I^-)\setminus\{i^+,i^-\}} \Omega_i(x)\cap\Omega_{i-}^{c}(x)\right).
\end{aligned} U A ∪ I − ( x ) = i ∈ A ∪ I − ⋂ Ω i ( x ) = i ∈ ( A ∪ I − ) ∖ { i + , i − } ⋂ Ω i ( x ) ∩ ( Ω i + ( x ) ∩ Ω i − ( x ) ) = i ∈ ( A ∪ I − ) ∖ { i + , i − } ⋂ Ω i ( x ) ∩ ( Ω i + ( x ) ∖ Ω i − c ( x ) ) = i ∈ ( A ∪ I − ) ∖ { i − } ⋂ Ω i ( x ) ∖ i ∈ ( A ∪ I − ) ∖ { i + , i − } ⋂ Ω i ( x ) ∩ Ω i − c ( x ) .
This is now expressed as a set difference between two regions, each of which involves one fewer mirrored constraint. Thus, the integration over U A ∪ I − ( x ) \mathcal{U}_{A\cup I^-}(x) U A ∪ I − ( x ) can be expressed as the difference between integrals over these two regions. The first region in the decomposition retains the index i + i^+ i + while eliminating its mirrored counterpart i − i^- i − , whereas the second region eliminates i + i^+ i + and instead introduces the complement halfspace Ω i − c ( x ) \Omega_{i^-}^{c}(x) Ω i − c ( x ) .
Note that the constraint normal associated with the complement halfspace Ω i − c ( x ) \Omega_{i^-}^{c}(x) Ω i − c ( x ) is − b i − ( x ) -b_{i^-}(x) − b i − ( x ) , which does not affect linear independence with respect to the remaining constraints.
Repeating the decoupling process for each mirrored pair yields a finite collection of regions of integration, each of which is defined solely by constraints with linearly independent normal vectors. The corresponding integrals are smooth with respect to x x x , as guaranteed by Proposition IV.1. Therefore, it follows that the corresponding weighted centroid is smooth.
Theorem IV.3 strengthens the earlier smoothness result obtained under strict linear independence in Proposition IV.1. It shows that smoothness of the weighted centroid can still be guaranteed even when some constraints are linearly dependent, provided that each dependent constraint appears as the unique mirrored counterpart of another constraint.
Example 5 (Triweight Formula for Input Bounds). Mirrored structures arise naturally when safety requires independent outputs to be bounded from both sides. However, when input bounds, such as box constraints, are introduced alongside these state-dependent constraints, linear independence among all constraints considered no longer holds. We now illustrate the flexibility of our framework to handle state-independent input bounds through the choice of the weight function p p p , enhancing the applicability of the results discussed in this section.
For simplicity, consider a single-input (m = 1 m=1 m = 1 ) system with a mirrored pair of constraints:
a 1 ( x ) + b 1 ( x ) u ≤ 0 , a 2 ( x ) − b 1 ( x ) u ≤ 0 , a_1(x)+b_1(x)u\leq0,\qquad a_2(x)-b_1(x)u\leq0, a 1 ( x ) + b 1 ( x ) u ≤ 0 , a 2 ( x ) − b 1 ( x ) u ≤ 0 ,
alongside an input bound ∣ u ∣ ≤ 1 |u|\leq1 ∣ u ∣ ≤ 1 . The collection of all four constraints does not meet the mirrored structure laid out in this section. Nevertheless, we may encode the state-independent constraint ∣ u ∣ ≤ 1 |u|\leq1 ∣ u ∣ ≤ 1 within the choice of the weight function, cf. Remark 1. In particular, we use here the triweight kernel:
p t r i ( u ) = { 35 32 ( 1 − u 2 ) 3 , ∣ u ∣ ≤ 1 , 0 , ∣ u ∣ > 1. p_{\mathrm{tri}}(u)=
\begin{cases}
\frac{35}{32}(1-u^2)^3, & |u|\leq1,\\
0, & |u|>1.
\end{cases} p tri ( u ) = { 32 35 ( 1 − u 2 ) 3 , 0 , ∣ u ∣ ≤ 1 , ∣ u ∣ > 1.
which is twice differentiable. Since the weighted centroid is computed over the support of p t r i p_{\mathrm{tri}} p tri , the input bound is automatically enforced without any additional constraint. As a result, the admissible control map reduces to the mirrored pair alone, and smoothness of the weighted centroid follows from Theorem IV.3. We obtain the following formula:
μ t r i ( x ) = u 2 2 − 3 u 4 4 + u 6 2 − u 8 8 ∣ u = d ˉ ( x ) u = c ˉ ( x ) u − u 3 + 3 u 5 5 − u 7 7 ∣ u = c ˉ ( x ) u = d ˉ ( x ) , \mu_{\mathrm{tri}}(x)=
\frac{
\left.\frac{u^2}{2}-\frac{3u^4}{4}+\frac{u^6}{2}-\frac{u^8}{8}\right|_{u=\bar d(x)}^{u=\bar c(x)}
}{
\left.u-u^3+\frac{3u^5}{5}-\frac{u^7}{7}\right|_{u=\bar c(x)}^{u=\bar d(x)}
}, μ tri ( x ) = u − u 3 + 5 3 u 5 − 7 u 7 u = c ˉ ( x ) u = d ˉ ( x ) 2 u 2 − 4 3 u 4 + 2 u 6 − 8 u 8 u = d ˉ ( x ) u = c ˉ ( x ) ,
c ( x ) = max ( min ( − a 1 ( x ) b 1 ( x ) , a 2 ( x ) b 1 ( x ) ) , − 1 ) , c(x)=\max\left(\min\left(-\frac{a_1(x)}{b_1(x)},\frac{a_2(x)}{b_1(x)}\right),-1\right), c ( x ) = max ( min ( − b 1 ( x ) a 1 ( x ) , b 1 ( x ) a 2 ( x ) ) , − 1 ) ,
d ˉ ( x ) = min ( max ( − a 1 ( x ) b 1 ( x ) , a 2 ( x ) b 1 ( x ) ) , 1 ) . \bar d(x)=\min\left(\max\left(-\frac{a_1(x)}{b_1(x)},\frac{a_2(x)}{b_1(x)}\right),1\right). d ˉ ( x ) = min ( max ( − b 1 ( x ) a 1 ( x ) , b 1 ( x ) a 2 ( x ) ) , 1 ) .
Despite the min and max, the formula is twice differentiable if the collection of all constraints is strictly compatible. •
Continuity when constraint normals vanish
We now consider the case in which linear independence fails at a state x ∗ x^{*} x ∗ because one or more constraint normals b i ( x ∗ ) b_i(x^{*}) b i ( x ∗ ) vanish. In this situation, the local coordinate transformation strategy used in the previous sections to render the domain of integration state-independent is no longer applicable, as the set of linearly independent b i ( x ∗ ) b_i(x^{*}) b i ( x ∗ ) 's is not uniform in any neighborhood of such points. As a result, the smoothness analysis of the weighted centroid cannot proceed directly from the smoothness of the integrand. Nevertheless, the weighted centroid is continuous at such points under mild assumptions.
Proposition IV.4. (Continuity of Integrals when normals are zero ): Consider system (1) subject to admissible control maps { Ω i } i ∈ [ q ] \{\Omega_i\}_{i\in[q]} { Ω i } i ∈ [ q ] in (5). Given x ∗ x^{*} x ∗ , define A ∗ = { i ∈ [ q ] ∣ b i ( x ∗ ) ≠ 0 } A^{*}=\{i\in[q]\mid b_i(x^{*})\ne0\} A ∗ = { i ∈ [ q ] ∣ b i ( x ∗ ) = 0 } as the set of indices with nonzero b i ( x ∗ ) b_i(x^{*}) b i ( x ∗ ) . Assume that:
a i a_i a i , b i b_i b i , ∀ i ∈ [ q ] \forall i\in[q] ∀ i ∈ [ q ] and p p p are continuous at x ∗ x^{*} x ∗ ;
there exist integrable functions Ξ 0 , Ξ 1 : R m → R ≥ 0 \Xi_0,\Xi_1:\mathbb{R}^{m}\to\mathbb{R}_{\ge0} Ξ 0 , Ξ 1 : R m → R ≥ 0 , depending only on u u u , such that ∣ p ( x , u ) ∣ ≤ Ξ 0 ( u ) |p(x,u)|\le\Xi_0(u) ∣ p ( x , u ) ∣ ≤ Ξ 0 ( u ) and ∥ u p ( x , u ) ∥ ≤ Ξ 1 ( u ) \|u p(x,u)\|\le\Xi_1(u) ∥ u p ( x , u ) ∥ ≤ Ξ 1 ( u ) uniformly on a neighborhood of x ∗ x^{*} x ∗ ;
the normals { b i ( x ∗ ) } i ∈ A ∗ \{b_i(x^{*})\}_{i\in A^{*}} { b i ( x ∗ ) } i ∈ A ∗ are linearly independent;
the maps { Ω i } i = 1 q \{\Omega_i\}_{i=1}^{q} { Ω i } i = 1 q are strictly compatible at x ∗ x^{*} x ∗ .
Then μ ( x ∗ ; U ) = μ ( x ∗ ; U A ∗ ) \mu(x^{*};\mathcal{U})=\mu(x^{*};\mathcal{U}_{A^{*}}) μ ( x ∗ ; U ) = μ ( x ∗ ; U A ∗ ) , and the weighted centroid μ ( ⋅ ; U ) \mu(\cdot;\mathcal{U}) μ ( ⋅ ; U ) is continuous at x ∗ x^{*} x ∗ .
Proof. We first show that U ( x ∗ ) = U A ∗ ( x ∗ ) \mathcal{U}(x^{*})=\mathcal{U}_{A^{*}}(x^{*}) U ( x ∗ ) = U A ∗ ( x ∗ ) . From the definition of A ∗ A^{*} A ∗ , we have b i ( x ∗ ) = 0 b_i(x^{*})=0 b i ( x ∗ ) = 0 for any index i ∈ [ q ] ∖ A ∗ i\in[q]\setminus A^{*} i ∈ [ q ] ∖ A ∗ . By strict compatibility at x ∗ x^{*} x ∗ , it follows that for each i ∈ [ q ] ∖ A ∗ i\in[q]\setminus A^{*} i ∈ [ q ] ∖ A ∗ :
a i ( x ∗ ) + b i ( x ∗ ) u = a i ( x ∗ ) < 0 , ∀ u ∈ R m . a_i(x^{*})+b_i(x^{*})u=a_i(x^{*})<0,\qquad\forall u\in\mathbb{R}^{m}. a i ( x ∗ ) + b i ( x ∗ ) u = a i ( x ∗ ) < 0 , ∀ u ∈ R m .
Therefore, the constraint indexed by i ∈ [ q ] ∖ A ∗ i\in[q]\setminus A^{*} i ∈ [ q ] ∖ A ∗ is satisfied trivially and Ω i ( x ∗ ) = R m \Omega_i(x^{*})=\mathbb{R}^{m} Ω i ( x ∗ ) = R m . Consequently:
U ( x ∗ ) = ⋂ i ∈ [ q ] Ω i ( x ∗ ) = ⋂ i ∈ A ∗ Ω i ( x ∗ ) = U A ∗ ( x ∗ ) , \mathcal{U}(x^{*})=\bigcap_{i\in[q]}\Omega_i(x^{*})=\bigcap_{i\in A^{*}}\Omega_i(x^{*})=\mathcal{U}_{A^{*}}(x^{*}), U ( x ∗ ) = i ∈ [ q ] ⋂ Ω i ( x ∗ ) = i ∈ A ∗ ⋂ Ω i ( x ∗ ) = U A ∗ ( x ∗ ) ,
which proves μ ( x ∗ ; U ) = μ ( x ∗ ; U A ∗ ) \mu(x^{*};\mathcal{U})=\mu(x^{*};\mathcal{U}_{A^{*}}) μ ( x ∗ ; U ) = μ ( x ∗ ; U A ∗ ) .
To establish continuity of the weighted centroid, it remains to show that the limit lim x → x ∗ μ ( x ; U ) \lim_{x\to x^{*}}\mu(x;\mathcal{U}) lim x → x ∗ μ ( x ; U ) exists and coincides with the value μ ( x ∗ ; U A ∗ ) \mu(x^{*};\mathcal{U}_{A^{*}}) μ ( x ∗ ; U A ∗ ) . For compactness of presentation, we first focus on the denominator of the weighted centroid (7) and, for any arbitrary set A ⊆ [ q ] A\subseteq[q] A ⊆ [ q ] , define:
η A ( x ) = ∫ U A ( x ) p ( x , u ) d u . \eta_A(x)=\int_{\mathcal{U}_A(x)}p(x,u)\,\mathrm{d}u. η A ( x ) = ∫ U A ( x ) p ( x , u ) d u .
Note that the denominator of (7) is precisely η [ q ] \eta_{[q]} η [ q ] .
Towards establishing continuity of η [ q ] \eta_{[q]} η [ q ] , we first show that η A ∗ \eta_{A^{*}} η A ∗ is continuous at x ∗ x^{*} x ∗ . Because the constraint normals { b i ( x ∗ ) } i ∈ A ∗ \{b_i(x^{*})\}_{i\in A^{*}} { b i ( x ∗ ) } i ∈ A ∗ are continuous and linearly independent at x ∗ x^{*} x ∗ , there exists a small δ 1 > 0 \delta_1>0 δ 1 > 0 such that all { b i ( x ) } i ∈ A ∗ \{b_i(x)\}_{i\in A^{*}} { b i ( x ) } i ∈ A ∗ remain nonzero and linearly independent for all x ∈ B δ 1 ( x ∗ ) x\in\mathcal{B}_{\delta_1}(x^{*}) x ∈ B δ 1 ( x ∗ ) . As a result, we may apply the corresponding smooth local coordinate transformation T ( x , x ∗ ) T(x,x^{*}) T ( x , x ∗ ) as in (20) to map to the w w w -coordinates, under which the domain of integration Ω 0 \Omega_0 Ω 0 is the same for all x ∈ B δ 1 ( x ∗ ) x\in\mathcal{B}_{\delta_1}(x^{*}) x ∈ B δ 1 ( x ∗ ) . Since the integrand p p p is continuous, it follows that η A ∗ \eta_{A^{*}} η A ∗ is continuous at x ∗ x^{*} x ∗ .
Next, we bound the difference:
∣ η A ∗ ( x ) − η [ q ] ( x ) ∣ ≤ ∫ U A ∗ ( x ) ∖ U ( x ) ∣ p ( x , u ) ∣ d u ≤ ∫ U A ∗ ( x ) ∖ U ( x ) Ξ 0 ( u ) d u \lvert\eta_{A^{*}}(x)-\eta_{[q]}(x)\rvert\le\int_{\mathcal{U}_{A^{*}}(x)\setminus\mathcal{U}(x)}\lvert p(x,u)\rvert\,\mathrm{d}u
\le\int_{\mathcal{U}_{A^{*}}(x)\setminus\mathcal{U}(x)}\Xi_0(u)\,\mathrm{d}u ∣ η A ∗ ( x ) − η [ q ] ( x )∣ ≤ ∫ U A ∗ ( x ) ∖ U ( x ) ∣ p ( x , u )∣ d u ≤ ∫ U A ∗ ( x ) ∖ U ( x ) Ξ 0 ( u ) d u
where the last inequality holds for all x ∈ B δ Ξ ( x ∗ ) x\in\mathcal{B}_{\delta_\Xi}(x^{*}) x ∈ B δ Ξ ( x ∗ ) with small δ Ξ > 0 \delta_\Xi>0 δ Ξ > 0 . We will show this term approaches zero as x → x ∗ x\to x^{*} x → x ∗ .
For any x x x , the set difference in the domain of integration can be conservatively bounded as:
U A ∗ ( x ) ∖ U ( x ) = U A ∗ ( x ) ∩ U ( x ) c = U A ∗ ( x ) ∩ ( ⋃ j ∈ [ q ] Ω j c ( x ) ) = U A ∗ ( x ) ∩ ( ⋃ j ∈ [ q ] ∖ A ∗ Ω j c ( x ) ) ⊆ ⋃ j ∈ [ q ] ∖ A ∗ Ω j c ( x ) . \mathcal{U}_{A^{*}}(x)\setminus\mathcal{U}(x)=\mathcal{U}_{A^{*}}(x)\cap\mathcal{U}(x)^{c}=\mathcal{U}_{A^{*}}(x)\cap\left(\bigcup_{j\in[q]}\Omega_j^{c}(x)\right)
=\mathcal{U}_{A^{*}}(x)\cap\left(\bigcup_{j\in[q]\setminus A^{*}}\Omega_j^{c}(x)\right)
\subseteq\bigcup_{j\in[q]\setminus A^{*}}\Omega_j^{c}(x). U A ∗ ( x ) ∖ U ( x ) = U A ∗ ( x ) ∩ U ( x ) c = U A ∗ ( x ) ∩ j ∈ [ q ] ⋃ Ω j c ( x ) = U A ∗ ( x ) ∩ j ∈ [ q ] ∖ A ∗ ⋃ Ω j c ( x ) ⊆ j ∈ [ q ] ∖ A ∗ ⋃ Ω j c ( x ) .
Here, for each j j j , the complement set can be bounded as:
Ω j c ( x ) = { u ∈ R m ∣ a j ( x ) + b j ( x ) u > 0 } ⊆ { u ∈ R m ∣ ∥ b j ( x ) ∥ ∥ u ∥ > − a j ( x ) } . \Omega_j^{c}(x)=\left\{u\in\mathbb{R}^{m}\mid a_j(x)+b_j(x)u>0\right\}
\subseteq\left\{u\in\mathbb{R}^{m}\mid\lVert b_j(x)\rVert\lVert u\rVert>-a_j(x)\right\}. Ω j c ( x ) = { u ∈ R m ∣ a j ( x ) + b j ( x ) u > 0 } ⊆ { u ∈ R m ∣ ∥ b j ( x )∥ ∥ u ∥ > − a j ( x ) } .
Since b j ( x ∗ ) = 0 b_j(x^{*})=0 b j ( x ∗ ) = 0 and b j b_j b j is continuous for each j ∈ [ q ] ∖ A ∗ j\in[q]\setminus A^{*} j ∈ [ q ] ∖ A ∗ , we have that for any ϵ b > 0 \epsilon_b>0 ϵ b > 0 , there exists δ 2 > 0 \delta_2>0 δ 2 > 0 such that ∥ b j ( x ) ∥ < ϵ b \lVert b_j(x)\rVert<\epsilon_b ∥ b j ( x )∥ < ϵ b for all x ∈ B δ 2 ( x ∗ ) x\in\mathcal{B}_{\delta_2}(x^{*}) x ∈ B δ 2 ( x ∗ ) and all j ∈ [ q ] ∖ A ∗ j\in[q]\setminus A^{*} j ∈ [ q ] ∖ A ∗ .
We then introduce a common lower bound on − a j ( x ) -a_j(x) − a j ( x ) for all j ∈ [ q ] ∖ A ∗ j\in[q]\setminus A^{*} j ∈ [ q ] ∖ A ∗ :
a ˉ = min j ∈ [ q ] ∖ A ∗ inf x ∈ B δ 2 ( x ∗ ) − a j ( x ) . \bar{a}=\min_{j\in[q]\setminus A^{*}}\inf_{x\in\mathcal{B}_{\delta_2}(x^{*})}-a_j(x). a ˉ = j ∈ [ q ] ∖ A ∗ min x ∈ B δ 2 ( x ∗ ) inf − a j ( x ) .
Note that because strict compatibility at x ∗ x^{*} x ∗ implies a j ( x ∗ ) < 0 a_j(x^{*})<0 a j ( x ∗ ) < 0 for all j ∈ [ q ] ∖ A ∗ j\in[q]\setminus A^{*} j ∈ [ q ] ∖ A ∗ , we can pick δ 2 \delta_2 δ 2 sufficiently small so that a ˉ \bar{a} a ˉ is positive. Consequently, we derive:
Ω j c ( x ) ⊆ { u ∈ R m ∣ ∥ u ∥ > a ˉ / ϵ b } , \Omega_j^{c}(x)\subseteq\left\{u\in\mathbb{R}^{m}\mid\lVert u\rVert>\bar{a}/\epsilon_b\right\}, Ω j c ( x ) ⊆ { u ∈ R m ∣ ∥ u ∥ > a ˉ / ϵ b } ,
for all x ∈ B δ 2 ( x ∗ ) x\in\mathcal{B}_{\delta_2}(x^{*}) x ∈ B δ 2 ( x ∗ ) and all j ∈ [ q ] ∖ A ∗ j\in[q]\setminus A^{*} j ∈ [ q ] ∖ A ∗ . Since the superset is common for all j ∈ [ q ] ∖ A ∗ j\in[q]\setminus A^{*} j ∈ [ q ] ∖ A ∗ , their union is also contained within the superset:
⋃ j ∈ [ q ] ∖ A ∗ Ω j c ( x ) ⊆ { u ∈ R m ∣ ∥ u ∥ > a ˉ / ϵ b } . \bigcup_{j\in[q]\setminus A^{*}}\Omega_j^{c}(x)\subseteq\left\{u\in\mathbb{R}^{m}\mid\lVert u\rVert>\bar{a}/\epsilon_b\right\}. j ∈ [ q ] ∖ A ∗ ⋃ Ω j c ( x ) ⊆ { u ∈ R m ∣ ∥ u ∥ > a ˉ / ϵ b } .
Thus, we further bound the difference:
∣ η A ∗ ( x ) − η [ q ] ( x ) ∣ ≤ ∫ { u ∈ R m ∣ ∥ u ∥ ≥ a ˉ / ϵ b } Ξ 0 ( u ) d u . \lvert\eta_{A^{*}}(x)-\eta_{[q]}(x)\rvert\le\int_{\{u\in\mathbb{R}^{m}\mid\lVert u\rVert\ge\bar{a}/\epsilon_b\}}\Xi_0(u)\,\mathrm{d}u. ∣ η A ∗ ( x ) − η [ q ] ( x )∣ ≤ ∫ { u ∈ R m ∣ ∥ u ∥ ≥ a ˉ / ϵ b } Ξ 0 ( u ) d u .
Since Ξ 0 \Xi_0 Ξ 0 is integrable and non-negative, the integral evaluates to smaller values as ϵ b \epsilon_b ϵ b decreases, independent of the state x x x . Given any ϵ > 0 \epsilon>0 ϵ > 0 , there exists ϵ b \epsilon_b ϵ b and a corresponding δ : = min { δ 2 , δ Ξ } \delta:=\min\{\delta_2,\delta_\Xi\} δ := min { δ 2 , δ Ξ } such that we can bound the difference ∣ η A ∗ ( x ) − η [ q ] ( x ) ∣ < ϵ \lvert\eta_{A^{*}}(x)-\eta_{[q]}(x)\rvert<\epsilon ∣ η A ∗ ( x ) − η [ q ] ( x )∣ < ϵ for all x ∈ B δ ( x ∗ ) x\in\mathcal{B}_{\delta}(x^{*}) x ∈ B δ ( x ∗ ) . As a result, the function η A ∗ − η [ q ] \eta_{A^{*}}-\eta_{[q]} η A ∗ − η [ q ] converges to zero at x ∗ x^{*} x ∗ . Since η A ∗ \eta_{A^{*}} η A ∗ is continuous at x ∗ x^{*} x ∗ , we derive lim x → x ∗ η [ q ] ( x ) = η A ∗ ( x ∗ ) \lim_{x\to x^{*}}\eta_{[q]}(x)=\eta_{A^{*}}(x^{*}) lim x → x ∗ η [ q ] ( x ) = η A ∗ ( x ∗ ) . An analogous argument applies to the numerator of (7), using Ξ 1 \Xi_1 Ξ 1 for each component of the integrand u i p ( x , u ) u_i p(x,u) u i p ( x , u ) . Therefore, the limit lim x → x ∗ μ ( x ; U ) \lim_{x\to x^{*}}\mu(x;\mathcal{U}) lim x → x ∗ μ ( x ; U ) exists and coincides with the value μ ( x ∗ ; U A ∗ ) \mu(x^{*};\mathcal{U}_{A^{*}}) μ ( x ∗ ; U A ∗ ) , establishing that the weighted centroid μ ( ⋅ ; U ) \mu(\cdot;\mathcal{U}) μ ( ⋅ ; U ) is continuous at x ∗ x^{*} x ∗ , concluding the proof. □ \square □
Proposition IV.4 establishes continuity of the weighted centroid at states where some b i b_i b i 's vanish, under an additional assumption on the uniform integrability of the weight function. This assumption ensures the tails of the integrands are uniformly controlled in a neighborhood of x ∗ x^{*} x ∗ . For a general choice of p p p , this assumption may not hold. Nevertheless, since the weight function is a design choice, this assumption is not restrictive in practice. For instance, we can select weights that are simply independent of the state, or adopt structured families such as Gaussian weights with continuously varying covariance like (10), which satisfy the assumption. In the next section, we show that Gaussian weights admit additional structure that enables stronger smoothness results.
Gaussian Weights: Beyond Continuity
This section investigates the use of Gaussian weights to handle the case with two (q = 2 q = 2 q = 2 ) admissible control maps. Throughout this section, we assume the feasible set Ω 1 ( x ) ∩ Ω 2 ( x ) \Omega_1(x) \cap\Omega_2(x) Ω 1 ( x ) ∩ Ω 2 ( x ) is nonempty for all x x x under consideration. Consider the multivariate Gaussian distribution with a diagonal covariance matrix Σ ( x ) = σ ( x ) 2 I m \Sigma(x) = \sigma(x)^2 I_m Σ ( x ) = σ ( x ) 2 I m , where σ ( x ) > 0 \sigma(x) > 0 σ ( x ) > 0 :
p g a u m = ( ( 2 π ) − 1 2 σ ( x ) ) m exp ( − u T u 2 σ ( x ) 2 ) . (25) p_{\mathrm{gau}}^m = \left((2\pi)^{-\frac{1}{2}}\sigma(x)\right)^m \exp\left(-\frac{\mathbf{u}^{\mathsf{T}}\mathbf{u}}{2\sigma(x)^2}\right). \tag*{(25)} p gau m = ( ( 2 π ) − 2 1 σ ( x ) ) m exp ( − 2 σ ( x ) 2 u T u ) . (25)
When the number of admissible control maps is two (q = 2 q = 2 q = 2 ), the weighted centroid (7) using this p g a u m p_{\mathrm{gau}}^m p gau m as its weight function:
μ g a u ( x ; Ω 1 ∩ Ω 2 ) = ∫ Ω 1 ( x ) ∩ Ω 2 ( x ) u p g a u m ( x , u ) d u ∫ Ω 1 ( x ) ∩ Ω 2 ( x ) p g a u m ( x , u ) d u \mu_{\mathrm{gau}}(x;\Omega_1\cap\Omega_2) = \frac{\int_{\Omega_1(x)\cap\Omega_2(x)} \mathbf{u}p_{\mathrm{gau}}^m(x,\mathbf{u})\,\mathrm{d}\mathbf{u}}{\int_{\Omega_1(x)\cap\Omega_2(x)}p_{\mathrm{gau}}^m(x,\mathbf{u})\,\mathrm{d}\mathbf{u}} μ gau ( x ; Ω 1 ∩ Ω 2 ) = ∫ Ω 1 ( x ) ∩ Ω 2 ( x ) p gau m ( x , u ) d u ∫ Ω 1 ( x ) ∩ Ω 2 ( x ) u p gau m ( x , u ) d u
admits a closed-form solution (see also [33 ] ).
For brevity, define the standardized margins ζ i ( x ) = − a i ( x ) / ( σ ( x ) ∥ b i ( x ) ∥ ) \zeta_i(x) = -a_i(x)/(\sigma(x)\lVert b_i(x)\rVert) ζ i ( x ) = − a i ( x ) / ( σ ( x ) ∥ b i ( x )∥) and the correlation ρ ( x ) = b 1 ( x ) T b 2 ( x ) / ( ∥ b 1 ( x ) ∥ ∥ b 2 ( x ) ∥ ) \rho(x) = b_1(x)^{\mathsf{T}}b_2(x)/(\lVert b_1(x)\rVert\lVert b_2(x)\rVert) ρ ( x ) = b 1 ( x ) T b 2 ( x ) / (∥ b 1 ( x )∥ ∥ b 2 ( x )∥) between the two constraint normals b 1 b_1 b 1 and b 2 b_2 b 2 . In addition, let ( ζ 1 , ζ 2 ) ↦ Φ 2 ( ζ 1 , ζ 2 ; G ( x ) ) (\zeta_1,\zeta_2) \mapsto\Phi^2(\zeta_1,\zeta_2;G(x)) ( ζ 1 , ζ 2 ) ↦ Φ 2 ( ζ 1 , ζ 2 ; G ( x )) denote the cumulative distribution function (CDF) of the zero-mean bivariate normal distribution with covariance matrix:
G ( x ) = [ 1 ρ ( x ) ρ ( x ) 1 ] . G(x) = \begin{bmatrix} 1 & \rho(x) \\ \rho(x) & 1 \end{bmatrix}. G ( x ) = [ 1 ρ ( x ) ρ ( x ) 1 ] .
With this setup, the Gaussian-weighted centroid is given by:
μ g a u ( x ; Ω 1 ∩ Ω 2 ) = { 0 , b 1 ( x ) = 0 , b 2 ( x ) = 0 , μ g a u ( x ; Ω 1 ) , b 1 ( x ) ≠ 0 , b 2 ( x ) = 0 , μ g a u ( x ; Ω 2 ) , b 1 ( x ) = 0 , b 2 ( x ) ≠ 0 , μ 12 ( x ; Ω 1 ∩ Ω 2 ) , b 1 ( x ) ≠ 0 , b 2 ( x ) ≠ 0. (26) \mu_{\mathrm{gau}}(x;\Omega_1\cap\Omega_2) =
\begin{cases}
0, & b_1(x)=0,b_2(x)=0,\\
\mu_{\mathrm{gau}}(x;\Omega_1), & b_1(x)\ne0,b_2(x)=0,\\
\mu_{\mathrm{gau}}(x;\Omega_2), & b_1(x)=0,b_2(x)\ne0,\\
\mu_{12}(x;\Omega_1\cap\Omega_2), & b_1(x)\ne0,b_2(x)\ne0.
\end{cases} \tag*{(26)} μ gau ( x ; Ω 1 ∩ Ω 2 ) = ⎩ ⎨ ⎧ 0 , μ gau ( x ; Ω 1 ) , μ gau ( x ; Ω 2 ) , μ 12 ( x ; Ω 1 ∩ Ω 2 ) , b 1 ( x ) = 0 , b 2 ( x ) = 0 , b 1 ( x ) = 0 , b 2 ( x ) = 0 , b 1 ( x ) = 0 , b 2 ( x ) = 0 , b 1 ( x ) = 0 , b 2 ( x ) = 0. (26)
where:
μ g a u ( x ; Ω i ) ≜ − σ b i T ∥ b i ∥ p g a u 1 ( ζ i ) Φ ( ζ i ) , \mu_{\mathrm{gau}}(x;\Omega_i) \triangleq-\sigma\frac{b_i^{\mathsf{T}}}{\lVert b_i\rVert}\frac{p_{\mathrm{gau}}^1(\zeta_i)}{\Phi(\zeta_i)}, μ gau ( x ; Ω i ) ≜ − σ ∥ b i ∥ b i T Φ ( ζ i ) p gau 1 ( ζ i ) ,
μ 12 ( x ; Ω 1 ∩ Ω 2 ) ≜ { − σ Φ 2 ( ζ 1 , ζ 2 ; G ) ( b 1 T ∥ b 1 ∥ p g a u 1 ( ζ 1 ) Φ ( ζ 2 − ρ ζ 1 1 − ρ 2 ) + b 2 T ∥ b 2 ∥ p g a u 1 ( ζ 2 ) Φ ( ζ 1 − ρ ζ 2 1 − ρ 2 ) ) , ρ ≠ ± 1 , σ b 1 T ∥ b 1 ∥ p g a u 1 ( − ζ 2 ) − p g a u 1 ( ζ 1 ) Φ ( ζ 1 ) − Φ ( − ζ 2 ) , ρ = − 1 , − σ b 1 T ∥ b 1 ∥ max { p g a u 1 ( ζ 1 ) Φ ( ζ 1 ) , p g a u 1 ( ζ 2 ) Φ ( ζ 2 ) } , ρ = 1. \mu_{12}(x;\Omega_1\cap\Omega_2) \triangleq
\begin{cases}
-\dfrac{\sigma}{\Phi^2(\zeta_1,\zeta_2;G)}
\left(\dfrac{b_1^{\mathsf{T}}}{\lVert b_1\rVert}p_{\mathrm{gau}}^1(\zeta_1)\Phi\left(\dfrac{\zeta_2-\rho\zeta_1}{\sqrt{1-\rho^2}}\right)
+\dfrac{b_2^{\mathsf{T}}}{\lVert b_2\rVert}p_{\mathrm{gau}}^1(\zeta_2)\Phi\left(\dfrac{\zeta_1-\rho\zeta_2}{\sqrt{1-\rho^2}}\right)\right), & \rho\ne\pm1,\\
\sigma\frac{b_1^{\mathsf{T}}}{\lVert b_1\rVert}\frac{p_{\mathrm{gau}}^1(-\zeta_2)-p_{\mathrm{gau}}^1(\zeta_1)}{\Phi(\zeta_1)-\Phi(-\zeta_2)}, & \rho=-1,\\
-\sigma\frac{b_1^{\mathsf{T}}}{\lVert b_1\rVert}\max\left\{\frac{p_{\mathrm{gau}}^1(\zeta_1)}{\Phi(\zeta_1)},\frac{p_{\mathrm{gau}}^1(\zeta_2)}{\Phi(\zeta_2)}\right\}, & \rho=1.
\end{cases} μ 12 ( x ; Ω 1 ∩ Ω 2 ) ≜ ⎩ ⎨ ⎧ − Φ 2 ( ζ 1 , ζ 2 ; G ) σ ( ∥ b 1 ∥ b 1 T p gau 1 ( ζ 1 ) Φ ( 1 − ρ 2 ζ 2 − ρ ζ 1 ) + ∥ b 2 ∥ b 2 T p gau 1 ( ζ 2 ) Φ ( 1 − ρ 2 ζ 1 − ρ ζ 2 ) ) , σ ∥ b 1 ∥ b 1 T Φ ( ζ 1 ) − Φ ( − ζ 2 ) p gau 1 ( − ζ 2 ) − p gau 1 ( ζ 1 ) , − σ ∥ b 1 ∥ b 1 T max { Φ ( ζ 1 ) p gau 1 ( ζ 1 ) , Φ ( ζ 2 ) p gau 1 ( ζ 2 ) } , ρ = ± 1 , ρ = − 1 , ρ = 1.
Here, for brevity, we have omitted the dependency on x x x for the functions a i a_i a i , b i b_i b i , ζ i \zeta_i ζ i , σ \sigma σ , ρ \rho ρ , and G G G used above. The closed-form expressions (26) above allow us to directly characterize the regularity of the weighted centroid under Gaussian weights.
Proposition IV.5. (Smoothness of Gaussian-weighted centroid): Consider the weighted centroid function (7) associated with two admissible control maps { Ω 1 , Ω 2 } \{\Omega_1,\Omega_2\} { Ω 1 , Ω 2 } of the form (5), under the Gaussian weight function (25). Assume that:
a i a_i a i , b i b_i b i , and σ \sigma σ are C 2 C^2 C 2 ;
the maps { Ω 1 , Ω 2 } \{\Omega_1,\Omega_2\} { Ω 1 , Ω 2 } are strictly compatible at each x x x .
Then the Gaussian-weighted centroid is C 1 C^1 C 1 for all x x x such that ρ ( x ) ≠ 1 \rho(x)\ne1 ρ ( x ) = 1 .
Proof. The claim follows by inspection of (26). For each case where ρ ( x ) ≠ 1 \rho(x)\ne1 ρ ( x ) = 1 , the expression is a composition of smooth functions of a i ( x ) a_i(x) a i ( x ) , b i ( x ) b_i(x) b i ( x ) , and σ ( x ) \sigma(x) σ ( x ) , together with the Gaussian PDF and CDF, and is therefore smooth in x x x on the corresponding region. In addition, the limiting behavior as ρ ( x ) → − 1 \rho(x)\to-1 ρ ( x ) → − 1 and as b i ( x ) → 0 b_i(x)\to0 b i ( x ) → 0 matches the corresponding case in (26), yielding smooth transitions across these boundaries. The exponential decay of the Gaussian ensures that all derivatives of the closed-form expression remain bounded in the limits b i ( x ) → 0 b_i(x)\to0 b i ( x ) → 0 and ρ ( x ) → − 1 \rho(x)\to-1 ρ ( x ) → − 1 , since derivatives introduce at most polynomial growth in ζ i ( x ) \zeta_i(x) ζ i ( x ) , which is dominated by the Gaussian exponential term (cf. Theorem III.2). □ \square □
The only source of nonsmoothness in the Gaussian weighted centroid μ g a u \mu_{\mathrm{gau}} μ gau arises in the case ρ ( x ) = 1 \rho(x)=1 ρ ( x ) = 1 , due to the presence of the maximum operator. To eliminate this nonsmoothness, we introduce a smooth surrogate defined as the sum of the single-constraint Gaussian centroids:
μ s u m ( x ; Ω 1 ∩ Ω 2 ) ≜ μ g a u ( x ; Ω 1 ) + μ g a u ( x ; Ω 2 ) (27) \mu_{\mathrm{sum}}(x;\Omega_1\cap\Omega_2) \triangleq\mu_{\mathrm{gau}}(x;\Omega_1)+\mu_{\mathrm{gau}}(x;\Omega_2) \tag*{(27)} μ sum ( x ; Ω 1 ∩ Ω 2 ) ≜ μ gau ( x ; Ω 1 ) + μ gau ( x ; Ω 2 ) (27)
By construction, this function is smooth for all x x x , so long as the constraints satisfy strict compatibility. However, it does not necessarily satisfy both constraints. The following result shows that it is admissible whenever ρ ( x ) ≥ 0 \rho(x)\ge0 ρ ( x ) ≥ 0 .
Lemma IV.6. (Admissibility of μ s u m \mu_{\mathrm{sum}} μ sum ): Consider two admissible control maps { Ω 1 , Ω 2 } \{\Omega_1,\Omega_2\} { Ω 1 , Ω 2 } of the form (5), and let μ s u m \mu_{\mathrm{sum}} μ sum be defined by (27). Then μ s u m ( x ) ∈ Ω 1 ( x ) ∩ Ω 2 ( x ) \mu_{\mathrm{sum}}(x)\in\Omega_1(x)\cap\Omega_2(x) μ sum ( x ) ∈ Ω 1 ( x ) ∩ Ω 2 ( x ) for each x x x such that ρ ( x ) ≥ 0 \rho(x)\ge0 ρ ( x ) ≥ 0 .
Proof. Since ρ ( x ) ≥ 0 \rho(x)\ge0 ρ ( x ) ≥ 0 , the products b 1 ( x ) μ g a u ( x ; Ω 2 ) ≤ 0 b_1(x)\mu_{\mathrm{gau}}(x;\Omega_2)\le0 b 1 ( x ) μ gau ( x ; Ω 2 ) ≤ 0 and b 2 ( x ) μ g a u ( x ; Ω 1 ) ≤ 0 b_2(x)\mu_{\mathrm{gau}}(x;\Omega_1)\le0 b 2 ( x ) μ gau ( x ; Ω 1 ) ≤ 0 are nonpositive. Thus, we deduce for each i ∈ { 1 , 2 } i\in\{1,2\} i ∈ { 1 , 2 } ,
a i ( x ) + b i ( x ) μ s u m ( x ; Ω 1 ∩ Ω 2 ) ≤ a i ( x ) + b i ( x ) μ g a u ( x ; Ω i ) . a_i(x)+b_i(x)\mu_{\mathrm{sum}}(x;\Omega_1\cap\Omega_2)\le a_i(x)+b_i(x)\mu_{\mathrm{gau}}(x;\Omega_i). a i ( x ) + b i ( x ) μ sum ( x ; Ω 1 ∩ Ω 2 ) ≤ a i ( x ) + b i ( x ) μ gau ( x ; Ω i ) .
Since μ g a u ( x ; Ω i ) ∈ Ω i ( x ) \mu_{\mathrm{gau}}(x;\Omega_i)\in\Omega_i(x) μ gau ( x ; Ω i ) ∈ Ω i ( x ) (because it is a weighted centroid of the set [29 p. 25] ), we have:
a i ( x ) + b i ( x ) μ g a u ( x ; Ω i ) ≤ 0. a_i(x)+b_i(x)\mu_{\mathrm{gau}}(x;\Omega_i)\le0. a i ( x ) + b i ( x ) μ gau ( x ; Ω i ) ≤ 0.
Hence, we conclude μ s u m ( x ) ∈ Ω i ( x ) \mu_{\mathrm{sum}}(x)\in\Omega_i(x) μ sum ( x ) ∈ Ω i ( x ) for i ∈ { 1 , 2 } i\in\{1,2\} i ∈ { 1 , 2 } . □ \square □
Since the surrogate μ s u m \mu_{\mathrm{sum}} μ sum is admissible whenever ρ ( x ) ≥ 0 \rho(x)\ge0 ρ ( x ) ≥ 0 , we construct a globally smooth Gaussian-weighted centroid by smoothly transitioning from μ g a u \mu_{\mathrm{gau}} μ gau to μ s u m \mu_{\mathrm{sum}} μ sum over ρ ( x ) ∈ [ 0 , 1 ] \rho(x)\in[0,1] ρ ( x ) ∈ [ 0 , 1 ] . Let s : R → [ 0 , 1 ] s:\mathbb{R}\to[0,1] s : R → [ 0 , 1 ] be a C ∞ C^\infty C ∞ transition function satisfying:
s ( r ) = 0 for r ≤ 0 , s ( r ) = 1 for r ≥ 1 , s(r)=0\ \text{for }r\le0,\qquad s(r)=1\ \text{for }r\ge1, s ( r ) = 0 for r ≤ 0 , s ( r ) = 1 for r ≥ 1 ,
One example of this is given by:
s ( r ) = { 0 , r ≤ 0 , ( 1 + e 1 / r e 1 / ( 1 − r ) ) − 1 , 0 < r < 1 , 1 , r ≥ 1. (28) s(r)=
\begin{cases}
0, & r\le0,\\
\left(1+\dfrac{e^{1/r}}{e^{1/(1-r)}}\right)^{-1}, & 0<r<1,\\
1, & r\ge1.
\end{cases} \tag*{(28)} s ( r ) = ⎩ ⎨ ⎧ 0 , ( 1 + e 1/ ( 1 − r ) e 1/ r ) − 1 , 1 , r ≤ 0 , 0 < r < 1 , r ≥ 1. (28)
We then define the selection function:
k ( x ) ≜ ( 1 − s ( ρ ( x ) ) ) μ g a u ( x ; Ω 1 ∩ Ω 2 ) + s ( ρ ( x ) ) μ s u m ( x ) . (29) \mathbf{k}(\mathbf{x}) \triangleq(1-s(\rho(\mathbf{x})))\boldsymbol{\mu}_{\mathrm{gau}}(\mathbf{x};\Omega_1\cap\Omega_2)+s(\rho(\mathbf{x}))\boldsymbol{\mu}_{\mathrm{sum}}(\mathbf{x}). \tag*{(29)} k ( x ) ≜ ( 1 − s ( ρ ( x ))) μ gau ( x ; Ω 1 ∩ Ω 2 ) + s ( ρ ( x )) μ sum ( x ) . (29)
The following result shows that k \mathbf{k} k is smooth for all x \mathbf{x} x , and satisfies both constraints.
Proposition IV.7. (Selection function via transition: ): Consider two admissible control maps { Ω 1 , Ω 2 } \{\Omega_1,\Omega_2\} { Ω 1 , Ω 2 } of the form (5). Let the selection function k : R n → R m \mathbf{k}:\mathbb{R}^n\to\mathbb{R}^m k : R n → R m be defined by (29). The function k \mathbf{k} k satisfies both constraints at each x \mathbf{x} x , i.e., k ( x ) ∈ Ω 1 ( x ) ∩ Ω 2 ( x ) \mathbf{k}(\mathbf{x})\in\Omega_1(\mathbf{x})\cap\Omega_2(\mathbf{x}) k ( x ) ∈ Ω 1 ( x ) ∩ Ω 2 ( x ) . Moreover, assume that:
a i a_i a i , b i b_i b i , and σ \sigma σ are C ℓ C^\ell C ℓ ;
the maps { Ω 1 , Ω 2 } \{\Omega_1,\Omega_2\} { Ω 1 , Ω 2 } are strictly compatible at each x \mathbf{x} x .
Then the selection function k \mathbf{k} k is C ℓ C^\ell C ℓ .
Proof. If ρ ( x ) < 0 \rho(\mathbf{x})<0 ρ ( x ) < 0 , then k ( x ) = μ g a u ( x ; Ω 1 ∩ Ω 2 ) \mathbf{k}(\mathbf{x})=\boldsymbol{\mu}_{\mathrm{gau}}(\mathbf{x};\Omega_1\cap\Omega_2) k ( x ) = μ gau ( x ; Ω 1 ∩ Ω 2 ) , which lies in Ω 1 ( x ) ∩ Ω 2 ( x ) \Omega_1(\mathbf{x})\cap\Omega_2(\mathbf{x}) Ω 1 ( x ) ∩ Ω 2 ( x ) since it is a weighted centroid of that convex set [29 p. 25] . If ρ ( x ) ≥ 0 \rho(\mathbf{x})\ge0 ρ ( x ) ≥ 0 , then k ( x ) \mathbf{k}(\mathbf{x}) k ( x ) is a convex combination of μ g a u ( x ; Ω 1 ∩ Ω 2 ) \boldsymbol{\mu}_{\mathrm{gau}}(\mathbf{x};\Omega_1\cap\Omega_2) μ gau ( x ; Ω 1 ∩ Ω 2 ) and μ s u m ( x ) \boldsymbol{\mu}_{\mathrm{sum}}(\mathbf{x}) μ sum ( x ) , both of which belong to the intersection Ω 1 ( x ) ∩ Ω 2 ( x ) \Omega_1(\mathbf{x})\cap\Omega_2(\mathbf{x}) Ω 1 ( x ) ∩ Ω 2 ( x ) (cf. Lemma IV.6 for μ s u m \boldsymbol{\mu}_{\mathrm{sum}} μ sum ). Since the intersection Ω 1 ( x ) ∩ Ω 2 ( x ) \Omega_1(\mathbf{x})\cap\Omega_2(\mathbf{x}) Ω 1 ( x ) ∩ Ω 2 ( x ) is convex, it follows that k ( x ) \mathbf{k}(\mathbf{x}) k ( x ) must lie in the set. Smoothness follows from Proposition IV.5, the smoothness of the transition function s s s , and the smoothness of μ s u m \boldsymbol{\mu}_{\mathrm{sum}} μ sum under strict compatibility (ζ i → + ∞ \zeta_i\to+\infty ζ i → + ∞ as b i → 0 b_i\to0 b i → 0 ). □
By introducing the surrogate μ s u m \boldsymbol{\mu}_{\mathrm{sum}} μ sum and blending it with the original Gaussian-weighted centroid, we obtain a globally smooth selection function k \mathbf{k} k that remains admissible for all x \mathbf{x} x . This construction preserves the geometric interpretation of the weighted centroid while eliminating nonsmooth behavior.
Corollaries for Stabilization and Safety
The previous sections presented general results for constructing smooth feedback controllers enforcing classes of affine input constraints. We now specialize these results to the setting of stabilization and safety with CLFs and CBFs. In particular, this section provides the precise statements on how the proposed weighted centroid method yields smooth stabilizing and/or safeguarding controller designs.
Safety Filtering with CBFs
We begin by considering safety filtering using CBFs. The objective is typically to modify a given nominal controller k d ( x ) \mathbf{k}_{d}(\mathbf{x}) k d ( x ) while ensuring that the resulting control input satisfies the CBF constraint (4), which is a sufficient condition for forward invariance of the safe set S \mathcal{S} S defined in (3).
The following result applies the weighted centroid methodology for a single affine constraint, as developed in Sec. III-C.
Corollary V.1. (Safeguarding Formulas: ): Let h h h be a CBF for (1) on a set S \mathcal{S} S as in (3). Given a C ℓ C^\ell C ℓ nominal controller k d : R n → R m \mathbf{k}_d:\mathbb{R}^n\to\mathbb{R}^m k d : R n → R m , let a 1 ( x ) = − L f h ( x ) − L g h ( x ) k d ( x ) − α h ( h ( x ) ) a_1(\mathbf{x})=-L_fh(\mathbf{x})-L_gh(\mathbf{x})\mathbf{k}_d(\mathbf{x})-\alpha_h(h(\mathbf{x})) a 1 ( x ) = − L f h ( x ) − L g h ( x ) k d ( x ) − α h ( h ( x )) and b 1 ( x ) = − L g h ( x ) b_1(\mathbf{x})=-L_gh(\mathbf{x}) b 1 ( x ) = − L g h ( x ) . If the assumptions on a 1 a_1 a 1 , b 1 b_1 b 1 , and p p p , in Theorem III.2 hold, then the controller k : R n → R m \mathbf{k}:\mathbb{R}^n\to\mathbb{R}^m k : R n → R m defined in (14) yields a feedback law u = k d ( x ) + k ( x ) \mathbf{u}=\mathbf{k}_d(\mathbf{x})+\mathbf{k}(\mathbf{x}) u = k d ( x ) + k ( x ) that is C ℓ C^\ell C ℓ on S \mathcal{S} S and renders S \mathcal{S} S forward invariant.
Proof. Define the coordinate transformation with u = k d ( x ) + u ~ \mathbf{u}=\mathbf{k}_d(\mathbf{x})+\tilde{\mathbf{u}} u = k d ( x ) + u ~ where u ~ ∈ R m \tilde{\mathbf{u}}\in\mathbb{R}^m u ~ ∈ R m represents the control adjustment to k d ( x ) \mathbf{k}_d(\mathbf{x}) k d ( x ) . Consider the nonlinear system given by:
x ˙ = f ( x ) + g ( x ) k d ( x ) + g ( x ) u ~ . \dot{\mathbf{x}}=\mathbf{f}(\mathbf{x})+\mathbf{g}(\mathbf{x})\mathbf{k}_d(\mathbf{x})+\mathbf{g}(\mathbf{x})\tilde{\mathbf{u}}. x ˙ = f ( x ) + g ( x ) k d ( x ) + g ( x ) u ~ .
The forward invariance result follows from applying Theorem III.2 to this equivalent system. □
This result recovers a smooth safety filter for a single CBF constraint. Alternative solutions for this problem are well documented [21 ] and can, for instance, be obtained via Sontag-type formulas, see Example 2. The strength of the weighted centroid methodology is more apparent when multiple constraints are present. To this end, we now consider multiple mirrored constraints with linearly independent normals.
Corollary V.2. (Linearly Independent Mirrored CBFs: ): Let { h i } i = 1 q \{h_i\}_{i=1}^{q} { h i } i = 1 q be CBFs for (1) defining safe sets { S i } i = 1 q \{\mathcal{S}_i\}_{i=1}^{q} { S i } i = 1 q as in (3). Given a C ℓ C^\ell C ℓ nominal controller k d : R n → R m \mathbf{k}_d:\mathbb{R}^n\to\mathbb{R}^m k d : R n → R m , define the function a i ( x ) = − L f h i ( x ) − L g h i ( x ) k d ( x ) − α h i ( h i ( x ) ) a_i(\mathbf{x})=-L_fh_i(\mathbf{x})-L_gh_i(\mathbf{x})\mathbf{k}_d(\mathbf{x})-\alpha_{h_i}(h_i(\mathbf{x})) a i ( x ) = − L f h i ( x ) − L g h i ( x ) k d ( x ) − α h i ( h i ( x )) and b i ( x ) = − L g h i ( x ) b_i(\mathbf{x})=-L_gh_i(\mathbf{x}) b i ( x ) = − L g h i ( x ) , for each i ∈ [ q ] i\in[q] i ∈ [ q ] . If the assumptions on a i a_i a i , b i b_i b i , and p p p , in Theorem IV.3 hold, then the controller μ ( ⋅ ; ∩ i = 1 q Ω i ( x ) ) \boldsymbol{\mu}(\cdot;\cap_{i=1}^{q}\Omega_i(\mathbf{x})) μ ( ⋅ ; ∩ i = 1 q Ω i ( x )) based on the weighted centroid of the admissible control map { Ω i } i = 1 q \{\Omega_i\}_{i=1}^{q} { Ω i } i = 1 q defined in (5) yields a feedback law u = k d ( x ) + μ ( x ; ∩ i = 1 q Ω i ( x ) ) \mathbf{u}=\mathbf{k}_d(\mathbf{x})+\boldsymbol{\mu}(\mathbf{x};\cap_{i=1}^{q}\Omega_i(\mathbf{x})) u = k d ( x ) + μ ( x ; ∩ i = 1 q Ω i ( x )) that is C ℓ C^\ell C ℓ on S = ∩ i ∈ [ q ] S i \mathcal{S}=\cap_{i\in[q]}\mathcal{S}_i S = ∩ i ∈ [ q ] S i and renders S \mathcal{S} S forward invariant. ■
Corollary V.2 applies to collections of mirrored CBF constraints with linearly independent normals, while accommodating the dependent case of mirrored constraints. Although this assumption may appear restrictive, it is often satisfied in practice. In particular, the commonly used optimal-decay formulation [34 , 35 ] introduces auxiliary variables that render the resulting constraint normals linearly independent for states in the interior of the safe set. Specifically, instead of enforcing the standard CBF constraint in (4), the formulation uses:
L f h ( x ) + L g h ( x ) u > − ω α h ( h ( x ) ) L_fh(\mathbf{x})+L_gh(\mathbf{x})\mathbf{u}>-\omega\alpha_h(h(\mathbf{x})) L f h ( x ) + L g h ( x ) u > − ω α h ( h ( x ))
where ω ∈ R ≥ 0 \omega\in\mathbb{R}_{\ge0} ω ∈ R ≥ 0 is an auxiliary control variable. This reformulation yields linear independence of the CBF constraint normals but introduces the additional constraint ω ≥ 0 \omega\ge0 ω ≥ 0 . Nevertheless, this additional constraint is state-independent and can be handled within our framework through an appropriate choice of the weighting function p p p ’s support, cf. Example 5.
Stabilization with CLFs
We now turn to the problem of stabilization using CLFs. The weighted centroid methodology yields a smooth stabilizing controller on R n ∖ { 0 } \mathbb{R}^n\setminus\{0\} R n ∖ { 0 } , as stated in the following result.
Corollary V.3. (Stabilizing Formulas: ): Let V V V be a CLF for (1) and define the admissible control map Ω v \Omega_v Ω v as in (14) with a 1 ( x ) = L f V ( x ) + α ( V ( x ) ) a_1(\mathbf{x})=L_fV(\mathbf{x})+\alpha(V(\mathbf{x})) a 1 ( x ) = L f V ( x ) + α ( V ( x )) and b 1 ( x ) = L g V ( x ) b_1(\mathbf{x})=L_gV(\mathbf{x}) b 1 ( x ) = L g V ( x ) , and let p p p be any weight function satisfying the hypotheses of Theorem III.2. Provided a 1 , b 1 ∈ C ℓ a_1,b_1\in C^\ell a 1 , b 1 ∈ C ℓ , then the controller u = k ( x ) \mathbf{u}=\mathbf{k}(\mathbf{x}) u = k ( x ) , with k \mathbf{k} k as in (14), is C ℓ C^\ell C ℓ on R n ∖ { 0 } \mathbb{R}^n\setminus\{0\} R n ∖ { 0 } and renders the origin globally asymptotically stable. ■
Corollary V.3 establishes asymptotic stability using the CLF constraint on R n ∖ { 0 } \mathbb{R}^n\setminus\{0\} R n ∖ { 0 } together with the convention k ( 0 ) = 0 \mathbf{k}(0)=0 k ( 0 ) = 0 . In contrast to the CBF setting, applying the weighted centroid methodology to CLF-based stabilization requires additional care near the origin x = 0 \mathbf{x}=0 x = 0 . The issue arises from the fact that strict feasibility of the CLF constraint (2) fails at the origin. Indeed, since L f V ( 0 ) = 0 L_fV(0)=0 L f V ( 0 ) = 0 and L g V ( 0 ) = 0 L_gV(0)=0 L g V ( 0 ) = 0 , the inequality cannot be satisfied strictly at x = 0 \mathbf{x}=0 x = 0 . Thus, the weighted centroid μ \boldsymbol{\mu} μ , while smooth on R n ∖ { 0 } \mathbb{R}^n\setminus\{0\} R n ∖ { 0 } , may fail to be continuous at the origin. This mirrors a classical result: Sontag’s universal formula, the canonical smooth stabilizing controller, is also only guaranteed to be continuous at the origin under the small control property .
Definition 6. (Small Control Property ): A CLF V V V satisfies the small control property if for every ϵ > 0 \epsilon>0 ϵ > 0 , there exists δ > 0 \delta>0 δ > 0 such that if x ≠ 0 \mathbf{x}\ne0 x = 0 and ∥ x ∥ < δ \lVert\mathbf{x}\rVert<\delta ∥ x ∥ < δ , there exists u ∈ R m \mathbf{u}\in\mathbb{R}^m u ∈ R m with ∥ u ∥ < ϵ \lVert\mathbf{u}\rVert<\epsilon ∥ u ∥ < ϵ such that:
L f V ( x ) + L g V ( x ) u < − α ( V ( x ) ) . L_fV(\mathbf{x})+L_gV(\mathbf{x})\mathbf{u}<-\alpha(V(\mathbf{x})). L f V ( x ) + L g V ( x ) u < − α ( V ( x )) .
The small control property is in fact necessary for the existence of any continuous controller satisfying the CLF constraint locally at the origin, as any such controller k \mathbf{k} k with k ( 0 ) = 0 \mathbf{k}(0)=0 k ( 0 ) = 0 must take arbitrarily small values near the origin while still satisfying the CLF constraint.
To leverage the small control property, our approach involves modifying the weight function by introducing a state-dependent scaling on the control input u \mathbf{u} u . The idea is motivated by the Gaussian weight p g a u 1 p_{\mathrm{gau}}^1 p gau 1 in (10) with a smooth positive definite state-dependent standard deviation σ : R n → R ≥ 0 \sigma:\mathbb{R}^n\to\mathbb{R}_{\geq0} σ : R n → R ≥ 0 satisfying σ ( 0 ) = 0 \sigma(0)=0 σ ( 0 ) = 0 and σ ( x ) > 0 \sigma(\mathbf{x})>0 σ ( x ) > 0 elsewhere. As x → 0 \mathbf{x}\to0 x → 0 , the standard deviation σ ( x ) → 0 \sigma(\mathbf{x})\to0 σ ( x ) → 0 concentrates the Gaussian weight near u = 0 \mathbf{u}=0 u = 0 , pulling the weighted centroid toward the origin. Effectively, the weighted centroid approaches a min-norm selection near the origin, which is known to be continuous under the small control property, as shown below. This intuition motivates the conditions in the following result that enables continuity at the origin.
Theorem V.4. (Continuity at the Origin ): Let V V V be a CLF for a single-input (m = 1 m=1 m = 1 ) control-affine system (1) satisfying the small control property. Define a 1 ( x ) = L f V ( x ) + α ( V ( x ) ) a_1(\mathbf{x})=L_fV(\mathbf{x})+\alpha(V(\mathbf{x})) a 1 ( x ) = L f V ( x ) + α ( V ( x )) and b 1 ( x ) = L g V ( x ) b_1(\mathbf{x})=L_gV(\mathbf{x}) b 1 ( x ) = L g V ( x ) . Let p 0 : R → R ≥ 0 p_0:\mathbb{R}\to\mathbb{R}_{\geq0} p 0 : R → R ≥ 0 be a C 1 C^1 C 1 weight function such that v ↦ p 0 ( v ) v\mapsto p_0(v) v ↦ p 0 ( v ) is integrable and v ↦ v p 0 ( v ) v\mapsto vp_0(v) v ↦ v p 0 ( v ) is integrable with ∫ − ∞ ∞ v p 0 ( v ) d v = 0 \int_{-\infty}^{\infty}vp_0(v)\,dv=0 ∫ − ∞ ∞ v p 0 ( v ) d v = 0 . Let σ : R n → R ≥ 0 \sigma:\mathbb{R}^n\to\mathbb{R}_{\geq0} σ : R n → R ≥ 0 be a smooth positive definite function satisfying σ ( 0 ) = 0 \sigma(0)=0 σ ( 0 ) = 0 . Define the scaled weight p ( x , v ) = p 0 ( v / σ ( x ) ) p(\mathbf{x},v)=p_0(v/\sigma(\mathbf{x})) p ( x , v ) = p 0 ( v / σ ( x )) and let μ \boldsymbol{\mu} μ be the weighted centroid controller (7) under p p p applied to the admissible control map Ω 1 ( x ) = { v ∈ R ∣ a 1 ( x ) + b 1 ( x ) v ≤ 0 } \Omega_1(\mathbf{x})=\{v\in\mathbb{R}\mid a_1(\mathbf{x})+b_1(\mathbf{x})v\leq0\} Ω 1 ( x ) = { v ∈ R ∣ a 1 ( x ) + b 1 ( x ) v ≤ 0 } . If Ω 1 \Omega_1 Ω 1 is strictly compatible on R n ∖ { 0 } \mathbb{R}^n\setminus\{0\} R n ∖ { 0 } and the following tail limits on the weight:
lim v → ± ∞ p 0 ( v ) + v d p 0 d v ( v ) 2 p 0 ( v ) + v d p 0 d v ( v ) = R ± (30) \lim_{v\to\pm\infty}\frac{p_0(v)+v\frac{dp_0}{dv}(v)}{2p_0(v)+v\frac{dp_0}{dv}(v)}=R^{\pm} \tag*{(30)} v → ± ∞ lim 2 p 0 ( v ) + v d v d p 0 ( v ) p 0 ( v ) + v d v d p 0 ( v ) = R ± (30) are finite for some R − , R + > 0 R^-,R^+>0 R − , R + > 0 , then μ \boldsymbol{\mu} μ is continuous at x = 0 \mathbf{x}=0 x = 0 with μ ( 0 ) = 0 \boldsymbol{\mu}(0)=0 μ ( 0 ) = 0 .
Proof. From strict compatibility, μ ( x ) = 0 \boldsymbol{\mu}(\mathbf{x})=0 μ ( x ) = 0 when b 1 ( x ) = 0 b_1(\mathbf{x})=0 b 1 ( x ) = 0 and x ≠ 0 \mathbf{x}\ne0 x = 0 . For the remainder of this proof, we assume without loss of generality (relying on the corresponding limit R − R^- R − or R + R^+ R + ) that b 1 ( x ) > 0 b_1(\mathbf{x})>0 b 1 ( x ) > 0 .
With d σ ( x ) = − a 1 ( x ) / ( σ ( x ) b 1 ( x ) ) \mathrm{d}^{\sigma}(\mathbf{x})=-a_1(\mathbf{x})/(\sigma(\mathbf{x})b_1(\mathbf{x})) d σ ( x ) = − a 1 ( x ) / ( σ ( x ) b 1 ( x )) and the substitution w = v / σ ( x ) w=v/\sigma(\mathbf{x}) w = v / σ ( x ) , the weighted centroid simplifies to:
μ ( x ) = σ ( x ) ∫ − ∞ d σ ( x ) w p 0 ( w ) d w ∫ − ∞ d σ ( x ) p 0 ( w ) d w ≜ σ ( x ) μ σ ( d σ ( x ) ) \mu(\mathbf{x})=\sigma(\mathbf{x})\frac{\int_{-\infty}^{\mathrm{d}^{\sigma}(\mathbf{x})}wp_0(w)\,dw}{\int_{-\infty}^{\mathrm{d}^{\sigma}(\mathbf{x})}p_0(w)\,dw}\triangleq\sigma(\mathbf{x})\mu^{\sigma}(\mathrm{d}^{\sigma}(\mathbf{x})) μ ( x ) = σ ( x ) ∫ − ∞ d σ ( x ) p 0 ( w ) d w ∫ − ∞ d σ ( x ) w p 0 ( w ) d w ≜ σ ( x ) μ σ ( d σ ( x )) where d σ ( x ) = − a 1 ( x ) / ( σ ( x ) b 1 ( x ) ) \mathrm{d}^{\sigma}(\mathbf{x})=-a_1(\mathbf{x})/(\sigma(\mathbf{x})b_1(\mathbf{x})) d σ ( x ) = − a 1 ( x ) / ( σ ( x ) b 1 ( x )) and μ σ : R → R \mu^{\sigma}:\mathbb{R}\to\mathbb{R} μ σ : R → R is the truncated mean of p 0 p_0 p 0 as a function of the upper limit d σ \mathrm{d}^{\sigma} d σ .
We further observe that μ σ \mu^{\sigma} μ σ is monotonically increasing in d σ \mathrm{d}^{\sigma} d σ , since:
d μ σ d d σ = d σ p 0 ( d σ ) ∫ − ∞ d σ p 0 ( w ) d w − p 0 ( d σ ) ∫ − ∞ d σ w p 0 ( w ) d w ( ∫ − ∞ d σ p 0 ( w ) d w ) 2 \frac{d\mu^{\sigma}}{d\mathrm{d}^{\sigma}}=
\frac{\mathrm{d}^{\sigma}p_0(\mathrm{d}^{\sigma})\int_{-\infty}^{\mathrm{d}^{\sigma}}p_0(w)\,dw-p_0(\mathrm{d}^{\sigma})\int_{-\infty}^{\mathrm{d}^{\sigma}}wp_0(w)\,dw}{\left(\int_{-\infty}^{\mathrm{d}^{\sigma}}p_0(w)\,dw\right)^2} d d σ d μ σ = ( ∫ − ∞ d σ p 0 ( w ) d w ) 2 d σ p 0 ( d σ ) ∫ − ∞ d σ p 0 ( w ) d w − p 0 ( d σ ) ∫ − ∞ d σ w p 0 ( w ) d w = p 0 ( d σ ) ∫ − ∞ d σ p 0 ( w ) d w ( d σ − μ σ ( d σ ) ) ≥ 0 , =\frac{p_0(\mathrm{d}^{\sigma})}{\int_{-\infty}^{\mathrm{d}^{\sigma}}p_0(w)\,dw}\left(\mathrm{d}^{\sigma}-\mu^{\sigma}(\mathrm{d}^{\sigma})\right)\geq0, = ∫ − ∞ d σ p 0 ( w ) d w p 0 ( d σ ) ( d σ − μ σ ( d σ ) ) ≥ 0 , where the inequality holds because d σ ≥ μ σ ( d σ ) \mathrm{d}^{\sigma}\geq\mu^{\sigma}(\mathrm{d}^{\sigma}) d σ ≥ μ σ ( d σ ) , as μ σ ( d σ ) \mu^{\sigma}(\mathrm{d}^{\sigma}) μ σ ( d σ ) is the weighted centroid of the interval ( − ∞ , d σ ] (-\infty,\mathrm{d}^{\sigma}] ( − ∞ , d σ ] .
From the small control property, if x ∈ B δ ( 0 ) \mathbf{x}\in\mathcal{B}_{\delta}(0) x ∈ B δ ( 0 ) for some small δ > 0 \delta>0 δ > 0 , then there is v ∗ ∈ R v^*\in\mathbb{R} v ∗ ∈ R with ∣ v ∗ ∣ < ϵ \lvert v^*\rvert<\epsilon ∣ v ∗ ∣ < ϵ such that:
a 1 ( x ) + b 1 ( x ) v ∗ ≤ 0 ⟹ − ϵ ≤ v ∗ ≤ − a 1 ( x ) b 1 ( x ) a_1(\mathbf{x})+b_1(\mathbf{x})v^*\leq0\quad\Longrightarrow\quad-\epsilon\leq v^*\leq-\frac{a_1(\mathbf{x})}{b_1(\mathbf{x})} a 1 ( x ) + b 1 ( x ) v ∗ ≤ 0 ⟹ − ϵ ≤ v ∗ ≤ − b 1 ( x ) a 1 ( x ) Therefore, d σ ( x ) ≥ − ϵ / σ ( x ) \mathrm{d}^{\sigma}(\mathbf{x})\geq-\epsilon/\sigma(\mathbf{x}) d σ ( x ) ≥ − ϵ / σ ( x ) , and from monotonicity:
μ σ ( − ϵ σ ( x ) ) ≤ μ σ ( d σ ( x ) ) ≤ μ σ ( ∞ ) = 0. \mu^{\sigma}\left(\frac{-\epsilon}{\sigma(\mathbf{x})}\right)\leq\mu^{\sigma}(\mathrm{d}^{\sigma}(\mathbf{x}))\leq\mu^{\sigma}(\infty)=0. μ σ ( σ ( x ) − ϵ ) ≤ μ σ ( d σ ( x )) ≤ μ σ ( ∞ ) = 0. To study the behavior as x → 0 \mathbf{x}\to0 x → 0 , we analyze the limit:
lim d → − ∞ μ σ ( d ) d = lim d → − ∞ ∫ − ∞ d w p 0 ( w ) d w d ∫ − ∞ d p 0 ( w ) d w . \lim_{d\to-\infty}\frac{\mu^{\sigma}(d)}{d}
=
\lim_{d\to-\infty}
\frac{\int_{-\infty}^{d}wp_0(w)\,dw}{d\int_{-\infty}^{d}p_0(w)\,dw}. d → − ∞ lim d μ σ ( d ) = d → − ∞ lim d ∫ − ∞ d p 0 ( w ) d w ∫ − ∞ d w p 0 ( w ) d w . We note here that the numerator evaluates to zero in the limit, and the denominator also evaluates to zero because:
lim d → − ∞ ∣ d ∫ − ∞ d p 0 ( w ) d w ∣ ≤ lim d → − ∞ ∫ − ∞ d ∣ d ∣ p 0 ( w ) d w \lim_{d\to-\infty}\left|d\int_{-\infty}^{d}p_0(w)\,dw\right|
\leq
\lim_{d\to-\infty}\int_{-\infty}^{d}|d|p_0(w)\,dw d → − ∞ lim d ∫ − ∞ d p 0 ( w ) d w ≤ d → − ∞ lim ∫ − ∞ d ∣ d ∣ p 0 ( w ) d w ≤ lim d → − ∞ ∫ − ∞ d ∣ w ∣ p 0 ( w ) d w = 0 \leq
\lim_{d\to-\infty}\int_{-\infty}^{d}|w|p_0(w)\,dw=0 ≤ d → − ∞ lim ∫ − ∞ d ∣ w ∣ p 0 ( w ) d w = 0 Therefore, we apply L’Hôpital’s rule to obtain:
lim d → − ∞ μ σ ( d ) d = lim d → − ∞ d p 0 ( d ) ∫ − ∞ d p 0 ( w ) d w + d p 0 ( d ) \lim_{d\to-\infty}\frac{\mu^{\sigma}(d)}{d}
=
\lim_{d\to-\infty}
\frac{dp_0(d)}{\int_{-\infty}^{d}p_0(w)\,dw+dp_0(d)} d → − ∞ lim d μ σ ( d ) = d → − ∞ lim ∫ − ∞ d p 0 ( w ) d w + d p 0 ( d ) d p 0 ( d ) = lim d → − ∞ p 0 ( d ) + d d p 0 d v ( d ) 2 p 0 ( d ) + d d p 0 d v ( d ) = R − , =
\lim_{d\to-\infty}
\frac{p_0(d)+d\frac{dp_0}{dv}(d)}
{2p_0(d)+d\frac{dp_0}{dv}(d)}
=R^-, = d → − ∞ lim 2 p 0 ( d ) + d d v d p 0 ( d ) p 0 ( d ) + d d v d p 0 ( d ) = R − , where the second equality follows from a second application of L’Hôpital’s rule (Note d p 0 ( d ) → 0 dp_0(d)\to0 d p 0 ( d ) → 0 from integrability of v p 0 vp_0 v p 0 ). Therefore, we deduce:
− R − ϵ = lim x → 0 σ ( x ) μ σ ( − ϵ σ ( x ) ) ≤ μ ( x ) ≤ 0 , -R^-\epsilon=\lim_{\mathbf{x}\to0}\sigma(\mathbf{x})\mu^{\sigma}\left(\frac{-\epsilon}{\sigma(\mathbf{x})}\right)\leq\mu(\mathbf{x})\leq0, − R − ϵ = x → 0 lim σ ( x ) μ σ ( σ ( x ) − ϵ ) ≤ μ ( x ) ≤ 0 , which holds for any ϵ > 0 \epsilon>0 ϵ > 0 . Taking ϵ → 0 \epsilon\to0 ϵ → 0 gives lim x → 0 μ ( x ) = 0 \lim_{\mathbf{x}\to0}\mu(\mathbf{x})=0 lim x → 0 μ ( x ) = 0 , establishing continuity at the origin. □ \square □
Theorem V.4 gives a condition on the weight p p p such that the resulting weighted centroid is continuous under the small control property. The tail condition (30) may appear unusual, but it is straightforward to verify for a given weight
p 0 p_0 p 0 by direct computation. For instance, one may verify that the Gaussian weight p 0 ( v ) = e − v 2 / 2 p_0(v)=e^{-v^2/2} p 0 ( v ) = e − v 2 /2 yields R ± = 1 R^\pm=1 R ± = 1 , while Sontag’s weight p 0 ( v ) = ( v 2 + 1 ) − 3 / 2 p_0(v)=(v^2+1)^{-3/2} p 0 ( v ) = ( v 2 + 1 ) − 3/2 yields R ± = 2 R^\pm=2 R ± = 2 . In both cases, the condition is satisfied, confirming that the weighted centroid under these weights is continuous at the origin.
The result of Theorem V.4 is stated for single-input systems, but it extends naturally to the multi-input case (m > 1 m>1 m > 1 ) with a single (q = 1 q=1 q = 1 ) constraint via the technique introduced in Theorem III.2 to reduce the constraint into a single-input one.
Safe Stabilizing with a CLF and a CBF
Finally, we consider the simultaneous enforcement of stability and safety objectives using a CLF and a CBF. In this setting, it is unlikely linear independence will hold. The following result directly follows from Proposition IV.7.
Corollary V.5. (Safe Stabilizing Formulas): Let V V V be a CLF and h h h be a CBF for (1) defining a safe set S S S as in (3). Define admissible control maps { Ω 1 , Ω 2 } \{\Omega_1,\Omega_2\} { Ω 1 , Ω 2 } as in Corollaries V.1 and V.3 . Under the assumptions of Proposition IV.7 and assuming that the origin is in the interior of S S S , the controller u = k ( x ) \mathbf{u}=\mathbf{k}(x) u = k ( x ) , with k \mathbf{k} k defined in (29) on S ∖ { 0 } S\setminus\{0\} S ∖ { 0 } , is C ℓ C^\ell C ℓ and renders the set S S S safe. Furthermore, if k \mathbf{k} k is extended to the origin by setting k ( 0 ) = 0 \mathbf{k}(0)=0 k ( 0 ) = 0 , then the origin is an equilibrium of the closed-loop system and is asymptotically stable.
Corollary V.5 provides a safe-stabilizing formula for selecting control inputs satisfying both a CLF and a CBF constraint at each x x x on S ∖ { 0 } S\setminus\{0\} S ∖ { 0 } . The condition k ( 0 ) = 0 \mathbf{k}(0)=0 k ( 0 ) = 0 is stated explicitly because unlike in the CLF-only case, the controller k \mathbf{k} k in (29) may not be zero at the origin due to the presence of the CBF constraint. This condition ensures that the origin remains an equilibrium of the closed-loop system so that we may discuss stability. Note importantly that since 0 ∈ int ( S ) 0\in\operatorname{int}(S) 0 ∈ int ( S ) is in the interior of the safe set, assigning k ( 0 ) = 0 \mathbf{k}(0)=0 k ( 0 ) = 0 does not compromise safety. As in the CLF-only case, continuity at the origin requires additional care because the strict compatibility assumption necessarily fails at x = 0 x=0 x = 0 . In the CLF-CBF setting, the first step is to ensure that u = 0 \mathbf{u}=0 u = 0 satisfies the CBF constraint. Since 0 ∈ int ( S ) 0\in\operatorname{int}(S) 0 ∈ int ( S ) , this can be achieved through picking a sufficiently large class-K \mathcal{K} K function α h \alpha_h α h . Once u = 0 \mathbf{u}=0 u = 0 is feasible for the CBF constraint at x = 0 x=0 x = 0 , choosing σ \sigma σ to be a positive definite function renders continuity at the origin, as evident from the closed-form formula in (29).
The results in this section show how the weighted centroid methodology provides a systematic path from CLF- and CBF-induced admissible control maps to explicit smooth feedback formulas. By interpreting CLF and CBF constraints as affine constraints on the input, the framework uses a geometric selection rule that averages over the feasible set. This perspective not only recovers classical universal formulas in the single-constraint setting, but also provides a natural pathway toward smooth controller synthesis in multiple-constraint settings.
Simulations and Experiments
We present complementary simulation and hardware studies illustrating the efficacy of our weighted centroid methodology. Consider a quadrotor operated through a velocity-command interface, with a pair of safety constraints, h 1 ( x ) = x 1 + 1 h_1(x)=x_1+1 h 1 ( x ) = x 1 + 1 and h 2 ( x ) = 1 − x 1 h_2(x)=1-x_1 h 2 ( x ) = 1 − x 1 . At the outer-loop level, we model the position dynamics as the single-integrator system x ˙ 1 = u \dot{x}_1=u x ˙ 1 = u , where u u u denotes the velocity command sent to the quadrotor. The desired velocity command k d k_d k d is to track a desired position trajectory r d r_d r d , via a tracking controller with a feedforward term:
k d ( x 1 , t ) = 2.5 ( r d ( t ) − x 1 ) + r ˙ d ( t ) . k_d(x_1,t)=2.5(r_d(t)-x_1)+\dot{r}_d(t). k d ( x 1 , t ) = 2.5 ( r d ( t ) − x 1 ) + r ˙ d ( t ) .
In both the simulation and experimental studies, we compare the standard CBF-QP safety filter in [4 ] with the smooth safety filter obtained by applying the mirrored Sontag formula in (19) to the CBF constraints according to Corollary V.2 .2 We denote the resulting filtered velocity command by v c m d v_{\mathrm{cmd}} v cmd .
Simulation: Quadruple Integrator
To investigate the effect of lower-level tracking dynamics in realizing v c m d v_{\mathrm{cmd}} v cmd , we explicitly model the higher-order closed-loop dynamics in simulation. Motivated by the fact that, after dynamic extension and feedback linearization, the dynamics of a quadrotor take the form of a quadruple integrator, we consider the following simplified closed-loop model:
x ˙ 1 = x 2 , x ˙ 2 = x 3 , x ˙ 3 = x 4 x ˙ 4 = − k 1 ( x 2 − v c m d ) − k 2 ( x 3 − v ˙ c m d ) − k 3 ( x 4 − v ¨ c m d ) (31) \begin{aligned}
\dot{x}_1&=x_2, & \dot{x}_2&=x_3, & \dot{x}_3&=x_4 \\
\dot{x}_4&=-k_1(x_2-v_{\mathrm{cmd}})-k_2(x_3-\dot{v}_{\mathrm{cmd}})-k_3(x_4-\ddot{v}_{\mathrm{cmd}}) \tag*{(31)}
\end{aligned} x ˙ 1 x ˙ 4 = x 2 , = − k 1 ( x 2 − v cmd ) − k 2 ( x 3 − v ˙ cmd ) − k 3 ( x 4 − v ¨ cmd ) x ˙ 2 = x 3 , x ˙ 3 = x 4 (31)
Our simulation uses k 1 = 3 k_1=3 k 1 = 3 , k 2 = 6 k_2=6 k 2 = 6 , and k 3 = 12 k_3=12 k 3 = 12 to obtain relatively slow tracking dynamics, thereby accentuating the effect of variations in v c m d v_{\mathrm{cmd}} v cmd on the lower-level tracking response. This choice is intended to illustrate why smoothness of v c m d v_{\mathrm{cmd}} v cmd can be important when the filtered command must be realized through higher-order tracking dynamics.
The simulation uses the following reference trajectory:
r d ( t ) = 1 − 1 2 exp ( − 5 t ) + sin ( t ) r_d(t)=1-\frac{1}{2}\exp(-5t)+\sin(t) r d ( t ) = 1 − 2 1 exp ( − 5 t ) + sin ( t )
Figure 1. Simulation results of the quadruple integrator tracking a velocity command generated by our weighted centroid approach against a standard QP approach. Left: the position x 1 x_1 x 1 of the quadruple integrator when tracking the smooth (blue) vs QP (red) velocity, where the black dashed curves denote the state bounds. Right: corresponding filtered velocity commands.
Figure 2. Comparison of the tracking errors in simulations when generating a safe reference velocity using the mirrored Sontag formula (19) (left ) vs the CBF-QP approach (right ).
to repeatedly drive the nominal trajectory toward the safety boundaries. The resulting position trajectories are shown in Fig. 1-Left. The CBF-QP trajectory violates the safety constraint, whereas the trajectory produced by the mirrored Sontag formula (19) respect all safety constraints. Fig. 1-Right shows the corresponding filtered velocity command v c m d v_{\mathrm{cmd}} v cmd . As expected, the proposed smooth formula produces a smooth command, while the CBF-QP command exhibits visible kinks.
To quantify velocity tracking errors, we define e ≜ x 2 − v c m d e \triangleq x_2 - v_{\mathrm{cmd}} e ≜ x 2 − v cmd . The tracking errors and their first two derivatives are shown in Fig. 2. For the smooth controller, the tracking errors decay to zero after the initial transient. In contrast, for the CBF-QP controller, the nonsmoothness in v c m d v_{\mathrm{cmd}} v cmd repeatedly excites the higher-order tracking dynamics, generating new transients before the previous tracking errors have fully settled. These persistent tracking errors are what ultimately leads to the safety violation observed in Fig. 1-Left.
Hardware Demonstrations
We next validate the proposed controller on a Crazyflie 2.1+ small quadrotor. In contrast to the deliberately slow tracking dynamics considered in simulation, the lower-level controller of the quadrotor tracks v c m d v_{\mathrm{cmd}} v cmd substantially more closely. The hardware experiments therefore investigate whether the benefits of the proposed smooth selection persist when tracking transients are rapidly attenuated.
For the experiments, the reference r d r_d r d is given as follows. It first smoothly ramps from 0 to 0.3 m over t ∈ [ 0 , 10 ] t \in[0, 10] t ∈ [ 0 , 10 ] . Then for t ∈ [ 10 , 35 ] t \in[10, 35] t ∈ [ 10 , 35 ] , the reference follows the following dynamics:
r ˙ d = 3 ( 1 − r d ) + sin ( 0.3 π ( t − 10 ) ) , r d ( 10 ) = 0.3. \dot{r}_d = 3(1-r_d) + \sin(0.3\pi(t-10)), \qquad r_d(10) = 0.3. r ˙ d = 3 ( 1 − r d ) + sin ( 0.3 π ( t − 10 )) , r d ( 10 ) = 0.3.
After that, the reference transitions smoothly via a cubic Hermite Interpolation to − 0.3 -0.3 − 0.3 m over t ∈ [ 35 , 55 ] t \in[35, 55] t ∈ [ 35 , 55 ] , and for t ∈ [ 55 , 80 ] t \in[55, 80] t ∈ [ 55 , 80 ] , it follows the dynamics:
r ˙ d = 3 ( − 1 − r d ) + sin ( 0.3 π ( t − 55 ) ) , r d ( 55 ) = − 0.3. \dot{r}_d = 3(-1-r_d) + \sin(0.3\pi(t-55)), \qquad r_d(55) = -0.3. r ˙ d = 3 ( − 1 − r d ) + sin ( 0.3 π ( t − 55 )) , r d ( 55 ) = − 0.3.
Finally r d r_d r d is smoothly returned to zero over t ∈ [ 80 , 90 ] t \in[80, 90] t ∈ [ 80 , 90 ] . The two intermediate phases intentionally drive the nominal reference toward and beyond the upper and lower safety boundaries, respectively. This allows us to evaluate the proposed formula (19) under each of the two safety constraints.
As shown in Fig. 3-Left, the CBF-QP performs substantially better than in simulation and tracks the nominal reference more closely. Nevertheless, its trajectory slightly violates safety constraints, with x 1 ∈ [ − 1.025 , 0.983 ] x_1 \in[-1.025, 0.983] x 1 ∈ [ − 1.025 , 0.983 ] m. In contrast, the trajectory generated by the mirrored Sontag formula (19) remains within the safe set, with x 1 ∈ [ − 0.736 , 0.703 ] x_1 \in[-0.736, 0.703] x 1 ∈ [ − 0.736 , 0.703 ] m. The small safety violation observed for the CBF-QP is attributed to the mismatch between the single-integrator model used by the safety filter and the actual velocity realized by the quadrotor. Fig. 4 shows the lower-level controller tracks v c m d v_{\mathrm{cmd}} v cmd closely, but a nonzero tracking error remains due to effects such as measurement noise, localization bias, and other unmodeled dynamics. When the CBF-QP activates the CBF constraints, the QP uses a control on the boundary of the admissible control set, satisfying them without any margin, making it more prone to error. In contrast, the weighted-centroid construction selects controls from the interior of the admissible set and therefore provides an inherent robustness against such implementation errors, albeit at the cost of more conservative tracking of the nominal reference, as is also evident in Fig. 3-Left.
Figure 3. Quadrotor experiment comparing the mirrored Sontag formula (19) and the CBF-QP. Left: quadrotor position x 1 x_1 x 1 and reference trajectory r d r_d r d , with safety boundaries at x 1 = ± 1 x_1 = \pm1 x 1 = ± 1 . Right: corresponding filtered velocity commands v c m d v_{\mathrm{cmd}} v cmd .
Figure 4. Velocity tracking error e = x 2 − v c m d e = x_2 - v_{\mathrm{cmd}} e = x 2 − v cmd in the hardware experiments under the mirrored Sontag formula (left ) and the CBF-QP (right ) from t = 8 t = 8 t = 8 s to t = 35 t = 35 t = 35 s.
The simulation and hardware results illustrate two benefits of the proposed weighted-centroid construction: smoothness mitigates tracking transients induced by higher-order dynamics, while interior control selection provides additional robustness margin against residual implementation errors.
Conclusion
We have introduced a weighted-centroid methodology for constructing explicit smooth feedback formulas from state-dependent affine control constraints. The framework recovers Sontag’s universal formula as a special case, extends to several multiple-constraint settings, and yields smooth controllers for safety filtering, stabilization, and safe stabilization. Simulation and hardware experiments on a quadrotor illustrate the practical benefits of smooth filtered commands and the inherent robustness margin provided by interior control selection. Future work will investigate broader classes of dependent constraints and more efficient weighted-centroid constructions, and exploit the proposed design in hierarchical control architectures.
Figure 1 (PDF p. 16).
Pio Ong (Member, IEEE) received the B.S. degree in Aerospace Engineering from University of California, San Diego (UCSD) in 2012, and the M.S. degree in Astronautical Engineering from University of Southern California (USC) in 2013. He received the Ph.D. degree in Engineering Sciences (Aerospace Engineering) from UCSD in 2022 with Professor Jorge Cortés as his advisor. From 2022 to 2026, he was a Postdoctoral Scholar at the California Institute of Technology (Caltech), under the supervision of Professor Aaron D. Ames. He is currently a Postdoctoral Scientist in the Safe Autonomous Foundations (SAF) Lab at Amazon. His current research interests include control barrier functions, safety-critical control, humanoid robot safety, and resilient autonomy.
Figure 2 (PDF p. 16).
Max H. Cohen (Member, IEEE) received the B.S. degree in Mechanical Engineering from the University of Florida in 2018, the M.S. degree in Mechanical Engineering from Boston University in 2022, and the Ph.D. degree in Mechanical Engineering from Boston University in 2023. He was a Postdoctoral Scholar at Caltech from 2023–2025 and is currently an Assistant Professor in the Department of Electrical and Computer Engineering at North Carolina State University, Raleigh, NC.
Figure 3 (PDF p. 16).
Aaron D. Ames (Fellow, IEEE) received the joint B.S. degree in mathematics and B.A. degree in mathematics from the University of St. Thomas in 2001, and the joint M.A. degree in mathematics and the Ph.D. degree in electrical engineering and computer sciences from the University of California, Berkeley, in 2006. He was an Associate Professor with Georgia Tech, Woodruff School of Mechanical Engineering, and the School of Electrical & Computer Engineering. He is the Bren Professor of mechanical and civil engineering and control and dynamical systems with Caltech. He was a Postdoctoral Scholar in control and dynamical systems with Caltech from 2006 to 2008, and began his faculty career with Texas A&M University in 2008. His research interests include the areas of robotics, nonlinear, safety-critical control, and hybrid systems, with a special focus on applications to dynamic robots, both formally and through experimental validation. At UC Berkeley, he was the recipient of the 2005 Leon O. Chua Award for achievement in nonlinear science and the 2006 Bernard Friedman Memorial Prize in Applied Mathematics, NSF CAREER Award in 2010, 2015 DoD P. E. McNamara Award, and 2019 IEEE CSS Antonio Ruberti Young Researcher Prize.
Figure 4 (PDF p. 16).
Jorge Cortés (M’02, SM’06, F’14) received the Licenciatura degree in Mathematics from Universidad de Zaragoza, Spain, in 1997, and the Ph.D. degree in Engineering Mathematics from Universidad Carlos III de Madrid, Spain, in 2001. He held postdoctoral positions with the University of Twente, The Netherlands, and the University of Illinois at Urbana-Champaign, USA. He is a Professor and Cymer Corporation Endowed Chair in High Performance Dynamic Systems Modeling and Control at the Department of Mechanical and Aerospace Engineering, UC San Diego, California, USA. He is a Fellow of IEEE, SIAM, and IFAC. His research interests include distributed control and optimization, network science, reasoning and decision making under uncertainty, and multi-agent coordination in robotic, power, and brain networks.