Simulating Electricity Market Dispatch
Simulations and textbook in progress on how electricity markets clear
By Eshaan Kothari13 Nov 2026
Electricity Market Simulations and Textbook
Electricity is traded in a market, but unlike any other commodity, we cannot see electrons. Capacity, transmission, inter-time, inter-space, and physics all present constraints and challenges that determine the market-clearing price for electricity that retailers purchase on a whole-sale market and generators sell at.
Each chapter builds on itself adding in another constraint that models what real-world electricity markets look like. This textbook also scales simulations to real-world magnitudes, including backtesting against electricity markets, like ERCOT in Texas.
Chapters
- Chapter 1 — Economic dispatch on a single bus: three generators, one bus, one demand. Submit your own bids, move demand, and watch the clearing price change.
- Chapter 2 — A simulated electricity market: from a synthetic fleet to the real offers of 844 ERCOT generators at 5 pm on 13 September 2026, with the supply curve and a map of where the power comes from.
More chapters are on the way — transmission and congestion next.