[BUG] segfault when writing MPS with an empty row
Open
@akifcorduk is already working on this.
Since Aug 5, 2026.
awaiting response
bug
- Dominant language
- Cuda
- Stars
- 1k
- Forks
- 233
- Avg merge
- 4d 4h
- Merged PRs (30d)
- 95
Description
The following code segfaults on main and 26.6:
from cuopt.linear_programming import Problem
from cuopt.linear_programming.problem import LinearExpression
problem = Problem("empty-row")
x = problem.addVariable(
name="x",
lb=0.0,
ub=1.0,
)
# A valid constant-only constraint: 0 <= 1.
empty_expression = LinearExpression(
vars=[],
coefficients=[],
constant=0.0,
)
problem.addConstraint(empty_expression <= 1.0, name="empty")
problem.setObjective(x)
problem.writeMPS("empty-row.mps")
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.