integral-action-design

Design and tune integral action modules for MPC-based R2R tension control.

4|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/GeneralReasoning/env-skillsbench --skill integral-action-design-generalreasoning
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: integral-action-design
Source: https://github.com/GeneralReasoning/env-skillsbench/tree/main/r2r-mpc-control/environment/skills/integral-action-design
Command: npx skills add https://github.com/GeneralReasoning/env-skillsbench --skill integral-action-design-generalreasoning

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

MPC with model mismatch may have steady-state error. Integral action eliminates offset by accumulating error over time.

Core Features & Use Cases

  • Adds integral action to MPC to remove steady-state offset in tension tracking on multi-section systems.
  • Supports per-section updates for R2R tension control, enabling offset compensation across channels.
  • Provides clear tuning guidance for gamma and c_I to balance responsiveness and stability.

Quick Start

Apply the leaky-integrator update to each tension channel to achieve offset-free control.

Frequently Asked Questions about integral-action-design

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I eliminate steady-state error in MPC tension control?

Integral action eliminates steady-state error in MPC by accumulating offset over time via a leaky-integrator, ensuring accurate tension tracking even with model mismatch. It provides per-channel integral updates to remove persistent offsets in multi-section systems.

Why does my MPC controller have steady-state offset in R2R tension systems?

Steady-state offset in R2R tension systems occurs when MPC operates with model mismatch. Applying a leaky-integrator with per-section integral action compensates for these disturbances by accumulating the tracking error over time.

How do I tune integral gain and decay gamma for offset-free MPC?

Tune the decay gamma and integral gain c_I to balance responsiveness and stability in offset-free MPC. Adjusting these parameters controls how quickly the leaky-integrator accumulates error to eliminate steady-state offset without destabilizing the control loop.

Does MPC integral action support per-section updates for multi-section R2R systems?

Yes, MPC integral action supports per-section updates for multi-section R2R tension systems. It applies a leaky-integrator to each tension channel individually, enabling offset compensation across multiple distinct channels during disturbances.

How does anti-windup work with integral action in MPC?

Anti-windup prevents the integral state in MPC from accumulating excessive error when actuators saturate. Configuring anti-windup alongside the integral gain c_I and decay gamma ensures the leaky-integrator remains stable during offset conditions.