Skip to content

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

Merged
rapids-bot[bot] merged 4 commits into
NVIDIA: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 into
NVIDIA:branch-25.05from
chris-maes:boolean_params_c_api

Conversation

@chris-maes

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

Copy link
Copy Markdown
Contributor

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-pr-bot Bot commented May 21, 2025

Copy link
Copy Markdown

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

Comment thread cpp/cuopt_cli.cpp Outdated
Comment thread cpp/src/linear_programming/cuopt_c.cpp
@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

Comment thread cpp/include/cuopt/logger.hpp
@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
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