Skip to content

[roadmap] Dynamics DSL / LQR beyond n=2 #162

Closed

Description

@godofecht

Dynamics DSL / LQR beyond n=2

Priority: P2 · Kind: stdlib first, DSL later
Sketch: pattern-adoption.md §7
Design Q: Questions.md — LQR n>2

Why

apps/cartpole/control.flow owns a private 4×4 Riccati stack because dsys/analyze are n=2.

Recommendation

Ship stdlib lqr/dare over LAPACK/Accelerate; extend DSL n only when matrix literals/codegen are solid.

Work

  • lqr (or discrete ARE) in stdlib wrapping BLAS/LAPACK
  • Replace cartpole private mat4/Riccati with stdlib
  • (Follow-on) analyze { lqr { … } } for n>2 in DSL

Exit

Cartpole control has no private mini-linalg; general n supported via stdlib.

Related

#168 BLAS routing

ROADMAP-SYNC: dynamics-dsl-lqr-beyond-n-2

Activity

  1. added
    roadmap
    enhancement
    on Aug 5, 2026
  2. godofecht commented on Aug 5, 2026

    @godofecht
    ContributorAuthor

    Stdlib MVP landed in #194: dynamics/lqr.flow (dlqr_diag_q_scalar_u, n<=8 scalar-u). Cartpole uses it. Leaving open for DSL analyze { lqr } / LAPACK DARE follow-on.

  3. godofecht commented on Aug 5, 2026

    @godofecht
    ContributorAuthor

    analyze { lqr } DSL + n=4 demo in upcoming PR; LAPACK DARE still optional follow-on.

  4. added a commit that references this issue on Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementroadmap

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions