Skip to content

Fix crash on models with variables but no constraints#105

Merged
rapids-bot[bot] merged 2 commits intobranch-25.08from
empty-obj-bugfix
Jun 17, 2025
Merged

Fix crash on models with variables but no constraints#105
rapids-bot[bot] merged 2 commits intobranch-25.08from
empty-obj-bugfix

Conversation

@aliceb-nv
Copy link
Copy Markdown
Contributor

This PR fixes a crash occurring when solving a model containing no constraints but some variables.
Also ensures the correct objective value is computed in this scenario

Closes #104

@aliceb-nv aliceb-nv added this to the 25.08 milestone Jun 17, 2025
@aliceb-nv aliceb-nv requested a review from a team as a code owner June 17, 2025 12:57
@aliceb-nv aliceb-nv added bug Something isn't working non-breaking Introduces a non-breaking change labels Jun 17, 2025
@aliceb-nv aliceb-nv requested review from Kh4ster and akifcorduk June 17, 2025 12:57
@rg20
Copy link
Copy Markdown
Contributor

rg20 commented Jun 17, 2025

/merge

@rapids-bot rapids-bot bot merged commit e79935f into branch-25.08 Jun 17, 2025
72 checks passed
@rgsl888prabhu rgsl888prabhu deleted the empty-obj-bugfix branch October 29, 2025 16:26
jieyibi pushed a commit to yining043/cuopt that referenced this pull request Mar 26, 2026
This PR fixes a crash occurring when solving a model containing no constraints but some variables. 
Also ensures the correct objective value is computed in this scenario

Closes NVIDIA#104

Authors:
  - Alice Boucher (https://github.com/aliceb-nv)

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

URL: NVIDIA#105
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] Crash in one binary variable test case

3 participants