Finite Horizon Lqr

Finite-horizon discrete-time LQR via the backward Riccati recursion, producing the time-varying gain schedule that a single ARE solve cannot. Use when controlling a linear plant x_{k+1} = A x_k + B u_k under a quadratic cost over a fixed N-step horizon — receding-horizon MPC inner loops, finite-time stabilization, terminal-cost design. Not for nonlinear plants (linearize first), continuous-time models (discretize first), pure steady-state regulation (solve the ARE once), or hard input/state constraints (use QP-based MPC).

Kayforkind Updated

File contents

Kayforkind/skill-slice commit 153b0e5c64

Frequently asked questions

npx skillmds@latest add kayforkind/finite-horizon-lqr