Skip to content
Robotics.world

Research

OpenSCvx: An Open-Source Modular and Extensible Nonlinear Trajectory Planning Package

Trajectory optimization computes dynamically feasible motions for autonomous systems while satisfying operational and environmental constraints, but existing software forces users to hand-derive…

The paper’s first page · arXiv:2608.21631
arXiv
2608.21631 · Preprint · not peer-reviewed
Published
2026-08-21
Authors
Christopher R. Hayner, Griffin J. Norris, Fabio Spada, Samet Uzun, Avi Mittal, Behcet Acıkmese, Karen Leung

In plain words

Trajectory optimization computes dynamically feasible motions for autonomous systems while satisfying operational and environmental constraints, but existing software forces users to hand-derive solver-specific formulations, provide derivatives, and rebuild transcriptions for each new problem.

AI summary

Overview

Research area: Robotics and optimal control — specifically trajectory optimization software, with a focus on continuous-time successive convexification (CT-SCvx).

Technical level: Intermediate. The paper is written as a tutorial and walks through a full worked example, but it assumes familiarity with optimal control problem (OCP) formulation, transcription methods, and convex optimization concepts. Readers new to trajectory optimization will need background reading; readers familiar with the field can follow the modeling workflow directly.

Scope (one sentence): This paper presents OpenSCvx, an open-source Python package that lets users specify nonlinear trajectory optimization problems symbolically and solves them with a modular, JAX-accelerated implementation of continuous-time successive convexification.

What This Paper Is About

Trajectory optimization computes dynamically feasible motions for autonomous systems while satisfying operational and environmental constraints, but existing software forces users to hand-derive solver-specific formulations, provide derivatives, and rebuild transcriptions for each new problem. Software support for successive convexification (SCvx) in particular remains immature compared with mature direct-transcription and Riccati-based frameworks. The paper introduces OpenSCvx as a general-purpose framework that separates high-level problem specification (symbolic dynamics, objectives, constraints) from algorithmic implementation and from the numerical backend, so that researchers can prototype, solve, and extend state-of-the-art trajectory optimization methods with minimal effort.

Key Contributions

  1. Symbolic modeling framework (C.1): Users specify dynamics, objectives, and constraints as composable mathematical expressions. The framework automatically builds the computational representations needed for trajectory optimization, reducing implementation effort for new problems and algorithms.

  2. Modular CT-SCvx framework (C.2): Transcription methods, convexification strategies, and algorithmic update schemes are interchangeable, enabling systematic development and evaluation of SCvx variants across many trajectory optimization problems.

  3. Parameterized optimization architecture (C.3): Problem structure is separated from numerical parameters, so repeated optimization with updated problem data does not require complete reconstruction of the optimization model.

  4. JAX-based computational backend (C.4): Automatic differentiation, vectorized execution, and GPU acceleration support scalable trajectory optimization, including batched optimization and integration with learned or simulation-based dynamics models.

The paper also lists four capabilities that distinguish the package: (i) continuous-time constraint modeling, (ii) temporal and logical specifications, (iii) automatic vectorization for scalable and batched optimization, and (iv) a modular architecture that admits new algorithms, models, and solver backends with minimal effort.

Main Findings

  • Software gap identified: The authors argue that existing SCvx implementations are generally research-oriented and application-specific, requiring users to manually construct transcriptions, provide derivatives, implement algorithmic components, or modify solver internals. They report that researchers consequently develop independent implementations rather than building on a common, extensible framework.

  • Feature comparison across frameworks: Table I compares OpenSCvx against general modeling frameworks (CasADi, CusADi, Drake, CVXPY/DNLP, JuMP), direct methods (GPOPS-II, MAPTOR, ICLOCS2, PSOPT, acados), Riccati-based QP methods (Crocoddyl, ALTRO, Aligator, DP-iLQR, LQRax), unconstrained/penalty-based methods (CHOMP, STOMP, GPMP2), and SCP methods (TrajOpt, SCPToolbox, SCvxGEN). OpenSCvx is listed as supporting automatic transcription, automatic differentiation, continuous-time path constraint satisfaction, STL/logic specifications, JIT/compile, and native batching/GPU; among the listed frameworks, it is the only one marked as combining continuous-time constraint satisfaction, STL/logic, and native batching/GPU acceleration.

  • Architecture separation: The symbolic expression graph — implemented as a directed acyclic graph (DAG) — is the sole interface between the modeling layer and everything downstream. The same graph is "lowered" to separate backends: JAX for dynamics, costs, and nonconvex constraints, and CVXPY for assembling each convex subproblem. The authors state that a new operator requires one node type plus one translation rule per backend, and a new backend requires only a set of per-operator translation rules.

  • Continuous-time formulation: The supported problem class is a generic nonlinear OCP in continuous-time Mayer form, incorporating continuous dynamics, discrete impulsive dynamics at specified event times, path inequality and equality constraints, and boundary conditions. No convexity assumptions are made on any function; only C¹ smoothness with locally Lipschitz Jacobians (Assumption 1) is required, which the authors state allows JAX automatic differentiation to generate exact subproblem linearizations across both continuous intervals and discrete state jumps.

  • Disciplined programming guarantees: The assembled convex subproblem is stated to satisfy the DCP and disciplined parametric programming (DPP) rulesets by construction, with CVXPY verifying compliance when the problem is built.

  • Evaluation scope announced, results not in provided content: The paper states that Section VI evaluates OpenSCvx through verification problems, benchmark comparisons, and representative robotics and aerospace applications, and mentions a benchmark suite spanning more than one hundred optimal control problems. The supplied content is truncated before Section VI, so the actual quantitative benchmark results are not reported here.

Methodology in Plain English

The authors take a software-engineering approach to a numerical optimization problem, and the paper reads as a guided tutorial rather than a results-driven study.

  • Modeling as expressions, not matrices. A user writes something like Norm(p - w) <= 1.0. OpenSCvx does not evaluate this immediately — it stores it as a graph of nodes (variables and constants as leaves, operators as internal nodes). Because a subexpression like p - w can feed multiple parents, the structure is a DAG rather than a tree. Every step between problem definition and numerical solution inspects, transforms, and rewrites this graph, including canonicalization into residual form (moving all terms to one side against a constant zero).

  • Lowering to two backends. The graph is recursively translated into executable code. Dynamics, costs, and nonconvex constraints become pure JAX functions, so Jacobians come from automatic differentiation rather than hand derivation, and linearized discrete dynamics are produced by numerically integrating the lowered dynamics. Convex expressions bypass the linearization pipeline and are lowered directly into CVXPY atoms, while algorithm-specific terms such as trust-region penalties and virtual-control slack variables are appended by the algorithm itself. Numerical values from JAX are written into CVXPY parameter matrices at every iteration.

  • Worked example. The tutorial implements the Brachistochrone problem end to end: minimizing final time subject to dynamics in which horizontal and vertical position rates depend on speed and steering angle, speed rate depends on gravity and the cosine of the steering angle, with fixed initial position, fixed final position, and zero initial speed. The paper also explains that because OpenSCvx targets Mayer form (terminal cost only), a running cost is handled by augmenting the state with an extra variable whose dynamics equal the running cost and whose initial condition is zero, so the integral is minimized as the terminal value of that augmented state.

  • Practical entry point. The package installs with uv pip install openscvx, with source code at github.com/OpenSCvx/OpenSCvx and documentation at openscvx.github.io/OpenSCvx. It builds on JAX (automatic differentiation, vectorization, compilation, accelerator execution), Diffrax for integration, CVXPY for parameterized problem updates and DPP caching, and CVXPYgen for customized C-code generation.

Why This Matters

Impact on research. Successive convexification can preserve convex structure present in the original optimal control problem — such as second-order cone or semidefinite constraints — rather than replacing everything with local quadratic approximations, and it has been applied to planetary landing, spacecraft guidance, perception-aware planning, and information-aware trajectory optimization. Yet the authors observe that software engineering advances already common in direct NLP frameworks (symbolic specification, automatic differentiation, backend abstraction, modular solver interfaces) have not been fully realized in the SCP ecosystem. OpenSCvx aims to close that gap, letting researchers compare SCvx variants on a common substrate instead of reimplementing them.

Real-world applications (as framed by the paper):

  • Aerospace guidance and planetary landing — the paper cites planetary landing and spacecraft guidance among applications enabled by SCP advances, and the supported problem class explicitly includes impulsive Δv maneuvers via discrete state jumps.
  • Drone flight through constrained spaces — Figure 1 shows a quadrotor flying through a sequence of gates while controlling a laser pointer to trace the OpenSCvx logo on a target surface.
  • Robotic motion planning — the paper positions the framework against CHOMP, STOMP, and GPMP2-style motion planning methods and against TrajOpt, which was restricted to kinematics.
  • Embedded model predictive control — optional solver code generation through CVXPYGen targets deployment, complementing the GPU/batched execution pathway used during development.

Industry relevance. The authors include contributors affiliated with General Robotics and Zoox, and acknowledge support and early testing from the Mitsubishi Electric Research Laboratory. The framework's combination of batched/GPU execution, parameterized re-solving without model reconstruction, and C-code generation maps onto the practical needs of teams that must re-solve related problems repeatedly (for example across many scenarios or agents) and eventually deploy solvers on hardware.

Future Directions

  • Filling the evaluation gap with published benchmarks. The paper promises verification problems and benchmark comparisons across a suite of more than one hundred optimal control problems; making those comparisons against frameworks such as GPOPS-II, acados, ALTRO, and SCPToolbox reproducible and public is the natural next step.

  • Adaptive mesh refinement. Table I marks mesh adaptation as absent for OpenSCvx, while GPOPS-II, MAPTOR, ICLOCS2, and PSOPT are listed as supporting it. Adding mesh refinement would complement the framework's continuous-time constraint handling.

  • Extending the operator and backend vocabulary. Because a new operator is one node type plus one translation rule per backend, and a new backend is a set of translation rules, the architecture invites additional backends and domain-specific operators — including the integration with learned or simulation-based dynamics models that the contributions section raises.

  • Broader algorithmic coverage within the SCP family. The paper cites SCvx* (augmented-Lagrangian feasibility), AutoSCvx (automated parameter adaptation), and CT-SCvx (continuous-time constraint satisfaction) as variants with different choices for convexification, constraint handling, globalization, and convergence. The modular CT-SCvx design is positioned as the substrate for systematically developing and evaluating such variants, and for testing against convergence guarantees from the prox-linear framework.

Target Audience

Robotics and aerospace researchers and graduate students who formulate optimal control problems and want a Python-native tool that does not require hand-derived Jacobians or manual transcriptions; practitioners prototyping SCvx-based planners who need to swap transcription methods, update rules, and solver backends; and software-minded control engineers interested in how symbolic modeling, automatic differentiation, and disciplined convex programming can be composed into a single trajectory optimization pipeline. Readers seeking quantitative benchmark evidence should note that the evaluation results fall outside the content available here.

Authors’ abstract

Trajectory optimization computes dynamically feasible motions that enable autonomous systems to accomplish complex tasks while satisfying operational and environmental constraints. This tutorial presents OpenSCvx, an open-source Python framework that bridges the gap between high-level problem specification and efficient numerical optimization. Rather than requiring users to derive solver-specific mathematical formulations, OpenSCvx provides a symbolic modeling interface that…

The full abstract on arXiv
Read the original paper

Related papers