Skip to content

Floor residuals at tolerance - #136

Merged
stephane-caron merged 3 commits into
mainfrom
fix/floors
Jul 23, 2026
Merged

Floor residuals at tolerance#136
stephane-caron merged 3 commits into
mainfrom
fix/floors

Conversation

@stephane-caron

Copy link
Copy Markdown
Member

Residual tables are normalized by the best solver's shifted geometric mean. When the best residual is very close to zero, that divisor yielded large or even negative values depending on the machine running the benchmark, as for instance in this report:

| ecos  | -218763017610834.0 | -225181.0 | -225173226328.0 | -225179973.0 |
| highs | -562949953421310.0 | -562951.0 | -562949953418.0 | -562949947.0 |

This PR floors residuals at their corresponding per-settings tolerance before averaging. This way, solvers are not rewarded for solving more precisely than requested, and negative outputs are fixed.

@stephane-caron
stephane-caron merged commit f4a6171 into main Jul 23, 2026
14 checks passed
@stephane-caron
stephane-caron deleted the fix/floors branch July 23, 2026 07:26
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.

1 participant