Dc opf reserve dispatch

From XuShuwenn/RedAct · View interactive version

Dc opf reserve dispatch is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Solve DC optimal power flow with spinning reserve co-optimization on MATPOWER-style networks and produce a consistent dispatch report.

How to use this skill

Skill file

DC-OPF with Co-Optimized Spinning Reserves

Reusable workflow to compute economically efficient generator setpoints and reserve allocations that satisfy:

Outputs are structured for downstream use: per-generator dispatch and reserves, system totals, most-loaded lines, and remaining operating margin.

When to Use

Activate this skill when you have:

Core Workflow

  1. Parse inputs
  1. Choose units and stick to them
  1. Build DC network model
  1. Define variables and constraints
  1. Objective (generation cost)
  1. Solve
  1. Post-solution computations and report

Verification Checklist

Before finalizing the report:

Common Pitfalls and How to Avoid Them

Success Criteria

A solution is acceptable when all of the following hold:

Optional Script Usage

A helper script is provided to implement this workflow on a MATPOWER-style JSON file.

Example usage:

Script behavior:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.