Integral Action Design
Adding integral action to MPC for offset-free tension tracking.
Install
npx skills add UCSB-NLP-Chang/Skill-Usage --skill integral-action-designgit clone --depth 1 https://github.com/UCSB-NLP-Chang/Skill-Usage.git /tmp/Skill-Usage
mkdir -p ~/.claude/skills
cp -r /tmp/Skill-Usage/tasks/r2r-mpc-control/environment/skills/integral-action-design ~/.claude/skills/integral-action-designPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Integral Action for Offset-Free Control
## Why Integral Action?
MPC with model mismatch may have steady-state error. Integral action eliminates offset by accumulating error over time.
## Implementation
```python
u_I = gamma * u_I - c_I * dt * (T - T_ref)
u_total = u_mpc + u_I
```
Where:
- u_I: Integral control term
- gamma: Decay factor (0.9-0.99)
- c_I: Integral gain (0.1-0.5 for web systems)
- dt: Timestep
## Tuning Guidelines
**Integral gain c_I**:
- Too low: Slow offset correction
- Too high: Oscillations, instability
- Start with 0.1-0.3
**Decay factor gamma**:
- gamma = 1.0: Pure integral (may wind up)
- gamma < 1.0: Leaky integrator (safer)
- Typical: 0.9-0.99
## Anti-Windup
Limit integral term to prevent windup during saturation:
```python
u_I = np.clip(u_I, -max_integral, max_integral)
```
## For R2R Systems
Apply integral action per tension section:
```python
for i in range(num_sections):
u_I[i] = gamma * u_I[i] - c_I * dt * (T[i] - T_ref[i])
```Details
- Skill name
integral-action-design- Repository
- UCSB-NLP-Chang/Skill-Usage
- Path
tasks/r2r-mpc-control/environment/skills/integral-action-design/SKILL.md- Repo updated
- 8 April 2026
FAQ
What does the Integral Action Design skill do?
Adding integral action to MPC for offset-free tension tracking.
How do I install the Integral Action Design skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add UCSB-NLP-Chang/Skill-Usage --skill integral-action-design. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Integral Action Design popular?
It lives in UCSB-NLP-Chang/Skill-Usage, which has 49 GitHub stars and 5 forks.
Related skills
Pubchem Database
49UCSB-NLP-Chang/Skill-Usage
Query PubChem via PUG-REST API/PubChemPy (110M+ compounds). Search by name/CID/SMILES, retrieve properties, similarity/substructure searches, bioactivity, for cheminformatics.
Pymatgen
49UCSB-NLP-Chang/Skill-Usage
Materials science toolkit. Crystal structures (CIF, POSCAR), phase diagrams, band structure, DOS, Materials Project integration, format conversion, for computational materials science.
Rdkit
49UCSB-NLP-Chang/Skill-Usage
Cheminformatics toolkit for fine-grained molecular control. SMILES/SDF parsing, descriptors (MW, LogP, TPSA), fingerprints, substructure search, 2D/3D generation, similarity, reactions. For standard workflows with simpler interface, use datamol (wrapper around RDKit). Use rdkit for advanced control, custom sanitization, specialized algorithms.
Light Curve Preprocessing
49UCSB-NLP-Chang/Skill-Usage
Preprocessing and cleaning techniques for astronomical light curves. Use when preparing light curve data for period analysis, including outlier removal, trend removal, flattening, and handling data quality flags. Works with lightkurve and general time series data.
Hex Grid Spatial
49UCSB-NLP-Chang/Skill-Usage
Hex grid spatial utilities for offset coordinate systems. Use when working with hexagonal grids, calculating distances, finding neighbors, or spatial queries on hex maps.
Locational Marginal Prices
49UCSB-NLP-Chang/Skill-Usage
Extract locational marginal prices (LMPs) from DC-OPF solutions using dual values. Use when computing nodal electricity prices, reserve clearing prices, or performing price impact analysis.
Browse the most popular Claude skills, all other skills, or write your own with the skills generator.