End-to-end learning-based optimization framework for dynamic grid reconfiguration
The problem: In this project, we consider a problem in power grid operations: topology optimization. Imagine the power grid as a graph consisting of nodes (electrical buses where loads and generators are connected) and edges (the physical power lines connecting buses to one another). In topology optimization, we can reorganize the graph, to connect different nodes to one another by changing which edges are present. In the physical power grid, this consists of opening or closing switches in lines to either add or remove the electrical connection, sometimes called grid reconfiguration.
The math in words: To carry out topology optimization, we can write the decision as a mixed integer optimization problem: we want to decide which switches to turn on or off (the integer, or binary, decision) and also decide how much power each generator should produce (the continuous decision). We make these decisions to minimize a system cost (the objective function of the optimization problem). Let's consider the distribution system which distributes power from the transmission grid down to end use customers, like to the room you're sitting in right now. The distribution grid consists of lossy power lines, so a utility company may be interested in delivering power as efficiently as possible -- to maximize efficiency, they can minimize the line losses incurred from transporting power. Our objective function is then to minimize line losses, typically written as a quadratic function. The remainder of the optimization problem consists of the constraints:
Power physics: how power flows from one node to another, how voltages are related across the grid) which must be satisfied at all times. We consider the Linearized DistFlow model which is commonly used to model distribution grids.
Device/generator operating constraints: solar energy forecasts
Topological constraints: the distribution grid must be connected and radial, i.e. a tree connecting all nodes together
Our method: We propose a physics-informed ML approach. Specifically, we want to embed the discrete decisions of switch on/off status directly within the machine learning loop, so that our framework can be trained end-to-end. Our ML framework consists of a very simple neural network (just 2 layers based on the Universal approximation theorem) which predicts the probability that every switch is open or closed, and the voltages at all nodes in the grid. Then, we design a physics-informed rounding (PhyR) layer which converts the switch open/close probabilities to discrete decisions. We leverage the topological constraints (mainly the radiality) to design the PhyR layer. The radiality constraint explicitly describes the number of switches that can be open or closed in the grid -- let's call this X. We use this information to consider the relative probabilities of the switches: we close X switches with the highest probability of being closed (i.e. the power line is added) and we open the remaining switches (i.e. the power line is removed). This simple approach allows us to effectively learn how to solve the topology optimization problem. Additional details of the framework can be found in our paper.