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

Aperta
#2,225 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
58/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
java
Ambito
backend, databases

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Cuda
Stelle
1.1k
Fork
249
Merge medio
1g 15h
PR unite (30g)
124

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di NVIDIA/cuopt

Tutte le issue di NVIDIA/cuopt

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.