Module 10 — A New Approach to Market Design
Lesson 2 of 10
A Stateful Allocation Mechanism
Learning objectives
By the end of this lesson you should be able to:
- Understand the difference between stateless and stateful decision-making.
- Explain what is meant by the state of an electricity system.
- Recognise why maintaining system state can improve coordination.
- Understand how a stateful market differs from periodic market clearing.
- Appreciate why stateful allocation forms the foundation of the market architecture presented in this module.
Introduction
Many traditional electricity markets make decisions by solving a sequence of separate optimisation problems.
Each market receives a set of inputs, determines an outcome and then waits until the next market interval before repeating the process.
This approach has proven highly successful for coordinating electricity systems over many decades.
An alternative perspective is to ask:
What if the market continuously remembered the current state of the electricity system rather than repeatedly starting from scratch?
This idea forms the basis of a stateful allocation mechanism.
Stateless and stateful systems
In computer science, systems are often described as either stateless or stateful.
A stateless system treats each request independently.
It makes a decision using only the information available at that moment.
A stateful system, by contrast, maintains information about previous decisions and the current condition of the system.
Each new decision builds upon the existing state.
Many familiar technologies operate in this way.
Navigation systems continuously update routes as traffic changes.
Industrial control systems continually estimate the condition of the equipment they control.
Financial exchanges maintain continuously updated order books.
Stateful systems are common whenever decisions depend on an evolving environment.
What is system state?
The state of an electricity system is simply a description of its current condition.
Depending on the application, this may include information such as:
- current generation,
- electricity demand,
- network loading,
- available flexibility,
- storage levels,
- existing commitments,
- outstanding requests.
As new information becomes available, the state is updated.
Future decisions are then based on this continuously evolving picture of the system.
Decisions build upon one another
In a stateful allocation mechanism, decisions are not viewed as isolated events.
Each allocation changes the condition of the system.
For example:
Allocating capacity to one consumer reduces the capacity available to others.
Scheduling a battery changes its future state of charge.
Accepting a flexible request affects the remaining flexibility available later.
Each decision therefore influences the decisions that follow.
Maintaining an explicit system state allows these interactions to be represented directly.
A continuously evolving picture
Rather than treating the electricity system as a sequence of disconnected snapshots, a stateful mechanism maintains a continuously updated representation of the network.
Whenever a new request arrives:
- the current state is observed,
- the request is evaluated,
- the allocation is updated,
- the system state is revised.
The market therefore evolves continuously alongside the physical electricity system.
Why maintain state?
Maintaining state offers several potential advantages.
It allows allocation decisions to consider:
- previous commitments,
- remaining network capacity,
- future resource availability,
- existing consumer requests,
- changing operating conditions.
Rather than repeatedly reconstructing this information, it is maintained as part of the ongoing operation of the market.
Coordination through state
The state becomes a shared description of the electricity system.
Instead of different coordination mechanisms maintaining separate views of the system, allocation decisions are based on a common evolving representation.
This allows new requests to be evaluated in the context of decisions that have already been made.
In this way, coordination becomes an ongoing process rather than a sequence of largely independent optimisation problems.
State and physical systems
Electricity networks are inherently dynamic.
Generation changes continuously.
Demand varies throughout the day.
Storage charges and discharges.
Consumers connect and disconnect devices.
Because the physical system evolves continuously, it is natural to represent the market as evolving continuously as well.
A stateful allocation mechanism attempts to keep these two processes aligned.
A different way of thinking
A useful way to think about a stateful market is to compare it with navigation software.
A navigation system does not calculate a route once and assume conditions never change.
Instead, it continually updates its estimate of traffic conditions and revises recommendations when necessary.
Similarly, a stateful allocation mechanism continually updates its understanding of the electricity system as new information becomes available.
The objective is not simply to produce a single optimal solution, but to maintain good decisions as conditions evolve.
Foundation for the remaining lessons
Maintaining an explicit system state provides the foundation for the remainder of this module.
Subsequent lessons will build upon this idea by examining how the state can support:
- continuous market clearing,
- network-feasible allocation,
- distributed pricing,
- fairness over time,
- flexible demand,
- differentiated electricity products.
Together, these concepts form an integrated market architecture built around the continuous evolution of system state.
A key insight
A stateful allocation mechanism does not treat market decisions as isolated optimisation problems.
Instead, it continuously maintains and updates a representation of the electricity system, allowing each new allocation to build upon the current state of the network.
Key takeaways
- A stateless system treats each decision independently.
- A stateful system maintains information about the current condition of the system.
- The state of an electricity system evolves continuously as conditions change.
- Allocation decisions influence future opportunities and constraints.
- Maintaining state allows these interactions to be represented explicitly.
- A stateful allocation mechanism forms the foundation of the integrated market architecture explored throughout the remainder of this module.
Looking ahead
A stateful market maintains an evolving representation of the electricity system.
The next lesson explores how this state can be updated through continuous clearing, allowing market decisions to occur whenever new requests arrive rather than only at predefined market intervals.