Simple-Robotics/proxsuite

The Advanced Proximal Optimization Toolbox

What it solves

Optimization problems with linear constraints appear everywhere in robotics, finance, and engineering. Solving them quickly and reliably is hard, especially when the problems are large, sparse, or have special structure. ProxSuite provides a set of numerical solvers (LP, QP, etc.) based on modern primal-dual proximal algorithms, aiming to be robust, precise, and efficient across dense, sparse, and matrix-free settings.

How it works

ProxSuite implements revisited primal-dual proximal methods. Instead of relying on classical interior-point or active-set approaches, it uses proximal operators that alternate between primal and dual updates. This design allows it to exploit problem structure: it offers dense, sparse, and matrix-free factorization backends, supports advanced warm-starting (including equality-constrained initial guesses), and includes dedicated features for box constraints, linear programs, QPs with diagonal Hessians, and problems with many more constraints than variables. It can also solve nonconvex QPs, solve batches of QPs in parallel, recover the closest feasible QP when the original is infeasible, and differentiate feasible and infeasible QPs (the latter through the QPLayer module). The library is written as a C++ template library (C++14/17/20 compliant) with Python and Julia bindings, and it is header-only.

Who it's for

Primarily aimed at robotics researchers and practitioners (the first targeted application), but usable in any context needing scalable optimization. It is already integrated into CVXPY, CasADi, and TSID (a robotics inverse-dynamics library). Users can install via pip, conda, or Homebrew, and it works on Linux, macOS, and Windows.

Highlights

  • Header-only C++ template library with Python and Julia bindings.
  • Supports dense, sparse, and matrix-free backends.
  • Features hot-starting, batch solving, and handling of infeasible QPs.
  • Includes QPLayer, which lets a QP be used as a differentiable layer in PyTorch.
  • Benchmarked as the fastest solver on dense random QPs and on the Maros Meszaros test set (solving over 60% of problems fastest, and at most 2x slower for ~90%).
  • Actively developed by Inria research groups and integrated into major optimization tools.

Related

  • Project
  • Project
  • Project
  • Project
  • Project