Skip to text

6 The impact of optimization proxies

Optimization proxies have the potential to transform various classes of applications for which they may bring orders of magnitude improvements in efficiency. One such application is real-time risk-assessment of power systems. System operators are increasingly worried about the operational and financial risks in energy grids, given the significant growth in volatility coming from renewable sources of energy and the electrification of the transportation infrastructure. They are interested in dashboards able to quantify such risks in real time. Consider for instance the real-time risk-assessment framework described in Figure 9.8, which runs a collection of Monte Carlo scenarios. For each scenario, it is necessary to run 288 optimizations, one for every 5 minutes of the next 24 hours. These 288 optimizations for a specific scenario take about 15 minutes, and the risk assessment platform needs to evaluate thousands of them. By replacing these optimizations by a proxy, every scenario can now be evaluated in about 5 seconds [5]. It then becomes possible to quantify asset-level, system-level, and financial risks in an electrical power grid in real time. For instance, Figure 9.9 reports the probability of an adverse event for the next 24 hours using the risk assessment framework E2ELR [4] that uses the optimization proxies described earlier in this paper. It compares E2ELR with various learning architectures that have been proposed in the past (e. g., DeepOPF, DC3) and the ground truth (i. e., GRB) that denotes the risk assessment using a state-of-the-art optimization solver. The left figure depicts the probability of an adverse event on the balance constraint: both the ground truth and E2ELR show no such event. In contrast, the other methods systematically report potential adverse events, since they cannot guarantee feasibility of that constraint. The right figure shows the violations of the thermal limit of a congested line. Again, E2ELR isolates the potential violations with great accuracy. Other methods report many false positives across the day.

Figure 9.8 A risk assessment framework with optimization proxies.

Figure 9.9 Probability of an adverse event with a proxy-based risk assessment (from [4]).

Figure 9.10 Primal-dual learning for security-constrained optimal power flow (from [19]).

Optimization proxies also have the ability to deploy optimization models that would otherwise be too complex to meet real-time requirements. By shifting most of the computational burden offline during training, optimization proxies provide a way to produce high-quality solutions to optimization models that cannot be solved fast enough to meet real-time constraints. An interesting example is the security-constrained optimal power flow problem that captures the automatic primary response of generators in case of transmission line or generator contingencies. The solving of the SCOPF on a real network takes multiple hours, even using advanced optimization methods [27]. Interestingly, an optimization proxy, called PDL-SCOPF, that mimics the column and constraint generation algorithm of [27] can be trained in reasonable time and produce high-quality solutions in milliseconds [19]. The training is self-supervised and uses the primal-dual learning methodology presented earlier. The overall architecture is depicted in Figure 9.10: its repair layer, not only restores feasibility of the base (precontingency) dispatch, but also uses a binary search that computes the responses of the contingency dispatches. The resulting differentiable program, which uses a repair layer inspired by the original column and constraint generation algorithm [27], computes sophisticated DCGs at each iteration that are backpropagated to tune the primal fully connected network. On the RTE network (6,515 buses), PDL-SCOPF can be trained in less than 3 hours, and produces a feasible solution in 10 milliseconds with an optimality gap below 1 %.