Evo grid dispatch operator

From OpenLAIR/OpenSkill · View interactive version

Evo grid dispatch operator is an AI agent skill from the GitHub repository OpenLAIR/OpenSkill. End-to-end DC Optimal Power Flow with spinning reserve co-optimization. Parses MATPOWER JSON network data, builds DC power flow model with bus voltage angles, formulates and solves the DCOPF+reserve QP/LP via cvxpy (CLARABEL solver), computes line loading and operating margins, and produces a struct

How to use this skill

Skill file

evo-grid-dispatch-operator

Solves DC Optimal Power Flow with spinning reserve co-optimization from MATPOWER JSON data and produces a structured dispatch report.

Quick Start — Full Pipeline

import subprocess, sys
subprocess.check_call([sys.executable, "-m", "pip", "install", "cvxpy", "clarabel", "-q"])

import sys as _sys
_sys.path.insert(0, '/app/environment/skills/evo-grid-dispatch-operator/scripts')
from solve import main
main("/root/network.json", "/root/report.json")

This single call handles everything: parse → optimize → report.

Formulation Details

DC Power Flow Model

Generator Cost

Constraints

Solver

Report Structure

{
  "generator_dispatch": [
    {"id": 1, "bus": 1, "output_MW": 100.0, "reserve_MW": 30.0, "pmax_MW": 150.0}
  ],
  "totals": {
    "cost_dollars_per_hour": 8000.0,
    "load_MW": 259.0,
    "generation_MW": 259.0,
    "reserve_MW": 500.0
  },
  "most_loaded_lines": [{"from": 1, "to": 2, "loading_pct": 85.0}],
  "operating_margin_MW": 50.0
}

Key Definitions

Module Reference

`data_loader.py`

`network_model.py`

`optimizer.py`

`report_generator.py`

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.