Skip to content

Fix bug in C API for bool parameters. Fix bug on irish-electricty#25

Merged
rapids-bot[bot] merged 4 commits intoNVIDIA:branch-25.05from
chris-maes:boolean_params_c_api
May 22, 2025
Merged

Fix bug in C API for bool parameters. Fix bug on irish-electricty#25
rapids-bot[bot] merged 4 commits intoNVIDIA:branch-25.05from
chris-maes:boolean_params_c_api

Conversation

@chris-maes
Copy link
Copy Markdown
Contributor

@chris-maes chris-maes commented May 21, 2025

Since C does not have a boolean type, we need to allow cuOptGetIntParameter and cuOptSetIntParameter to work for boolean parameters as well.

On irish-electricity we had a bug where we were stopping PDLP early, due to a numerical error inside dual simplex. In concurrent mode we should only stop the other solver when we have reached a definitive conclusion on the problem.

Fix a bug in the Python docstrings found by Flora.

Also log whenever we change settings. And set the log pattern to %v outside the solve as well.

Also log when we change settings. And don't print the log headers.
@chris-maes chris-maes added this to the 25.05 milestone May 21, 2025
@chris-maes chris-maes self-assigned this May 21, 2025
@chris-maes chris-maes requested a review from a team as a code owner May 21, 2025 19:43
@chris-maes chris-maes requested review from aliceb-nv and hlinsen May 21, 2025 19:43
@chris-maes chris-maes added bug Something isn't working non-breaking Introduces a non-breaking change labels May 21, 2025
@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot bot commented May 21, 2025

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@chris-maes
Copy link
Copy Markdown
Contributor Author

/ok to test 37cdeb2

@chris-maes chris-maes requested a review from a team as a code owner May 21, 2025 20:53
@chris-maes chris-maes requested a review from tmckayus May 21, 2025 20:53
@chris-maes
Copy link
Copy Markdown
Contributor Author

/ok to test @d0bde3e

@chris-maes
Copy link
Copy Markdown
Contributor Author

/ok to test 1c70bc0

@chris-maes
Copy link
Copy Markdown
Contributor Author

/merge

@rapids-bot rapids-bot bot merged commit 0686073 into NVIDIA:branch-25.05 May 22, 2025
83 checks passed
jieyibi pushed a commit to yining043/cuopt that referenced this pull request Mar 26, 2026
…IDIA#25)

Since C does not have a boolean type, we need to allow `cuOptGetIntParameter` and `cuOptSetIntParameter` to work for boolean parameters as well.

On irish-electricity we had a bug where we were stopping PDLP early, due to a numerical error inside dual simplex. In concurrent mode we should only stop the other solver when we have reached a definitive conclusion on the problem.

Fix a bug in the Python docstrings found by Flora.

Also log whenever we change settings. And set the log pattern to `%v` outside the solve as well.

Authors:
  - Chris Maes (https://github.com/chris-maes)

Approvers:
  - Trevor McKay (https://github.com/tmckayus)
  - Rajesh Gandham (https://github.com/rg20)

URL: NVIDIA#25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working non-breaking Introduces a non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants