Skip to content

Fix: do not drop parallel row bounds when merging into an equality - #51

Merged
dance858 merged 2 commits into
dance858:mainfrom
LucasBoTang:fix/parallel-row-equality-merge
Aug 1, 2026
Merged

Fix: do not drop parallel row bounds when merging into an equality#51
dance858 merged 2 commits into
dance858:mainfrom
LucasBoTang:fix/parallel-row-equality-merge

Conversation

@LucasBoTang

Copy link
Copy Markdown
Contributor

Closes #50.

When an equality row becomes the remaining row of a bin, the sides accumulated from the rows processed before it were dropped without being checked. Those rows are deleted at the end of the merge, so a bound they carried could vanish and leave the reduced problem weaker than the original.

The fix compares the equality against those sides before the swap discards them. That comparison is also what makes discarding them sound: if the equality lies inside them, it is the tighter constraint, and they are redundant; and if it lies outside, the bin is infeasible.

test_17_parallel_rows is the case from the issue. It fails on the current main in both Debug and Release.

@dance858

dance858 commented Aug 1, 2026

Copy link
Copy Markdown
Owner

Awesome, very nice catch! Thanks for this contribution!

@dance858
dance858 merged commit 49623d7 into dance858:main Aug 1, 2026
18 checks passed
@LucasBoTang
LucasBoTang deleted the fix/parallel-row-equality-merge branch August 2, 2026 00:28
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.

[Bug] Parallel row merging can turn an infeasible problem into a feasible one

2 participants