benchflow-ai/skillsbench/mpc-horizon-tuning
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Selecting MPC prediction horizon and cost matrices for web handling.
Install
npx vskill@latest install benchflow-ai/skillsbench/mpc-horizon-tuningSKILL.md
MPC Tuning for Tension Control
Prediction Horizon Selection
Horizon N affects performance and computation:
- Too short (N < 5): Poor disturbance rejection
- Too long (N > 20): Excessive computation
- Rule of thumb: N ≈ 2-3× settling time / dt
For R2R systems with dt=0.01s: N = 5-15 typical
Cost Matrix Design
State cost Q: Emphasize tension tracking
Control cost R: Penalize actuator effort
Trade-offs
| Higher Q | Effect | |
|---|---|---|
| Faster tracking | More control effort | |
| Lower steady-state error | More aggressive transients |
| Higher R | Effect | |
|---|---|---|
| Smoother control | Slower response | |
| Less actuator wear | Higher tracking error |
Terminal Cost
Use LQR solution for terminal cost to guarantee stability:
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingtasks/r2r-mpc-control/environment/skills/mpc-horizon-tuning/SKILL.md
Popularity
- Repository stars
- 1,765
- Repository forks
- 367
- 7-day trend score
- 37
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 12 Sep 2026, a month ago.
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/benchflow-ai/skillsbench/mpc-horizon-tuning)