NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Stackelberg Game Approach to Control the Overall Load Consumption of a Residential Neighborhood

Erhan Can Ozcan, Ioannis Ch. Paschalidis

Abstract

This paper formulates a Stackelberg game between a coordination agent and participating homes to control the overall load consumption of a residential neighborhood. Each home optimizes a comfort-cost trade off to determine a load schedule of its available appliances in response to a price vector set by the coordination agent. The goal of the coordination agent is to find a price vector that will keep the overall load consumption of the neighborhood around some target value. After transforming the bilevel optimization problem into a single level optimization problem by using Karush-Kuhn-Tucker (KKT) conditions, we model how each home reacts to any change in the price vector by using the implicit function theorem. By using this information, we develop a distributed optimization framework based on gradient descent to attain a better price vector. We verify the load shaping capacity and the computational performance of the proposed optimization framework in a simulated environment establishing significant benefits over solving the centralized problem using commercial solvers.

Introduction

As global energy systems transition toward intermittent renewables and electric vehicles, power grids face increasing pressure to balance supply and demand during peak hours. Traditional Demand Response (DR) programs often fail due to low user participation—caused by a lack of consideration for granular comfort needs—and the extreme computational complexity of coordinating hundreds of heterogeneous homes. This paper addresses these challenges by modeling the interaction as a Stackelberg game, balancing grid stability with individual consumer preferences.

Methodology

The proposed framework designates a Coordination Agent as the leader, which sets a price vector to nudge the neighborhood toward a target total load. The participating homes act as followers, each running a Home Energy Management System (HEMS) to minimize costs and discomfort.

To solve the resulting bilevel optimization problem efficiently, the authors convert it into a single-level problem using Karush-Kuhn-Tucker (KKT) conditions. The core innovation lies in applying the implicit function theorem to calculate the gradient of a home’s optimal response to price changes. This allows for a distributed gradient-descent approach, as detailed in Algorithm 1.

Algorithm 1: Distributed gradient-based optimization framework for the coordination agent.

This distributed architecture preserves homeowner privacy, as the coordination agent only requires the resulting load profiles and gradients, rather than sensitive appliance usage data or specific comfort settings.

Experimental Setup

The study utilizes a simulated residential environment featuring HVAC systems, Electric Water Heaters (EWH), and Electric Vehicles (EV). Simulations were conducted for neighborhoods of 50, 100, and 250 homes over a 24-hour planning horizon (96 intervals of 15 minutes). Appliance parameters and user preferences were sampled from realistic probability distributions to ensure the robustness of the findings.

Results and Discussion

The distributed gradient-based approach demonstrated significant advantages over commercial solvers like Gurobi. In head-to-head comparisons, the proposed algorithm achieved objective values at least 30 times better within a 15-minute time limit. For larger scales (250 homes), where commercial solvers often failed to find feasible solutions, the gradient method provided effective results in seconds.

Load shaping performance showing the alignment of optimal power consumption with the target load profile.

As illustrated in Figure 2, the framework successfully "flattens" the neighborhood's demand curve. By treating comfort as a quadratic penalty rather than a hard constraint, the system ensures a "best-effort" solution that matches the target aggregate load without violating thermal comfort or EV charging requirements.

Conclusion

By bypassing the computational bottlenecks of Mixed-Integer Programming (MIP) and treating home-level responses as differentiable layers, this research provides a scalable path for smart grid adoption. Future work will explore integrating these gradient-based methods into the branch-and-bound processes of global solvers and refining appliance models to capture more complex user behaviors.

Summary updated

BibTeX
@inproceedings{ozcan2023stackelberg,
  author = {Erhan Can Ozcan and Ioannis Ch. Paschalidis},
  title = {{A Stackelberg Game Approach to Control the Overall Load Consumption of a Residential Neighborhood}},
  booktitle = {CDC},
  year = {2023},
  doi = {10.48550/arxiv.2306.10935},
}
Figure