evo-acopf-solver

SkillDev tools

Builds and solves AC Optimal Power Flow using Pyomo+IPOPT with polar coordinate formulation.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the evo-acopf-solver skill

What this skill tells your AI

The instructions your AI receives, as published by openlair/openskill in tasks-evolved/energy-ac-optimal-power-flow/environment/skills/evo-acopf-solver/SKILL.md and read by ahel’s review.

Builds and solves full ACOPF problem using Pyomo and IPOPT.

Usage

import sys
sys.path.insert(0, '/app/environment/skills/evo-acopf-solver/scripts')
from utils import build_and_solve_acopf, build_acopf_model, solve_acopf, install_solver

model, results = build_and_solve_acopf(baseMVA, buses, gens, branches, loads_by_bus, shunts_by_bus,
                                        gen_at_bus, branch_from, branch_to)

Key Details

  • Polar coordinate formulation with Pi-section branch model
  • Squared thermal limits to avoid sqrt non-differentiability
  • Reference bus angle fixed to 0
  • Cost coefficients pre-scaled for per-unit variables
  • IPOPT with ma27 linear solver via idaes

Signals

GitHub stars
89
Forks
4
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
evo-acopf-solver
Source
github.com/openlair/openskill