S10 · Lesson 29 · Optimal power flow and locational prices
Adding the network to economic dispatch, congestion when a line reaches its limit, locational marginal prices and congestion rent, a three-bus case where the price exceeds every generator's cost, and unit commitment
Economic dispatch (lesson 27) ignores the wires: it would happily send all the power from the cheapest plant even if the line from it can't carry that much. Optimal power flow adds the network's limits, and when a line congests, power at different buses stops having the same value. Markets such as PJM, ERCOT and MISO publish a separate price at every node, every five minutes, computed exactly this way. Those prices can behave in ways that surprise everyone the first time.
- Two buses: a cheap generator at A (10 dollars per MWh) and an expensive one at B (30 dollars per MWh), with all the load at B and a line of limited rating between them.
- The plot shows the price at bus B against the load. Below the line's rating, all the power comes from A and both prices are 10.
- Above it, the line is full, the extra must come from B's generator, and B's price jumps to 30. The difference times the flow is the congestion rent the line earns.
Predict
Three buses joined by identical lines. Generators at bus 1 (20 dollars per MWh) and bus 2 (40 dollars per MWh) serve 300 MW at bus 3, and line 1–3 is limited to 150 MW. What's the price at bus 3?
To serve one more MW at bus 3 without overloading line 1–3, which carries two thirds of bus 1's output and one third of bus 2's, the dispatch must add 2 MW at bus 2 and back off 1 MW at bus 1: 2 × 40 − 20 = 60. The price at the congested end can exceed every generator's cost.
Name it
Optimal power flow
Minimize total generation cost subject to the power-flow equations, generator limits, line flow limits and voltage limits. The full AC problem is a nonlinear program; markets usually solve a DC-OPF, a linear or quadratic program using the DC power flow and PTDFs (lesson 20).
Locational marginal prices
The LMP at a bus is the cost of serving one more MW there, with the network's constraints respected. It splits into an energy part (the reference λ), a congestion part (each binding line's shadow price times the bus's PTDF on it) and a loss part. Without congestion and losses, every LMP equals λ.
Congestion
When a line is at its limit, cheaper generation behind it can't reach the load, and more expensive generation on the far side must run: out-of-merit dispatch. The difference in LMPs across the line times its flow is the congestion rent, which in markets goes to holders of transmission rights.
Unit commitment
Dispatch assumes units are already running. Deciding which units to start, hours to days ahead, is unit commitment: a mixed-integer problem with start-up costs, minimum up and down times, ramp limits and reserves. A unit with start-up cost S and a no-load cost h per hour should be shut down for an idle gap longer than S/h hours.
Worked example
In the two-bus case with a 250 MW line, what happens at 400 MW of load?
Show the solution
- Dispatch. A sends 250 MW, filling the line, and B's generator supplies the other 150.
- Cost. dollars per hour, against 4000 without the limit.
- Prices. The prices are 10 at A and 30 at B.
- Congestion rent. dollars per hour, a measure of what expanding the line would be worth.
Answer B's generator makes up the last 150 MW, the cost rises to 7000 dollars per hour, and prices split to 10 at A and 30 at B.
Worked example
Solve the three-bus case with the 150 MW limit on line 1–3.
Show the solution
- Flow on line 1–3. With identical lines, line 1–3 carries
- Apply the limit. With = 300: so .
- Dispatch. The cheap unit runs at 150, the expensive one at 150, for 9000 dollars per hour. Line 1–2 carries nothing and line 2–3 carries 150.
- Prices. The LMPs are 20 at bus 1, 40 at bus 2 and 60 at bus 3.
Answer each unit runs at 150 MW for 9000 dollars per hour, with LMPs of 20, 40 and 60 at buses 1, 2 and 3.
Worked example
An uncongested line carries 300 MW from a generator at A, priced at 20 dollars per MWh, to bus B. Its losses are with B = 10⁻⁴ per MW. What's the LMP at B?
Show the solution
- Marginal losses.
- Power needed at A. Each extra MW delivered at B needs MW at A.
- LMP at B. dollars per MWh.
- What it means. The marginal-loss component adds 1.28 even with no congestion. Prices at buses far from cheap generation are higher for this reason alone.
Answer 21.28 dollars per MWh.
Check
A cheap generator at A sends power over a line rated 150 MW to a 450 MW load at B, where a costlier generator also sits. How much must B's generator produce?
Write units the way you normally would: 1.5 MW, 1500 kW and 0.0015 GW are the same answer.
Check
A congested line carries 300 MW from a bus priced at 12 to one priced at 30 dollars per MWh. What's its congestion rent, in dollars per hour?
Check
A 550 MW load at B is served by a 10 dollars per MWh generator at A through a 300 MW line and by a 30 dollars per MWh generator at B. What's the total cost per hour?
Check
A triangle of identical lines has generators at buses 1 and 2 and a 300 MW load at bus 3, with line 1–3 limited to 110 MW. What's the most bus 1's generator can produce?
Write units the way you normally would: 1.5 MW, 1500 kW and 0.0015 GW are the same answer.
Check
In the same triangle, with line 1–3 binding, generator 1 costs 20 and generator 2 costs 35 dollars per MWh. What's the LMP at bus 3?
Check
A unit costs 20000 dollars to start and 800 dollars per hour to keep running at minimum output when it isn't needed. Above what idle gap is shutting it down cheaper?
Check
An uncongested line carries 600 MW from a generator priced at 20 dollars per MWh, with losses , B = 5 × 10⁻⁵ per MW.
(a)
What is the marginal loss factor?
(b)
What is the LMP at the receiving bus?
Check
A line at its limit L MW joins a bus priced a to one priced b dollars per MWh, and the receiving bus's load is P MW.
Step 1
What congestion rent accrues per hour?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
What do the receiving bus's loads pay per hour?
Explain why
How can the price at a bus be higher than the cost of every generator in the system?
The price at a bus is what it costs the whole system to serve one more megawatt there while keeping every line within its limit. If the line from the cheap generator is already full, the extra megawatt can't come from that generator directly, and if every path from the expensive generator also loads the congested line, the system has to rearrange flows: raise the expensive unit by more than one megawatt and lower the cheap one to create a counterflow on the full line. Paying for two megawatts of expensive power while saving one of cheap power can cost more than either generator's price, and that combined cost is the bus's marginal price.
Practice
Keep practicing
10 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.