betaFeedback

WorksMathematics

Convex computation of cost bounds for data-driven nonlinear optimal control

Abstract

The paper addresses the optimal control problem of an input-affine polynomial system with an unknown (state-dependent) input matrix affecting the control effectiveness. Under assumptions on the existence of a data set and the Lipschitz continuity of the unknown part {of the dynamics}, an uncertainty set is constructed and used to adapt the Hamilton-Jacobi-Bellman equation towards a data-driven formulation. We solve it for the best-case scenario, thus giving a lower bound on the best cost achievable by means of a feedback control policy. After relaxing it into a moment-SoS hierarchy of semidefinite programs, a control law is extracted from the primal on moments and compared with other benchmark methods in a numerical application.

Introduction

We consider the problem of optimal control design for input-affine systems. The control-effectiveness matrix field is treated as unknown or partially known, and uncertainty is reduced through state-space evaluations and bounded by Lipschitz continuity properties. Such a problem draws from several interconnected domains: nonlinear optimal control and Hamilton-Jacobi-Bellman (HJB) formulations, set-membership/bounded-error estimation with Lipschitz bounds, data-driven control, and learning-based and myopic control of unknown dynamics.

Optimal control for nonlinear systems is a well-trodden problem in control theory [1], and many methods have been developed to solve it when the model is available. One can cite direct shooting methods [2], differential dynamic programming [3], and nonlinear Model Predictive Control (MPC) [4, 5] among others. There are also approaches solving the HJB equation through convex reformulations as an alternative to numerical viscosity solutions [6, 7]. Among these, one finds [8], where the Optimal Control Problem (OCP) is formulated as an infinite-dimensional Linear Program (LP) over occupation measures, and its dual yields subsolutions to the HJB equation. Later, [9, 10] apply this formulation to polynomial systems. Global feedback laws are extracted in the same setting [11], with convergence guarantees in [12] and performance bounds in [13].

When part or all of the model is unavailable, as is the case with many systems, data-driven control approaches become necessary. Some methods recover a model from data [14], and other works use such learned models to generate control laws via MPC, for example, as in [15, 16]. In other approaches, the uncertainty is bounded in a set membership framework, where all models consistent with the data are identified [17], or used by a stable estimator to bound state and actuator faults [18]. These bounds are also used to provide the control law directly, as is the case with myopic control in [19] and data-driven set-membership MPC [20]. Finally, there are approaches in which the model and bounds are bypassed, so control is performed directly from data, as in classic data-enabled predictive control [21].

In this work, we adapt the model-based OCP described in [9], restricted to control-affine systems, to handle a partially unknown model. The particularity of the optimal control design in the presence of uncertainty in the affine term lies in the fact that the equivalent differential inclusion loses its convexity properties, among other strong properties of the exact model-based counterparts. Consequently, the pairs of states and inputs have to be analyzed in terms of both distance in the state space and excitability with respect to input values. The corresponding bounds on the optimal data-driven cost need to be evaluated. The main contributions of this work are a “best-case” lower bound on the attainable cost, a guarantee of convergence for the data-driven OCP, a data selection scheme, and an alternative polynomial control law derived from occupation measures, whose performance is then compared to MPC-based approaches [15, 16].

The present paper is organized as follows. Section 2 provides the problem setting and assumptions on the system. Section 3 presents the data-driven OCP and the convergence proof. In Section 4, the moment-Sum-of-Squares (SoS) hierarchy framework is detailed. Section 5 shows how the control law is extracted. Numerical applications where performance is compared to that of benchmark methods are detailed in Section 6.

Notation: Let n,d∈Nn,d \in\mathbb{N}, [n]≜{1,…,n}[n] \triangleq\{1,\ldots,n\}. ∥⋅∥\lVert\cdot\rVert is the Euclidean norm for vectors, spectral norm for matrices, and the absolute value for scalars. ∥⋅∥F\lVert\cdot\rVert_F is the Frobenius norm for matrices. E[x]\mathbb{E}[x] denotes the expected value of the random variable xx, tr⁡(A)\operatorname{tr}(A) the trace of matrix AA. R[x]n\mathbb{R}[x]^n is the set of nn-dimensional vectors of real polynomials in x∈Rnx \in\mathbb{R}^n, and Rd[x]\mathbb{R}_d[x] is the subset with polynomials up to degree dd. Cn(X)C^n(X) is the set of functions on XX with continuous derivatives up to order nn. M(X)\mathcal{M}(X) is the set of nonnegative Borel measures over XX.

Data-driven optimal control

Consider the nonlinear OCP

V⋆≜inf⁡u(⋅):[0,T]→U∫0Tℓ(x(t),u(t)) dt+h(x(T))s.t.x˙(t)=f(x(t))+G(x(t))u(t)x(t)∈X,x(T)∈XT(1)\begin{aligned} V^\star&\triangleq\inf_{u(\cdot):[0,T]\to\mathcal{U}} \int_0^T \ell(x(t),u(t))\,\mathrm{d}t+h(x(T)) \\ \text{s.t.}\quad&\dot{x}(t)=f(x(t))+G(x(t))u(t) \\ &x(t)\in\mathcal{X},\quad x(T)\in\mathcal{X}_T \tag*{(1)} \end{aligned}

where T>0T>0 is the time horizon, f,h,ℓf,h,\ell are polynomials and G:X→Rn×mG:\mathcal{X}\to\mathbb{R}^{n\times m} is unknown. The sets X\mathcal{X} and XT\mathcal{X}_T in the state space are semi-algebraic and compact:

X≜{x∈Rn∣pX(x)≥0},XT≜{x∈Rn∣pT(x)≥0}\mathcal{X}\triangleq\{x\in\mathbb{R}^n\mid p_{\mathcal{X}}(x)\geq0\},\quad\mathcal{X}_T\triangleq\{x\in\mathbb{R}^n\mid p_T(x)\geq0\}

with pX,pTp_{\mathcal{X}},p_T vectors of polynomials (inequalities are meant component-wise), and the admissible input set U⊂Rm\mathcal{U}\subset\mathbb{R}^m is described by means of a convex polytope:

U≜{u∈Rm∣pU(u)≜PUu−qU≥0},\mathcal{U}\triangleq\{u\in\mathbb{R}^m\mid p_{\mathcal{U}}(u)\triangleq P_{\mathcal{U}}u-q_{\mathcal{U}}\geq0\},

with PU∈RD×mP_{\mathcal{U}}\in\mathbb{R}^{D\times m} and qU∈RDq_{\mathcal{U}}\in\mathbb{R}^D. The objective of this work is to construct a control input by solving an OCP, accounting for the uncertainty on G(⋅)G(\cdot), under the following assumptions.

Assumption 1. A dataset of finite and noise-free evaluations D≜{(xi,ui,x˙i)}i∈[N]⊂X×(U∖{0})×Rn\mathcal{D}\triangleq\{(x_i,u_i,\dot{x}_i)\}_{i\in[N]}\subset\mathcal{X}\times(\mathcal{U}\setminus\{0\})\times\mathbb{R}^n, is available.

Assumption 2. The unknown matrix function G(⋅)G(\cdot) is Lipschitz continuous on the set X\mathcal{X}, and an upper bound K>0K>0 on its Lipschitz constant is known:

∥G(x)−G(x′)∥≤K∥x−x′∥∀x,x′∈X.\lVert G(x)-G(x')\rVert\leq K\lVert x-x'\rVert\qquad\forall x,x'\in\mathcal{X}.

For i∈[N]i \in[N], let yi≜x˙i−f(xi)=G(xi)uiy_i \triangleq\dot{x}_i-f(x_i)=G(x_i)u_i. Based on assumptions 1 and 2, we get

∥G(x)ui−yi∥≤K∥ui∥∥x−xi∥∀x∈X.(2)\lVert G(x)u_i-y_i\rVert\leq K\lVert u_i\rVert\lVert x-x_i\rVert\qquad\forall x\in\mathcal{X}. \tag*{(2)}

By normalizing inequality (2) over ∥ui∥≠0\lVert u_i\rVert\ne0, we define the set containing all possible values of G(x)G(x) as the set-valued map

G(x)≜{B∈Rn×m∣pi(x,B)≥0, ∀i∈[N]},(3)\mathcal{G}(x) \triangleq\{B\in\mathbb{R}^{n\times m}\mid p_i(x,B)\geq0,\ \forall i\in[N]\}, \tag*{(3)}

with pi(x,B)≜K2∥x−xi∥2−∥Bui∥ui∥−yi∥ui∥∥2p_i(x,B)\triangleq K^2\lVert x-x_i\rVert^2-\left\lVert B\frac{u_i}{\lVert u_i\rVert}-\frac{y_i}{\lVert u_i\rVert}\right\rVert^2. Then, we deduce the global semi-algebraic uncertainty set

Γ≜{(x,B)∈X×Rn×m∣pi(x,B)≥0, ∀i∈[N]}.(4)\Gamma\triangleq\{(x,B)\in\mathcal{X}\times\mathbb{R}^{n\times m}\mid p_i(x,B)\geq0,\ \forall i\in[N]\}. \tag*{(4)}

Remark 1. The semi-algebraic uncertainty envelope Γ\Gamma is bounded as soon as the input data uiu_i span Rm\mathbb{R}^m.

Remark 2. The definition of the uncertainty set G\mathcal{G} does not exclude non-Lipschitz behavior from being included in Γ\Gamma, as long as the Lipschitz inequality is verified on the data points. The set Γ\Gamma is less restrictive than Assumption 2, yet such a relaxed account of the assumptions is still permissible in the proposed approach.

Remark 3. Incorporating bounded measurement noise into Γ\Gamma is feasible. For i∈[N]i\in[N], taking x~i,x~˙i,y~i\tilde{x}_i,\dot{\tilde{x}}_i,\tilde{y}_i as the measured values, let εx,εx˙>0\varepsilon_x,\varepsilon_{\dot{x}}>0 be such that ∥xi−x~i∥≤εx\lVert x_i-\tilde{x}_i\rVert\leq\varepsilon_x and ∥x˙i−x~˙i∥≤εx˙\lVert\dot{x}_i-\dot{\tilde{x}}_i\rVert\leq\varepsilon_{\dot{x}}. Since f(⋅)f(\cdot) is polynomial, it is locally Lipschitz in X\mathcal{X}. Let KfK_f be its local Lipschitz constant. For x∈Xx\in\mathcal{X}:

∥G(x)ui−y~i∥=∥G(x)ui−yi+x˙i−x~˙i−(f(xi)−f(x~i))∥≤K∥ui∥∥x−xi∥+εx˙+Kfεx≤K∥ui∥∥x−x~i∥+K∥ui∥εx+εx˙+Kfεx\begin{aligned} \lVert G(x)u_i-\tilde{y}_i\rVert=\lVert G(x)u_i-y_i+\dot{x}_i-\dot{\tilde{x}}_i-(f(x_i)-f(\tilde{x}_i))\rVert\leq K\lVert u_i\rVert\lVert x-x_i\rVert+\varepsilon_{\dot{x}}+K_f\varepsilon_x \\ &\leq K\lVert u_i\rVert\lVert x-\tilde{x}_i\rVert+K\lVert u_i\rVert\varepsilon_x+\varepsilon_{\dot{x}}+K_f\varepsilon_x \end{aligned}

By normalizing over ∥ui∥\lVert u_i\rVert and squaring both sides, we get

∥G(x)ui∥ui∥−y~i∥ui∥∥2≤(K∥x−x~i∥+Δ)2\left\lVert G(x)\frac{u_i}{\lVert u_i\rVert}-\frac{\tilde{y}_i}{\lVert u_i\rVert}\right\rVert^2\leq\left(K\lVert x-\tilde{x}_i\rVert+\Delta\right)^2

with Δ=(K+Kf∥ui∥)εx+εx˙∥ui∥\Delta=\left(K+\frac{K_f}{\lVert u_i\rVert}\right)\varepsilon_x+\frac{\varepsilon_{\dot{x}}}{\lVert u_i\rVert}. For any θ>0\theta>0, defining α=(1+θ−1)Δ2\alpha=(1+\theta^{-1})\Delta^2 and using

(a+b)2≤(1+θ)a2+(1+θ−1)b2,(a+b)^2\leq(1+\theta)a^2+(1+\theta^{-1})b^2,

pip_i is replaced by the polynomial

p~iθ(x,B)≜(1+θ)K2∥x−x~i∥2+α−∥Bui∥ui∥−y~i∥ui∥∥2,\tilde{p}_i^\theta(x,B)\triangleq(1+\theta)K^2\lVert x-\tilde{x}_i\rVert^2+\alpha-\left\lVert B\frac{u_i}{\lVert u_i\rVert}-\frac{\tilde{y}_i}{\lVert u_i\rVert}\right\rVert^2,

which still defines a set containing G(x)G(x) for all x∈Xx\in\mathcal{X}.

Definition 1. Let UTU_T be the set of vector control functions from [0,T][0,T] to U∈RmU\in\mathbb{R}^m. An admissible control u(⋅)∈UTu(\cdot)\in U_T for an initial point x(0)=x0∈Xx(0)=x_0\in\mathcal{X} is a measurable control function for which the trajectory x(⋅)x(\cdot), solution to (1b), stays in X\mathcal{X} and is continuous over [0,T][0,T], and x(T)∈XTx(T)\in\mathcal{X}_T for XT\mathcal{X}_T a compact subset of X\mathcal{X} taken as the target set.

We seek to construct an admissible control law solving (at least approximately) problem (1). One approach to this OCP is to solve the HJB partial differential equation

∂V∂t+min⁡u∈U(∂V∂x(f(x)+G(x)u)+ℓ(x,u))=0(5)\frac{\partial V}{\partial t}+\min_{u\in U}\left(\frac{\partial V}{\partial x}(f(x)+G(x)u)+\ell(x,u)\right)=0 \tag*{(5)}

with V:[0,T]×X→R∪{+∞}V:[0,T]\times\mathcal{X}\to\mathbb{R}\cup\{+\infty\} being the Bellman value function verifying the terminal constraint V(T,x)=h(x)V(T,x)=h(x). For a feasible problem, the minimum V⋆V^\star of (1) is V(0,x0)V(0,x_0).

To account for the lack of information on G(⋅)G(\cdot), it is imperative to use the uncertainty set G(⋅)\mathcal{G}(\cdot). To take into account all possible values, G(⋅)\mathcal{G}(\cdot) may be replaced by an arbitrary B∈G(⋅)B\in\mathcal{G}(\cdot), and equation (5) should be relaxed accordingly. Two options seem natural: robust control accounting for the worst case, and optimistic control for the best case. While robust control seems to be the most attractive approach in terms of applications and guarantees, it introduces a classical game-theoretical minimax structure of the Hamilton-Jacobi-Isaacs type, with the uncertain variable BB playing against the controller uu. This results in intricate nonconvex bilinear behaviors that are beyond the scope of this contribution.

Infinite dimensional linear programs

Generalized Moment Problems

In this paper, we are interested in the best case, where we solve for the lowest cost possible achievable by the system within the bounds of Γ\Gamma. In this case, BB assists the control uu, and we obtain a lower-bound benchmark against which no other control can achieve a better outcome. The HJB equation in (5) is recast to search for a best-case value function WW:

∂W∂t+min⁡u∈UB∈G(x)(∂W∂x(f(x)+Bu)+ℓ(x,u))=0.(6)\frac{\partial W}{\partial t}+\min_{\substack{u\in U\\B\in\mathcal{G}(x)}}\left(\frac{\partial W}{\partial x}(f(x)+Bu)+\ell(x,u)\right)=0. \tag*{(6)}

Next, following the approach in [8, 9], we relax (6) into inequalities, and solve for a polynomial subsolution w∈R[t,x]w\in\mathbb{R}[t,x] of (6) through the following LP

w∞⋆≜sup⁡w∈R[t,x]w(0,x0)(7)w_{\infty}^{\star}\triangleq\sup_{w\in\mathbb{R}[t,x]}w(0,x_0) \tag*{(7)}
s.t.∀t∈[0,T], (x,B)∈Γ, u∈U,∂w∂t(t,x)+∂w∂x(t,x)(f(x)+Bu)≥−ℓ(x,u)(8)\begin{aligned} \text{s.t.}\quad&\forall t\in[0,T],\ (x,B)\in\Gamma,\ u\in U,\\ &\frac{\partial w}{\partial t}(t,x)+\frac{\partial w}{\partial x}(t,x)(f(x)+Bu)\geq-\ell(x,u) \tag*{(8)} \end{aligned}
∀x∈XT,w(T,x)≤h(x)(9)\forall x\in X_T,\qquad w(T,x)\leq h(x) \tag*{(9)}

Proposition 1. Let w∞⋆w_{\infty}^{\star} be the optimal value of (7), and WW the unique solution to (6) corresponding to W(T,x)=h(x)W(T,x)=h(x). Then w∞⋆≤W(0,x0)≤V(0,x0)=V⋆≤J(u(⋅))w_{\infty}^{\star}\leq W(0,x_0)\leq V(0,x_0)=V^{\star}\leq J(u(\cdot)), for any u(⋅)∈UTu(\cdot)\in U_T feasible in (1), where

J(u(⋅))=∫0Tℓ(x(t),u(t)) dt+h(x(T))s.t. (1b), (1c)J(u(\cdot))=\int_{0}^{T}\ell(x(t),u(t))\,dt+h(x(T))\quad\text{s.t.}\ (1b),\ (1c)

Proof. First, we prove the inequality on the left-hand side. Let xˉ(⋅)\bar{x}(\cdot) be a trajectory solution to (1b) and (1c), corresponding to uˉ(⋅)∈UT\bar{u}(\cdot)\in U_T, an admissible control for initial condition x0x_0, and Gˉ(xˉ(t))∈G(xˉ(t))\bar{G}(\bar{x}(t))\in\mathcal{G}(\bar{x}(t)). Since w∈R[t,x]⊂C1w\in\mathbb{R}[t,x]\subset C^1:

w(T,xˉ(T))−w(0,x0)=∫0Tdwdt(t,xˉ(t)) dt=∫0T[∂w∂t+∂w∂x(f(xˉ(t))+Gˉ(t)uˉ(t))]dt≥(7b)−∫0Tℓ(xˉ(t),uˉ(t)) dtw(T,\bar{x}(T))-w(0,x_0)=\int_{0}^{T}\frac{dw}{dt}(t,\bar{x}(t))\,dt=\int_{0}^{T}\left[\frac{\partial w}{\partial t}+\frac{\partial w}{\partial x}\left(f(\bar{x}(t))+\bar{G}(t)\bar{u}(t)\right)\right]dt\overset{\text{(7b)}}{\geq}-\int_{0}^{T}\ell(\bar{x}(t),\bar{u}(t))\,dt
⟹w(0,x0)≤∫0Tℓ(xˉ(t),uˉ(t)) dt+w(T,xˉ(T))≤(7c)∫0Tℓ(xˉ(t),uˉ(t)) dt+h(xˉ(T)).\Longrightarrow w(0,x_0)\leq\int_{0}^{T}\ell(\bar{x}(t),\bar{u}(t))\,dt+w(T,\bar{x}(T))\overset{\text{(7c)}}{\leq}\int_{0}^{T}\ell(\bar{x}(t),\bar{u}(t))\,dt+h(\bar{x}(T)).

With W(0,x0)=inf⁡u∫0Tℓ(x(t),u(t)) dt+h(x(T))W(0,x_0)=\inf_u\int_{0}^{T}\ell(x(t),u(t))\,dt+h(x(T)) for any feasible (x(⋅),u(⋅))(x(\cdot),u(\cdot)), including (xˉ(⋅),uˉ(⋅))(\bar{x}(\cdot),\bar{u}(\cdot)), and w∞⋆=sup⁡ww(0,x0)w_{\infty}^{\star}=\sup_w w(0,x_0), we get w∞⋆≤W(0,x0)w_{\infty}^{\star}\leq W(0,x_0).

For the second inequality, let VV be the unique solution to (5) corresponding to V(T,x)=h(x)=W(T,x)V(T,x)=h(x)=W(T,x). Since the real G(x)∈G(x)G(x)\in\mathcal{G}(x) for all x∈Xx\in\mathcal{X}, then WW is an infimum over a larger set that includes the set over which VV is solved; hence W(0,x0)≤V(0,x0)W(0,x_0)\leq V(0,x_0). The last inequality is the definition of the optimality V⋆=inf⁡JV^{\star}=\inf J. □\square

Problem (7) is an LP and as such it is subject to Lagrange duality, with the following Generalized Moment Problem on occupation measures:

w∞⋆≜inf⁡μ∈M(Ξ)ν∈M(XT)∫Ξℓ dμ+∫XTh dν(10)w_{\infty}^{\star}\triangleq\inf_{\substack{\mu\in\mathcal{M}(\Xi)\\\nu\in\mathcal{M}(X_T)}}\int_{\Xi}\ell\,d\mu+\int_{X_T}h\,d\nu \tag*{(10)}
s.t.δT⊗ν+[∂μ∂t+∂∂x((f+Bu)μ)](t,x)=δ(0,x0)(11)\text{s.t.}\quad\delta_T\otimes\nu+\left[\frac{\partial\mu}{\partial t}+\frac{\partial}{\partial x}\left((f+Bu)\mu\right)\right]^{(t,x)}=\delta_{(0,x_0)} \tag*{(11)}

with Ξ≜[0,T]×Γ×U\Xi\triangleq[0,T]\times\Gamma\times U. ν\nu is called the terminal measure, while μ\mu is called the occupation measure and encapsulates the trajectories ξ=(t,x(t),B(t),u(t))∈Ξ\xi=(t,x(t),B(t),u(t))\in\Xi. Constraint (8b) is called the Liouville equation, and models how the controls transport the initial condition x0x_0 onto the distribution ν\nu of terminal conditions.

Proposition 2. Strong duality holds, i.e., w∞⋆=w∞′⋆w_\infty^\star= w_\infty^{\prime\star}.

Proof. The following choice for ww is strictly feasible in (7)

w(t,x)=(1−min⁡x~∈Xu∈Uℓ(x~,u))(t−T)+min⁡x~∈Xh(x~)−1w(t,x)=\left(1-\min_{\substack{\tilde{x}\in\mathcal{X}\\u\in\mathcal{U}}}\ell(\tilde{x},u)\right)(t-T)+\min_{\tilde{x}\in\mathcal{X}}h(\tilde{x})-1

so Slater’s condition [22] holds, hence strong duality.

Proposition 3. Let v∞⋆,v∞′⋆v_\infty^\star,v_\infty^{\prime\star} be the optimal values of the model-based counterparts of (7) and (8) respectively (corresponding to G(x)={G(x)}\mathcal{G}(x)=\{G(x)\}), and assume that (1) has a finite value. If for x∈Xx\in\mathcal{X}, ℓ(x,⋅)\ell(x,\cdot) is convex over U\mathcal{U}, then v∞⋆=v∞′⋆=V⋆v_\infty^\star=v_\infty^{\prime\star}=V^\star.

Proof. This follows from either of [8 Theorems 2.1 & 2.3] and [9 Theorem 2.3]. Defining

F(x)≜{f(x)+G(x)u∣u∈U},ℓ⋆(x,y)≜min⁡u∈U{ℓ(x,u)∣y=G(x)u},F(x)\triangleq\{f(x)+G(x)u\mid u\in\mathcal{U}\},\qquad\ell^\star(x,y)\triangleq\min_{u\in\mathcal{U}}\{\ell(x,u)\mid y=G(x)u\},

we verify the hypotheses of the invoked theorems:

  • ℓ⋆\ell^\star and hh are lower semi-continuous, because ℓ\ell, hh, ff and GG are continuous on their respective sets and U\mathcal{U} is compact;

  • [0,T][0,T] and X\mathcal{X} are compact;

  • For all x∈Xx\in\mathcal{X}, F(x)F(x) is an affine image of U\mathcal{U} (compact, convex set), hence it is compact and convex, and the set {(t,x,y)∣t∈[0,T], x∈X, f(x)+y∈F(x)}\{(t,x,y)\mid t\in[0,T],\ x\in\mathcal{X},\ f(x)+y\in F(x)\} is compact;

  • (1) is assumed to have a finite solution;

  • ℓ⋆(x,⋅)\ell^\star(x,\cdot) is convex on Rn\mathbb{R}^n, because it is a minimization of a convex function (ℓ(x,⋅)\ell(x,\cdot) is convex by assumption) with a linear constraint, which preserves convexity;

  • Strong duality v∞⋆=v∞′⋆v_\infty^\star=v_\infty^{\prime\star} holds by Proposition 2.

Since the set of polynomials R[t,x]\mathbb{R}[t,x] ((t,x)∈[0,T]×X(t,x)\in[0,T]\times\mathcal{X}) is dense in C1([0,T]×X)C^1([0,T]\times\mathcal{X}) with respect to the C1C^1 norm [23], we conclude the proof.

Remark 4. Proposition 3 cannot be extended to the data-driven subsolution w∞⋆w_\infty^\star. This is due to the bilinearity of (B,u)↦Bu(B,u)\mapsto Bu, which does not guarantee the convexity of F~(x)≜{f(x)+Bu∣(B,u)∈G(x)×U}\widetilde{F}(x)\triangleq\{f(x)+Bu\mid(B,u)\in\mathcal{G}(x)\times\mathcal{U}\} anymore.

Convergence with exciting datasets

Definition 2. For ϵ,c>0\epsilon,c>0, the dataset D\mathcal{D} is said to be (ϵ,c)(\epsilon,c)-exciting if, for all x∈Xx\in\mathcal{X}, there exist mm indices {i1,⋯ ,im}\{i_1,\cdots,i_m\} of data points such that ∥x−xij∥≤ϵ\lVert x-x_{i_j}\rVert\leq\epsilon for all j∈[m]j\in[m], and ρmin⁡(U^)≥c\rho_{\min}(\widehat{U})\geq c, with

U^≜[ui1∥ui1∥⋯uim∥uim∥]\widehat{U}\triangleq\begin{bmatrix}\dfrac{u_{i_1}}{\lVert u_{i_1}\rVert}&\cdots&\dfrac{u_{i_m}}{\lVert u_{i_m}\rVert}\end{bmatrix}

and ρmin⁡(⋅)\rho_{\min}(\cdot) giving the minimal singular value of a matrix.

Lemma 1. If D\mathcal{D} is (ϵ,c)(\epsilon,c)-exciting, then

∥B−G(x)∥≤ϵ′≜2ϵKmc∀(x,B)∈Γ.(12)\lVert B-G(x)\rVert\leq\epsilon^\prime\triangleq\frac{2\epsilon K\sqrt{m}}{c}\qquad\forall(x,B)\in\Gamma. \tag*{(12)}

Proof. For a j∈[m]j\in[m] and x∈Xx\in\mathcal{X}, we have

∥(B−G(x))uij∥≤∥Buij−yij∥+∥(G(xij)−G(x))uij∥≤2K∥uij∥∥x−xij∥≤2K∥uij∥ϵ\lVert(B-G(x))u_{i_j}\rVert\leq\lVert Bu_{i_j}-y_{i_j}\rVert+\lVert(G(x_{i_j})-G(x))u_{i_j}\rVert\leq2K\lVert u_{i_j}\rVert\lVert x-x_{i_j}\rVert\leq2K\lVert u_{i_j}\rVert\epsilon

and ∥(B−G(x))U^∥≤∥(B−G(x))U^∥F\lVert(B-G(x))\widehat{U}\rVert\le\lVert(B-G(x))\widehat{U}\rVert_F, with

∥(B−G(x))U^∥F=∑j=1m∥(B−G(x))uij∥uij∥∥2≤mmax⁡j∈[m]∥(B−G(x))uij∥uij∥∥2≤mmax⁡j∈[m]∥(B−G(x))uij∥∥uij∥.\begin{aligned} \lVert(B-G(x))\widehat{U}\rVert_F=\sqrt{\sum_{j=1}^{m}\left\lVert(B-G(x))\frac{u_{ij}}{\lVert u_{ij}\rVert}\right\rVert^2}\le\sqrt{m\max_{j\in[m]}\left\lVert(B-G(x))\frac{u_{ij}}{\lVert u_{ij}\rVert}\right\rVert^2} \\ &\le\sqrt{m}\max_{j\in[m]}\frac{\lVert(B-G(x))u_{ij}\rVert}{\lVert u_{ij}\rVert}. \end{aligned}

Hence ∥(B−G(x))U^∥≤2ϵKm\lVert(B-G(x))\widehat{U}\rVert\le2\epsilon K\sqrt{m}. Since U^\widehat{U} is square (mm columns of vectors in Rm\mathbb{R}^{m}) and invertible (ρmin⁡(U^)>0\rho_{\min}(\widehat{U})>0), then

∥(B−G(x))U^U^−1∥≤∥(B−G(x))U^∥ρmin⁡(U^)⇒∥B−G(x)∥≤2ϵKmc.\lVert(B-G(x))\widehat{U}\widehat{U}^{-1}\rVert\le\frac{\lVert(B-G(x))\widehat{U}\rVert}{\rho_{\min}(\widehat{U})}\quad\Rightarrow\quad\lVert B-G(x)\rVert\le\frac{2\epsilon K\sqrt{m}}{c}.

Theorem 1. For every (ϵ,c)(\epsilon,c)-exciting dataset D\mathcal{D}, if ℓ(x,⋅)\ell(x,\cdot) is convex over U\mathcal{U} for all x∈Xx\in\mathcal{X} and (1) has a finite optimal value, then the following is true for any feasible solution vv to the model-based instance of (7)

  1. v(0,x0)−w∞⋆≤ϵ′TΦ(v)v(0,x_0)-w_\infty^\star\le\epsilon'T\Phi(v)

  2. 0≤V⋆−w∞⋆→ϵ→000\le V^\star-w_\infty^\star\xrightarrow{\epsilon\to0}0

with Φ:v↦max⁡u∈U×[0,T]×X∥u∥∥∂v∂x(t,x)∥\Phi:v\mapsto\max_{u\in\mathcal{U}\times[0,T]\times\mathcal{X}}\lVert u\rVert\left\lVert\frac{\partial v}{\partial x}(t,x)\right\rVert and ϵ′\epsilon' as in (9).

Proof. For vv a feasible solution to the model-based instance of problem (7), i.e. G(x)={G(x)}G(x)=\{G(x)\}, the modified candidate w^:(t,x)↦v(t,x)+ϵ′Φ(v)(t−T)\widehat{w}:(t,x)\mapsto v(t,x)+\epsilon'\Phi(v)(t-T) is feasible for the data-driven instance of (7). Indeed, let (t,x,B,u)∈[0,T]×Γ×U(t,x,B,u)\in[0,T]\times\Gamma\times\mathcal{U}:

∂w^∂t+∂w^∂x(f(x)+Bu)+ℓ(x,u)=∂v∂t+ϵ′Φ(v)+∂v∂x(f(x)+Bu)+ℓ(x,u)=∂v∂t+∂v∂x(f(x)+G(x)u)+ℓ(x,u)+∂v∂x(B−G(x))u+ϵ′Φ(v)\begin{aligned} \frac{\partial\widehat{w}}{\partial t}+\frac{\partial\widehat{w}}{\partial x}\left(f(x)+Bu\right)+\ell(x,u)=\frac{\partial v}{\partial t}+\epsilon'\Phi(v)+\frac{\partial v}{\partial x}\left(f(x)+Bu\right)+\ell(x,u) \\ &=\frac{\partial v}{\partial t}+\frac{\partial v}{\partial x}\left(f(x)+G(x)u\right)+\ell(x,u)+\frac{\partial v}{\partial x}(B-G(x))u+\epsilon'\Phi(v) \end{aligned}
≥(7b)∂v∂x(B−G(x))u+ϵ′Φ(v)≥−∥∂v∂x(B−G(x))u∥+ϵ′Φ(v)\begin{aligned} \mathrel{\overset{\text{(7b)}}{\ge}} \frac{\partial v}{\partial x}(B-G(x))u+\epsilon'\Phi(v) \\ &\ge-\left\lVert\frac{\partial v}{\partial x}(B-G(x))u\right\rVert+\epsilon'\Phi(v) \end{aligned}
≥(9)−ϵ′Φ(v)+ϵ′Φ(v)=0\mathrel{\overset{\text{(9)}}{\ge}}-\epsilon'\Phi(v)+\epsilon'\Phi(v)=0

and w^(T,x)=v(T,x)≤(7c)h(x)\widehat{w}(T,x)=v(T,x)\mathrel{\overset{\text{(7c)}}{\le}}h(x). This gives w^(0,x0)=v(0,x0)−ϵ′TΦ(v)≤sup⁡ww(0,x0)=w∞⋆\widehat{w}(0,x_0)=v(0,x_0)-\epsilon'T\Phi(v)\le\sup_w w(0,x_0)=w_\infty^\star. As for (ii), we have w∞⋆≤V⋆w_\infty^\star\le V^\star from Proposition 1. Moreover, V⋆=sup⁡vv(0,x0)V^\star=\sup_v v(0,x_0) according to Proposition 3 under the theorem’s assumptions. So, for any arbitrary η>0\eta>0, there exists a feasible vηv_\eta such that V⋆−η≤vη(0,x0)V^\star-\eta\le v_\eta(0,x_0). This gives V⋆−w∞⋆≤η+vη(0,x0)−w∞⋆≤η+ϵ′TΦ(vη)→ϵ′→0ηV^\star-w_\infty^\star\le\eta+v_\eta(0,x_0)-w_\infty^\star\le\eta+\epsilon'T\Phi(v_\eta)\xrightarrow{\epsilon'\to0}\eta. Since η>0\eta>0 was arbitrary, the sandwich rule concludes.

Moment-SoS hierarchy framework

The moment-SoS hierarchy leverages Putinar’s Positivstellensatz [24] to reformulate sign constraints as follows: for ξ=(t,x,B,u)∈Ξ\xi=(t,x,B,u)\in\Xi, defining the HJB slack

S(ξ)=∂w∂t(t,x)+∂w∂x(t,x)(f(x)+Bu)+ℓ(x,u),S(\xi)=\frac{\partial w}{\partial t}(t,x)+\frac{\partial w}{\partial x}(t,x)\left(f(x)+Bu\right)+\ell(x,u),

(7b) is strengthened as S∈Q(Ξ)S\in Q(\Xi) and (7c) is recast as h−w(T,⋅)∈Q(XT)h-w(T,\cdot)\in Q(\mathcal{X}_T), with quadratic modules defined as

Q(XT)≜{σ+σTpT∣σ,σT sums of squares}(13)Q(\mathcal{X}_T)\triangleq\left\{\sigma+\sigma_Tp_T\mid\sigma,\sigma_T\text{ sums of squares}\right\} \tag*{(13)}
Q(Ξ)={σ+(T−t)tσ0+σXTpX+∑i=1Nσipi+σUTpU}.Q(\Xi)=\left\{\sigma+(T-t)t\sigma_0+\sigma_X^{\mathsf T}p_X+\sum_{i=1}^{N}\sigma_i p_i+\sigma_U^{\mathsf T}p_U\right\}.

Then, the moment-SoS hierarchy consists in restricting the search for the sums of squares σ∙\sigma_\bullet to polynomials of degree at most d∈Nd \in\mathbb{N}, which is called SoS strengthening. By Lagrange duality, on the dual side, this amounts to replacing the measures μ\mu and ν\nu by vectors stacking their moments up to degree dd, which we denote by zz and ϑ\vartheta, respectively. The dual to degree dd quadratic module membership then requires the Riesz functional introduced next.

Definition 3. Let χd\chi_d (resp. ψd\psi_d) be the basis of Rd[x]\mathbb{R}_d[x] (resp. Rd[ξ]\mathbb{R}_d[\xi]) in which we compute moments, and Q(x)=qTχdQ(x)=q^{\mathsf T}\chi_d (resp. S(ξ)=sTψdS(\xi)=s^{\mathsf T}\psi_d) be a polynomial in x∈Xx\in\mathcal{X} (resp. ξ∈Ξ\xi\in\Xi). The Riesz functional associated with ϑ\vartheta (resp. zz) is:

Lϑ(Q)=qTϑ,resp.Lz(S)=sTz.L_\vartheta(Q)=q^{\mathsf T}\vartheta,\qquad\text{resp.}\qquad L_z(S)=s^{\mathsf T}z.

In particular, extending this definition to vectors and matrices of polynomials, ϑ=Lϑ(χ)\vartheta=L_\vartheta(\chi) (resp. z=Lz(ψ)z=L_z(\psi)).

With this definition, introducing k=⌊d/2⌋k=\lfloor d/2\rfloor for notational brevity, the hierarchy provides (8) with moment relaxations:

wd′≔inf⁡z,ϑLz(ℓ)+Lϑ(h)(14)w'_d \coloneqq\inf_{z,\vartheta} L_z(\ell)+L_\vartheta(h) \tag*{(14)}
s.t.∀w∈Rd−deg⁡(f+Bu)+1[t,x],\mathrm{s.t.}\quad\forall w\in\mathbb{R}_{d-\deg(f+Bu)+1}[t,x],
Lϑ(w(T,⋅))−w(0,x0)=Lz(∂w∂t+(f+Bu)∂w∂x)(15)L_\vartheta(w(T,\cdot))-w(0,x_0)=L_z\left(\frac{\partial w}{\partial t}+(f+Bu)\frac{\partial w}{\partial x}\right) \tag*{(15)}
Lϑ(χkχkT)⪰0,Lϑ(pTχkTχkTT)⪰0(16)L_\vartheta(\chi_k\chi_k^{\mathsf T})\succeq0,\qquad L_\vartheta(p_T\chi_{k_T}\chi_{k_T}^{\mathsf T})\succeq0 \tag*{(16)}
Lz(ψk∙ψk∙T)⪰0,Lz(p∙ψk∙ψk∙T)⪰0(17)L_z(\psi_{k_\bullet}\psi_{k_\bullet}^{\mathsf T})\succeq0,\qquad L_z(p_\bullet\psi_{k_\bullet}\psi_{k_\bullet}^{\mathsf T})\succeq0 \tag*{(17)}

∙∈{0,X,U,1,…,N}\bullet\in\{0,\mathcal{X},\mathcal{U},1,\ldots,N\}, kT/∙=⌊(d−deg⁡pT/∙)/2⌋\quad k_{T/\bullet}=\lfloor(d-\deg p_{T/\bullet})/2\rfloor.

Importantly, Lz(ψkψkT)L_z(\psi_k\psi_k^{\mathsf T}) is called the order dd moment matrix of zz, and Lϑ(pTχkTχkTT)L_\vartheta(p_T\chi_{k_T}\chi_{k_T}^{\mathsf T}) is called the order dd localizing matrix of ϑ\vartheta. The SoS multipliers σ\sigma and σT\sigma_T (resp. σ,σ∙\sigma,\sigma_\bullet) in the definition (10) of Q(XT)Q(\mathcal{X}_T) (resp. Q(Ξ)Q(\Xi)) are the Lagrange multipliers of Linear Matrix Inequality (LMI) constraints (11c) (resp. (11d)).

Proposition 4. Let wd⋆w_d^\star denote the optimal value of the SoS-strengthening of (7). Then, the hierarchy converges monotonically, i.e.

wd′↗w∞⋆.(18)w'_d \nearrow w^\star_\infty. \tag*{(18)}

and strong duality wd′=wd⋆w'_d=w^\star_d holds at each relaxation order.

Proof. The proof of monotone convergence is identical to [9 Theorem 3.6]. By [25 Proposition 6], it only remains to prove that moment relaxations (11) of (8) enforce uniform boundedness of the pseudo-moments of order 0. Let z,ϑz,\vartheta be pseudo-moment sequences corresponding to μ,ν\mu,\nu, respectively. Then, testing (11b) against w(t,x)=1w(t,x)=1 yields

ϑ0=Lϑ(1)=Lϑ(w(T,⋅))=w(0,x0)+Lz(∂w∂t+(f+Bu)∂w∂x)=w(0,x0)=1\begin{aligned} \vartheta_0=L_\vartheta(1)=L_\vartheta(w(T,\cdot)) \\ &=w(0,x_0)+L_z\left(\frac{\partial w}{\partial t}+(f+Bu)\frac{\partial w}{\partial x}\right) \\ &=w(0,x_0)=1 \end{aligned}

and testing it against w(t,x)=tw(t,x)=t yields

z0=Lz(1)=Lz(∂w∂t)=Lz(∂w∂t+∂w∂x(f+Bu))=Lϑ(w(T,⋅))−w(0,x0)=T.\begin{aligned} z_0=L_z(1)=L_z\left(\frac{\partial w}{\partial t}\right)=L_z\left(\frac{\partial w}{\partial t}+\frac{\partial w}{\partial x}(f+Bu)\right) \\ &=L_\vartheta(w(T,\cdot))-w(0,x_0)=T. \end{aligned}

As a result, when dd is large enough, ϑ0=1\vartheta_0=1 and z0=Tz_0=T are fixed, hence uniformly bounded, and applying [25 Proposition 6] concludes the proof.

Extracting a control law

Throughout, wdw_d denotes an optimal solution of the degree dd SoS strengthening of (7) from § 4, μ\mu the optimal occupation measure of (8) on Ξ=[0,T]×Γ×U\Xi= [0,T] \times\Gamma\times\mathcal{U}, in the variables ξ=(t,(x,B),u)\xi= (t,(x,B),u), and zdz_d the corresponding optimal pseudo-moment sequence in the degree dd moment relaxation.

From the dual on functions

A standard way of extracting a control law was proposed by Henrion et al. [10] (in their case, the LP was model-based, i.e. G(x)={G(x)}G(x) = \{G(x)\}): one can define the HJB slack, for ξ=(t,(x,B),u)∈Ξ\xi= (t,(x,B),u) \in\Xi, as

Sd(ξ)=∂wd∂t(t,x)+∂wd∂x(t,x)(f(x)+Bu)+ℓ(x,u),S_d(\xi) = \frac{\partial w_d}{\partial t}(t,x) + \frac{\partial w_d}{\partial x}(t,x)\bigl(f(x) + Bu\bigr) + \ell(x,u),

which by design is a nonnegative polynomial on Ξ\Xi. In the infinite-dimensional setting, if an optimal w∞w_\infty existed, complementary slackness would enforce ∫S∞ dμ=0\int S_\infty\,\mathrm{d}\mu= 0, hence S∞S_\infty should vanish on the support of μ\mu, which encodes the trajectories. This justifies the heuristic computation of a feedback control, at given (t,x)∈[0,T]×X(t,x) \in[0,T] \times\mathcal{X}, in the form

κd(t,x)=argmin⁡u∈U min⁡B∈G(x) Sd(t,x,B,u).(19)\kappa_d(t,x) = \underset{u \in\mathcal{U}}{\operatorname{argmin}}\ \underset{B \in G(x)}{\min}\ S_d(t,x,B,u). \tag*{(19)}

Since SdS_d is affine in BB and the G(x)G(x) are intersections of convex quadratic sets, the inner minimization is a small convex program. If ℓ(x,u)\ell(x,u) is not strictly convex in uu, the argmin may be set-valued, in which case any measurable selection can be used. The feedback (19) follows the optimistic plan exactly: it would be optimal in the best-case scenario where G(x)G(x) is the most favorable. On the true system, this is a source of bias, which we avoid using the next extraction method.

From the primal on moments

Here we propose an alternative, averaging a (t,x)(t,x) disintegration of the occupation measure, over all possible models BB and controls uu:

κˉ(t,x)=Eμ[u∣t,x]=∫u dμ(u,B∣t,x),\bar{\kappa}(t,x) = \mathbb{E}_{\mu}[u \mid t,x] = \int u \,\mathrm{d}\mu(u,B \mid t,x),

defined μ(t,x)\mu^{(t,x)}-a.e. and with values in U\mathcal{U} since U\mathcal{U} is convex. By design, this feedback policy averages all inputs and models charged by μ\mu, so that it does not only account for the best-case scenario (although μ\mu is optimized for such a scenario). By definition of the conditional mean, one can view κˉ\bar{\kappa} as the orthogonal projection, in L2(μ;Rm)L^2(\mu;\mathbb{R}^m), of the projection function πu:(t,x,B,u)⟼u\pi_u : (t,x,B,u) \longmapsto u, onto the subspace L2(μ(t,x);Rm)L^2(\mu^{(t,x)};\mathbb{R}^m) of functions depending only on (t,x)(t,x). Its best polynomial approximation of degree at most rr in L2(μ(t,x);Rm)L^2(\mu^{(t,x)};\mathbb{R}^m) directly is the orthogonal projection of πu\pi_u onto Rr[t,x]\mathbb{R}_r[t,x], since by Pythagoras it holds for any such polynomial κr\kappa_r

∥κr−πu∥L2(μ)2=∥κr−κˉ∥L2(μ)2⏟∈L2(μ(t,x);Rm)+∥κˉ−πu∥L2(μ)2⏟∈L2(μ(t,x);Rm)⊥.\|\kappa_r - \pi_u\|_{L^2(\mu)}^2 = \underbrace{\|\kappa_r - \bar{\kappa}\|_{L^2(\mu)}^2}_{\in L^2(\mu^{(t,x)};\mathbb{R}^m)} + \underbrace{\|\bar{\kappa} - \pi_u\|_{L^2(\mu)}^2}_{\in L^2(\mu^{(t,x)};\mathbb{R}^m)^\perp}.

Since in practice only pseudo-moment vectors ϑ\vartheta and zz up to degree d≥rd \ge r are available, denoting φr(t,x)\varphi_r(t,x) a size ωr=(r+n+1r)\omega_r = \binom{r+n+1}{r} basis of Rr[t,x]\mathbb{R}_r[t,x], we look for a matrix A∈Rωr×mA \in\mathbb{R}^{\omega_r \times m} to parameterize the representation

κr(t,x)=ATφr(t,x),\kappa_r(t,x) = A^\mathsf{T}\varphi_r(t,x),

and the L2(μ)L^2(\mu)-norm to be minimized is recast as

Lz(∥κr−πu∥2)=Lz(∥ATφr(t,x)−u∥2)=tr⁡(ATMrA)−2tr⁡(ATCr)+Lz(∥u∥2),\begin{aligned} L_z(\|\kappa_r - \pi_u\|^2) = L_z\bigl(\|A^\mathsf{T}\varphi_r(t,x) - u\|^2\bigr) \\ &= \operatorname{tr}(A^\mathsf{T}M_rA) - 2\operatorname{tr}(A^\mathsf{T}C_r) + L_z(\|u\|^2), \end{aligned}

Mr=Lz(φrφrT)∈Rωr×ωrM_r = L_z(\varphi_r\varphi_r^\mathsf{T}) \in\mathbb{R}^{\omega_r \times\omega_r}, Cr=Lz(φruT)∈Rωr×mC_r = L_z(\varphi_r u^\mathsf{T}) \in\mathbb{R}^{\omega_r \times m}.

The corresponding optimality condition is

MrA^=Cr.(20)M_r \hat{A} = C_r. \tag*{(20)}

which recovers the moment-matching extraction of [11], where a polynomial controller is obtained from the moments of a control measure that corresponds to (μu)(t,x)=κˉ(t,x)μ(t,x)(\mu u)^{(t,x)}=\bar{\kappa}^{(t,x)}\mu^{(t,x)} in our framework. The novelty here is that our projection viewpoint allows us to add input constraints.

Indeed, while κˉ\bar{\kappa} takes values in U\mathcal{U}, such a guarantee disappears when we use polynomial approximation, and overshoots occur when the input saturates over a region, even on the support of the occupation measure. Therefore, we restrict the approximation to polynomials with values in U\mathcal{U}, by solving the problem

A^∈argmin⁡A∈Rωr×m tr⁡(A⊤MrzA)−2tr⁡(A⊤Crz)\widehat{A}\in\underset{A\in\mathbb{R}^{\omega_r\times m}}{\operatorname{argmin}}\ \operatorname{tr}\left(A^{\top}M_r^zA\right)-2\operatorname{tr}\left(A^{\top}C_r^z\right)
s.t.∀(t,x)∈[0,T]×X,A⊤φr(t,x)∈U\text{s.t.}\quad\forall(t,x)\in[0,T]\times\mathcal{X},\quad A^{\top}\varphi_r(t,x)\in\mathcal{U}
i.e.PUA⊤φr(t,x)−qU≥0.(21)\text{i.e.}\quad P_{\mathcal{U}}A^{\top}\varphi_r(t,x)-q_{\mathcal{U}}\ge0. \tag*{(21)}

Since U={u∈Rm∣PUu−qU≥0}\mathcal{U}=\{u\in\mathbb{R}^m\mid P_{\mathcal{U}}u-q_{\mathcal{U}}\ge0\} is a polytope, the constraint is pointwise linear in AA and can be represented through Putinar certificates with fixed degree. MrzM_r^z being positive semidefinite by design, (15) can then be recast as a small semidefinite program. We call the obtained κ^r=A^⊤φr(t,x)\widehat{\kappa}_r=\widehat{A}^{\top}\varphi_r(t,x) the Christoffel-Darboux (CD) feedback, because it relies on an L2(μ)L^2(\mu) orthogonal projection approach.

Remark 5. With an initialization in x0x_0, i.e. with δ(0,x0)\delta_{(0,x_0)} in the LHS of (8b), the optimal μ(t,x)\mu^{(t,x)} from (8) is supported on a curve, so that κˉ\bar{\kappa} is only defined along that curve, and the computed MrM_r is ill-conditioned because it aims at a singular moment matrix. For the extraction, we therefore solve the relaxation with the initial condition chosen uniformly at random on a small box around x0x_0 (in our experiments x0+[−0.1,0.1]nx_0+[-0.1,0.1]^n, which can be interpreted as a bounded uncertainty on the initial condition). Then, the optimal μ(t,x)\mu^{(t,x)} is supported on a tube on which κˉ\bar{\kappa} is defined, and the optimal moment matrix is positive definite. Outside the tube, only the polynomial approximation κ^r=A^⊤φr(t,x)\widehat{\kappa}_r=\widehat{A}^{\top}\varphi_r(t,x) is defined as an extrapolation. The bound wd⋆w_d^\star remains computed with initialization at x0x_0; with bounded additive noise Δx\Delta x, the optimal value bounds EΔx[V(0,x0+Δx)]\mathbb{E}_{\Delta x}[V(0,x_0+\Delta x)] instead.

Numerical application

Choosing data location

While the number of LMI in 11 grows linearly with the number NN of data points, the computational time still grows sharply with NN (because the linearity coefficient itself increases combinatorially in the relaxation degree dd). As a result, one might want to minimize the number of data points by using only well-localized samples, either from existing data or, when possible, from new experiments. For a computed optimal solution wd(t,x)w_d(t,x) to the degree dd SoS strengthening of (7), we define the state score

Sd⋆(x)≜min⁡t∈[0,T],u∈UB∈G(x)Sd(t,x,B,u)≥0.S_d^\star(x)\triangleq\min_{\substack{t\in[0,T],\,u\in\mathcal{U}\\ B\in\mathcal{G}(x)}}S_d(t,x,B,u)\ge0.

By definition, Sd⋆S_d^\star is small where the HJB inequality is close to saturation, which corresponds to the support of the optimal occupation measure μ\mu, so that small values of Sd⋆S_d^\star localize states where the bound is decided, and drawing data there tightens G(x)\mathcal{G}(x) where it is most likely to improve. For instance, new samples can be drawn without replacement among some candidates with probabilities proportional to exp⁡(−Sd⋆(x)/τ)\exp(-S_d^\star(x)/\tau), where τ=0.1median⁡(Sd⋆)\tau=0.1\operatorname{median}(S_d^\star), and the median is empirically computed over a finite set of candidates.

From this observation, two approaches are possible, depending on whether one has access only to a large pool of measurements or to a sampling experiment. This paper focuses on the case where no simulator or experimental benchmark is available; one can rely on a fixed pool of P=2000P=2000 samples (uniform on X×U\mathcal{X}\times\mathcal{U}). Since the cost of the update grows with NN, accounting for all the data might be too expensive, so one can start with a small number of samples (10 in our experiments), and add 10 per round, with various policies for the selection of candidates:

  • one can pick the new data points uniformly at random among the available measurements;

  • one can choose them by greedy coverage, i.e. taking the farthest point in xx from the current dataset;

  • one can leverage the slack score Sd⋆S_d^\star, as mentioned above, to select new data points.

Table 1 illustrates how the data selection process affects the methodology’s overall accuracy using a simple example: the Van der Pol oscillator (see § 6.2). Each round solves one degree d=4d = 4 relaxation (11) (in about 6s), and the results show that slack-based selection with 40 samples gives a bound comparable to the one obtained with 200 random samples, as well as a worst-case cost (4.17) much better than with 40 random samples (4.51) and close to that with 200 (4.09). Coverage improves less than slack: what matters is information close to the optimal trajectories, not filling X\mathcal{X}, which is only instrumental in the proof of Theorem 1.

NNrulewd⋆w_d^\startrueworst
20random2.857±0.0542.857 \pm0.0543.900±0.0093.900 \pm0.0094.92±0.214.92 \pm0.21
20coverage2.927±0.0462.927 \pm0.0463.908±0.0203.908 \pm0.0204.65±0.084.65 \pm0.08
20slack3.067±0.0343.067 \pm0.0343.840±0.0043.840 \pm0.0044.28±0.044.28 \pm0.04
40random2.987±0.0372.987 \pm0.0373.878±0.0123.878 \pm0.0124.51±0.084.51 \pm0.08
40coverage3.041±0.0203.041 \pm0.0203.852±0.0073.852 \pm0.0074.36±0.064.36 \pm0.06
40slack3.158±0.0083.158 \pm0.0083.846±0.0043.846 \pm0.0044.17±0.044.17 \pm0.04
200random3.152±0.0103.152 \pm0.0103.842±0.0043.842 \pm0.0044.09±0.034.09 \pm0.03

Table 1. Selection from a pool of 2000 samples (Van der Pol, d=4d = 4, mean ±\pm standard error over 10 seeds; V⋆=3.746V^\star= 3.746). True: cost of the CD feedback on the true system; worst: over the consistent gains of section 6.2.

If new data points can be obtained at will, then it is possible to investigate active sampling, i.e. choosing the exact location of each new data point, either uniformly at random, or using the slack score again, or even on the trajectory induced by the current feedback on the true system. We leave such sampling methods and their analysis for future work.

Benchmarks and methodology

In all benchmarks we assume G(x)=(0,…,0,g(x))TG(x) = (0,\ldots,0,g(x))^\mathsf{T} with unknown gain gg and hence represent B=(0,…,0,b)B = (0,\ldots,0,b) with b∈G(x)⊂Rb \in G(x) \subset\mathbb{R}. We also work with XT=X\mathcal{X}_T = \mathcal{X}.

We first study 3 variants of a Duffing oscillator

x˙1=x2,x˙2=x3−x1−x13−0.3x2,x˙3=g(x)u−x3\dot{x}_1 = x_2,\quad\dot{x}_2 = x_3 - x_1 - x_1^3 - 0.3x_2,\quad\dot{x}_3 = g(x)u - x_3

with X=[−1.5,1.5]3\mathcal{X} = [-1.5,1.5]^3, U=[−1,1]\mathcal{U} = [-1,1], x0=(1,0,0)x_0 = (1,0,0), T=6T = 6,

ℓ(x,u)=x12+x22+0.1x32+0.5u2,h(x)=x12+x22,\ell(x,u) = x_1^2 + x_2^2 + 0.1x_3^2 + 0.5u^2,\quad h(x) = x_1^2 + x_2^2,

and:

  • polynomial gain g(x)=1.2−0.3x12+0.15x2g(x) = 1.2 - 0.3x_1^2 + 0.15x_2 (K=0.92K = 0.92)

  • non-polynomial g(x)=1+0.4sin⁡x1cos⁡x2g(x) = 1 + 0.4\sin x_1\cos x_2 (K=0.57K = 0.57)

  • noisy x˙3\dot{x}_3 measurements (εx˙=0.1\varepsilon_{\dot{x}} = 0.1) on the polynomial gain.

The second benchmark is the Van der Pol oscillator

x˙1=x2,x˙2=(1−x1)2x2−x1+(1+0.4x12)u(K=1.6)\dot{x}_1 = x_2,\quad\dot{x}_2 = (1-x_1)^2x_2 - x_1 + (1+0.4x_1^2)u \quad(K = 1.6)

with X=[−2,2]2\mathcal{X} = [-2,2]^2, U=[−1,1]\mathcal{U} = [-1,1], x0=(1,1)x_0 = (1,1), h(x)=∥x∥2h(x) = \lVert x\rVert^2, ℓ(x,u)=∥x∥2+u2\ell(x,u) = \lVert x\rVert^2 + u^2 and T=2T = 2. The reference optimal values V⋆V^\star (Duffing: 1.9988 for polynomial gain, 1.7958 for non-polynomial; Van der Pol: 3.7456) are computed by direct shooting with the true gain (polynomial gains are confirmed to be tight using the methodology of [9]).

We solve the moment-SoS relaxations of degree d=4d = 4, using time splitting [26] into three pieces of 2s (Duffing, T=6T = 6), in order to avoid bad LMI conditioning. The polynomial CD feedback κ^r\hat{\kappa}_r is fitted on each piece and has degree r=2r = 2. All SDPs are solved with MOSEK via YALMIP in MATLAB on an Apple M2 laptop (16GB).

We compare our method with two existing MPC schemes that use the same information to identify a model of GG: LI-MPC uses Lipschitz interpolation, i.e., the midpoint of G(x)G(x) (kinky inference [27], nominal version of [16]); SINDy-MPC uses SINDy [14, 15], a sparse regression of gg on the monomials of degree at most 3. Once these model candidates are learned, a standard MPC scheme is applied. We implement the MPC input as a piecewise-constant policy on a grid with step sizes of 0.2s (Duffing) or 0.1s (Van der Pol), re-planning every two steps. We generate a pool of 2000 samples uniformly at random using 10 fixed seeds, then apply our data selection method. The baselines have no access to Sd⋆S_d^\star, so they add random samples, which we also use in our method. We report the gap to V⋆V^\star on the true system, and the worst cost over five gains (1−θ)g+θgˉ(1-\theta)g+\theta\bar{g}, where G(x)=[g(x),gˉ(x)]\mathcal{G}(x)=[g(x),\bar{g}(x)], θ∈{0,14,12,34,1}\theta\in\{0,\frac{1}{4},\frac{1}{2},\frac{3}{4},1\}, a lower estimate of the worst case.

Results and comparisons

Table 2 compares our method with the κ^2\hat{\kappa}_2 control policy to the baselines LI-MPC and SINDy-MPC. For all tested benchmarks, MPC performs best against the true system, while our method appears more robust in the worst-case scenario when data are selected according to the slack score, which the baselines cannot use. Sample selection also reduces the V⋆−wd⋆V^\star-w_d^\star gap.

benchmarkcontrollertrue (%)worst
Duffing, baseours, selected+2.3 ± .12.31 ± .02
ours, random+3.5 ± .42.80 ± .05
LI-MPC+0.2 ± .02.67 ± .05
SINDy-MPC+0.1 ± .02.67 ± .05
Duffing, non-poly.ours, selected+1.3 ± .11.96 ± .01
ours, random+2.2 ± .12.14 ± .02
LI-MPC+0.1 ± .02.02 ± .02
SINDy-MPC+0.1 ± .02.02 ± .02
Duffing, noiseours, selected+4.7 ± .32.62 ± .02
ours, random+7.1 ± .73.26 ± .08
LI-MPC+0.2 ± .03.20 ± .12
SINDy-MPC+0.1 ± .03.21 ± .12
Van der Pol, T=2T = 2ours, selected+2.7 ± .14.17 ± .04
ours, random+3.5 ± .34.51 ± .08
LI-MPC+0.3 ± .14.76 ± .17
SINDy-MPC+0.1 ± .04.69 ± .16

Table 2. Closed-loop performance at N=40N = 40, mean ± standard error over 10 seeds: gap to V⋆V^\star on the true system, worst cost over consistent gains. Best per benchmark in bold.

Figure 1 illustrates the inequality wd⋆≤V⋆≤J(κ)w_d^\star\le V^\star\le J(\kappa) of Propositions 1 and 4, regardless of the choice for the feedback law u(t)=κ(t,x(t))u(t)=\kappa(t,x(t)), the MPC baselines included. Selection raises the bound at every NN. At N=40N=40, for our feedback, the certified gap J(κ)−wd⋆/J(κ)J(\kappa)-w_d^\star/J(\kappa), an upper bound on J(κ)−V⋆/J(κ)J(\kappa)-V^\star/J(\kappa), is then on average 13.5% (base Duffing), 6.2% (non-polynomial), 20.5% (noisy) and 17.9% (Van der Pol), while for LI-MPC it is 11.7%, 5.1%, 17.0% and 15.9%, respectively. It is limited by the looseness of the bound (Theorem 1). Neither baseline provides any such certificate.

Figure 1. Bound wd⋆w_d^\star (blue) and true cost of the CD feedback (orange) against NN, mean ±\pm standard error over 10 seeds. Solid: selected data. Dashed: random data, as for the baselines. Dotted: V=V⋆V = V^\star, which lies in the shaded band between the bound and the cost of our feedback.

Figure 2 displays the trajectories corresponding to the feedbacks κd(t,x)=arg⁡min⁡umin⁡BSd(t,x,B,u)\kappa_d(t,x)=\arg\min_u\min_B S_d(t,x,B,u) and κ^r(t,x)\hat{\kappa}_r(t,x) obtained by CD projection: both damp the oscillation as the optimal control does and end near the origin. They overshoot slightly more than the optimal trajectory, as they assume a favorable gain and actuate less (the actuator state x3x_3 peaks at 0.39–0.45 versus 0.52 at the optimum).

Figure 2. Closed-loop trajectories from x0=(1,0,0)x_0 = (1, 0, 0) on the true system, projected on (x1,x2)(x_1, x_2): Duffing, base gain, N=40N = 40 selected samples, with the optimal control (true gain known) and without control. Dots: x(T)x(T). Costs: 2.039 (κ^r\hat{\kappa}_r), 2.107 (κd\kappa_d), 1.999 (optimal), 3.898 (no control).

Our feedback is an explicit polynomial: a whole closed loop takes about 1ms in MATLAB. In contrast, the better-performing MPC schemes re-solve a nonlinear program at every re-planning step, which takes 13–156s per closed loop, i.e. 10410^4 to 2⋅1052\cdot10^5 times more; see Figure 3. Dedicated NMPC solvers would reduce this ratio by orders of magnitude, but evaluating a polynomial will always be much faster.

Figure 3. Accuracy against online computation per closed loop, Duffing, base gain, N=40N = 40. Top: gap to true V⋆V^\star. Bottom: worst cost over the consistent gains. hh: MPC step.

Conclusion

This paper studies the optimal control of polynomial input-affine systems with an unknown but Lipschitz continuous input matrix. An uncertainty set characterizing this matrix is generated based on assumptions on the availability of a dataset and an upper bound on the Lipschitz constant. The HJB equation used to solve the optimal control problem is then adapted to a best-case data-driven formulation of uncertainty, providing a lower bound on the best achievable cost. This equation is further relaxed into an infinite-dimensional LP and its primal on moments.

The theoretical contributions of this work consist of a certified lower bound on the attainable cost and formal mathematical guarantees, with a convergence rate depending on the excitation properties of the data. The convergence constant grows linearly with the time horizon, the Lipschitz upper bound, and the square root of the number of inputs, illustrating the deterioration caused by large time horizons, poor Lipschitz constant estimation, or high-dimensional control inputs. A control law is extracted from the optimized primal on moments and is compared with two MPC variants in the numerical section. The results show that it has better online computation time, as the controller is constructed offline, and with selected data, it performs better against our estimated worst case. However, it still lacks precision relative to the MPC benchmarks, suffers from the curse of dimensionality, and remains limited to modestly sized datasets.

Future work will investigate strategies to improve the performance of our controller, for instance by sharpening the uncertainty set and model learning. The curse of dimensionality will be addressed through a combination of existing scaling strategies for SoS programming, tailored to the specific data-driven problems at hand. Likewise, we will investigate ways to mitigate the computational burden associated with large datasets while maintaining convergence properties. Eventually, we will explore possibilities to improve the controller online during operation, while avoiding both the need to rerun the whole machinery and the loss of formal guarantees.

References

  1. [1]A. Dontchev, W. Hager, A. Poore, and B. Yang, “Optimality, stability, and convergence in nonlinear control,” Applied Mathematics and Optimization, vol. 31, no. 3, pp. 297–326, 1995.DOI
  2. [2]H. G. Bock and K.-J. Plitt, “A multiple shooting algorithm for direct solution of optimal control problems,” IFAC Proceedings Volumes, vol. 17, no. 2, pp. 1603–1608, 1984.DOI
  3. [3]D. Mayne, “A second-order gradient method for determining optimal trajectories of non-linear discrete-time systems,” International Journal of Control, vol. 3, no. 1, pp. 85–95, 1966.DOI
  4. [4]D. Q. Mayne, J. B. Rawlings, C. V. Rao, and P. O. Scokaert, “Constrained model predictive control: Stability and optimality,” Automatica, vol. 36, no. 6, pp. 789–814, 2000.DOI
  5. [5]M. Diehl, H. G. Bock, and J. P. Schlöder, “A real-time iteration scheme for nonlinear optimization in optimal feedback control,” SIAM Journal on control and optimization, vol. 43, no. 5, pp. 1714–1736, 2005.DOI
  6. [6]W. H. Fleming and H. M. Soner, Controlled Markov processes and viscosity solutions. Springer, 2006.DOI
  7. [7]M. Bardi and I. C. Dolcetta, Optimal control and viscosity solutions of Hamilton-Jacobi-Bellman equations, vol. 12 of Systems & Control: Foundations & Applications. Birkhäuser, 1997.DOI
  8. [8]R. Vinter, “Convex duality and nonlinear optimal control,” SIAM J. Control Optim., vol. 31, no. 2, pp. 518–538, 1993.DOI
  9. [9]J. B. Lasserre, D. Henrion, C. Prieur, and E. Trélat, “Nonlinear optimal control via occupation measures and LMI-relaxations,” SIAM J. Control Optim., vol. 47, no. 4, pp. 1643–1666, 2008.arxiv.org/abs/math/0703377
  10. [10]D. Henrion, J. B. Lasserre, and C. Savorgnan, “Nonlinear optimal control synthesis via occupation measures,” in Proc. 47th IEEE CDC, pp. 4749–4754, 2008.arxiv.org/abs/0803.1570
  11. [11]A. Majumdar, R. Vasudevan, M. M. Tobenkin, and R. Tedrake, “Convex optimization of nonlinear feedback controllers via occupation measures,” International Journal of Robotics Research, vol. 33, no. 9, pp. 1209 – 1230, 2014.
  12. [12]M. Korda, D. Henrion, and C. N. Jones, “Controller design and value function approximation for nonlinear dynamical systems,” Automatica, vol. 67, pp. 54–66, 2016.arxiv.org/abs/1503.06650
  13. [13]M. Jones and M. M. Peet, “Polynomial approximation of value functions and nonlinear controller design with performance bounds,” arXiv preprint arXiv:2010.06828, 2020.arxiv.org/abs/2010.06828
  14. [14]S. L. Brunton, J. L. Proctor, and J. N. Kutz, “Discovering governing equations from data by sparse identification of nonlinear dynamical systems,” Proceedings of the National Academy of Sciences, vol. 113, no. 15, pp. 3932–3937, 2016.DOI
  15. [15]E. Kaiser, J. N. Kutz, and S. L. Brunton, “Sparse identification of nonlinear dynamics for model predictive control in the low-data limit,” Proceedings of the Royal Society A, vol. 474, no. 2219, p. 20180335, 2018.
  16. [16]J. M. Manzano, D. Limón, D. Muñoz de la Peña, and J.-P. Calliess, “Robust learning-based MPC for nonlinear constrained systems,” Automatica, vol. 117, p. 108948, 2020.DOI
  17. [17]M. Milanese and C. Novara, “Set membership identification of nonlinear systems,” Automatica, vol. 40, no. 6, pp. 957–975, 2004.
  18. [18]M. Buciakowski, M. Witczak, V. Puig, D. Rotondo, F. Nejjari, and J. Korbicz, “A bounded-error approach to simultaneous state and actuator fault estimation for a class of nonlinear systems,” Journal of Process Control, vol. 52, pp. 14–25, 2017.DOI
  19. [19]M. Ornik, S. Carr, A. Israel, and U. Topcu, “Myopic control of systems with unknown dynamics,” in 2019 American Control Conference (ACC), pp. 1064–1071, IEEE, 2019.DOI
  20. [20]Y. Wei, W. Liu, Y. Xie, F. Allgöwer, J. Sun, and G. Wang, “Data-driven robust mpc for unknown nonlinear systems via set-membership learning,” Automatica, vol. 193, p. 113242, 2026.arxiv.org/abs/2606.24316
  21. [21]J. Coulson, J. Lygeros, and F. Dörfler, “Data-enabled predictive control: In the shallows of the deepc,” in 2019 18th European control conference (ECC), pp. 307–312, IEEE, 2019.arxiv.org/abs/1811.05890
  22. [22]S. Boyd and L. Vandenberghe, Convex Optimization. Cambridge: Cambridge University Press, 2004.
  23. [23]L. Nachbin, “Sur les algèbres denses de fonctions différentiables sur une variété,” CR Acad. Sci. Paris, vol. 228, pp. 1549–1551, 1949.
  24. [24]M. Putinar, “Positive polynomials on compact semi-algebraic sets,” Indiana University Mathematics Journal, vol. 42, no. 3, pp. 969–984, 1993.
  25. [25]M. Tacchi, “Convergence of Lasserre’s hierarchy: the general case,” Optimization Letters, vol. 16, no. 3, pp. 1015–1033, 2022.DOI
  26. [26]V. Cibulka, M. Korda, and T. Haniš, “Spatio-temporal decomposition of sum-of-squares programs for the region of attraction and reachability,” IEEE Control Systems Letters, vol. 6, pp. 812–817, 2022.arxiv.org/abs/2103.03531
  27. [27]J.-P. Calliess, “Lipschitz optimisation for Lipschitz interpolation,” in Proc. American Control Conference (ACC), (Seattle, WA, USA), pp. 3141–3146, 2017.arxiv.org/abs/1702.08898

Paper details

vlnc:W_xwe6h5ea
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Mathematics

Not recorded for this paper

View statement
Looking for related papers…
Contents