socx: GPU-Accelerated Chance-Constrained Stochastic Optimal Control using JAX
In this article, we present socx, a GPU-accelerated solver for lifted convex reformulations of linear stochastic optimal control under chance constraints, implemented in JAX. We demonstrate that by exploiting the sparse and independent structure of the problem, distributed optimization can reduce it to simpler problems: independent linear-quadratic tracking (LQT) problems and Euclidean projections onto sets.
From the abstract. Our summary is in progress.
Full paper
socx: GPU-Accelerated Chance-Constrained Stochastic Optimal Control using JAX
Published under CC BY 4.0. Reproduced with attribution; original at arXiv:2610.40427 (PDF).
Abstract
In this article, we present socx, a GPU-accelerated solver for lifted convex reformulations of linear stochastic optimal control under chance constraints, implemented in JAX. We demonstrate that by exploiting the sparse and independent structure of the problem, distributed optimization can reduce it to simpler problems: independent linear-quadratic tracking (LQT) problems and Euclidean projections onto sets. These simpler problems can be solved in parallel and then coupled using the constraints. To validate our solver, we run it on a hover-linearized 3D quadrotor and show a speed-up of up to 98\times over MOSEK and up to 2224\times over SCS. socx also solves horizons up to N=1120, whereas MOSEK runs out of memory at N=320. We present ablations to isolate the key components that enable the speed-up.
I Introduction
Motion planning is a fundamental problem in robotics, as it requires finding an optimal path from the initial to the final state that minimizes length or control effort, is feasible, and avoids obstacles [1]. Autonomous systems such as unmanned aerial vehicles and spacecrafts, face uncertainties, e.g., wrench perturbations, estimation noise, during tasks like safe exploration [2, 3]. Therefore, rather than a single path, the problem becomes one of finding a distribution over paths such that the probability of failure is bounded [4, 5].
Stochastic motion planning is an example of stochastic optimal control, and covariance steering solves such problems by designing feedback to control the state distribution, specifically the mean and covariance, from an initial to a final distribution in a finite time horizon. Covariance steering has many applications in robotics and aerospace. However, to the best of the authors’ knowledge, analytically optimal results are only known for unconstrained cases [6]. For the constrained cases, numerical optimization methods exist that use feedback parameterization, yielding a nonconvex optimization problem with O(Nn_{x}(n_{u}+n_{x})) variables. Computationally efficient formulations approximate the constraints, thereby shrinking the feasible set and yielding suboptimal solutions [7, 8]. Recent developments in lifted representations yield problems that can exactly represent linear chance [9] and terminal covariance constraints, with convex approximations for quadratic chance constraints [10], but are computationally prohibitive as the number of variables grows as O(N^{2}n_{w}(n_{u}+n_{x})).
Parallelization introduces a new dimension to algorithm design, enabling new problems to be solved in real time. Batching refers to solving multiple instances of the same problem [11, 12, 13]; it increases the number of solves in a given time, but it neither speeds up a single solve nor directly enables solving longer horizons. In contrast, temporal parallelization speeds up a single solve by representing the backward Riccati recursion and the forward rollout as associative scans, reducing their span from O(N) to O(\log N) [14], an approach used in GPU-accelerated iterative linear-quadratic regulator (iLQR) for legged robots [15].
- Work
- Gau.
- CC
- LMI
- Cvx
- OCP
- \log N
- Par.
- Bat.
- GPU
- CS, exact [16, 9, 10]
- ✓
- ✓
- ✓
- ✓
- \times
- \times
- \times
- \times
- \times
- CS, approx. [7, 8]
- ✓
- ✓
- ✓
- \times
- \times
- \times
- \times
- \times
- Parallel LQR [14, 15]
- \times
- \times
- \times
- ✓
- ✓
- ✓
- ✓
- Batched NLP [11, 13, 12]
- \times
- \times
- \times
- \times
- \times
- ✓
- ✓
- Robust ADMM [17, 18]
- \times
- \times
- \times
- ✓
- \times
- ✓
- Conic solvers [19, 20, 21]
- –
- ✓
- ✓
- \times
- \times
- \times
- socx (Ours)
- ✓
- ✓
- ✓
- ✓
- ✓
- ✓
- ✓
- ✓
- ✓
The alternating direction method of multipliers (ADMM) is a distributed optimization algorithm that has become the backbone of several GPU-based convex solvers, but they are generic and do not exploit the full optimal control structure. Being relatively immature, they support fewer constraint types. For example, cuOSQP handles only quadratic programs [22], and cuClarabel restricts the dimension of semidefinite blocks [19]. The splitting conic solver (SCS) with GPU linear solver (cuDSS in backend) supports both second-order cone constraints and semidefinite constraints, but solves the generic Karush-Kuhn-Tucker (KKT) system and does not parallelize independent constraint projections [20].
ADMM has also been specialized for control under uncertainty on GPUs, for robust nonlinear model predictive control [17] and robust trajectory optimization [18]. As robust approaches assume bounded disturbances and account for worst-case uncertainty, they lead to overconservatism and infeasibility when the uncertainty is unbounded [23]. This literature gap is further explained in Table I.
Addressing these limitations, we present socx: GPU-accelerated algorithm implemented in JAX [24] that solves chance-constrained stochastic optimal control by exploiting the lifted convex formulation’s structure and achieves minimal conservatism [10]. The key contributions are: (i) a variable split that breaks the problem into independent LQT problems and closed-form parallel projection operations, (ii) an operator split of linear-quadratic tracking (LQT), p-ric and p-lqt that enables sharing gains across stochastic channels, uses associative scans for efficient parallelization and is 2.5–4.0\times faster per iteration than a sequential LQT, 2.2–7.5\times faster than a condensed KKT (Table IV), (iii) a small projection operation for the terminal linear matrix inequality (LMI) constraint via an n_{x}\times n_{x} Gram eigendecomposition instead of an SVD of the n_{x}\times n_{e}(N) factor or a PSD projection of size n_{x}+n_{e}(N), which is 22–216\times faster per call than the Schur-complement PSD projection, and (iv) validation on 3D linearized quadrotor dynamics demonstrating speed-ups of 7–98\times over MOSEK at 10^{-5} (N=40–240), 47–2224\times faster than SCS+cuDSS. socx solves long-horizon up to N=1120, whereas MOSEK runs out of memory at N=320 and SCS+cuDSS times out at N=640.
We first review the background on the lifted convex formulation of stochastic optimal control in Sec. II and formulate parallel operators in Sec. III. Then, socx is presented in Sec. IV, with simulations and ablations in Sec. V followed by the conclusion.
Notation: Boldface letters denote random variables (e.g., \mathbf{x}_{k},\mathbf{u}_{k},\mathbf{e},\mathbf{w}_{k}). \mathbb{S}^{++}_{n} (\mathbb{S}^{+}_{n}) is the cone of n\times n positive definite (semidefinite) matrices, I_{n} is the identity, and \|x\|_{A}^{2}=x^{\top}Ax for A\in\mathbb{S}^{++}_{n}. \operatorname{Tr}\!\left(\cdot\right), \mathbb{E}\!\left[\cdot\right], and \operatorname{var}\!\left(\cdot\right) denote the trace, expectation, and variance. \mathcal{N}\!\left(\mu,\Sigma\right) is a Gaussian with mean \mu and covariance \Sigma, and \Phi_{\mathcal{N}}(\cdot) and \Phi_{\chi^{2}_{n}}(\cdot) are the CDFs of the standard Gaussian and the chi-squared distribution with n degrees of freedom.
II Background: Stochastic Control
We consider the discrete-time stochastic linear time-varying system
\begin{split}\mathbf{x}_{k+1}&=A_{k}\mathbf{x}_{k}+B_{k}\mathbf{u}_{k}+D_{k}\mathbf{w}_{k},\\
\mathbf{x}_{0}&\sim\mathcal{N}\!\left(\mu_{0}^{\star},\Sigma_{0}\right),\qquad\mathbf{w}_{k}\sim\mathcal{N}\!\left(0,I_{n_{w}}\right),\end{split}where \mathbf{x}_{k}\in\mathbb{R}^{n_{x}}, \mathbf{u}_{k}\in\mathbb{R}^{n_{u}}, and \mathbf{w}_{k}\in\mathbb{R}^{n_{w}} over a horizon N.
Assumption 1.
The initial state and process noises are mutually independent Gaussian random variables, \mathbb{E}\!\left[\mathbf{w}_{i}\mathbf{w}_{j}^{\top}\right]=\delta_{ij}I_{n_{w}} and \mathbb{E}\!\left[\mathbf{w}_{i}\mathbf{x}_{0}^{\top}\right]=0. The control \mathbf{u}_{k} is causal and affine in \mathbf{x}_{0},\mathbf{w}_{0},\ldots,\mathbf{w}_{k-1}; this policy class is denoted \Pi_{\mathrm{affine}}.
Linear chance constraints on the state and control are
\mathbb{P}\!\left(a_{i,k}^{\top}\mathbf{x}_{k}\leq b_{i,k}\right)\geq 1-\epsilon_{x,i,k},\qquad\mathbb{P}\!\left(\alpha_{i,k}^{\top}\mathbf{u}_{k}\leq\beta_{i,k}\right)\geq 1-\epsilon_{u,i,k},with a_{i,k}\in\mathbb{R}^{n_{x}}, \alpha_{i,k}\in\mathbb{R}^{n_{u}}, b_{i,k},\beta_{i,k}\in\mathbb{R}, and \epsilon_{x,i,k},\epsilon_{u,i,k}\in[0,0.5). We additionally consider the terminal quadratic chance constraint
\mathbb{P}\!\left(\|(\mathbf{x}_{N}-\mathbb{E}\!\left[\mathbf{x}_{N}\right])\|_{Q_{\text{CC}}^{-1}}^{2}\leq 1\right)\geq 1-\epsilon_{N},and the terminal covariance bound
\operatorname{var}\!\left(\mathbf{x}_{N}\right)\preceq\Sigma_{f},where Q_{\text{CC}},\Sigma_{f}\in\mathbb{S}^{++}_{n_{x}} and \epsilon_{N}\in[0,1].
The finite-horizon stochastic optimal control problem is
Problem 1 (Linear Stochastic Optimal Control).
\begin{aligned} \min_{\pi\in\Pi_{\mathrm{affine}}}J(\mathbf{x},\mathbf{u})\quad=\qquad\sum_{l\in T_{wp}}\|(\mathbb{E}\!\left[\mathbf{x}_{l}\right]-\mu_{l}^{\star})\|_{Q_{\star}}^{2}\\
+\mathbb{E}\!\left[\sum_{k=0}^{N-1}\left(\|\mathbf{x}_{k}\|_{Q_{k}}^{2}+\|\mathbf{u}_{k}\|_{R_{k}}^{2}\right)+\|(\mathbf{x}_{N}-x^{\star})\|_{Q_{N}}^{2}\right],\end{aligned}subject to (1), (2), (3), and (4) for all k\in\{0,1,\ldots,N-1\}. Here Q_{k},Q_{N},Q_{\star}\succeq 0, R_{k}\succ 0, x^{\star}\in\mathbb{R}^{n_{x}} is the terminal target, and \mu_{l}^{\star}\in\mathbb{R}^{n_{x}} are waypoint targets for l\in T_{wp}\subseteq\{0,1,\ldots,N\}.
II-A Lifted Representation
Under Assumption 1, the state and control remain jointly Gaussian. Introduce the independent Gaussian basis
\mathbf{e}^{(k+1)}:=\begin{bmatrix}\mathbf{e}^{(k)}\\
\mathbf{w}_{k}\end{bmatrix},\qquad\mathbf{e}^{(0)}\sim\mathcal{N}\!\left(0,I_{n_{x}}\right),where \mathbf{x}_{0}=\mu_{0}^{\star}+\Psi_{0}^{\star}\mathbf{e}^{(0)}. Then \mathbf{e}^{(k)}\sim\mathcal{N}\!\left(0,I_{n_{e}(k)}\right) with n_{e}(k):=n_{x}+kn_{w}, and
\displaystyle\mathbf{x}_{k} \\ \displaystyle=\mu_{k}+\Psi_{k}\mathbf{e}^{(k)}, \\ \displaystyle\mathbf{u}_{k} \\ \displaystyle=\nu_{k}+V_{k}\mathbf{e}^{(k)},with \mu_{k}\in\mathbb{R}^{n_{x}}, \nu_{k}\in\mathbb{R}^{n_{u}}, \Psi_{k}\in\mathbb{R}^{n_{x}\times n_{e}(k)}, and V_{k}\in\mathbb{R}^{n_{u}\times n_{e}(k)}. Thus
\mathbb{E}\!\left[\mathbf{x}_{k}\right]=\mu_{k},\qquad\operatorname{var}\!\left(\mathbf{x}_{k}\right)=\Psi_{k}\Psi_{k}^{\top},with analogous expressions for \mathbf{u}_{k}.
The lifted dynamics are [10, Lemma 2]
\displaystyle\mu_{k+1} \\ \displaystyle=A_{k}\mu_{k}+B_{k}\nu_{k}, \\ \displaystyle\Psi_{k+1} \\ \displaystyle=\begin{bmatrix}A_{k}\Psi_{k}+B_{k}V_{k}&D_{k}\end{bmatrix},with \mu_{0}=\mu_{0}^{\star} and \Psi_{0}=\Psi_{0}^{\star}.
For Gaussian variables, the linear chance constraints admit the exact second-order cone representation
\displaystyle a_{i,k}^{\top}\mu_{k}+\zeta_{x,i,k}\|\Psi_{k}^{\top}a_{i,k}\|_{2} \\ \displaystyle\leq b_{i,k}, \\ \displaystyle\alpha_{i,k}^{\top}\nu_{k}+\zeta_{u,i,k}\|V_{k}^{\top}\alpha_{i,k}\|_{2} \\ \displaystyle\leq\beta_{i,k},where \zeta_{x,i,k}=\Phi_{\mathcal{N}}^{-1}(1-\epsilon_{x,i,k}) and \zeta_{u,i,k}=\Phi_{\mathcal{N}}^{-1}(1-\epsilon_{u,i,k}).
The terminal covariance bound is equivalent to
\Psi_{N}\Psi_{N}^{\top}\preceq\Sigma_{f}\iff\begin{bmatrix}\Sigma_{f}&\Psi_{N}\\
\Psi_{N}^{\top}&I_{n_{e}(N)}\end{bmatrix}\succeq 0.The quadratic chance constraint admits the conservative LMI approximation
\begin{bmatrix}\tfrac{1}{\zeta_{Q}}Q_{\text{CC}}&\Psi_{N}\\
\Psi_{N}^{\top}&I_{n_{e}(N)}\end{bmatrix}\succeq 0,\qquad\zeta_{Q}=\Phi_{\chi^{2}_{n_{x}}}^{-1}(1-\epsilon_{N}),or the trace approximation
\operatorname{Tr}\!\left(\Psi_{N}^{\top}Q_{\text{CC}}^{-1}\Psi_{N}\right)\leq\frac{1}{\left(\Phi_{\mathcal{N}}^{-1}\left(\frac{1+\sqrt[n_{x}]{1-\epsilon_{N}}}{2}\right)\right)^{2}}.Their relative conservatism is discussed in [10].
II-B Convex Reformulation
Substituting the lifted representation gives the deterministic convex problem
Problem 2 (Lifted Convex Reformulation).
\begin{split}\min_{\mu,\nu,\Psi,V}J={}&\sum_{k=0}^{N-1}\left(\|\mu_{k}\|_{Q_{k}}^{2}+\operatorname{Tr}\!\left(Q_{k}\Psi_{k}\Psi_{k}^{\top}\right)\right)\\
&+\sum_{k=0}^{N-1}\left(\|\nu_{k}\|_{R_{k}}^{2}+\operatorname{Tr}\!\left(R_{k}V_{k}V_{k}^{\top}\right)\right)\\
&+\|(\mu_{N}-x^{\star})\|_{Q_{N}}^{2}+\operatorname{Tr}\!\left(Q_{N}\Psi_{N}\Psi_{N}^{\top}\right)\\
&+\sum_{i\in T_{wp}}\|(\mu_{i}-\mu_{i}^{\star})\|_{Q_{\star}}^{2}.\end{split} \\ \displaystyle\eqref{eq:lifted_dynamics},\ \forall\ k\in\{0,1,\ldots,N-1\}, \\ \displaystyle\eqref{eq:lcc_lifted},\ \forall\ i,\ \forall\ k\in\{0,1,\ldots,N\}, \\ \displaystyle\eqref{eq:cov_control_lifted},\quad\eqref{eq:qcc_sdp_lifted}\ \text{or}\ \eqref{eq:qcc_trace_lifted}.Theorem 1 (Exact Convex Reformulation).
[10, Theorem 1] Under Assumption 1, Problem 2, restricted to (9), (10), and (11), is an exact deterministic convex reformulation of Problem 1: the two problems have equivalent costs and feasible affine policies.
Proposition 1 (Conservative Approximation of QCCs).
[10, Proposition 1] Both (12) and (13) are sufficient approximations of (3); neither uniformly dominates the other.
III Background: Parallel Primitives
In this section, we review parallel primitives that are packaged as an operator, p-lqt, for solving the Linear-Quadratic Tracking (LQT) problem using an associative-scan that evaluates in O(\log N) span that is invoked for mean and stochastic channels in Section IV.
III-A Parallel Associative Scan
The associative property states that the grouping of operations does not matter, i.e., for an operator \mathbin{{\bullet}}, a\mathbin{{\bullet}}(b\mathbin{{\bullet}}c)=(a\mathbin{{\bullet}}b)\mathbin{{\bullet}}c holds. Defining associative operations allows to compute (a_{1},\ a_{1}\mathbin{{\bullet}}a_{2},\ \dots,\ a_{1}\mathbin{{\bullet}}\cdots\mathbin{{\bullet}}a_{n}) from (a_{1},\dots,a_{N}) in O(\log N) span as opposed to a sequential recursion in O(N) span [25].
To compute the rollouts of a dynamical system with specified feedback matrices, the following recursion is defined: y_{k+1}=M_{k}y_{k}+v_{k}, called an affine recurrence. This can be expressed as an associative operator, with the k-th element being (M_{k},v_{k}), and the operation being
(M_{b},v_{b})\bullet(M_{a},v_{a})=(M_{b}M_{a},M_{b}v_{a}+v_{b}).For prediction horizon N, this enables the computation of rollouts in O(\log N) span, instead of O(N). The price is paid because it requires additional operations and memory to store the intermediate matrix [14, 15].
III-B The Parallel LQT Operator
A finite-horizon LQT problem is defined as
\displaystyle\min_{\omega} \\ \displaystyle\sum_{k=k_{0}}^{N}\big(\|\chi_{k}\|_{\tilde{Q}_{k}}^{2}-2\tilde{q}_{k}^{\top}\chi_{k}\big)+\sum_{k=k_{0}}^{N-1}\big(\|\omega_{k}\|_{\tilde{R}_{k}}^{2}-2\tilde{r}_{k}^{\top}\omega_{k}\big) \\ \displaystyle\text{s.t.} \\ \displaystyle\chi_{k+1}=A_{k}\chi_{k}+B_{k}\omega_{k},\qquad\chi_{k_{0}}\text{ given},with N,k_{0},\chi,\omega,A,B being the horizon, start step, state, control input, and transition matrices. And \tilde{Q}\succeq 0,\tilde{R}\succ 0 denote the quadratic costs for state and control with linear terms \tilde{q},\tilde{r}. Therefore, a problem is fully specified by quadratic \mathcal{Q} and linear parameters \mathcal{L},
\displaystyle\mathcal{Q} \\ \displaystyle:=\big(A_{0:N-1},\,B_{0:N-1},\,\tilde{Q}_{0:N},\,\tilde{R}_{0:N-1}\big), \\ \displaystyle\mathcal{L} \\ \displaystyle:=\big(k_{0},\,\chi_{k_{0}},\,\tilde{q}_{k_{0}:N},\,\tilde{r}_{k_{0}:N-1}\big),here, the subscript i:j denotes the set of matrices with the index varying from i to j. The optimal law can be represented as an affine-feedback law, \omega_{k}=K_{k}\chi_{k}+k^{\mathrm{ff}}_{k}. Demonstrated in [14], \omega_{k} can be computed from (\mathcal{Q},\mathcal{L}) in O(\log N) using an parallel associative scan. We will summarize only the properties and steps that we will use later.
We denote the value function at time step k, the minimum cost of starting at state \chi at time k, as
\mathcal{V}_{k}(\chi)=\|\chi\|_{P_{k}}^{2}-2p_{k}^{\top}\chi+\text{const}.Firstly, P_{k} can be obtained from \mathcal{Q} using associative scan [15] and then the feedback matrix, K_{k} can be constructed using the relation:
K_{k}=-G_{k}^{-1}B_{k}^{\top}P_{k+1}A_{k},\quad G_{k}:=\tilde{R}_{k}+B_{k}^{\top}P_{k+1}B_{k}.We package this as an operator, p-ric, which has O(\log N) span, O\big(N(n_{x}^{3}+n_{u}^{3})\big) work and O(Nn_{x}^{2}) memory,
\big(P_{0:N},\,K_{0:N-1}\big)=\textsc{p-ric}\big(\mathcal{Q}\big).Additionally, following Bellman optimality, (P_{k},K_{k}) depend only on (A,B,\tilde{Q},\tilde{R})_{k:N}, so an instance that starts at k_{0}>0 can use the same solve.
Using the feedback matrix, the linear term of the value function, p_{k}, can be computed using \mathcal{L} as the recursion
p_{k}=(A_{k}+B_{k}K_{k})^{\top}p_{k+1}+\tilde{q}_{k}+K_{k}^{\top}\tilde{r}_{k},which is an affine recurrence relation in p_{k}, with p_{N}=\tilde{q}_{N}. This can be obtained in O(\log N) as defined in Section III-A. The feedforward input k^{\mathrm{ff}} can be computed as
k^{\mathrm{ff}}_{k}=G_{k}^{-1}\big(\tilde{r}_{k}+B_{k}^{\top}p_{k+1}\big),Now, as the control input is \omega_{k}=K_{k}\chi_{k}+k^{\mathrm{ff}}_{k} and the optimal states can be defined using the affine recurrence relation, as the initial state is given:
\chi_{k+1}=(A_{k}+B_{k}K_{k})\chi_{k}+B_{k}k^{\mathrm{ff}}_{k}.Combining the two affine recurrences (21) and (23), we package it as an operator:
\big(\chi_{k_{0}:N},\,\omega_{k_{0}:N-1}\big)=\textsc{p-lqt}\big(\mathcal{Q},\,P,\,K,\,\mathcal{L}\big).For fixed (\mathcal{Q},P,K), the map \mathcal{L}\mapsto(\chi,\omega) given by (21), (22), (23) is linear in (\chi_{k_{0}},\tilde{q},\tilde{r}). If it is invoked W times, in parallel, with shared (\mathcal{Q},P,K) then it has O(\log N) span, O\big(Nn_{x}^{3}+WNn_{x}^{2}\big) work and O(WNn_{x}) memory.
\theta-update solves mean and stochastic columns’ LQT problems in parallel, followed by the z-update, which projects every chance-constraint cone and the terminal covariance ball in parallel.IV Method
In this section, we present socx by describing (i) the structure of Problem 2; (ii) ADMM with the variable split; (iii) the \theta-update using p-ric/p-lqt operations; and (iv) the z-update as closed-form projections for second-order cone and covariance constraint, as summarized in Figure 1. The resulting solver, socx, does not require Jacobians, KKT matrices, or dense constraint operators.
IV-A Structure of the Lifted Problem
The number of variables in Problem 2 grows as O(N^{2}) because of the new elements in the stochastic basis. However, the problem is highly structured.
Shared dynamics. Let \varsigma^{(c)}_{k}:=\Psi_{k}[:,c] and \upsilon^{(c)}_{k}:=V_{k}[:,c] denote the columns of \Psi and V. The following equations govern the stochastic columns (\varsigma^{(c)},\upsilon^{(c)}), obtained from (9b):
\displaystyle\varsigma^{(c)}_{k+1}=A_{k}\varsigma^{(c)}_{k}+B_{k}\upsilon^{(c)}_{k}, \\ \displaystyle k\geq k_{c}, \\ \displaystyle\varsigma^{(c)}_{k}=0,\quad\upsilon^{(c)}_{k}=0, \\ \displaystyle k<k_{c}.The initial conditions are defined as:
\big(k_{c},\varsigma^{(c)}_{k_{c}}\big)=\begin{cases}\big(0,\ \Psi_{0}^{\star}[:,c]\big),&c<n_{x},\\
\big(\lfloor\frac{(c-n_{x})}{n_{w}}\rfloor+1,D_{k_{c}-1}[:,r_{c}]\big),&c\geq n_{x},\end{cases}with r_{c}:=(c-n_{x})\bmod n_{w}. Similarly, the mean dynamics are independent of stochastic columns (9a).
Cost separation. In the lifted cost function (14a), the stochastic columns appear through the same matrices, Q_{k} and R_{k}, and there are no coupling terms across columns. \operatorname{Tr}\!\left(Q_{k}\Psi_{k}\Psi_{k}^{\top}\right)=\sum_{c}\|\varsigma^{(c)}_{k}\|_{Q_{k}}^{2}, and likewise for R_{k} and V_{k}. The mean variables aren’t coupled with the stochastic columns in the lifted cost function.
Coupling constraints. Second-order cone constraints couple the mean and stochastic channels (14c). The quadratic and the linear matrix inequality constraint couples the stochastic columns (14d).
Dynamics and cost are separable and coupled only through the constraints; therefore, this motivates an optimization algorithm that allows solving subproblems and pooling using the constraints. This structure is what ADMM is designed to exploit when an appropriate variable split is used.
IV-B ADMM & Variable Splitting
We review ADMM, a popular algorithm for distributed convex optimization, and then define a variable split. ADMM is well-suited to large-scale problems and combines decomposability with superior convergence properties [26]. It solves problems of the form
\displaystyle\min_{\theta,z}\quad \\ \displaystyle f(\theta)+g(z) \\ \displaystyle\mathcal{M}\theta+{\mathcal{E}}z=cby formulating the augmented Lagrangian L_{\rho}(\theta,z,y)=f(\theta)+g(z)+y^{\top}(\mathcal{M}\theta+{\mathcal{E}}z-c)+\frac{\rho}{2}\|\mathcal{M}\theta+{\mathcal{E}}z-c\|_{2}^{2} , and iterating over the update steps
\displaystyle\theta\text{-update} \\ \displaystyle:\theta^{{j}+1}:=\argmin_{\theta}L_{\rho}(\theta,z^{j},y^{j}) \\ \displaystyle z\text{-update} \\ \displaystyle:z^{j+1}:=\argmin_{z}L_{\rho}(\theta^{j+1},z,y^{j}) \\ \displaystyle y\text{-update} \\ \displaystyle:y^{j+1}:=y^{j}+\rho(\mathcal{M}\theta^{j+1}+{\mathcal{E}}z^{j+1}-c)with \rho>0.
Introducing the scaled dual variable u:=y/\rho and completing the squares, the last two terms of the augmented Lagrangian, for the case {\mathcal{E}}=-I, become
L_{\rho}(\theta,z,\rho u)=f(\theta)+g(z)+\frac{\rho}{2}\|\mathcal{M}\theta-z+u\|_{2}^{2}-\frac{\rho}{2}\|u\|_{2}^{2}This squared penalty term turns the \theta-update into an LQT (16).
Variable splitting. Collect the primal variables as
\theta:=\left(\mu_{0:N},\nu_{0:N-1},\Psi_{0:N},V_{0:N-1}\right).For each cone constraint, we introduce a split variable whose size matches the cone. Let z_{x,i,k},z_{u,i,k}\in\mathbb{R}^{1+n_{e}(k)} correspond to the state and control cone constraint, defined as
\begin{split}z_{x,i,k}=\mathcal{M}_{x,i,k}\theta&:=\big(b_{i,k}-a_{i,k}^{\top}\mu_{k},\ \zeta_{x,i,k}\Psi_{k}^{\top}a_{i,k}\big)\\
z_{u,i,k}=\mathcal{M}_{u,i,k}\theta&:=\big(\beta_{i,k}-\alpha_{i,k}^{\top}\nu_{k},\ \zeta_{u,i,k}V_{k}^{\top}\alpha_{i,k}\big).\end{split}Additionally, depending on the terminal constraint, either (11) or (12), the constraint takes the form \Psi_{N}\Psi_{N}^{\top}\preceq\bar{\Sigma}, with \bar{\Sigma}=\Sigma_{f} or \bar{\Sigma}=\zeta_{Q}^{-1}Q_{\text{CC}} respectively.
Remark 1.
The discussion is limited to the linear matrix inequality as the trace relaxation (13) appears as a quadratic constraint that can be expressed as second-order cone constraint.
Hence, the corresponding split variable z_{N}\in\mathbb{R}^{n_{x}\times n_{e}(N)} is defined as z_{N}=\mathcal{M}_{N}\theta:=\bar{\Sigma}^{-1/2}\Psi_{N}. Collecting the split variables, z:=\{z_{x,i,k},z_{u,i,k},z_{N}\}, an affine operator can be defined as \mathcal{M}\theta=z.
Splitting methods handle a convex constraint set \mathcal{C} by moving it out of the smooth objective and into the indicator function
\mathbb{I}_{\mathcal{C}}(z)=\begin{cases}0,&z\in\mathcal{C}\\
+\infty,&z\notin\mathcal{C}\end{cases},which is convex and closed whenever \mathcal{C} is. Hence, resulting in the following ADMM split of Problem 2:
\displaystyle f(\theta) \\ \displaystyle=J(\theta)+\mathbb{I}_{\text{\eqref{eq:lifted_dynamics}}}(\theta), \\ \displaystyle g(z) \\ \displaystyle=\sum_{i,k}\mathbb{I}_{\mathcal{K}_{n_{e}(k)}}(z_{x,i,k})+\sum_{i,k}\mathbb{I}_{\mathcal{K}_{n_{e}(k)}}(z_{u,i,k})+\mathbb{I}_{\mathcal{B}}(z_{N}), \\ \displaystyle\text{s.t. } \\ \displaystyle\mathcal{M}\theta-z=0where \mathcal{K}_{n}={\{(t,s)\in\mathbb{R}\times\mathbb{R}^{n}:\|s\|_{2}\leq t\}} for the second-order cone constraints and \mathcal{B}:=\{Z\in\mathbb{R}^{n_{x}\times n_{e}(N)}:\|Z\|_{2}\leq 1\} for the terminal covariance constraint. Under this split, the \theta-update becomes independent LQT solves and the z-update becomes closed-form set projections as described in the next subsections.
Convergence monitoring. The primal (r_{p}^{j}) and dual residuals (r_{d}^{j}) are defined as
r_{p}^{j}=\|\mathcal{M}\theta^{j}+{\mathcal{E}}z^{j}-c\|_{2},\ r_{d}^{j}=\rho\|\mathcal{M}^{\top}{\mathcal{E}}(z^{j}-z^{j-1})\|_{2}.With an initialization of z^{0}=0 and u^{0}=0, socx monitors the following two conditions and stops when both hold
\displaystyle\|\mathcal{M}\theta^{j}-z^{j}\|_{\infty} \\ \displaystyle\leq\epsilon_{\mathrm{abs}}+\epsilon_{\mathrm{rel}}\max\big(\|\mathcal{M}\theta^{j}\|_{\infty},\|z^{j}\|_{\infty}\big), \\ \displaystyle\rho\|z^{j}-z^{j-1}\|_{\infty} \\ \displaystyle\leq\epsilon_{\mathrm{abs}}+\epsilon_{\mathrm{rel}}\,\rho\|u^{j}\|_{\infty},where \epsilon_{\mathrm{rel}} and \epsilon_{\mathrm{abs}} are the relative and absolute tolerance parameters [22].
The value of \rho determines the convergence rate, and adaptive algorithms help reduce the number of iterations by scaling \rho based on the residuals [17, 26]
\rho^{+}\leftarrow\rho\cdot\operatorname{clip}\left(\sqrt{{r_{p}^{j}}/{{r_{d}^{\,j}}}},\ \underline{\kappa},\ \overline{\kappa}\right),\quad u^{+}\leftarrow\frac{u\rho}{\rho^{+}}.thereby eliminating the need to hand-tune \rho and driving the residuals to a comparable magnitude, with the safeguards \underline{\kappa}=1/2, \overline{\kappa}=2.
Remark 2 (Over-relaxation).
A standard empirical accelerator is over-relaxation, which substitutes \mathcal{M}\theta^{j+1} with {\alpha_{\mathrm{or}}}\mathcal{M}\theta^{j+1}+(1-{\alpha_{\mathrm{or}}})(c-{\mathcal{E}}z^{j}) in the z- and u-updates. Convergence is retained for {\alpha_{\mathrm{or}}}\in(0,2), and {\alpha_{\mathrm{or}}}\in[1.5,1.8] improves the linear rate at no per-iteration cost [26].
IV-C \theta-update as Independent LQT Invocations
Under the split (32), the \theta-update step (28a) keeps the lifted dynamics (9) as equality constraint,
\begin{split}\theta^{j+1}=\argmin_{\theta}\ &J(\theta)+\frac{\rho}{2}\|\mathcal{M}\theta-\tau\|_{2}^{2}\\
\text{s.t.}\ &\eqref{eq:lifted_dynamics}\end{split}here, \tau:=z^{j}-u^{j}. For all the columns, the added penalty term is a sum of squares of components of \mathcal{M}\theta that acts on (\mu,\nu,\Psi,V) column-wise, without any cross-column coupling. Hence, \theta-update (36) splits into 1+n_{e}(N) independent instances of LQT solves (16), consisting of one mean channel (\chi,\omega)\mapsto(\mu,\nu) and n_{e}(N) stochastic channels (\chi,\omega)\mapsto(\varsigma^{(c)},\upsilon^{(c)}).
Hence, the defined operators can be used to solve this step with the arguments (\mathcal{Q},\mathcal{L}) described in this subsection and summarized in Table II.
Quadratic data. Collecting the base cost and the \rho-penalty gives the augmented stage weights
\displaystyle\tilde{Q}^{\mu}_{k} \\ \displaystyle:=Q_{k}+\tfrac{\rho}{2}\textstyle\sum_{i}a_{i,k}a_{i,k}^{\top}+\boldsymbol{1}_{[k\in T_{wp}]}\,Q_{\star}, \\ \displaystyle\tilde{R}^{\mu}_{k} \\ \displaystyle:=R_{k}+\tfrac{\rho}{2}\textstyle\sum_{i}\alpha_{i,k}\alpha_{i,k}^{\top}, \\ \displaystyle\tilde{Q}^{\varsigma}_{k} \\ \displaystyle:=Q_{k}+\tfrac{\rho}{2}\textstyle\sum_{i}\zeta_{x,i,k}^{2}\,a_{i,k}a_{i,k}^{\top}, \\ \displaystyle\tilde{R}^{\varsigma}_{k} \\ \displaystyle:=R_{k}+\tfrac{\rho}{2}\textstyle\sum_{i}\zeta_{u,i,k}^{2}\,\alpha_{i,k}\alpha_{i,k}^{\top}, \\ \displaystyle{\tilde{Q}^{\mu}_{N}} \\ \displaystyle{:=Q_{N}+\tfrac{\rho}{2}\textstyle\sum_{i}a_{i,N}a_{i,N}^{\top}+\boldsymbol{1}_{[N\in T_{wp}]}\,Q_{\star},} \\ \displaystyle\tilde{Q}^{\varsigma}_{N} \\ \displaystyle:=Q_{N}+\tfrac{\rho}{2}\textstyle\sum_{i}\zeta_{x,i,N}^{2}\,a_{i,N}a_{i,N}^{\top}+\tfrac{\rho}{2}\bar{\Sigma}^{-1}.Here, \boldsymbol{1} is an indicator function which is 1 if k\in T_{wp}, otherwise 0. And \tilde{Q}^{\mu},\tilde{Q}^{\varsigma}(\tilde{R}^{\mu},\tilde{R}^{\varsigma}) are the quadratic costs for the state (control) in the mean and stochastic channels. They differ in the quadratic costs because of the different way the chance constraints show up and due to the waypoint costs on the mean. Additionally, the terminal covariance constraint only shows up for the stochastic channels.
Linear data. The ADMM target \tau enters only through linear terms, and differs across each of the stochastic channel. Let the scalar and vector parts of the cone (i,k) be denoted by (\tau^{t}_{i,k},\tau^{s}_{i,k}), and let T be the target of the terminal ball. To obtain the linear terms, \tilde{q},\tilde{r}, the penalty in (36) together with the two reference-tracking terms of (14a) is expanded:
\displaystyle\tilde{q}^{\mu}_{k}:= \\ \displaystyle\tfrac{\rho}{2}\textstyle\sum_{i}(b_{i,k}-\tau^{t}_{x,i,k})a_{i,k}+\delta_{kN}\,Q_{N}x^{\star} \\ \displaystyle+\boldsymbol{1}_{[k\in T_{wp}]}\,Q_{\star}\mu_{k}^{\star}, \\ \displaystyle\tilde{r}^{\mu}_{k}:= \\ \displaystyle\tfrac{\rho}{2}\textstyle\sum_{i}(\beta_{i,k}-\tau^{t}_{u,i,k})\alpha_{i,k}, \\ \displaystyle\tilde{q}^{\varsigma,(c)}_{k}:= \\ \displaystyle\tfrac{\rho}{2}\textstyle\sum_{i}\zeta_{x,i,k}\,\tau^{s}_{x,i,k,c}\,a_{i,k}+\delta_{kN}\,\tfrac{\rho}{2}\bar{\Sigma}^{-1/2}T_{:,c}, \\ \displaystyle\tilde{r}^{\varsigma,(c)}_{k}:= \\ \displaystyle\tfrac{\rho}{2}\textstyle\sum_{i}\zeta_{u,i,k}\,\tau^{s}_{u,i,k,c}\,\alpha_{i,k},\qquad k\geq k_{c},Dynamics data. The dynamics equations are shared as described for the stochastic channels in (25) with different initial conditions (26), and for the mean channels as defined in (9a).
Invocation. The first step in \theta-update is evaluated as parallel Ricatti scans:
\displaystyle(P^{\mu},K^{\mu}) \\ \displaystyle\leftarrow\textsc{p-ric}\big(\mathcal{Q}^{\mu}\big), \\ \displaystyle(P^{\varsigma},K^{\varsigma}) \\ \displaystyle\leftarrow\textsc{p-ric}\big(\mathcal{Q}^{\varsigma}\big),followed by affine recurrances scans that use the same feedback gains for the stochastic channels:
\displaystyle(\mu,\nu) \\ \displaystyle\leftarrow\textsc{p-lqt}\big(\mathcal{Q}^{\mu},P^{\mu},K^{\mu},\mathcal{L}^{\mu}\big), \\ \displaystyle(\varsigma^{(c)},\upsilon^{(c)}) \\ \displaystyle\leftarrow\textsc{p-lqt}\big(\mathcal{Q}^{\varsigma},P^{\varsigma},K^{\varsigma},\mathcal{L}^{(c)}\big), \\ \displaystyle c\in\{0,1,\ldots,n_{e}(N)-1\},where (40) is evaluated only when \rho changes, and
\displaystyle\mathcal{Q}^{\mu} \\ \displaystyle:=\big(A,\,B,\,\tilde{Q}^{\mu},\,\tilde{R}^{\mu}\big),\quad\mathcal{Q}^{\varsigma}:=\big(A,\,B,\,\tilde{Q}^{\varsigma},\,\tilde{R}^{\varsigma}\big), \\ \displaystyle\mathcal{L}^{\mu} \\ \displaystyle:=\big(0,\ \mu_{0}^{\star},\ \tilde{q}^{\mu}_{0:N},\ \tilde{r}^{\mu}_{0:N-1}\big), \\ \displaystyle\mathcal{L}^{(c)} \\ \displaystyle:=\big(k_{c},\ \varsigma^{(c)}_{k_{c}},\ \tilde{q}^{\varsigma,(c)}_{k_{c}:N},\ \tilde{r}^{\varsigma,(c)}_{k_{c}:N-1}\big).Hence, socx solves LQT many times with shared gains, rather than formulating a single large conic program.
- (\chi_{k},\omega_{k})
- (\mu_{k},\nu_{k})
- (\varsigma^{(c)}_{k},\upsilon^{(c)}_{k})
- \mathcal{Q}: (\tilde{Q}_{k},\tilde{R}_{k})
- (\tilde{Q}^{\mu}_{k},\tilde{R}^{\mu}_{k})
- (\tilde{Q}^{\varsigma}_{k},\tilde{R}^{\varsigma}_{k})
- \mathcal{L}: k_{0}
- 0
- k_{c} (26)
- \mathcal{L}: \chi_{k_{0}}
- \mu_{0}^{\star}
- \varsigma^{(c)}_{k_{c}} (26)
- \mathcal{L}: (\tilde{q}_{k},\tilde{r}_{k})
- (\tilde{q}^{\mu}_{k},\tilde{r}^{\mu}_{k})
- (\tilde{q}^{\varsigma,(c)}_{k},\tilde{r}^{\varsigma,(c)}_{k})
- count
- 1
- n_{e}(N)
- p-ric calls / \rho update
- 1
- 1, shared
- p-lqt calls / iteration
- 1
- n_{e}(N), batched
IV-D z-update as Parallel Projections
In the minimization problem of z-update, when the cost g (32) is a sum of indicators, the update reduces to the proximal operator of the individual indicator, i.e. the Euclidean projection,
\begin{split}z^{j+1}&=\argmin_{z\in\mathcal{C}}\tfrac{1}{2}\|z-(\mathcal{M}\theta^{j+1}+u^{j})\|_{2}^{2}\\
&=:\Pi_{\mathcal{C}}\!\left(\mathcal{M}\theta^{j+1}+u^{j}\right).\end{split}The projections are executed in parallel because the sets are independent; i.e., no variable is projected in both sets simultaneously.
Second-order cone constraints. For the projection to the set \mathcal{K}_{n}, we obtain
\Pi_{\mathcal{K}_{n}}({t,s})=\begin{cases}{(t,s)},&\|s\|_{2}\leq t,\\[2.0pt]
(0,0),&\|s\|_{2}\leq-t,\\[2.0pt]
\dfrac{t+\|s\|_{2}}{2}{\left(1,\,\dfrac{s}{\|s\|_{2}}\right)},&\text{otherwise.}\end{cases}Therefore, each of z_{x,i,k}, similarly for z_{u,i,k}, is updated as:
z_{x,i,k}^{j+1}=\Pi_{\mathcal{K}_{n_{e}(k)}}(\mathcal{M}_{x,i,k}\theta^{j+1}+u_{x,i,k}^{j})here, \mathcal{M}_{x,i,k} is as defined in (30) and u_{x,i,k} is the corresponding component of u.
Terminal covariance constraint. For projection of X\in\mathbb{R}^{n_{x}\times n_{e}(N)} to the set \mathcal{B}, the standard approach is computing the singular value decomposition of {X=U_{X}\Lambda V_{X}^{\top}} and then {\Pi_{\mathcal{B}}(X)=U_{X}\min(\Lambda,I_{n_{x}})V_{X}^{\top}} with \min denoting an element-wise minimum of the two diagonal matrices. However, as X is a fat matrix and we don’t require the matrix V_{X}, we can instead compute the eigendecomposition of {XX^{\top}=U_{X}\Lambda^{2}U_{X}^{\top}}, giving us {U_{X}} and {\Lambda^{2}}, from which we construct {M_{X}:=U_{X}\min(I_{n_{x}},\Lambda^{-1})U_{X}^{\top}}. Therefore, the projection operator becomes:
\displaystyle\Pi_{\mathcal{B}}(X) \\ \displaystyle=U_{X}\min(\Lambda,I_{n_{x}})V_{X}^{\top} \\ \displaystyle= \\ \displaystyle U_{X}\min(I_{n_{x}},\Lambda^{-1})(U_{X}^{\top}U_{X})\Lambda V_{X}^{\top}=M_{X}X.Hence, the z_{N} update is
z_{N}^{j+1}=\Pi_{\mathcal{B}}(\mathcal{M}_{N}\theta^{j+1}+u^{j}_{N})Hence, the z-update reduces to closed-form Euclidean projections onto the cone and covariance constraint considered, which can be evaluated in a parallel, batched process.
(n_{x}=12,n_{w}=6,n_{u}=4,N=80,\Delta t=0.1).V Numerical Simulations
In this section, we present numerical simulations with ablations, run on a system with an Intel Core Ultra 9 285K (64GB RAM) and an RTX 5080 (16GB VRAM). To demonstrate the efficacy of socx, we consider a hover-linearized quadrotor with state (p,v,\phi,\theta,\psi,\omega)\in\mathbb{R}^{12}, inputs (\Delta T,\tau_{x},\tau_{y},\tau_{z})\in\mathbb{R}^{4}, and noise \mathbf{w}_{k}\sim\mathcal{N}\!\left(0,I_{6}\right) entering as forces and torques, with Euler discretization and \Delta t=0.1s. We consider three different setups: a helix in a tapering corridor (13 waypoints), a zig-zag climb, and an out-and-back (4 waypoints each), shown in Figure 2. At N=40, we reduce the waypoints to 3, 2, and 2, respectively, as the 4-s horizon is too short to fly through all of them.
The walls are represented as six half-plane linear chance constraints (2) in position \epsilon_{x}=0.05, and actuator limits are imposed as both an upper and lower limit with \epsilon_{u}=0.05 at each time step. The terminal state has a position-covariance constraint (4) with \Sigma_{f}=(0.12\,\mathrm{m})^{2}I_{3}. A selector matrix of appropriate size can be introduced to impose such a terminal covariance constraint. A quadratic penalty on state and control input is imposed. The waypoint and goal terms act only on the mean state.
V-A socx vs. MOSEK vs. SCS+cuDSS: Tolerance vs. Solve Time
For baseline comparisons, we report the internal solve times of MOSEK [21] and SCS (cuDSS), both called through CVXPY [27]. socx’s measured time excludes JAX’s just-in-time (JIT) compilation [24]. Figure 3 and Table III compare the solve times. Compared to MOSEK, the speed-up grows from 7.2–7.9\times at N=40 to 57–98\times at N=240 because MOSEK’s time grows faster than socx. MOSEK runs out of memory at N=320, while socx solves N=1120 in 145 s on average. As MOSEK is an interior-point method, its solve time does not vary much with tolerance, unlike socx which is a first-order method. We observe that socx remains faster at tight tolerances, but by a smaller margin. At N=160 the speed-up is 37–53\times at 10^{-5} and still 12–14\times at 10^{-7}. SCS (cuDSS), a GPU-based first-order method, is 47–2224\times slower than socx and slower than MOSEK for N\geq 80. We additionally observe that SCS times out at a 10,000s time cap for N\geq 640. In Table III, \frac{P_{\mathrm{viol}}}{\epsilon} denotes the probability of violation divided by the allowed violation. A value close to 1 indicates that the constraints are active, and a value greater than 1 quantifies the violation.
N=160 and (b) horizon at fixed \epsilon=10^{-5}- N
- n_{e}(N)
- time (s)
- iterations
- obj. err.
- P_{\mathrm{viol}}/\epsilon
- time (s)
- speed-up
- time (s)
- speed-up
- 40
- 252
- 0.38 \pm
- 0.02
- 377 \pm
- 20
- 2{\times}10^{-7}
- 1.000
- 2.9 \pm
- 0.1
- 7.2–7.9\times
- 26 \pm
- 11
- 47–104\times
- 80
- 492
- 0.66 \pm
- 0.06
- 483 \pm
- 53
- 10^{-7}
- 1.000
- 14.9 \pm
- 1.5
- 20–27\times
- 179 \pm
- 79
- 145–369\times
- 160
- 972
- 2.20 \pm
- 0.38
- 750 \pm
- 135
- 2{\times}10^{-5}
- 1.002
- 91.7 \pm
- 5.5
- 37–53\times
- 1976 \pm
- 2077
- 199–2224\times
- 240
- 1,452
- 4.33 \pm
- 0.30
- 798 \pm
- 57
- 10^{-4}
- 1.002
- 311.7 \pm
- 82.9
- 57–98\times
- 3848 \pm
- 2123
- 386–1342\times
- 320
- 1,932
- 7.10 \pm
- 0.26
- 808 \pm
- 31
- –
- 1.000
- out of memory (50GB cap)
- 5789 \pm
- 1633
- 576–1085\times
- 1120
- 6,732
- 144.54 \pm
- 55.48
- 1364 \pm
- 523
- –
- –
- out of memory (50GB cap)
- time out (10,000s cap)
V-B \theta-update: LQT ablations
Table IV compares the per-iteration cost of the parallel LQT update with three alternatives. Sequential Riccati updates have O(N) span and use 2.5–4.9\times less memory, but are 2.5–4.0\times slower. The condensed KKT update uses 3.9–9.5\times less memory but is 2.2–7.5\times slower, and its time grows 3.9\times and 6.4\times per doubling of N. The key comparison is with a per-column loop that does not exploit the fact that the stochastic columns share \mathcal{Q} and therefore (P,K), so the gains cannot be reused (39b). It is 6.9–14.8\times slower and uses 4.8–9.7\times more memory than the shared-gain update, and both gaps widen as N grows.
- Variant
- N{=}80
- 160
- 320
- N{=}80
- 160
- 320
- \theta-update: per iteration
- Parallel LQT (Ours)
- 1.13
- 2.62
- 8.17
- 39
- 124
- 390
- Sequential LQT
- 4.48
- 9.16
- 20.66
- 8
- 40
- 159
- Condensed KKT
- 2.46
- 9.54
- 61.19
- 10
- 13
- 43
- Per-column loop
- 7.78
- 30.63
- 120.72
- 188
- 747
- 3768
- Terminal-LMI projection: per call
- complexity
- Gram eigh (Ours)
- 0.39
- 0.42
- 0.41
- O(n_{x}^{2}W+n_{x}^{3})
- SVD
- 0.94
- 1.05
- 0.98
- O(n_{x}^{2}W)
- Schur PSD
- 8.79
- 22.03
- 88.64
- O((n_{x}+W)^{3})
V-C z-update: Covariance ablations
We consider three different ways to project onto the terminal covariance constraint (11). A generic conic solver must lift it to an LMI constraint of size (n_{x}+W)\times(n_{x}+W) as follows
\|X\|_{2}\leq 1\iff\begin{bmatrix}I_{n_{x}}&X\\
X^{\top}&I_{n_{e}(N)}\end{bmatrix}\in\mathbb{S}^{+}_{n_{x}+n_{e}(N)},with W:=n_{e}(N) and project onto \mathbb{S}^{+}_{n_{x}+W} with an eigendecomposition of cost O((n_{x}+W)^{3}). However, socx works with spectral-norm ball projections using the n_{x}\times n_{x} matrix. We also compare against it by computing the SVD of the full matrix X, which has the same asymptotic complexity but a larger constant. In Table IV, the Gram eigendecomposition takes 0.39–0.42 ms per call, nearly independent of N over this range; the SVD is 2.4–2.5\times slower, and the Schur-complement PSD projection is 22–216\times slower, with the gap growing with N.
Remark 3.
Batching can be used to increase solve throughput at the expense of added latency by solving multiple instances in parallel, which often increases the individual solve time [11, 12, 13].
VI Conclusion
We presented socx, a GPU-accelerated JAX implementation for solving linear stochastic optimal control with exact representations for linear chance constraints and terminal covariance constraints, with approximate representations for quadratic chance constraints. The proposed solver exploits the structure of the lifted convex representation by using ADMM to split the problem into subproblems that can be solved in closed form. The \theta-update becomes a set of independent linear quadratic tracking problems, and the z-update becomes parallel projections. We introduced a spectral ball projection for the terminal covariance constraint to reduce computation time.
The proposed algorithm is validated on a 3D hover linearized quadrotor with different waypoint configurations. Compared to convex solvers for the same problem, we observe speed-ups of up to 98\times compared to MOSEK and 2224\times compared to SCS at 10^{-5} tolerance. The proposed approach can also solve for longer horizons of up to N=1120, compared with N=320 for the baselines. Additionally, we presented ablations of the \theta-update and the z-update to further isolate components of the observed speed-ups.