Skip to content

Fix dual infeasibility detection with infinite bounds - #497

Merged
jorisv merged 3 commits into
Simple-Robotics:develfrom
Lucas-Haubert:topic/fix-dual-infeasibility-infinite-bounds
Nov 3, 2026
Merged

jorisv merged 3 commits into
Simple-Robotics:develfrom
Lucas-Haubert:topic/fix-dual-infeasibility-infinite-bounds

Conversation

@Lucas-Haubert

@Lucas-Haubert Lucas-Haubert commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Fixes #487

The dual infeasibility check (global_dual_residual_infeasibility, dense and sparse) decides whether each bound is finite by comparing the scaled bound to 1e20. But infinite bounds are first clamped to exactly ±1e20 at setup, then multiplied by the Ruiz scaling:

  • without preconditioning (delta = 1), u_scaled = 1e20 and the strict test u_scaled > 1e20 is false, so every infinite bound is treated as finite;
  • with preconditioning, an infinite bound is seen as infinite only when its delta > 1, which is a matter of luck.

This behavior becomes misaligned with the true certificate, taken from OSQP, Section 3.4.

Fix

Finite bounds are now identified on the (unscaled) model, qpmodel.u / qpmodel.l (and u_box / l_box in dense), with ±1e20 meaning infinity, consistently with the clamping done at setup.

Checklist

  • I have read the contributing guidelines
  • I have run pre-commit run --all-files or pixi run lint
  • I have reviewed my own code
  • I have commented my code where necessary
  • I have made corresponding changes to the Doxygen documentation
  • I have added tests that prove my fix or feature works
  • I have updated the CHANGELOG or added the "no changelog" label for CI or infra changes
  • I have updated the README credits section
  • I have used an AI assistant

@jorisv
jorisv force-pushed the topic/fix-dual-infeasibility-infinite-bounds branch from f38744a to 02515b9 Compare November 3, 2026 13:17
@jorisv

jorisv commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

It's approved, thanks @Lucas-Haubert.

@jorisv
jorisv enabled auto-merge November 3, 2026 13:40
@jorisv
jorisv merged commit f5d4d97 into Simple-Robotics:devel Nov 3, 2026
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dense ProxQP does not detect an unbounded QP and reaches max_iter

2 participants