locational-marginal-prices

Extract per-bus locational marginal prices from DC-OPF dual values.

Updated Jan 15, 2026
One-click install
npx skills add https://github.com/KaiserWhoLearns/skillsbench --skill locational-marginal-prices
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: locational-marginal-prices
Source: https://github.com/KaiserWhoLearns/skillsbench/tree/main/tasks/energy-market-pricing/environment/skills/locational-marginal-prices
Command: npx skills add https://github.com/KaiserWhoLearns/skillsbench --skill locational-marginal-prices

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Locational marginal prices (LMPs) quantify the marginal cost of serving one additional MW at each bus, enabling price discovery and congestion awareness in DC-OPF based markets.

Core Features & Use Cases

  • LMP extraction: derive per-bus prices from dual values of nodal balance constraints.
  • Pricing analysis: compute system-wide and bus-level price signals for market simulations and sensitivity studies.
  • Use Case: assess how congestion affects prices and interpret negative LMPs in congested networks.

Quick Start

Run a DC-OPF solution and extract per-bus LMPs from the dual values to begin price analysis.

Frequently Asked Questions about locational-marginal-prices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract locational marginal prices from a solved DC-OPF model?

Extract locational marginal prices by retrieving the dual values from nodal balance constraints in your solved DC-OPF model. This process yields per-bus LMPs scaled by baseMVA for nodal price computation.

What do locational marginal prices tell me about congestion in a DC network?

Locational marginal prices quantify the marginal cost of serving one additional MW at each bus, revealing how congestion affects prices across a DC network. They enable price discovery and help interpret negative LMPs in congested areas.

Can I compute nodal prices for market simulation using CVXPY?

Yes, you can compute nodal prices for market simulation using CVXPY by extracting dual values from solved DC-OPF problems. This produces per-bus LMPs suitable for pricing analysis and sensitivity studies.

Why are some locational marginal prices negative in my congestion analysis?

Negative locational marginal prices occur in congested networks when nodal balance constraints cause dual values to reflect localized overgeneration or transmission limits. Extracting these per-bus LMPs helps interpret congestion impacts during analysis.

Do I need a solved DC-OPF solution before deriving per-bus LMPs?

Yes, a solved DC-OPF model is required before deriving per-bus LMPs, as the extraction process depends on reading dual values from established nodal balance constraints. You also need CVXPY installed to perform this computation.

What is the best way to perform reserve pricing and nodal price computation across DC networks?

The best way to perform nodal price computation and reserve pricing across DC networks is to extract dual values from solved DC-OPF nodal balance constraints. This generates scaled per-bus LMPs for comprehensive pricing analysis.