Repository navigation
Conversation
jorisv
force-pushed
the
topic/fix-dual-infeasibility-infinite-bounds
branch
from
November 3, 2026 13:17
f38744a to
02515b9
Compare
jorisv
approved these changes
Nov 3, 2026
Contributor
|
It's approved, thanks @Lucas-Haubert. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 to1e20. But infinite bounds are first clamped to exactly±1e20at setup, then multiplied by the Ruiz scaling:delta = 1),u_scaled = 1e20and the strict testu_scaled > 1e20is false, so every infinite bound is treated as finite;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(andu_box/l_boxin dense), with±1e20meaning infinity, consistently with the clamping done at setup.Checklist
pre-commit run --all-filesorpixi run lint