You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Constraint validation reports CSR offset count as the number of rows #2274
When the length of a constraint vector does not match the CSR matrix, the solver rejects the model, but the validation message reports the length of the CSR offsets array as the number of matrix rows. For a two-row matrix, a three-element RHS can therefore produce the contradictory message:
The right hand side vector has size 3 and the number of rows (constraints) in the matrix is 3.
The actual matrix has two rows (offsets = [0, 1, 2]). The lower/upper-bound representation has the same diagnostic issue. The validation itself rejected the malformed models in the cases checked; this report does not assert an out-of-bounds access.
Expected: a validation error reporting 2 matrix rows. Observed with cuOpt 26.12.00a62 (52d14b4c), CUDA 13, B300: a validation error reporting 3 rows. A valid two-element RHS/row-types control solves to Optimal.
At 52d14b4c, the RHS check compares against offsets.size() - 1 but formats offsets.size(); the two bounds checks use the same pattern. Related: #2254.
Activity