crossover:v0; first simple version for feedback#56
Draft
charles-vzf wants to merge 2 commits into
Draft
Conversation
Codecov Report❌ Patch coverage is
... and 2 files with indirect coverage changes 🚀 New features to boost your workflow:
|
4b82353 to
9c41cd2
Compare
After OPTIMAL termination, optionally snap primal coordinates near finite box bounds, tighten implied bounds from equality rows, and roll back if KKT errors regress. Controlled by CrossoverParameters on Algorithm (on by default). Effective bounds run on CPU once per solve and copy back to device. Not a basic-vertex crossover (unlike cuOpt): useful when PDLP stops near bounds, usually a no-op for strictly interior solutions. Refs JuliaDecisionFocusedLearning#13
b89002c to
af49ead
Compare
Enum values are not separate doc bindings; use inline code instead of @ref.
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.
Add V1 post-solve crossover (threshold snap + implied bounds) Refs #13
Post-OPTIMAL crossover for PDLP: snap primal coordinates near finite box bounds, tighten implied bounds from equality rows, rollback if KKT residuals regress. Controlled by CrossoverParameters on Algorithm (enabled by default).
V1 is not a basic-vertex crossover (unlike cuOpt): it helps near-bound / implied-bound cases (e.g. toy_lp) but is usually a no-op when variables stay strictly interior. Lightweight first step toward MIP-ready solutions.
Also realized a small bench compared to cuopt:

I am planning a more advanced version cuopt-like after feedbacks