locational-marginal-prices

Extract nodal electricity prices from DC-OPF dual values in $/MWh.

4|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/GeneralReasoning/env-skillsbench --skill locational-marginal-prices-generalreasoning
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: locational-marginal-prices
Source: https://github.com/GeneralReasoning/env-skillsbench/tree/main/energy-market-pricing/environment/skills/locational-marginal-prices
Command: npx skills add https://github.com/GeneralReasoning/env-skillsbench --skill locational-marginal-prices-generalreasoning

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Extract locational marginal prices (LMPs) from DC-OPF solutions to enable price analysis, congestion assessment, and market signaling.

Core Features & Use Cases

  • Compute LMPs by reading dual values of nodal power balance constraints after solving the DC-OPF.
  • Convert dual values to $/MWh by scaling with baseMVA and identify congestion-induced price signals.
  • Use cases include price impact analysis, reserve pricing, and market design assessments.

Quick Start

Run a DC-OPF optimization, capture the dual values of the balance constraints, and convert them to LMPs per bus.

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 DC-OPF model?

Extract locational marginal prices by reading the dual values of nodal power balance constraints from a solved DC-OPF model. Scale these dual values by baseMVA to convert them into standard $/MWh market prices for each bus.

What do dual values represent in a DC-OPF power flow solution?

In a DC-OPF power flow solution, dual values represent the locational marginal prices at each bus. They indicate the marginal cost of serving an additional unit of load at that specific node, revealing congestion-induced price signals across the network.

How can I convert DC-OPF dual values to $/MWh electricity prices?

Convert DC-OPF dual values to $/MWh electricity prices by scaling the raw dual values of the nodal power balance constraints using the system's baseMVA parameter. This conversion standardizes the raw optimization output into actionable market prices.

Do I need a solved DC-OPF model to compute nodal electricity prices?

Yes, you need a solved DC-OPF model to compute nodal electricity prices. The extraction process requires the optimization to be complete so that dual values for the nodal power balance constraints are available for conversion to LMPs.

Why do locational marginal prices differ across buses in congested networks?

Locational marginal prices differ across buses in congested networks due to binding transmission limits. The DC-OPF dual values capture these congestion-induced price signals, showing how network constraints increase the marginal cost of power at specific nodes.

What are common use cases for extracting LMPs from DC-OPF dual values?

Common use cases for extracting LMPs from DC-OPF dual values include price impact analysis, reserve pricing, and market design assessments. The extracted nodal prices enable detailed congestion assessment and market signaling for power systems studies.