benchflow-ai/skillsbench/economic-dispatch
Claude Code and agent skill by benchflow-ai/skillsbench
- community
Checking that the SKILL.md file is still in the repository.
Generator economic dispatch and cost optimization for power systems. Use when minimizing generation costs, computing optimal generator setpoints, calculating operating margins, or working with generator cost functions.
Install
npx vskill@latest install benchflow-ai/skillsbench/economic-dispatchSKILL.md
Economic Dispatch
Economic dispatch minimizes total generation cost while meeting load demand and respecting generator limits.
Generator Data Indices
MATPOWER generator array columns (0-indexed):
| Index | Field | Description | |
|---|---|---|---|
| 0 | GEN_BUS | Bus number (1-indexed) | |
| 8 | PMAX | Maximum real power (MW) | |
| 9 | PMIN | Minimum real power (MW) |
Cost Function Format
MATPOWER gencost array (polynomial type 2):
| Index | Field | Description | |
|---|---|---|---|
| 0 | MODEL | 2 = polynomial | |
| 1 | STARTUP | Startup cost ($) | |
| 2 | SHUTDOWN | Shutdown cost ($) | |
| 3 | NCOST | Number of coefficients | |
| 4+ | coeffs | Cost coefficients (highest order first) |
For quadratic (NCOST=3): coefficients are [c2, c1, c0] at indices 4, 5, 6 For linear (NCOST=2): coefficients are [c1, c0] at indices 4, 5
Cost = c₂·P² + c₁·P + c₀ ($/hr) where P is in MW.
Optimization Formulation
Power Balance Constraint
Total generation must equal total load:
For DC-OPF with network, use nodal balance instead (see dc-power-flow skill).
Reserve Co-optimization
When operating reserves are required, add reserve variables and constraints:
Operating Margin
Remaining generation capacity not committed to energy or reserves:
Note: This is the "uncommitted" headroom — capacity available beyond scheduled generation and reserves.
Dispatch Output Format
Totals Calculation
Solver Selection
For quadratic costs with network constraints, use CLARABEL (robust interior-point solver):
Note: OSQP may fail on ill-conditioned problems. CLARABEL is more robust for DC-OPF with reserves.
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/energy-market-pricing/environment/skills/economic-dispatch/SKILL.md
Popularity
- Repository stars
- 1,474
- Repository forks
- 325
- 7-day trend score
- 36
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 21 Mar 2026, 7 months 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/economic-dispatch)