Skip to content

Fix LP extraction for sliced matrix sums#132

Merged
daggbt merged 1 commit into
mainfrom
experiment/lazy-vectorvariable
May 14, 2026
Merged

Fix LP extraction for sliced matrix sums#132
daggbt merged 1 commit into
mainfrom
experiment/lazy-vectorvariable

Conversation

@daggbt
Copy link
Copy Markdown
Collaborator

@daggbt daggbt commented May 14, 2026

Summary

Fix LP extraction for MatrixVariable row and column slice sums so transport-style linear programs build correct constraint rows and solve successfully.

What changed

  • make sliced VectorVariable instances yield backing scalar variable names during LP coefficient extraction
  • add a regression test covering the matrix transport example with row-sum and column-sum constraints

Validation

  • uv run pytest tests/test_solver_integration.py -k transport -q
  • uv run pytest tests/test_solver_integration.py -k 'transport or matrix' -q
  • uv run quarto render docs/

@daggbt daggbt merged commit 344afc5 into main May 14, 2026
3 checks passed
@daggbt daggbt deleted the experiment/lazy-vectorvariable branch May 14, 2026 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant