arXiv reader

Control and Estimation Co-Design via Envelope-Theorem Gradients

Mohammad S. Ramadan, Philip Dinenis and Mihai Anitescu

arXiv
2609.36090v1 · PDF · 28 September 2026
Categories
eess.SY, cs.SY, math.OC
Licence
CC BY 4.0 The site shows the text.

Abstract

Instead of the sequential plant–control–estimator design pipeline, which is in general not optimal, we propose the Control and Estimation Co-Design (ContEst) framework, which poses the entire system design as a single two-stage problem solved by first-order methods. A key enabler is that the gradient of each inner control/estimation optimal cost with respect to the design parameters is available from the dual variables the inner solver already returns, by the envelope theorem: exactly under mild regularity (a unique inner minimizer), and as a subgradient under more relaxed conditions. That is, no differentiation through the optimizer or its optimality conditions is needed. We first present the framework in a linear quadratic Gaussian (LQG) regime, where the control and estimation costs become two semidefinite programs (SDPs) whose design gradients are read from the duals of the Lyapunov constraints. We extend the results to robust (H_\infty) formulation to cover worst-case control and filtering problems. We also present an extension to constrained and nonlinear systems, using an extended Kalman filter (eKF) and a local linearization of the information-state dynamics to yield an approximate but convex model predictive control (MPC) problem whose design gradients are read directly from the costates. We apply our methods to a variety of realistic design examples from different fields and report significant design improvements.

Items 20

Problem

Problem 1 (ContEst)

3GC3

[mpfootnoteProblem 1 is a two-stage problem, a special form of a bilevel problem; the outer optimization contains the value of the lower-level problem, not its argmin. Solving a bilevel problem directly is hard since it requires implicitly differentiating the inner optimality conditions. Instead, in the two-stage case, the envelope theorem supplies the gradient directly from the duals the inner solver already returns.

\begin{aligned} &\text{Design (first stage):}\quad \min_{\theta \in \Theta}\ J(\theta) = J_{\mathrm{des}}(\theta) + J_{\mathrm{sc}}^\star(\mathcal Z_0;\theta),\\ &\text{Control (second stage):}\quad J_{\mathrm{sc}}^\star(\mathcal Z_0;\theta)\ \text{as in \eqref{eq:Jstoch_N} or \eqref{eq:Jstoch_infty}}. \end{aligned}
Used by Remark 11
Remark

Remark 2 (Estimation co-design)

T183

Equations (?) and (?), although appear to be optimizing over control only, they implicitly require optimal estimation as well. The control policies are feedback in the information state (state filtered density), which require careful filter design for their reduction, approximation and accurate tracking [kumar2015stochastic].

Remark

Remark 3 (Operating scenarios)

BDZ9

Problem 1 is stated for a single prior p_0. Multiple operating scenarios: initial densities, tracking trajectories/set-point, disturbance statistics, can be accommodated by replacing the second-stage value with the, say, a weighted average of the cost over the different scenarios.

Remark

Remark 4 (Modeling flexibility)

AZ67

Posing both halves as SDPs is not only convenient for the dual-based gradients: it also opens the formulation to constraints a plain Riccati recursion cannot express: LMI regularizers (e.g. trace or nuclear-norm penalties promoting sparse actuation/sensing), budget and \ell_1 sensor-selection constraints on \theta, or quadratic stability robustness constraints over a polytopic data set. Remark 5 in the next section shows every such convex ingredient is inherited by the exact-gradient machinery of Section ?.

Assumption

Assumption 1

Q8D3

On a neighborhood \Theta_0 of the design point \theta: (A.I) for each \theta\in\Theta_0, (?) is convex in z, its data (\phi,g,G) are jointly C^1 in (z,\theta), and Slater’s condition holds, so strong duality holds with an attained primal-dual solution; (A.II) the primal minimizer z^\star(\theta) is unique; (A.III) the primal–dual solution is nondegenerate and strictly complementary, so the dual (\mu^\star,S^\star) is unique [alizadeh1997complementarity, shapiro1997differentiability]; (A.IV) \theta enters (?) only through finitely many data objects D(\theta) (e.g. A_\theta,B_\theta,C_\theta) that are C^1 in \theta.

Theorem

Theorem 5.1 (Envelop theorem: exact design gradient from the inner dual)

J34V

Under Assumption 1, J^\star is differentiable at \theta and

\nabla_\theta J^\star(\theta) = \nabla_\theta \mathfrak L(z^\star,\mu^\star,S^\star,\theta) = \partial_\theta J + \langle \mu^\star, \partial_\theta g\rangle - \langle S^\star, \partial_\theta G\rangle,

all partials evaluated at (z^\star,\theta) with z^\star,\mu^\star,S^\star held fixed.

Uses Assumption 1 · Used by Corollary 6.8
Remark

Remark 5

BVGF

We can augment (?) with any finite family of additional convex, conic-representable ingredients: regularizers r_i(z,\theta) added to the objective J, and/or constraints G_i(z,\theta) \succeq 0, all data C^1 in (z,\theta). If the augmented program still satisfies Assumption 1, then J^\star remains differentiable at \theta.

Remark

Remark 6 (Where exactness is lost)

92GN

The recipe of Remark 5 fails exactly when (A.III) does: at a degenerate active face (rank-deficient active supports), or when a constraint binds at its achievable floor (loss of strict complementarity: for instance the minimal-\gamma optimum of Section ?). The optimal dual is then set-valued and the exact identity (5.1) need not hold; the next proposition shows the framework degrades gracefully rather than breaking.

Proposition

Proposition 5.3 (Subgradient fallback under (A.I)

4P62

Suppose (A.I) and (A.IV) hold on a neighborhood of \theta with a bounded primal optimal set at \theta, but (A.II) or (A.III) fail, while at least one of the primal or the dual optimal solution at \theta is still unique. Then J^\star is locally Lipschitz and directionally differentiable, and the particular dual (\mu^\star,S^\star) the inner solver returns constructs a subgradient, \partial_\theta \mathfrak L(z^\star,\mu^\star,S^\star,\theta)\in\partial J^\star(\theta) (the Clarke subdifferential). If the dual is unique, \partial_\theta L also supplies a descent direction and first-order stationarity reads 0\in\partial J^\star(\theta).

Uses Assumption 1 · Used by Remark 6
Proposition

Proposition 5.5 (LQG regularity)

3G9T

Fix \theta and suppose (A_\theta,B_\theta) is stabilizable, (A_\theta, C_\theta) is detectable, and Q,R,W,V\succ0, with all data C^1 in \theta. Then for the control SDP (?) and the estimation SDP (?): (a) Slater’s condition holds; (b) the primal minimizer (\Sigma^\star, K^\star=L^\star(\Sigma^\star)^{-1}) is unique (and similarly for the estimation SDP); (c) the Lyapunov-LMI dual is unique and strictly complementary. Hence Assumption 1 holds on a neighborhood \Theta_0 of \theta, and Theorem 5.1 applies to both the control and estimation SDPs.

Corollary

Corollary 6.6 (H_\infty minimal-\gamma design: a subgradient)

CM66

The expression (?) for the minimal-\gamma value \gamma^{\star\,2}_{\mathrm{cont}}(\theta) is, in general, only a subgradient: it supplies a descent direction and the stationarity certificate 0\in\partial\gamma^{\star\,2}_{\mathrm{cont}}, but need not equal the gradient. Fixing \gamma instead restores exactness, as we show next.

Corollary

Corollary 6.8 (H_\infty fixed-\gamma design: exact gradient)

JPFC

Fix \gamma strictly above the optimal attenuation. Then (?) is strictly feasible with a nondegenerate, strictly complementary dual, so Assumption 1 holds and, by Theorem 5.1 (equivalently Remark 5, the Schur slack being one added convex constraint), V_{\mathrm{wc}}(\theta, \gamma) is differentiable at \theta, with the design gradient read from the dual of the third LMI S^\star_{\gamma,3} of (?),

\frac{\partial V_{\mathrm{wc}}}{\partial A_\theta}=2\,S_{\gamma,3,[3,1]}^\star\,Y^\star,\quad \frac{\partial V_{\mathrm{wc}}}{\partial B_\theta}=2\,S_{\gamma,3,[3,1]}^\star\,(L^\star)^\top,

of the same form as the minimal-\gamma expression (?) but now exact gradients rather than mere subgradients.

Remark

Remark 7

6DO2

If the state evolution and the measurement operator f_\theta and h_\theta represent a linear system, then \mathcal{A}_\theta = \mathop{\mathrm{blkdiag}}\nolimits\,(A_\theta, \relax A _\theta) (the evolution of the error covariance is independent of the state estimate) and \mathcal{B}_\theta = [B_\theta^\top \, 0]^\top (the error covariance is independent of the input). This is a consequence of the separation principle between estimation and control for fixed \theta.

Remark

Remark 8 (The structure of the controller as a dual control)

6QN4

The MPC control (?) is feedback in the information state \mathcal{X}_k, instead of x_{k \mid k} only as in the SDP case. This is due to the fact that the separation principle does not hold in the nonlinear regime: the input and state estimate can have an effect on the evolution of the estimation error covariance. Hence, the resulting controller admits probing/caution effects, the characteristics of a dual control. It is possible to turn (?) into a function of x_{k \mid k} only by fixing the value of \Sigma_{k \mid k} to, for example, \lambda_{\mathrm{probing}} I, turning \lambda_{\mathrm{probing}} \geq 0 into a probing (excitation for data collection) knob an operator can choose based on the circumstances.

Remark

Remark 9 (Where exactness stops: the nonlinear case)

QH6T

Theorem 5.1 applies verbatim to the SDPs, which are genuinely convex. In the nonlinear regime it applies to the convex program (?), not to the underlying stochastic control value (?). Three gaps separate the two: (i) Filtering approximation: the eKF is a finite-dimensional approximation to the exact Bayesian recursion (?) (?) by its first two moments, exact only for affine f_\theta,h_\theta [anderson2012optimal] (the Kalman filter case). (ii) the prediction-only mode of the eKF used along the MPC horizon, which drops the innovation feedback. (iii) Further linearization: \mathcal A_\theta, \mathcal B_\theta are taken about the current-time (k=0) information trajectory, so (?). Nevertheless, Section ? shows that in practice this approximate gradient can still be used effectively in design optimization.

Remark

Remark 10 (Sensor allocation)

0XRZ

Deciding which of the candidate sensors to deploy fits ContEst without disturbing the validity of its gradients. (a) Adding binary indicators b\in\{0,1\}^{\#\text{sensors}} and costs c to the upper level, \min_{\theta,b} J_{\mathrm{sc}}^\star(\theta,b)+c^\top b, leaves the inner problem, and hence the envelope gradients (?), (?), unchanged. The price is a (NP-hard) mixed-integer program [joshi2009sensor, tzoumas2016sensor]. (b) Relaxing b to continuous gains \alpha\ge0 (C_{\alpha,\theta}=\mathop{\mathrm{diag}}\nolimits(\alpha)\,C_{\mathrm{base},\theta}) with an \ell_1 penalty in the design cost,

J_{\mathrm{des}}^\alpha(\theta) = J_{\mathrm{des}}(\theta) + \lambda_\alpha \| \alpha \|_1, \quad \alpha \ge 0,

promotes sparse sensing [dhingra2014admm, saraf2017h2, das2017sparse]. (c) The \ell_1 kink is removed by its epigraph lift [boyd2004convex], \lambda_\alpha \mathbf 1^\top t with \alpha\preceq t, keeping J differentiable so the BFGS guarantees of Remark 11 hold. Finally, a threshold on \alpha^\star recovers a binary deployment.

Remark

Remark 11 (Outer optimization)

USXZ

Since the design gradient is available, Problem 1 is solved by a first-order method, here a projected BFGS iteration on \theta over the box \Theta [nocedal2006numerical]. Because the gradients are exact (not finite-difference), the secant pairs driving the BFGS update are accurate. Under the usual smoothness and local strong-convexity assumptions the outer iteration attains the local superlinear rate of full BFGS [nocedal2006numerical]. When the inner value is only piecewise smooth (e.g. the \ell_1-selection or worst-case H_\infty regimes) and the returned gradient is a subgradient, a nonsmooth BFGS variant with a suitable line search still converges reliably in practice [lewis2013nonsmooth].

Remark

Remark 12

7W59

A caveat on interpretation: the baseline parameter values \theta_{\mathrm{nom}} above were chosen to be plausible rather than carefully hand-tuned, so the reported reductions should not be read as ContEst outperforming a state-of-the-art design. The contribution is not a competing tuning heuristic but the exact, dual-based design gradient that lets a first-order method search for the joint optimum.

Lemma

Lemma 13 (Smoothing)

DNY2

For a probability space (\Omega,\mathcal{A},\mathbf{P}), a measurable \chi:\Omega\to\mathbb{R} with \mathbb{E}_{\mathbf P}|\chi|<\infty, and \sigma-algebras \mathcal{A}_0 \subset \mathcal{A}_1 \subset \mathcal{A}, \mathbb{E}_{\mathbf P}\{\chi \mid \mathcal{A}_1\} = \mathbb{E}_{\mathbf P}\{\mathbb{E}_{\mathbf P}\{\chi \mid \mathcal{A}_0\} \mid \mathcal{A}_1\}.

Lemma

Lemma 14

C000

For a causal law u_k = u_k(\mathcal{Z}_k, p_0),

\mathbb{E}\,\ell(x_k,u_k) = \!\iint \ell(x_k,u_k)\, p(x_k \mid \mathcal{Z}_k;\theta)\, p(\mathcal{Z}_k;\theta)\, dx_k\, d\mathcal{Z}_k.

Source and licence

The text on this page is from arXiv:2609.36090v1 by Mohammad S. Ramadan, Philip Dinenis and Mihai Anitescu, under the licence CC BY 4.0. The corpus made these changes: it read the items out of the LaTeX source, it expanded the macros of the paper, it put each proof after its statement, and it converted the text to HTML. The formulas are the TeX of the paper, and KaTeX renders them. A formula or a reference can look different from the PDF. The page is published under CC BY 4.0.

The record of each item is in analysis/objects/2609/2609.36090.jsonl.