[BUG] segfault when writing MPS with an empty row
Đang mở
@akifcorduk đang làm issue này rồi.
Từ ngày 5/8/2026.
awaiting response
bug
- Ngôn ngữ chính
- Cuda
- Star
- 1k
- Fork
- 233
- Merge trung bình
- 4 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 95
Mô tả
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")
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Đánh giá
Issue này chưa được đánh giá.