arXiv:2611.04325eess.SYNov 2026

Manuscript Offprint

arXiv:2611.04325

Computing Invariant Reachable Sets through Sum-of-Squares Programming

Mohamed Khalid M Jaffar

Mohamed Khalid M Jaffar

Abstract—Funnels, time-varying invariant sets around nominal trajectories, certify that a closed-loop system tracks its plan, and can be composed into verified motion plans. Their computation by sum-of-squares (SOS) programming is well established in formulation but not in practice: the result depends on implementation choices such as the initial guess, Lyapunov function normalization, and termination rule, which the literature documents only briefly. This paper presents a self-contained treatment of SOS-based funnel computation, implemented in the open-source package computeSOSFunnels. We propose a minimum-volume formulation with inlet and outlet constraints under which funnels with coinciding nominal endpoints compose by construction. Numerical experiments on a unicycle, with timing studies on a cart-pole and a 12-state quadrotor, characterize the pipeline: infeasible initial guesses are partly decidable before solving, the certificate shows no violations among 39,000 boundary samples per funnel under the true dynamics, and constructing the semidefinite program, not solving it, dominates computation time.

I. INTRODUCTION

Autonomous systems that act near people and obstacles need more than a nominal motion plan: they need a guarantee that the closed-loop system stays near that plan despite deviations from it. Funnels provide such a guarantee. A funnel is a time-varying set around a nominal trajectory that every closed-loop trajectory starting in its inlet remains inside until it exits through its outlet. Because the guarantee is set-based, when funnels compose, that is, when the outlet of one funnel lies in the inlet of the next, the guarantees chain, and a sequence of funnels becomes a verified motion plan [1]. This composability makes funnels a natural primitive for feedback motion planning [2-4].

Computing funnels for a general dynamical system is the bottleneck. For nonlinear systems, a standard approach is to search for time-varying Lyapunov functions with sum-of-squares (SOS) programming, which turns invariance conditions into semidefinite programs (SDPs) [5-7]. The resulting problem is bilinear (non-convex) in the Lyapunov function and the SOS multipliers, so it is solved by alternating between convex subproblems, and its solution depends on design choices the formulation leaves open — the initial guess, termination rule, normalization that fixes the scale of the Lyapunov function, and the polynomial approximation of the dynamics. These choices decide whether the method returns a useful funnel or an infeasible program, yet the literature typically documents them only briefly, and the theory, which draws on real algebraic geometry and semidefinite optimization is

spread across several papers. This paper is written to be self-contained, so that a reader new to SOS programming can follow it from theory to formulation to implementation.

SOS funnels and their use in planning: Tedrake et al. [2] presented LQR-trees that grow a tree of trajectories, each stabilized by a time-varying linear quadratic regulator (TVLQR), and verify a funnel around each with SOS programming. Tobenkin et al. [7] developed the underlying funnel computation framework, including the time-sampled verification and the Riccati-based initial guess adopted in this work. Majumdar et al. [8] extended the search to the controller itself, maximizing the set of states driven into a goal region. Majumdar and Tedrake [3] reversed the objective, computing minimum-volume outer approximations of the states reachable from a given initial set; our formulation is closest to theirs. Funnels have since served as primitives for online replanning in dynamic environments [9].

Alternatives to SOS-based funnels: Funnel synthesis for systems with Lipschitz nonlinearities can be posed as a numerical optimal control problem with matrix inequality constraints [10]. Hamilton-Jacobi reachability analysis yields tracking-error bounds for planning with reduced-order models [11], and Bernstein polynomial bounds give fast funnel computation for polynomial systems [12]. Contraction metrics certify tracking tubes through differential conditions rather than Lyapunov sublevel sets [13]. These methods trade the generality of polynomial certificates for scalability or tighter structure. SOS methods face their own scalability limit, since the SDP size grows combinatorially with state dimension and polynomial degree; diagonally dominant relaxations [14] and related techniques [15] trade conservatism for tractability.

Gap: The SOS formulation for computing funnels is well established, but its practical implementation is not. Where reference implementations exist, the accompanying papers do not fully characterize how the computation behaves: which initial guesses yield feasible programs, when to stop the alternation procedure, how well a polynomial approximate certificate holds for the true dynamics, and where the computation time goes. This paper addresses that gap. Its contributions are:

  1. computeSOSFunnels¹, an open-source, end-to-end implementation of the computation pipeline, from trajectory optimization and TVLQR synthesis to polynomial approximation and invariance certification. It automatically generates Taylor approximations of arbitrary user-specified degree from symbolic system dynamics.

  2. An empirical characterization of the pipeline in practice: feasibility of initial guesses, part of which is decidable

*The author is with the Department of Aerospace Engineering, University of Maryland, College Park, USA. Email: khalid26@umd.edu. This work was not supported by any organization.

¹github.com/khalid2696/computeSOSFunnels

JOURNAL OF LATEX CLASS FILES, VOL. 14, NO. 8, AUGUST 2021

before any SDP is solved; validity of the certificate under the true dynamics; and computational cost, including a closed-form count of the SDP size.

  1. A minimum-volume funnel formulation with both inlet and outlet constraints. As in [3], the funnel contains a given inlet set; in addition, its outlet lies within a user-specified terminal set nested inside the inlet set. So funnels with coinciding nominal endpoints compose, avoiding runtime set-containment checks whose cost accumulates during motion planning.

References (26)