xushuwenn/redact/finite-horizon-lqr
Claude Code and agent skill by xushuwenn/redact
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Solving finite-horizon LQR via dynamic programming for MPC.
Install
npx vskill@latest install xushuwenn/redact/finite-horizon-lqrSKILL.md
The same SKILL.md was published earlier as benchflow-ai/skillsbench/finite-horizon-lqr.
Finite-Horizon LQR for MPC
Problem Formulation
Minimize cost over horizon N:
Backward Riccati Recursion
Initialize: P_N = Q (or LQR solution for stability)
For k = N-1 down to 0:
Forward Simulation
Starting from x_0:
Python Implementation
MPC Application
At each timestep:
- Measure current state x
- Solve finite-horizon LQR from x
- Apply first control u_0
- Repeat next timestep
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingdata/tasks/r2r-mpc-control/environment/skills/finite-horizon-lqr/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/xushuwenn/redact/finite-horizon-lqr)