Skip to content

Fix issue with reported solving time on time-limit termination#93

Merged
rgsl888prabhu merged 1 commit intobranch-25.05from
time-limit-fix
Jun 11, 2025
Merged

Fix issue with reported solving time on time-limit termination#93
rgsl888prabhu merged 1 commit intobranch-25.05from
time-limit-fix

Conversation

@aliceb-nv
Copy link
Copy Markdown
Contributor

Solving statistics information was not passed along to the mip_solution_t object when terminating on a timeout, causing cuOptGetSolveTime to incorrectly return the default value of 0.
This PR also fixes a conversion issue with get_solve_time() being treated as milliseconds instead of seconds when running in LP mode.

Closes #91

@aliceb-nv aliceb-nv requested review from a team as code owners June 11, 2025 16:03
@aliceb-nv aliceb-nv requested a review from tmckayus June 11, 2025 16:03
@aliceb-nv aliceb-nv added bug Something isn't working non-breaking Introduces a non-breaking change labels Jun 11, 2025
@aliceb-nv aliceb-nv requested review from Kh4ster and kaatish June 11, 2025 16:03
@rgsl888prabhu rgsl888prabhu merged commit 5ff9ffa into branch-25.05 Jun 11, 2025
58 checks passed
@rgsl888prabhu rgsl888prabhu deleted the time-limit-fix branch October 29, 2025 16:26
jieyibi pushed a commit to yining043/cuopt that referenced this pull request Mar 26, 2026
…A#93)

Solving statistics information was not passed along to the
mip_solution_t object when terminating on a timeout, causing
cuOptGetSolveTime to incorrectly return the default value of 0.
This PR also fixes a conversion issue with `get_solve_time()` being
treated as milliseconds instead of seconds when running in LP mode.

Closes NVIDIA#91
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.

[BUG] cuOptGetSolveTime returns 0 when the solver terminates for TIME_LIMIT

4 participants