Evo Grid Dispatch Operator logo

Evo Grid Dispatch Operator

Organization
OpenLAIR
evo-grid-dispatch-operator

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 structured report.json.

Overview

PublisherOpenLAIR
RepositoryOpenSkill
Skill nameevo-grid-dispatch-operator
Stars
97
Forks
4
Bundled files
5
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 5 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by OpenLAIR on GitHub. Read the source before you install it.

Installation

Install the Evo Grid Dispatch Operator AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/OpenLAIR/OpenSkill/tree/main/tasks-evolved/grid-dispatch-operator/environment/skills/evo-grid-dispatch-operator
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/OpenLAIR/OpenSkill.git /tmp/OpenSkill
mkdir -p .claude/skills
cp -r /tmp/OpenSkill/tasks-evolved/grid-dispatch-operator/environment/skills/evo-grid-dispatch-operator .claude/skills/evo-grid-dispatch-operator
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Evo Grid Dispatch Operator in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Evo Grid Dispatch Operator on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Evo Grid Dispatch Operator is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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

python
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

  • Bus voltage angle variables theta (radians), slack bus angle fixed to 0
  • Branch power flow: flow_MW = (1/X) * (theta_f - theta_t) * baseMVA
  • Transformer tap ratios handled (tap=0 treated as 1.0)
  • Nodal power balance: sum(Pg at bus) - Pd = B_row @ theta (per-unit)

Generator Cost

  • Quadratic polynomial: cost = c2 * Pg_MW^2 + c1 * Pg_MW + c0
  • Coefficients from gencost array columns [4,5,6] for ncost=3

Constraints

  • Generator limits: Pmin <= Pg <= Pmax (per-unit internally)
  • Line flow limits: |flow_MW| <= RATE_A (skip if RATE_A=0)
  • Reserve non-negativity: Rg >= 0
  • Reserve capacity: Rg <= reserve_capacity[g]
  • Capacity coupling: Pg_MW + Rg <= Pmax_MW
  • System reserve: sum(Rg) >= reserve_requirement

Solver

  • cvxpy with CLARABEL (interior-point, handles QP and LP)

Report Structure

json
{
  "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

  • operating_margin_MW = sum(Pmax - output_MW - reserve_MW) over all generators
  • most_loaded_lines: top 3 lines sorted descending by loading_pct
  • loading_pct = |flow_MW| / RATE_A * 100 (only for lines with RATE_A > 0)

Module Reference

data_loader.py

  • load_network(filepath) — Load MATPOWER JSON, return dict with numpy arrays
  • build_bus_index_map(bus_data) — External-to-internal bus ID mapping
  • get_slack_bus_index(bus_data, ext2int) — Find reference bus (type==3)

network_model.py

  • build_b_matrix(branches, n_bus, ext2int) — Build nodal susceptance matrix
  • get_gen_bus_indices(gens, ext2int) — Map generators to internal bus indices
  • get_branch_flow_data(branches, ext2int) — Branch susceptances and endpoint indices

optimizer.py

  • solve_dcopf_with_reserves(...) — Full cvxpy DCOPF+reserve formulation with CLARABEL

report_generator.py

  • compute_line_loadings(theta, branch_flow_data, baseMVA) — Line flows and loading %
  • build_report(...) — Assemble report dict
  • save_report(report, filepath) — Write JSON

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Evo Grid Dispatch Operator AI skill do?

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 structured report.json.

Why use Evo Grid Dispatch Operator on TypingMind?

Because you install it once and use it with any model. Evo Grid Dispatch Operator is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Evo Grid Dispatch Operator in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/OpenLAIR/OpenSkill/tree/main/tasks-evolved/grid-dispatch-operator/environment/skills/evo-grid-dispatch-operator. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Evo Grid Dispatch Operator?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Evo Grid Dispatch Operator?

As many as you like. As long as a model supports skills, you can use Evo Grid Dispatch Operator with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Evo Grid Dispatch Operator AI skill free?

Yes. It is published on GitHub by OpenLAIR under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇