<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Load Embeddings for Scalable {AC-OPF} Learning</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>03/14/2023</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10337584</idno>
					<idno type="doi"></idno>
					<title level='j'>ArXivorg</title>
<idno>2331-8422</idno>
<biblScope unit="volume">abs/2101.03973</biblScope>
<biblScope unit="issue"></biblScope>					

					<author>Terrence W. Mak</author><author>Ferdinando Fioretto</author><author>Pascal Van Hentenryck</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[AC Optimal Power Flow (AC-OPF) is a fundamental building block in power system optimization. It is often solved repeatedly, especially in regions with large penetration of renewable generation, to avoid violating operational limits. Recent work has shown that deep learning can be effective in providing highly accurate approximations of AC-OPF. However, deep learning approaches may suffer from scalability issues, especially when applied to large realistic grids. This paper addresses these scalability limitations and proposes a load embedding scheme using a 3-step approach. The first step formulates the load embedding problem as a bilevel optimization model that can be solved using a penalty method. The second step learns the encoding optimization to quickly produce load embeddings for new OPF instances. The third step is a deep learning model that uses load embeddings to produce accurate AC-OPF approximations. The approach is evaluated experimentally on large-scale test cases from the NESTA library. The results demonstrate that the proposed approach produces an order of magnitude improvements in training convergence and prediction accuracy.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head>I. INTRODUCTION</head><p>The AC Optimal Power Flow (AC-OPF) is an optimization model that finds the most economical generation dispatch meeting the consumer demand, while satisfying the physical and operational constraints of the underlying power network <ref type="bibr">[1]</ref>. The AC-OPF, together with its approximations and relaxations, constitutes a fundamental building block for power-system applications, including security-constrained OPF (e.g., <ref type="bibr">[2]</ref>), transmission switching (e.g., <ref type="bibr">[3]</ref>), capacitor placement (e.g., <ref type="bibr">[4]</ref>), expansion planning (e.g., <ref type="bibr">[5]</ref>), and stability-constrained OPF (e.g., <ref type="bibr">[6]</ref>).</p><p>The non-convexity of the OPF limits the frequency of many operational tools. However, in practice, generation schedules are often required to be updated every few minutes <ref type="bibr">[7]</ref>. Additionally, the integration of renewable energy and demand response programs <ref type="bibr">[8]</ref>, creates significant stochasticity in load and generation. Therefore, setting generation schedules based on historical data may lead to sub-optimal dispatches and, in the worst cases, causes voltage and/or stability issues. Balancing generation and load rapidly without sacrificing economical efficiency is thus an important challenge.</p><p>To cope with the OPF computational complexity, system operators typically solve OPF approximations (e.g., DC-OPF models) with a fast load flow solver (e.g., fast-decouple methods) to check reactive capabilities and voltage issues. While more efficient than solving AC-OPF problems, this process may lead to sub-optimal solutions, substantial economical losses, and possibly convergence issues.</p><p>Recently, an interesting line of research has focused on how to approximate AC-OPF using Deep Learning Networks (DNN) <ref type="bibr">[9]</ref>- <ref type="bibr">[11]</ref>. Once a neural network is trained, predictions can be computed in the order of milliseconds with a single forward pass through the network. Approximating OPF using deep neural networks can be seen as an empirical risk minimization problem under physical and engineering constraints <ref type="bibr">[12]</ref>, <ref type="bibr">[13]</ref>. Preliminary results have been encouraging, showing that DNNs can approximate the generator set-points of AC-OPF with high accuracy. However, these learning models tend to have very large number of parameters, and these numbers scale with the size of the test case. This raises significant scalability and convergence issues during training, restricting the potential applicability of deep learning for AC-OPF.</p><p>This paper proposes a novel approach to address the scalability issues of deep learning approaches to AC-OPF. The proposed approach is a load embedding scheme that reduces the input dimension (i.e., the number of loads) of the deep learning network. The approach is based on the recognition that, in many circumstances, aggregating loads at adjacent buses does not fundamentally change the nature of AC-OPF. The load embedding scheme has two key components:</p><p>1) an optimization model for load aggregation that reduces the number of loads in an OPF instance, while staying close to the optimal AC-OPF cost; 2) a learning model for load embedding that, given loads for an AC-OPF instance, returns a set of encoded loads of smaller dimensions. The load aggregation optimization is modeled as a bilevel optimization which is then approximated by replacing the lower level by a set of active, thermal, and voltage constraints. The resulting single-level model is then solved using a penalty method. The learning model for load embedding learns to mimic this optimization model and the paper explores both a baseline linear model and a DNN for learning to encode.</p><p>Once the load encoder has been learned, the OPF learning task can be performed using an architecture similar to the one in Figure <ref type="figure">1</ref>. The encoder first computes a load embedding, which are then used as inputs to a DNN architecture in order to predict the active and reactive power of generators. 1 The encoder and AC-OPF learning models do not share parameters and are trained in sequence. The proposed approach first learns the encoder and then trains the AC-OPF DNN using the outputs of the learned encoder.</p><p>The approach has been evaluated on a wide range of NESTA test cases <ref type="bibr">[14]</ref> and the results show that the proposed encoding can produce significant dimensionality reduction. The resulting architecture also exhibits significant improvements in convergence and prediction accuracy: indeed, the resulting AC-OPF learning can be an order of magnitude faster while, at the same time, improving the overall learning accuracy.</p><p>The approach thus has the potential to provide an interesting and novel avenue to improve grid operations under significant penetration of renewable energy. The main contributions of this paper can be summarized as follows: 1) it proposes a bilevel optimization for load embedding; 2) it shows how to approximate the bilevel optimization by using a penalty method; 3) it presents learning models for load embeddings; 4) it proposes a scalable DNN architecture leveraging load embeddings for learning AC-OPF; 5) It demonstrates the potential of the proposed architecture on realistic test cases with thousands of buses and lines, showing improvements of an order of magnitude in training convergence and prediction accuracy.</p><p>The rest of the paper is organized as follows. Sections II and III present the related work and technical background. Section IV introduces the optimization models for load embedding. Section V presents that machine-learning models for load encoding. Section VI reviews the proposed scalable learning architecture for AC-OPF. Section VII reports the experimental results and Section VIII concludes the paper.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>II. RELATED WORK</head><p>Power network reduction techniques, such as Kron and Ward reduction <ref type="bibr">[15]</ref> and Principle Component Anaylsis <ref type="bibr">[16]</ref>, have been widely used in the industry for more than 70 years. Early techniques focused on crafting simpler equivalent circuits to be used by system operators for analysis. With the advancement of computer technology and lower computation costs, complex reduction models became more feasible, e.g., models preserving line limits <ref type="bibr">[17]</ref> and models handling dynamics <ref type="bibr">[18]</ref>- <ref type="bibr">[20]</ref>. While it is possible to use classical reduction techniques to reduce the size of power systems before applying a machine learning model, the learned model can only predict the reduced networks and with a potentially lower fidelity, compared to a learning approach on the original networks. The approach proposed in this paper focuses on dimensionality reduction for deep neural networks: its goal is Model 1 OpS d q: AC Optimal Power Flow input: S d i @i P N variables: S g i , Vi @i P N, Sij @pi, jq P E Y E R minimize:</p><p>subject to: =Vs " 0, s P N (2)</p><p>&#952; l ij &#271; =pViV j q &#271; &#952; u ij @pi, jq P E (4)</p><p>to reduce the input size, and consequentially the number of learnable parameters, while retaining the prediction accuracy for the optimal generation dispatches and their costs. Dimension reduction is an important and widely studied topic in machine learning, and reduction techniques have been successfully applied on various learning applications in power systems. For example, auto-encoders have been applied to predict renewable productions, e.g., wind <ref type="bibr">[21]</ref> and solar <ref type="bibr">[22]</ref> generations, and to detect false data injection attacks <ref type="bibr">[23]</ref>. The proposed approach differs from general auto-encoder techniques on several aspects. First, the load embeddings are explicitly computed through a bilevel optimization model and not implicitly trained by an auto-encoder. Second, the computed load embeddings are AC-feasible, and their optimal power flows have the same cost as the original ones. Third, the reduced dimensionality is determined by optimization models instead of being chosen a-priori before training.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>III. BACKGROUND</head><p>This paper uses the rectangular form for complex power S " p`jq and line/transformer admittance Y " g `jb, where p and q denote active and reactive powers, and g and b denote conductance and susceptance. Complex voltages are in polar form V " ve j&#952; , with magnitude v " |V | and phase angle &#952; " =V . Notation x &#730;is used to represent the complex conjugate of quantity x and notation x the prediction of quantity x. The reduction percentage from an original value v to a reduced value v r is computed by formula: 100% &#710;pv &#180;vr q{v.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A. AC Optimal Power Flow</head><p>The AC Optimal Power Flow (OPF) determines the most economical generation dispatch balancing the load and generation in a power network (grid). A power network N is represented as a graph pN, Eq, where the set of nodes N represent buses and the set of edges E represent branches (including AC/DC transmission lines and transformers). Since edges in E are directed, E R is used to denote arcs in the reverse direction. The AC power flow equations are expressed in terms of complex quantities for voltage V , admittance Y , and power S. Model 1 presents the AC OPF formulation, with variables and parameters in the complex domain. Superscripts u and l are used to indicate upper and lower bounds for variables. The objective function OpS g q captures the cost of the generator dispatch, with S g denoting the vector of generator dispatch values pS g i | i P N q. Constraint (2) sets the voltage angle of an arbitrary slack bus s P N to zero to eliminate numerical symmetries. Constraints (3) bound the voltage magnitudes, and constraints (4) limit the voltage angle differences for every branch. Constraints (5) enforce the generator output S g i to stay within its limits rS gl i , S gu i s. Constraints (6) impose the line flow limits s u ij on all the line flow variables S ij . Constraints (7) capture Kirchhoff's Current Law enforcing the flow balance of generations S g i , loads S d i , and branch flows S ij across every node. Finally, constraints (8) capture Ohm's Law describing the AC power flow S ij across lines/transformers.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B. Deep Learning Models</head><p>Deep Neural Networks (DNNs) are learning architectures composed of a sequence of layers, each typically taking as inputs the results of the previous layer <ref type="bibr">[24]</ref>. Feed-forward neural networks are basic DNNs where the layers are fully connected and the function connecting the layer is given by y " &#960;pW x `bq, where x P R n is an input vector with dimension n, y P R m is the output vector with dimension m, W P R m&#710;n is a matrix of weights, and b P R m is a bias vector. Together, W and b define the trainable parameters of the network. The activation function &#960; is non-linear (e.g., a rectified linear unit (ReLU)).</p><p>This paper uses the following OPF-DNN models from <ref type="bibr">[9]</ref> to validate the quality of the proposed embedding scheme:</p><p>where the input vector x " pp d , q d q represents the vector of active and reactive loads, and the output vector y represents either the vector of active and reactive generation dispatch predictions y " pp g , q g q or the vectors of voltage predictions y " pv, &#952;q. Learning these DNN models consists in finding matrices W 1 , W 2 , W 3 , and the associated bias vectors b 1 , b 2 , b 3 , to make the output prediction &#375; close to the ground truth y, as measured by a loss function L, i.e., the mean squared error in this paper.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>IV. DIMENSIONALITY REDUCTION BY LOAD EMBEDDING</head><p>This section motivates the concept of load embedding, which is formalized using a bilevel optimization model. For computational reasons, this bilevel model is relaxed into a single level model that is solved using a penalty method.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A. Motivation</head><p>Transmission systems are typically large and involve tens of thousands of buses and loads. The associated neural networks in ( <ref type="formula">9</ref>) become large and difficult to train efficiently, since the sizes of their hidden layers are proportional to the input sizes. For example, in the model from Fioretto et al. <ref type="bibr">[9]</ref>, the dimensions of h 1 can be as large 4|N | if there is a load at each bus. The proposed dimensionality reduction is motivated by the observation that, unless there is significant congestion or line power losses, moving a unit of load between two adjacent buses, will not have a major effect on the final dispatch. Therefore, training on a smaller version of the network that aggregates similar loads may be beneficial to the learning approach, while preserving the fidelity of the underlying operations. This section explores an encoder to perform such an aggregation.  <ref type="formula">2</ref>) &#180;( <ref type="formula">8</ref>)</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B. The Bilevel</head><p>(Reactive Load Equiv.) ( <ref type="formula">14</ref>)</p><p>Its goal is to find the embedded loads pp d i , q d i q (i P N ) which are the key decision variables. Objective <ref type="bibr">(10)</ref> minimizes the number of nonzero loads using an indicator function. Constraints <ref type="bibr">(11)</ref> imposes the power flow equations. Constraints <ref type="bibr">(12)</ref> ensure that the generation dispatch remains the same, given that they are the targets of the learning task. Constraints ( <ref type="formula">13</ref>) and ( <ref type="formula">14</ref>) require the sum of the active and reactive loads to remain the same after the encoding. Together, these constraints ensure that the loads are AC-feasible for the original generation dispatch. However, they do not guarantee that they could not be served by a significantly better generator dispatch. This is the role of constraint ( <ref type="formula">15</ref>) that ensures the encoded load vector S d " p d `jq d induces an optimal flow with cost close to the original cost O o (within a tolerance parameter &#946;). This constraint uses an AC-OPF optimization as a subproblem, creating a bilevel model.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C. Load Embedding with Congestion Constraints: Model M R</head><p>Optimization model M BL is challenging for two reasons: (1) it implicitly features discrete variables through the indicator variables in its objective; (2) it is a bilevel optimization problem. The first challenge can be addressed by replacing its discrete objective by a continuous expression that maximizes the square of the apparent power of each load, i.e., max</p><p>Objective ( <ref type="formula">16</ref>) encourages active and reactive loads to be aggregated without the need of binary variables.</p><p>Algorithm 1: Load Encoding Input : N : power grid data; &#961; v , &#961; s : penalty steps; p&#946; v , &#946; s q : constraint tolerances; &#946; : cost tolerance; i u : max iteration limit. Output: S d " pp d , q d q 1 for i " 0, 1, 2, . . . , i u do 2</p><p>The second challenge can be addressed by replacing constraint <ref type="bibr">(15)</ref> by proxy constraints that characterize the OPF. Indeed, in the original OPF, a number of voltage and thermal constraints are binding. Imposing constraints on the associated voltages and flows will help in keeping the optimal cost close to the original cost. Let N l and N u be the set of buses with binding lower and upper constraints on voltages, and E u be the set of lines with binding thermal limit constraints. Constraint (15) can be relaxed and reformulated as:</p><p>where &#946; v and &#946; s are the tolerance parameters for the tightness of the original binding constraints. The relaxed model M R is then defined as:</p><p>&#180;(8) (AC Power Flow) <ref type="bibr">(12)</ref> &#180; <ref type="bibr">(14)</ref> (Equiv. Constr.) <ref type="bibr">(17)</ref> &#180; <ref type="bibr">(19)</ref> (Congestion Constr.)</p><p>D. Load Embedding with a Penalty Method: Model M P Model M R requires the choice of tolerance parameters &#946; v and &#946; s . If these tolerances are too tight, it may not be possible to aggregate loads effectively. If they are too loose, the resulting predictions may be inaccurate. To overcome this difficulty, this paper uses a penalty method. 2 The resulting model</p><p>&#180;( <ref type="formula">8</ref>) and ( <ref type="formula">12</ref>) &#180;( <ref type="formula">14</ref>)</p><p>and it can be solved iteratively by increasing &#946; v and &#946; s until ( <ref type="formula">15</ref>) is satisfied, using Algorithm 1.</p><p>2 Alternatively, it is possible to use an Augmented Lagrangian Method. Experimental results have shown that the encoding quality is similar but solving times were slightly longer for the latter.</p><p>V. LEARNING TO ENCODE Algorithm 1 computes the best load embedding for a load profile S d . It is appropriate to provide embeddings as inputs when training and validating machine-learning models. But, obviously, Algorithm 1 cannot be used at prediction time, since this would defeat the purpose of using machine learning to speed up OPF computations. To overcome this difficulty, the paper proposes to learn the encoder, and explores two learning schemes: (1) a linear regression</p><p>and (2) a deep neural network similar to (9)</p><p>The input vector is the load vector x " pp d , q d q and the output vector is the embedded load vector z " p pd , qd q. The structure of the output, i.e., the embedded load vector, is obtained by removing the loads that are relocated in all the training instances. For the full NN-encoder, the dimension of the first and second layers are set to twice of the dimensions of the input and the output vectors respectively. For a data set collection D " tpx i , z i q : i P r1 . . . nsu with n test cases where the outputs z i are computed using Algorithm 1, the goal of the learning task is to find the model parameters W and b that minimize the empirical risk function:</p><p>where m P tL, F u is used to discriminate the model adopted.</p><p>Once the training is complete, any output element pd or qd that is always zero (i.e., the load is always aggregated elsewhere) can be removed in order to provide a more compact input to OPF predictor.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>VI. SCALABLE OPF LEARNING</head><p>Once the load encoder has been learned, the OPF learning task is performed using the architecture in Figure <ref type="figure">1</ref>. NN layers (tensors) are represented by rectangular boxes and arrows represent connections between layers. The architecture uses fully connected layers with ReLU as the activation functions. Notice that the encoder is pre-trained, so the learning task will not affect its parameters. The dimensions of h 1 and h 2 of the OPF layers are set to twice of the dimension of the input and the output vectors respectively as in <ref type="bibr">[9]</ref>. a) Leveraging Physical Constraints: Unless required to, the encoder does not preserve the values of many physical parameters, including phase angles, voltage magnitudes, and line flows. However, these physical values on the reduced network, which are available as a result of Algorithm 1, are important to improve prediction accuracy using, for instance, a Lagrangian dual approach as in <ref type="bibr">[9]</ref>. Although they are not useful for prediction purposes, they can enhance the loss function, which can now include penalities for the violations of physical constraints. b) Predicting the Generator Setpoints: The approach can be extended to predict the voltage magnitude setpoints v g for each of the generators. Figure <ref type="figure">2</ref> shows how to add a new DNN to the existing OPF-DNN architecture to predict the voltage magnitudes. The added DNN takes, as input, the existing output layer y " p pg , qg q, is defined as</p><p>3 u, and produces the predictions vg for the generator voltage magnitudes. The learning task has the additional parameters W 1 and b 1 , and the additional loss function min</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>VII. EXPERIMENTAL EVALUATION</head><p>This section presents the experimental results. a) Experimental Setting: The experiments were performed on various NESTA <ref type="bibr">[14]</ref> benchmarks, and Algorithm 1 was implemented on top of PowerModels.jl <ref type="bibr">[25]</ref>, a state-ofthe-art Julia package for solving or approximating AC-OPF. The tolerance &#946; was set to 0.5%, i u " 500, and parameters &#961; v and &#961; s were both set to 1.5.</p><p>The OPF data sets were generated by varying the load profiles of each benchmark network from 80% to 120% of their original (complex) load values, with a step size of 0.02%, giving a maximum of 2000 test cases for every benchmark network. For each test case, to create enough diversity, every load is perturbed with random noise from the polar Laplace distribution whose parameter &#955; is set to 10% of the apparent power. Higher values of noise typically create infeasible test cases. Test cases, with no feasible AC solutions, were removed from the data set. The remaining cases were split with 80%-20% ratio for training and validation.</p><p>The OPF-DNN models, as well as the encoding models (E L {E F ), were implemented using PyTorch <ref type="bibr">[26]</ref> and run with Python 3.6. They used the Mean Squared Error (MSE) as loss function. The training was performed using Tesla-V100 GPUs with 16GBs HBM2 ram on machines with Intel CPU cores at 2.1GHz. The training used Averaged Stochastic Gradient Descent (ASGD) with learning rate 0.001 and 3000 epochs.</p><p>b) Compression Ratios and Efficiency of Algorithm 1: This section studies the compression ratios, the accuracy loss, and the efficiency of Algorithm 1. Table <ref type="table">I</ref> shows the active and reactive load compression ratios (in percentages), the OPF error (in percentage), and the CPU time of Algorithm 1. Let c p  and c q be the number of (non-zero) active and reactive loads, c e p and c e q be the number of (non-zero) embedded active and reactive loads by running Algorithm 1, and O o and O e be the original and "embedded" OPF costs. The compression ratios for active and reactive loads, and the OPF error, are given by 100% &#710;pc p &#180;ce p q{c p , 100% &#710;pc q &#180;ce q q{c q , and 100% &#710;pO o &#211;e q{O o respectively. Almost all NESTA benchmarks achieve a load compression ratio (both active &amp; reactive) over 50%, and the OPF errors are well within the prescribed 0.5% of the original cost O o . Encoding large benchmarks with Algorithm 1 may take time as the results indicate, but this is performed offline before training.</p><p>Table <ref type="table">II</ref> shows, for each test case, the dimension (i.e., c p `cq ) for the load vector (p d ,q d ) in the original data set and compares it to the reduced dimension for the load vector ( pd ,q d ). This reduced dimension is computed by running algorithm Algorithm 1 on the (&#171; 2000) test cases for each benchmark data set and removing the loads that are always assigned to zero. Remarkably, given the wide range of considered loads, many of the test cases (except the 118 and 1460 cases) achieve a significant dimensionality reduction.</p><p>Of particular interest are the large RTE test cases whose dimensions are reduced by 24% and 28% and the large wp_mp test cases whose dimensions are reduced by 55% and 57%.</p><p>c) Encoder Learning: This section presents results on the learning of the encoder. Figure <ref type="figure">3</ref> shows, on three large test cases, the Mean Squared Errors (averaged by the number of training cases) and cumulative runtimes in seconds for training the linear encoder E L and the full-NN encoder E F . The linear encoder trains faster than the full-NN encoder, but its prediction errors, albeit small, are almost always larger than the full-NN encoder.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>d) OPF Prediction Errors:</head><p>This section shows that learning with encoders almost always reduces prediction errors, which is interesting in its own right. Table <ref type="table">III</ref> and Table IV depict the prediction results for three variants of OPF-DNN models on the testing data set: a) no encoder, b) the OPF-DNN architecture with encoder E L , and c) the OPF-DNN architecture with encoder E F . Table <ref type="table">III</ref> reports the averaged L1-losses &#168; 1 for the main predictions, i.e., the active and  reactive generation dispatches, using the formula</p><p>where N G is the set of generators and T is the set of testing data. </p><p>The results demonstrate the effectiveness of the proposed encoders, which yield predictors with smaller errors. Interestingly, even for the 118 bus and 1460 bus benchmarks, which have no dimensionality reduction, the generation dispatch errors are reduced by an order of magnitude. The key motivation of this paper is of course to speed up the learning task. This section demonstrates that the OPF-DNN architecture with load encoding quickly converges to an accuracy that is an order of magnitude better than full OPF-DNN architecture. Figure <ref type="figure">4</ref> shows the combined MSE losses (in log scale) for the three OPF-DNN architectures during the training phase for the 1394, 1460, and 3375 bus benchmarks. The results averaged by the number of training cases as sections. The full NN-encoder is almost an order of magnitude more accurate than the base model, and consistently better than the linear encoder model. Both load-encoding architectures outperforms the base model early convergence period (within 500 epochs), a convergence gap still exists even after the error curves have flattened (e.g., after 2500 epochs). These results indicate that load reduction yields both a better training convergence and smaller prediction errors.</p><p>f) Predicting Generator Voltage Setpoints: Table <ref type="table">V</ref> is the counterpart to Table <ref type="table">III</ref>: it reports, on selected benchmarks, the averaged L1-losses &#168; 1 for the generator voltage setpoint predictions using the formula:</p><p>where N G is the set of generators and T is the set of testing instances. The results again demonstrate the effectiveness of the proposed encoders, which yield predictors with smaller errors when instances are large. Figure <ref type="figure">5</ref> shows the MSE losses (in log scale) for the generator voltage predictions during the training phase for the 39, 189, and 2848 rte bus benchmarks. The results are largely similar to prior results and show the significant benefits on load embeddings on the larger test cases.</p><p>g) OPF-DNN with Constraints: To analyze whether load encoding is useful across different learning models, this section reports accuracy and convergence results for the OPF-DNN with constraints and Lagrangian multipliers (proposed by Fioretto et al. <ref type="bibr">[9]</ref>). Table VI and Table VII depict the validation results for three variants of OPF-DNN models: a) with no load encoder; b) with a trained linear encoder E L ; and c) with a trained full NN-encoder E F . Figure <ref type="figure">6</ref> shows the combined MSE losses (in log scale), and "Mem Err" is used    VIII. CONCLUSION This paper studied how to improve the scalability of deep neural networks for learning the active and reactive powers of generatorsin AC-OPF. To address computational issues that arise in learning AC-OPF over large networks, this paper proposed a load encoding scheme for dimensionality reduction and its associated deep learning architecture. The load encoding scheme consists of (1) an optimization model to aggregate loads for each instance; and (2) a deep learning model that approximates the load encoding. The learned encoder can then be included in a deep learning architecture for AC-OPF and produces an order of magnitude improvement in training convergence and prediction accuracy of realistic test cases with thousands of buses and lines. These results show the potential of the approach in improving the scalability of deep learning for power systems.</p></div></body>
		</text>
</TEI>
