Skip to content

[BUG] In assert mode MIP fails with too many variable error #233

@rgsl888prabhu

Description

@rgsl888prabhu

Describe the bug
This assert is triggered in CI and fails with attached example, this happens in assert mode.

https://github.com/NVIDIA/cuopt/blob/branch-25.08/cpp/src/mip/problem/problem.cu#L1211

python: /__w/cuopt/cuopt/cpp/src/mip/problem/problem.cu:1211: void cuopt::linear_programming::detail::problem_t<i_t, f_t>::remove_given_variables(cuopt::linear_programming::detail::problem_t<i_t, f_t>&, rmm::device_uvector<f_t>&, rmm::device_uvector<T>&, const raft::handle_t*) [with i_t = int; f_t = double]: Assertion `variable_map.size() < n_variables&& "Too many variables to fix"' failed.

Steps/Code to reproduce bug

Run attached python example

test.zip

Enable assert mode while building locally

or use cuopt_cli with the mps file attached below

milp_problem.zip

file

Expected behavior
Test should pass

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions