NVIDIA / NVIDIA/cuopt

[BUG] segfault when writing MPS with an empty row

Đang mở
#1,663 2 bình luận 0 reaction 1 người được giao Xem trên GitHub

@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

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.