Heat Dispatch — A linear program that decides where the heat goes
![]() | ![]() | ![]() | ![]() | App Exercises |
|---|
Model and Control Exercise 35 of 40. BYU class 37 · PDC class 36. 15 minutes.

Open the Heat Dispatch App
Learning Outcomes
- Write a linear program with an objective, equality and inequality constraints.
- Explain why its solution sits at a limit.
- Compare a fixed split, a price rule and the optimizer by revenue.
Book Chapter
Control of Energy Conversion and Storage (Volume 17), Chapter 13, Supervisory Economic Dispatch of Nuclear Heat, Storage and Hydrogen Production. Read online · Chapter PDF · Lecture slides
Theory in Brief
Allocate a fixed amount of simulated heat to power, hydrogen or thermal storage. Compare marginal revenue per unit heat in a period with slack limits.
$$\max\sum_k(p_kP_{e,k}+p_H\dot m_{H,k})\Delta t$$
$$Q=Q_{turbine,k}+Q_{electrolyzer,k}+Q_{store,k}$$
$$E_{k+1}=E_k+Q_{store,k}\Delta t$$
Model to Controller
The linear resource and inventory constraints let the supervisory controller reallocate heat across time and products.
Exercise
Read (2 min). Review the model and identify which signals you will compare.
Predict (1 min). Estimate the electricity price at which the heat should switch from the turbine to hydrogen.
Run (8 min).
- Open the app and select the following cases in order.
- 2 · Fixed allocation, one whole day.
- 3 · Price-threshold rules, the same day.
- 4 · Linear economic MPC, the same day.
- Follow the case instructions, using the same measurement window for comparable trials.
- Record day's revenue under each and the switching price.
Explain (2 min). Which observation supports or changes your prediction? Which assumption or limit explains the gap between calculation and observation?
Generative AI Learning (2 min)
Verify the suggested claim using a second point on your trend or an independent calculation from the equations. Cite the signal, units and case that support your conclusion.
What to Turn In
Submit a screenshot of the relevant trend or scorecard and three sentences covering your prediction, the measured result with units, and the model's explanation. Course guidelines for AI use.
The unconstrained switch price equalizes marginal revenue per unit of heat. Storage and delivery obligations can shift the allocation from the immediate price rule.
Which part of the model connects the measured signal to the exercise?
The linear resource and inventory constraints let the supervisory controller reallocate heat across time and products.
How should the observations be interpreted?
The unconstrained switch price equalizes marginal revenue per unit of heat. Storage and delivery obligations can shift the allocation from the immediate price rule.
How could you check that a result is comparable across cases?
Use the same signal, units and reference point. When comparing integrated quantities, use the same interval.



