Repository navigation
Fix leak of stale duals in compute_dual_solution_from_basis - #2124
Merged
Merged
Conversation
Contributor
Author
|
/ok to test 08432ce |
chris-maes
approved these changes
Oct 14, 2026
chris-maes
left a comment
Contributor
There was a problem hiding this comment.
The change looks good to me.
I'm not clear on how often this occurs.
CI Test Summary✅ All 32 test job(s) passed. |
Contributor
|
/merge |
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.
The resize/scatter steps assume that
yis initially empty or size zero. (If y is already sizem, thenresizedoes not overwriteywith zeros.) That assumption doesn't hold:cuopt/cpp/src/dual_simplex/crossover.cpp
Lines 1397 to 1403 in d10c658
At this point in the code,
solution.yhas already been populated indual_push.In practice this appears in the following logging:
Note the huge dual residual after the primal push.
With the patch instead we get: