Evo dcopf solver

From OpenLAIR/OpenSkill · View interactive version

Evo dcopf solver is an AI agent skill from the GitHub repository OpenLAIR/OpenSkill. Solves DC-OPF with spinning reserve co-optimization using PuLP/CBC. Extracts LMPs from dual variables, reserve MCP, binding lines.

How to use this skill

Skill file

evo-dcopf-solver

Solves DC-OPF with reserve co-optimization using PTDF formulation and PuLP.

Key Functions

Usage

import sys
sys.path.insert(0, '/app/environment/skills/evo-dcopf-solver/scripts')
from utils import (solve_dcopf_with_reserves, extract_lmps, extract_reserve_mcp,
                   identify_binding_lines, compute_total_cost)

result = solve_dcopf_with_reserves(nb, ng, nl, gen_info, branches, costs,
                                    load_p, matrices, reserve_capacity,
                                    reserve_requirement, Cg)
lmps = extract_lmps(result, int2ext)
reserve_mcp = extract_reserve_mcp(result)
binding = identify_binding_lines(result, branches, int2ext)
total_cost = compute_total_cost(result)
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.