# ElastiQP: An Always-Feasible QP Solver for Constrained Robot Control

Robotics.world

> QP-based controllers for robots must satisfy a growing number of constraints (dynamics, actuator limits, tasks, safety margins), and each added constraint increases the chance that, for a single…

**arXiv**: 2609.19080 · Preprint · not peer-reviewed

**Published**: 2026-09-16

**Authors**: Daniel Morton, Jon Arrizabalaga, Zachary Manchester, Marco Pavone

## In plain words

QP-based controllers for robots must satisfy a growing number of constraints (dynamics, actuator limits, tasks, safety margins), and each added constraint increases the chance that, for a single instant, the constraints conflict and the solver reports "infeasible" — leaving the robot with no command to execute.

## AI summary

## Overview

**Research area:** Robotics — real-time optimization-based control (quadratic programming solvers for whole-body control, safety filters, inverse kinematics/dynamics).

**Technical level:** Advanced. The paper assumes familiarity with convex optimization, duality, and active-set methods, though its core message (never return "infeasible" to a robot controller) is accessible.

**Scope:** This paper presents ElastiQP, a dual active-set QP solver that treats every inequality constraint as elastic with an exact per-constraint ℓ₁ penalty, eliminating slack variables analytically so that infeasible robot-control problems always return a usable, minimally-violating solution at microsecond speeds.

## What This Paper Is About

QP-based controllers for robots must satisfy a growing number of constraints (dynamics, actuator limits, tasks, safety margins), and each added constraint increases the chance that, for a single instant, the constraints conflict and the solver reports "infeasible" — leaving the robot with no command to execute. The authors build a solver that never fails this way: it relaxes inequality constraints with a weighted ℓ₁ penalty so that violations are confined to only the conflicting terms, while keeping dynamics equalities hard. The goal is to deliver these always-feasible solutions fast enough for 1 kHz control, where the target budget is well under 1 ms per solve.

## Key Contributions

1. **An always-feasible elastic QP formulation for robot control.** ElastiQP relaxes every inequality with an exact per-constraint ℓ₁ penalty and keeps equality constraints (dynamics) hard, so the problem is feasible whenever the equality constraints are consistent. Elastic equalities are also supported via pairs of opposing elastic inequalities when equalities represent soft tasks.
2. **Exact analytical condensation of the elastic slacks.** Rather than stacking slack variables into the decision vector, ElastiQP eliminates them analytically, keeping the condensed linear system at a constant n × n size even when the number of inequalities p greatly exceeds n. In the dual, this reduces to a simple box constraint 0 ≤ z ≤ w on the inequality multipliers, plus a "saturated" set accounting for terms pinned at their penalty value.
3. **A modified dual active-set algorithm.** The paper gives the elastic iteration explicitly: the working-set linear system gains a term involving the saturated set, and the working-set update handles box bounds, adding a third constraint state (inactive, active, saturated) to the usual two.
4. **An open-source implementation and cross-family evaluation.** ElastiQP is released as a header-only C++/Eigen library with Python and JAX interfaces, and the authors also derive condensation strategies for interior-point and augmented-Lagrangian solvers (ElastiQP-IPM and ElastiQP-PDAL) to test which solver family suits elastic robot control best.

## Main Findings

- **Active-set wins for this problem class.** Across feasible and infeasible control loops, the dual active-set variant consistently beat the authors' own IPM and ALM elastic variants, so the core solver is built on DAQP as the primary reference.
- **Microsecond solve times on feasible control loops.** At ϵ_abs = 10⁻⁶, ElastiQP took 1.3 / 1.3 µs (cold/warm) on arm-osc, 4.0 / 3.7 µs on biman-ik, and 52 / 45 µs on hum-wbc. DAQP (hard constraints, no elasticity) was fastest on feasible problems at 0.5 / 0.4, 3.0 / 2.9, and 44 / 43 µs, so the elasticity cost only a few microseconds at these scales.
- **Graceful and fast behavior on infeasible loops.** ElastiQP returned usable solutions in 2.1 / 1.3 µs (arm-osc), 5.9 / 3.9 µs (biman-ik), and 178 / 54 µs (hum-wbc), described as up to 40× faster than the best alternative solvers. Even cold solves on the hardest infeasible problem stayed comfortably below the 1 ms target.
- **Condensation is the source of the speedup.** Compared to an expanded slack form of DAQP, ElastiQP improved by over 40×; condensation improved ElastiQP-PDAL by 10× and ElastiQP-IPM by 20×, with the PDAL gap exceeding 250× on cold starts. ElastiQP was also 30–80× faster than qpax, the main condensed-elastic baseline.
- **Violations stay confined to the actually conflicting constraint.** On infeasible hum-wbc timesteps, ElastiQP violated 1 row with ℓ₁ violation 2.51 and equality residual 10⁻⁸, while DAQP-soft (ℓ₂) violated 28 rows with ℓ₁ violation 147, and ProxQP-closest (ℓ₂) violated 29 rows with 0.2 equality residual.
- **Hard-constraint solvers fail on conflict, sometimes slowly.** DAQP, PIQP, ProxQP, and qpax's hard form returned no usable solution at any infeasible timestep. On a warm-started controller using ProxQP, a single momentarily infeasible timestep could take upwards of 93 milliseconds to report infeasibility, against a nominal 1 millisecond budget.
- **qpax degraded under conflict and tight tolerance.** qpax struggled to converge at ϵ_abs = 10⁻⁶, so those tests were run at its looser default of 10⁻⁵, and convergence failures still occurred on the harder biman-ik and hum-wbc problems.
- **The condensation does not hurt general-purpose performance.** On the Maros–Mészáros set (36-problem n ≤ 200 subset and 107-problem n ≤ 10,000 subset at ϵ_abs = 10⁻⁶), DAQP won on the smaller subset and PIQP won comfortably at larger scales, but ElastiQP performed comparably to the best solvers and solved some problems others did not — ProxQP reported a premature infeasible status on QRECIPE in the n ≤ 200 subset.
- **A practical default penalty.** Robot control problems in the benchmark typically have duals ≤ 1, and the authors recommend w = 1e3 as a reasonable default for control. On the Maros–Mészáros subset, 50% of problems would be exact with a 1e3 penalty and 89% with 1e6; very few (e.g. QPCBOEI2) had optimal duals above 1e8, where conditioning becomes a concern.

## Methodology in Plain English

The authors start from the observation that an "elastic" QP — one where each inequality can be violated at a linear cost per unit of violation — has two useful properties. First, the optimal multiplier on each inequality is capped at the penalty weight rather than being unbounded. Second, if the penalty is set larger than the multiplier the hard problem would have had, the elastic solution is exactly the hard solution, so on normal timesteps the relaxation is invisible.

The trick is realizing that these two properties let you delete the slack variables from the math rather than carrying them as unknowns. In a dual active-set solver, which searches over constraint multipliers and only checks primal feasibility at the end, this amounts to adding an upper bound at w alongside the usual lower bound at zero. The algorithm then tracks three kinds of constraints instead of two: inactive, active, and saturated (pinned at the penalty). The working-set linear solve gains one extra term for the saturated constraints, and the logic for adding and removing constraints from the working set is extended to check both box bounds.

To test this, they build three representative control problems — a 6-DoF arm (6 variables, 0 equalities, 24 inequalities), a 12-DoF bimanual system with a rigid-grasp constraint (12, 6, 48), and a 28-DoF humanoid in double support (46, 18, 132). They pre-solve 500-timestep closed-loop trajectories in Pinocchio, cache the QP matrices, and replay them so that solve timing is isolated from kinematics and dynamics computation. Actuator limits are tuned so roughly 50% of timesteps are constrained at the optimum. Infeasible cases are created by tightening a single inequality past what the rest of the constraints allow, which lets the authors check whether a solver violates more than that one necessary constraint. They compare against DAQP, PIQP, ProxQP, and qpax under five problem formulations (elastic, hard, slack, closest, sparse), plus their own IPM and PDAL elastic variants, and add the Maros–Mészáros set as an out-of-domain robustness check. Timings come from an Intel Core Ultra 7 258V CPU with gcc 13.3 at -O3; the authors note that -march=native typically gives about a further 1.5× gain on larger problems, so reported numbers are conservative.

## Why This Matters

**Impact on research.** The paper makes a case that solver infeasibility should not be treated as a rare edge case in robot control but as a routine, expected condition that the solver should handle by construction. By showing the elastic condensation generalizes across interior-point, augmented-Lagrangian, and active-set families — and by quantifying the difference between ℓ₁ (sparse, confined violations) and ℓ₂ (diffuse, spread-out violations) — it gives the field both a drop-in tool and a design argument. The violated-row and equality-residual table is a concrete measurement of why the choice of norm matters, not just a stylistic preference.

**Real-world applications:**

- **Humanoid and legged whole-body control**, where dynamic feasibility, torque limits, and foot contact cones routinely conflict under disturbance; the 28-DoF hum-wbc benchmark is directly representative.
- **Safety filters on drones and manipulators**, where a filter that returns "infeasible" leaves the safety layer with nothing to apply — the paper's Fig. 1 cites prior hardware deployments on drones, manipulators, and humanoids.
- **Bimanual manipulation with rigid grasp constraints**, where hard grasp equalities and joint limits can momentarily disagree.
- **Inverse kinematics and retargeting pipelines**, where the authors envision ElastiQP as a fast elastic inner solver inside SQP loops.

**Industry relevance.** A header-only C++ library with Python and JAX bindings lowers the barrier to integration into existing controllers, and the sub-millisecond, warm-start-friendly behavior on humanoid-scale problems targets the compute budgets of real hardware rather than simulation. The engineering detail that reporting infeasibility can itself take tens of milliseconds (upwards of 93 ms with warm-started ProxQP) is a useful caution for anyone building a controller whose safety argument depends on a solver's failure mode being fast.

## Future Directions

- **Differentiability.** The authors state that initial work toward differentiable solves is in progress, which would allow the solver to sit inside learned or gradient-based pipelines.
- **GPU acceleration for batched solves**, enabling many QPs to be solved in parallel rather than one at a time.
- **ElastiQP as an elastic inner solver in SQP pipelines**, particularly for global inverse kinematics and retargeting.
- **Block-sparse condensation** to bring elastic constraints into highly structured MPC and trajectory optimization problems, extending the method from the small dense problems studied here toward longer horizons.
- **Automatic or adaptive penalty selection.** The current guidance (w = 1e3 as a default for control) is empirical, and the Maros–Mészáros analysis shows problem-dependent penalties spanning 1 to above 1e8, leaving open how to set w without a priori knowledge of the solution.

## Target Audience

Roboticists implementing real-time controllers and safety filters — particularly those working with high-DoF systems such as humanoids and bimanual manipulators — will benefit most, along with optimization researchers interested in elastic or always-feasible QP formulations and practitioners who need to choose between active-set, interior-point, and augmented-Lagrangian solvers for small, dense, high-frequency problems. Readers without a background in convex optimization duality will find the algorithmic sections demanding, but the benchmark tables and the ℓ₁-versus-ℓ₂ discussion are readable on their own.

## Authors’ abstract

As robot capabilities increase, quadratic programming (QP)-based controllers must account for a similarly increasing number of constraints to ensure safe, reliable operation. Yet, with each added constraint, this introduces more chances of momentary conflict: in which case, a QP solver that returns an "infeasible" status leaves the controller with nothing to execute. To address this, we introduce ElastiQP, a modified dual active-set QP solver that relaxes every inequality…

[The full abstract on arXiv](https://arxiv.org/abs/2609.19080)

[Read the original paper](https://arxiv.org/abs/2609.19080)

## Related papers

- [Fast and Robust Temporal Logic Planning via ADMM-based Trajectory Optimization](https://robotics.world/paper/fast-and-robust-temporal-logic-planning-via-admm-based-trajectory-2609.23037) 2026-09-19 · cs.RO · Also by Jon Arrizabalaga, Zachary Manchester
- [LLA-MPPI: Rapidly Adaptive Whole-body Control of Legged Robots with GPU-Accelerated Parallel Simulations](https://robotics.world/paper/lla-mppi-rapidly-adaptive-whole-body-control-of-legged-robots-with-gpu-2610.10465) 2026-10-07 · cs.RO · Also by Zachary Manchester
- [Data-Driven Precision Control of Soft Helicoid Robots](https://robotics.world/paper/data-driven-precision-control-of-soft-helicoid-robots-2611.11709) 2026-11-09 · cs.RO · Also by Marco Pavone
- [OPTED: On-Policy Fine-Tuning for End-to-End Driving using a Render-Free Teacher](https://robotics.world/paper/opted-on-policy-fine-tuning-for-end-to-end-driving-using-a-render-free-2609.20756) 2026-09-17 · cs.RO · Also by Marco Pavone
- [Structured World-State Reasoning for Agentic Robotic Search](https://robotics.world/paper/structured-world-state-reasoning-for-agentic-robotic-search-2609.23841) 2026-09-20 · cs.RO · Also by Marco Pavone

---

Canonical: https://robotics.world/paper/elastiqp-an-always-feasible-qp-solver-for-constrained-robot-control-2609.19080
