Energy market pricing

From XuShuwenn/RedAct · View interactive version

Energy market pricing is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Run DC-OPF market clearing twice (base and counterfactual) to analyze transmission constraints and congestion impact.

How to use this skill

Skill file

DC-OPF Market Clearing and Congestion Analysis

When to Use

Input Files

Input Files

Validate Inputs Before Modeling

Market Model

DC-OPF with reserve co-optimization:

  1. Power balance at each bus
  2. Temperature limits on generators and lines
  3. Spinning Reserve Requirements

Formulation Requirements

Formulation Requirements

Output Format

Report at /root/report.json, for examlple:

{
  "base_case": {
    "total_cost_dollars_per_hour": 12500.0,
    "lmp_by_bus": [{"bus": 1, "lmp_dollars_per_MWh": 35.2}, ...],
    "reserve_mcp_dollars_per_MWh": 5.0,
    "binding_lines": [{"from": 5, "to": 6, "flow_MW": 100.0, "limit_MW": 100.0}]
  },
  "counterfactual": {...},
  "impact_analysis": {
    "cost_reduction_dollars_per_hour": 200.0,
    "buses_with_largest_lmp_drop": [...],
    "congestion_relieved": true
  }
}

Execution Checks

Execution Checks

Implementation Guardrails

Execution Checks

Key Metrics

Preflight Validation

Preflight Validation

Tips

Minimum completion checklist

  1. Verify any created script/config/report artifact contains real content, not placeholder prose.
  2. If any intermediate result is known to be wrong, incomplete, heuristic, or unsupported by solver outputs, revise the implementation and rerun until /root/report.json reflects corrected results.

Minimum completion checklist

  1. Build the same DC-OPF with reserve co-optimization for both runs; only change the 64→1501 thermal limit in the counterfactual.
  2. Solve base case and counterfactual successfully.
  3. Extract total cost, bus-level LMPs, reserve MCP, and binding lines for each run.
  4. Compare cases and write /root/report.json.

Validation Before Finalizing

Validation Before Finalizing

Treat these checks as mandatory before writing /root/report.json or claiming success:

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.