---
title: Transmission losses and unit commitment
heading: The loss formula and its B-coefficients, incremental losses and penalty factors in the coordination equation, what ignoring losses costs, and deciding which units to run each hour with start-up costs, minimum loads and priority lists
eyebrow: S10 · Lesson 28 · Transmission losses and unit commitment
xp: 50
---

::: hook
A utility's cheapest plant sits 200 km from the city it serves. Each extra megawatt it produces raises the line losses, so part of that megawatt never reaches a customer. Lesson 27's equal-incremental-cost rule ignores that, and over a year the error is real money. There's a second question that lesson skipped: a big unit can't be switched on and off like a light. Starting it costs thousands of dollars, and once on it can't run below its minimum. Which units should be running at all?
:::

::: play
- Plant 1 sits at the load. Plant 2 is remote, and the line losses are $P_L = B_{22}P_2^2$. Incremental costs: $8 + 0.012P_1$ and $7 + 0.010P_2$ dollars per MWh.
- Set the system λ with its slider (the dashed horizontal line). Plant 1 runs where its incremental cost equals λ. Plant 2 runs where its incremental cost times its penalty factor $1/(1 - 2B_{22}P_2)$ equals λ.
- The solid curves are the two plants' incremental costs as seen from the load; plant 2's bends upward as its losses grow. The readouts give each output, the losses and the load served. Raise $B_{22}$ and plant 2 backs off.
:::

```sim plot
view: graph
x: P = 0..500 MW
y: c = 6..16
slider: B22 = 0..0.0005 = 0.0002
slider: lam = 9..14 = 10.91
plot: 8 + 0.012*P | samples: 200 | label: plant 1
plot: (7 + 0.010*P)/(1 - 2*B22*P) | samples: 400 | color: ch3 | label: plant 2, penalized
plot: 7 + 0.010*P | samples: 200 | dashed | color: ch3 | label: plant 2, at the plant
plot: lam + 0*P | dashed | color: ch4 | label: λ
readout: plant 1, MW = (lam - 8)/0.012 | digits: 4
readout: plant 2, MW = (lam - 7)/(0.01 + 2*B22*lam) | digits: 4
readout: losses, MW = B22*((lam - 7)/(0.01 + 2*B22*lam))^2 | digits: 3
readout: load served, MW = (lam - 8)/0.012 + (lam - 7)/(0.01 + 2*B22*lam) - B22*((lam - 7)/(0.01 + 2*B22*lam))^2 | digits: 4
```

::: predict
## The remote plant's penalty factor is 1.12 at its operating point. What does that mean?

- [ ] It must run 12% below its rating
- [x] Each megawatt it delivers to the load costs 12% more than its incremental cost at the plant
- [ ] Its losses are 12% of its output
- [ ] It pays a 12% transmission fee

::: reveal
A penalty factor $L = 1/(1 - \partial P_L/\partial P_i)$ converts a plant's incremental cost into incremental cost at the load. At 1.12, raising the plant by 1 MW raises losses by about 0.11 MW, so delivering 1 MW more takes 1.12 MW at the plant. The losses themselves are a different number: here, 14.8 MW out of 272 MW, about 5%.
:::
:::

::: nameit
## The loss formula

With the network fixed and loads moving together, total losses are close to a quadratic in the generator outputs, Kron's **loss formula**:

$$P_L = \sum_i\sum_j P_i B_{ij} P_j + \sum_i B_{i0}P_i + B_{00}$$

The **B-coefficients** come from a base-case power flow and the network's $Z_\text{bus}$; Grainger and Stevenson derive them by a sequence of power-invariant transformations. In the simplest case, one plant sending P through a resistance R at voltage |V| and power factor cos φ loses $R P^2/(|V|^2\cos^2\varphi)$, so $B = R/(|V|\cos\varphi)^2$.

## The coordination equation

Minimizing total cost with the loss formula in the balance $\sum P_i = P_D + P_L$ gives, for every unit not at a limit,

$$\frac{dF_i}{dP_i}\,L_i = \lambda, \qquad L_i = \frac{1}{1 - \partial P_L/\partial P_i}$$

with incremental loss $\partial P_L/\partial P_i = 2\sum_j B_{ij}P_j + B_{i0}$. Units whose output raises losses get a penalty factor above 1 and are dispatched lower; a unit near the load whose output reduces losses on the way in from elsewhere can have a penalty factor below 1. Since the factors depend on the outputs, the solution is iterated: guess λ, solve for outputs, compute losses, and adjust λ until the balance holds.

## Unit commitment

Dispatch assumes the running units are given. **Unit commitment** chooses them, hour by hour, to minimize fuel plus start-up costs while meeting:

- the load plus a spinning reserve, often the largest unit's output;
- each unit's minimum and maximum output;
- minimum up and down times (a large steam unit may need to stay on 8 hours once started and off 4 once stopped);
- ramp rates and fuel or emission limits.

A **priority list** commits units in order of their full-load average cost, adding units as load rises. **Dynamic programming** steps through the hours, keeping for each feasible combination of units the cheapest way to reach it, including start-up costs. Markets now solve commitment as a mixed-integer program covering every unit and the network's limits for the next day.

A recurring result is that keeping a unit on through a short dip in load can cost less than shutting it down and starting it again.
:::

::: example
## Dispatch the two plants for a 500 MW load with $B_{22}$ = 0.0002 per MW, then compare with dispatch that ignores losses.

::: solution
1. **Coordination equations.**
   $$\begin{aligned} \lambda &= 8 + 0.012P_1 \\ \lambda(1 - 0.0004P_2) &= 7 + 0.010P_2 \end{aligned}$$
   with $P_1 + P_2 = 500 + 0.0002P_2^2$.
2. **Solve.** Adjusting λ until the balance holds gives λ = 10.91 dollars per MWh, $P_1$ = 242.6 MW and $P_2$ = 272.3 MW, with 14.8 MW of losses.
3. **Penalty factor.** Plant 2's penalty factor there is
   $$\begin{aligned} L_2 &= 1/(1 - 0.0004 \times 272.3) \\ &= 1.122 \end{aligned}$$
4. **Ignoring losses.** That means setting $8 + 0.012P_1 = 7 + 0.010P_2$ and making up the losses afterward. It runs plant 2 at 330.1 MW and plant 1 at 191.7 MW, and losses climb to 21.8 MW.
5. **Compare costs.** Total fuel cost (from the integrals of the incremental costs) is 4610 against 4570 dollars per hour, so ignoring losses costs about 40 dollars every hour, roughly 350,000 dollars a year for this small system.

**Answer:** coordinated dispatch runs plant 1 at 242.6 MW and plant 2 at 272.3 MW (λ = 10.91 dollars per MWh); ignoring losses costs about 40 dollars an hour more.
:::
:::

::: example
## Unit 1 (100 to 400 MW, 20 dollars per MWh, no-load cost 500 dollars per hour) runs all day. Unit 2 (50 to 200 MW, 25 dollars per MWh, no-load cost 300 dollars per hour, start-up 1200 dollars) is needed at 520 MW in hour 2 and 540 MW in hour 4. Load in hour 3 is 390 MW. Should unit 2 stay on in hour 3?

::: solution
1. **Shutting it down.** Unit 1 alone could carry 390 MW. Shutting unit 2 down for hour 3 means paying 1200 dollars to start it again for hour 4.
2. **Keeping it on.** That means running it at its 50 MW minimum, with unit 1 at 340 MW.
3. **Cost of staying on.** Compared with unit 1 carrying all 390 MW, that adds unit 2's 300 dollars of no-load cost and makes 50 MW at 25 instead of 20 dollars per MWh:
   $$300 + 50 \times 5 = 550\ \text{dollars}$$
4. **Compare.** Staying on is cheaper by 650 dollars. A minimum down time longer than an hour would force the same answer, but here it's simply the economics.

**Answer:** yes: staying on costs 550 dollars against 1200 for a restart, 650 dollars less.
:::
:::

::: example
## A remote plant with an incremental cost of 18 dollars per MWh has a penalty factor of 1.08; a local plant's incremental cost is 19.5 with a penalty factor of 1.0. Which should pick up the next MW?

::: solution
1. **Delivered cost of the remote plant.**
   $$18 \times 1.08 = 19.44$$
   dollars per MWh.
2. **Compare.** Against the local plant's 19.50, the remote plant is still slightly cheaper even after its losses, so it should take the next MW.
3. **What happens next.** The coordination equation shifts generation until the two products match.

**Answer:** the remote plant, at 19.44 dollars per MWh delivered against the local plant's 19.50.
:::
:::

::: check
given: R = 0.01 | 0.02 | 0.04; V = 0.95 | 1.05; f = 0.8 | 0.85 | 0.9
answer: R/(V*f)^2
tolerance: 0.5%

## A plant sends its output over a line of resistance {R} pu at {V} pu and power factor {f}. What's its loss coefficient B, in per unit?

::: right
Right. $P_L = RP^2/(|V|\cos\varphi)^2$, so B = {answer} per unit of power.
:::

::: misses
- [R/V^2] Include the power factor: reactive current adds loss too.
- [R] The current is $P/(|V|\cos\varphi)$; square that.
- [any] Not yet. Losses are $I^2R$ with $I = P/(|V|\cos\varphi)$.
:::
:::

::: check
given: B = 0.0003 | 0.0004 | 0.0005; P = 200 | 300 | 400
answer: 1/(1 - 2*B*P)
tolerance: 0.5%

## A plant's losses are $B P^2$ with B = {B} per MW. What's its penalty factor at P = {P} MW?

::: right
Right. $\partial P_L/\partial P = 2BP$, so $L = 1/(1 - 2BP)$ = {answer}.
:::

::: misses
- [1/(1 - B*P)] The incremental loss is the derivative, 2BP.
- [1 + 2*B*P] Close, but the penalty factor is $1/(1 - 2BP)$.
- [any] Not yet. $L = 1/(1 - \partial P_L/\partial P)$.
:::
:::

::: check
given: c = 18 | 22 | 30; L = 1.03 | 1.08 | 1.15
answer: c*L
tolerance: 0.5%

## A unit's incremental cost is {c} dollars per MWh and its penalty factor is {L}. What incremental cost does the load see, in dollars per MWh?

::: right
Right. $L\,dF/dP$ = {answer}. At the optimum that equals λ for every unit off its limits.
:::

::: misses
- [c/L] Multiply by the penalty factor; it raises the cost.
- [any] Not yet. Incremental cost at the load is the plant's times L.
:::
:::

::: check
given: B = 0.0001 | 0.0002 | 0.0003; a = 6 | 7; b = 0.008 | 0.01; l = 10 | 12
answer: (l - a)/(b + 2*B*l)
unit: MW
tolerance: 0.5%

## A unit's incremental cost is {a} + {b}P dollars per MWh and its losses are $B P^2$ with B = {B} per MW. At λ = {l} dollars per MWh, how much does it produce?

::: right
Right. $\lambda(1 - 2BP) = a + bP$ gives $P = (\lambda - a)/(b + 2B\lambda)$ = {answer} MW.
:::

::: misses
- [(l - a)/b] That ignores the penalty factor.
- [any] Not yet. Solve $(a + bP)/(1 - 2BP) = \lambda$ for P.
:::
:::

::: check
given: S = 800 | 1500 | 3000; n = 200 | 300 | 400; m = 40 | 60; d = 3 | 5 | 8
answer: n + m*d
tolerance: 0.5%

## A unit could run through an off-peak hour at its {m} MW minimum, costing {n} dollars per hour of no-load cost and {d} dollars per MWh more than the unit that would otherwise make that energy. How many dollars does keeping it on for the hour cost?

::: right
Right. {n} + {m} × {d} = {answer} dollars; compare with its {S} dollar start-up.
:::

::: misses
- [m*d] Include the no-load cost.
- [n] Include the extra energy cost of the minimum output.
- [any] Not yet. No-load cost plus the minimum output times the cost difference.
:::
:::

::: check
given: a = 400 | 600 | 900; b = 18 | 22; P = 200 | 300 | 500
answer: a/P + b
tolerance: 0.5%

## A unit's cost is {a} + {b}P dollars per hour. What's its full-load average cost at {P} MW, in dollars per MWh, the number a priority list sorts by?

::: right
Right. $(a + bP)/P$ = {answer} dollars per MWh.
:::

::: misses
- [b] That's the incremental cost. Average cost includes the no-load cost spread over the output.
- [any] Not yet. Divide the hourly cost by the output.
:::
:::

::: check
kind: parts
given: r = 16 | 18 | 20; L = 1.03 | 1.06 | 1.1; l = 18.5 | 19.5 | 21

## A remote plant's incremental cost is {r} dollars per MWh with penalty factor {L}; a local plant's is {l} with penalty factor 1.

::: part
answer: r*L
tolerance: 0.5%

### What is the remote plant's delivered incremental cost?

::: misses
- [r/L] The penalty factor multiplies.
- [any] Cost times penalty factor.
:::
:::

::: part
answer: l - r*L
tolerance: 2%

### By how much is the remote plant cheaper at the margin (negative if dearer)?

::: misses
- [any] Local minus delivered remote.
:::
:::
:::

::: check
kind: derivation
vars: B = 0.00001..0.001, P = 10..500, a = 5..30, b = 0.001..0.05

## A plant with incremental cost a + bP (dollars per MWh) has losses $BP^2$.

::: step
answer: 2*B*P

### What is its incremental transmission loss?
:::

::: step
answer: 1/(1 - 2*B*P)

### What is its penalty factor?
:::

::: step
answer: (a + b*P)/(1 - 2*B*P)

### What is its delivered incremental cost?
:::

::: right
Right. Generation that loses more on the way pays for it in a higher delivered cost.
:::
:::

::: explain
## Why can a plant with the cheapest fuel be dispatched below a costlier plant once losses are counted?

::: model
Economic dispatch equalizes the cost of one more megawatt delivered to the load, which for a remote plant is more than the cost of producing it. If a plant is far from the load, part of each extra megawatt it produces is lost in the lines, and the fraction grows with the plant's output because losses rise with the square of current. Its penalty factor, $1/(1 - \partial P_L/\partial P)$, measures how many megawatts it must produce to deliver one, so its delivered incremental cost is its fuel cost times that factor. A remote plant with cheap fuel can therefore reach the system λ at a lower output than a nearby plant with dearer fuel. Running it harder would save fuel at the plant but spend more than that saving on extra losses.
:::
:::

::: practice

::: check
given: B = 0.00005..0.0005; P = 50..500
answer: 1/(1 - 2*B*P)
tolerance: 0.5%

## Penalty factor for $P_L = BP^2$, B = {B}, P = {P} MW?

::: misses
- [any] $1/(1 - 2BP)$.
:::
:::

::: check
given: a = 5..9; b = 0.005..0.015; B = 0.00005..0.0003; l = 10..14
answer: (l - a)/(b + 2*B*l)
unit: MW
tolerance: 0.5%

## Output at λ = {l} with incremental cost {a} + {b}P and B = {B}?

::: misses
- [any] $(\lambda - a)/(b + 2B\lambda)$.
:::
:::

::: check
given: a = 200..1500; b = 15..40; P = 100..600
answer: a/P + b
tolerance: 0.5%

## Full-load average cost: {a} + {b}P dollars per hour at {P} MW?

::: misses
- [any] $(a + bP)/P$.
:::
:::
:::
