[BUG] Java: Problem.write of an unnamed model produces an MPS file that read rejects

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

Maintainer thường phản hồi trong vòng 1 ngày

@pcbeingused333 đang làm issue này rồi.

Từ ngày 4/11/2026.

  • #2268 của @pcbeingused333 — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
58/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java
Lĩnh vực
backend, databases

Hướng nghiên cứu

Start with the disabled NativeEdgeCaseTest.anUnnamedModelRoundTripsThroughAnMPSFile test mentioned in the issue and trace the Java Problem.write and Problem.read paths for unnamed variables and constraints. Check how the MPS names are produced and where reading rejects blank names. Done means an unnamed model writes an MPS file that Problem.read accepts and the round trip test passes.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug

In the Java bindings, Problem.write on a model with unnamed variables or constraints writes blank names to the MPS file, and Problem.read rejects that file. An unnamed model therefore cannot be written and read back.

Expected: write generates default names (for example C0, R0), or the Java layer names them before writing.

Disabled test that reproduces it (in #2219): NativeEdgeCaseTest.anUnnamedModelRoundTripsThroughAnMPSFile

🤖 Generated with Claude Code

Ngôn ngữ chính
Cuda
Star
1.1k
Fork
255
Merge trung bình
1 ngày 11 giờ
Pull request đã merge (30 ngày)
123

Chuẩn bị môi trường

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.

Issue khác của NVIDIA/cuopt

Tất cả issue của NVIDIA/cuopt

Issue tương tự

Thêm issue về Backend & API Design

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.