Abstract
We consider the problem of planning the aggregate energy consumption for a set of thermostatically controlled loads for demand response, accounting price forecast trajectory and thermal comfort constraints. We address this as a continuous-time optimal control problem, and analytically characterize the structure of its solution in the general case. In the special case when the price forecast is monotone and the loads have equal dynamics, we show that it is possible to determine the solution in an explicit form. Taking this fact into account, we handle the non-monotone price case by considering several subproblems, each corresponding to a time subinterval where the price function is monotone, and then allocating to each subinterval a fraction of the total energy budget. This way, for each time subinterval, the problem reduces to a simple convex optimization problem with a scalar decision variable, for which a descent direction is also known. The price forecasts for the day-ahead energy market typically have no more than four monotone segments, so the resulting optimization problem can be solved efficiently with modest computational resources.
Introduction
As renewable energy integration increases, the grid faces significant challenges due to the intermittency of supply. Demand response strategies aim to mitigate this by shifting energy consumption to periods of high availability and low cost. Thermostatically Controlled Loads (TCLs), such as air conditioning (AC) units, are ideal for this purpose because of their inherent thermal inertia. By pre-cooling buildings during low-price periods and allowing temperatures to drift within comfort limits during price spikes, significant cost savings can be achieved without impacting user comfort.
However, optimizing the aggregate consumption of thousands of TCLs is computationally daunting. Each unit typically involves discrete ON-OFF switching and various physical constraints, leading to large-scale mixed-integer linear programs (MILP) that are difficult to solve in real-time. This paper addresses this challenge by characterizing the optimal solution analytically, leading to a highly efficient planning strategy.
Methodology
Convex Relaxation and Analytical Characterization
The authors formulate the problem as a continuous-time optimal control problem. To overcome the discrete nature of ON-OFF control, they employ a convex relaxation, allowing the control variable to take any value between 0 and 1. This relaxed control represents the average power over a short interval, which can later be mapped back to physical switching signals using pulse-width modulation (PWM).
Using Pontryagin’s Maximum Principle (PMP), the research proves that the optimal control is piecewise constant. The optimal strategy involves four possible states: fully ON, fully OFF, or maintaining the temperature exactly at the upper or lower comfort boundaries ("sliding" along the boundaries).
Decomposition Strategy
A key contribution is the handling of non-monotone price forecasts, such as the common "duck curve." For monotone price segments, the authors derive an explicit closed-form solution. For general price trajectories, the day is decomposed into monotone sub-intervals. The total energy budget is then allocated across these segments using a gradient-descent-like optimization. This reduces a high-dimensional control problem to a low-dimensional convex optimization over a few scalar variables—specifically, the number of monotone price segments, which is usually four or fewer for day-ahead markets.
Key Results and Validation
The proposed analytical strategies were validated against numerical benchmarks. Specifically, the results from the derived theorems were compared with ICLOCS, a standard numerical optimal control solver.
As shown in Figure 1, the trajectories generated by the analytical solution (Theorem 2) align almost perfectly with the numerical results from ICLOCS. This confirms that the explicit strategies accurately capture the optimal behavior while requiring significantly less computational effort.
Figure 2 further demonstrates this accuracy for a more complex scenario (Theorem 2-3). The analytical approach achieved a cost of 112.6750 compared to the numerical solver's 112.6562, representing a negligible difference while offering a massive reduction in decision variables—from tens of thousands in a typical MILP to just a handful of scalar variables.
Key Insights
- Synchronization of Dynamics: When AC units share similar thermal characteristics, their state transitions occur simultaneously, simplifying the aggregate control of large populations.
- Computational Efficiency: By leveraging the low number of monotone segments in typical price forecasts, the problem becomes solvable on modest hardware, making it practical for Load Serving Entities (LSEs).
- Boundary Sliding: The optimal strategy efficiently maintains comfort limits by "sliding" along boundaries rather than rapidly chattering between ON and OFF states.
Limitations and Future Work
While the results are robust, the most efficient explicit strategies currently assume a degree of homogeneity in the AC population (similar thermal dynamics). Future research could extend these analytical characterizations to highly heterogeneous groups. Additionally, the current model assumes perfect price and temperature forecasts; incorporating uncertainty and moving towards a "sliding window" real-time implementation are logical next steps.
Summary updated