Skip to content
Back to skills

Optimization Powerflow

ASecurity

"Route PyPSA solve, solver, custom constraint, stochastic,

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
databackend

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill optimization-powerflow --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Optimization Powerflow?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Optimization Powerflow
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-optimization-powerflow/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-optimization-powerflow)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: optimization-powerflow
description: "Route PyPSA solve, solver, custom constraint, stochastic,
  multi-investment, MGA, rolling-horizon, piecewise, loss, and power-flow
  workflows."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# optimization-powerflow

Use this sub-skill for PyPSA tasks that need to:
- solve or re-solve a network with `n.optimize()`, `n.optimize.create_model()`, `n.optimize.solve_model()`, or `extra_functionality`
- choose a solver, pass `solver_options`, or diagnose solver availability and infeasibility
- work with capacity expansion, dispatch, storage, unit commitment, global/custom constraints, `multi_investment_periods`, stochastic scenarios, MGA, rolling horizon, piecewise curves, or transmission losses
- run `n.lpf()`, `n.pf()`, or `n.optimize.optimize_and_run_non_linear_powerflow()`
- debug convergence, slack seeding, big-M, modular committables, or missing optional solver backends

Do not use this sub-skill for:
- building or validating network structure from scratch — use `network-modeling`
- importing or exporting data — use `network-io-data`
- statistics, maps, or result plots — use `analysis-visualization`

## Start here
- [references/optimization-workflows.md](references/optimization-workflows.md) — solve, model-edit, custom-constraint, stochastic, multi-investment, MGA, rolling-horizon, piecewise, and loss workflows.
- [references/power-flow-workflows.md](references/power-flow-workflows.md) — linear and non-linear power-flow workflows, seeding, distributed slack, and optimize-then-PF handoff.
- [references/solver-reference.md](references/solver-reference.md) — solver defaults, solver flags, and license-aware notes.
- [references/troubleshooting.md](references/troubleshooting.md) — quick diagnosis map for infeasibility, convergence, data, and backend failures.

## Smoke helpers
- [scripts/pypsa_optimize_smoke.py](scripts/pypsa_optimize_smoke.py) — tiny HiGHS solve plus a second create-model/solve-model pass with a custom constraint.
- [scripts/pypsa_powerflow_smoke.py](scripts/pypsa_powerflow_smoke.py) — tiny `lpf`/`pf` smoke with seeded distributed slack and an optional combined optimize-then-PF run.

Files in this skill

  • SKILL.md2.2 KB
  • references/optimization-workflows.md9.7 KB
  • references/power-flow-workflows.md4 KB
  • references/solver-reference.md2.8 KB
  • references/troubleshooting.md4.7 KB
  • scripts/pypsa_optimize_smoke.py4 KB
  • scripts/pypsa_powerflow_smoke.py4.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.