Skip to content

Comments

Forward-merge release/26.02 into main#825

Merged
rgsl888prabhu merged 1 commit intomainfrom
release/26.02
Feb 4, 2026
Merged

Forward-merge release/26.02 into main#825
rgsl888prabhu merged 1 commit intomainfrom
release/26.02

Conversation

@rapids-bot
Copy link
Contributor

@rapids-bot rapids-bot bot commented Feb 4, 2026

Forward-merge triggered by push to release/26.02 that creates a PR to keep main up-to-date. If this PR is unable to be immediately merged due to conflicts, it will remain open for the team to manually merge. See forward-merger docs for more info.

This PR adds callbacks to C API. Users can now use C API to implement get_solution and set_solution callbacks.

This PR is a breaking PR that changes callback input/output pointers from device memory to host memory. We are also adding a user_data pointer for user to be more flexible inside the callbacks as well as dual bound for the B&B tree.

Previously callbacks were not enabled when third party presolved was enabled. Now we are able to handle uncrushing of solutions when third party presolve is enabled on get_solution callbacks. Registering a set_solution callback disables presolve as there is no way of crushing a solution in original space to reduced space when using third party presolve.

The examples and tests are modified to reflect the change.


## Summary by CodeRabbit

* **New Features**
  * MIP incumbent get/set callbacks with optional user_data and registration; server/client flag to enable set-callback behavior.

* **Behavior**
  * Incumbent records now include bound and user_data; solution-bound handling made thread-safe. Registering a set-solution callback may disable presolve and enables host-side incumbent injection.

* **Tests**
  * Added tests for get-only and get-and-set flows, user_data propagation, bound reporting, and presolve interactions.

* **Documentation**
  * Examples and docs updated to show callbacks, user_data, bound reporting, and set-callback usage.

Authors:
  - Akif ÇÖRDÜK (https://github.com/akifcorduk)
  - Alice Boucher (https://github.com/aliceb-nv)

Approvers:
  - Ramakrishnap (https://github.com/rgsl888prabhu)
  - Nicolas L. Guidotti (https://github.com/nguidotti)

URL: #779
@rapids-bot rapids-bot bot requested review from a team as code owners February 4, 2026 15:11
@rapids-bot
Copy link
Contributor Author

rapids-bot bot commented Feb 4, 2026

FAILURE - Unable to forward-merge due to an error, manual merge is necessary. Do not use the Resolve conflicts option in this PR, follow these instructions https://docs.rapids.ai/maintainers/forward-merger/

IMPORTANT: When merging this PR, do not use the auto-merger (i.e. the /merge comment). Instead, an admin must manually merge by changing the merging strategy to Create a Merge Commit. Otherwise, history will be lost and the branches become incompatible.

@rapids-bot rapids-bot bot requested review from hlinsen and kaatish February 4, 2026 15:11
@rgsl888prabhu rgsl888prabhu merged commit 4952abc into main Feb 4, 2026
2 checks passed
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.

2 participants