Skip to content

analyze { lqr } DSL beyond n=2 (#162) - #204

Merged
godofecht merged 2 commits into
mainfrom
feat/analyze-lqr-dsl
Aug 5, 2026
Merged

godofecht merged 2 commits into
mainfrom
feat/analyze-lqr-dsl

Conversation

@godofecht

Copy link
Copy Markdown
Contributor

Summary

  • `analyze plant { lqr { Q … R … -> k… } }` (disambiguated from legacy `analyze … ga …`)
  • Lowers to `dlqr_diag_q_scalar_u` on discretized plant matrices (n≤8, m=1)
  • Demos: `spring_mass_lqr.flow` (continuous n=2), `chain4_lqr.flow` (discrete n=4)

Test plan

  • `pytest tests/unit/test_dynamics_dsl.py`
  • Run spring_mass_lqr + chain4_lqr (OK)

Closes #162

Made with Cursor

godofecht and others added 2 commits August 5, 2026 19:44
Vision-form analyze blocks lower nested lqr { Q R -> gains } to
dlqr_diag_q_scalar_u on the plant (n<=8), with n=2 and n=4 tourist demos.

Co-authored-by: Cursor <[email protected]>
@godofecht
godofecht merged commit 744d81a into main Aug 5, 2026
14 checks passed
@godofecht
godofecht deleted the feat/analyze-lqr-dsl branch August 5, 2026 18:48
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.

[roadmap] Dynamics DSL / LQR beyond n=2

1 participant