Learning Provably Stable Local Volt/Var Controllers for Efficient Network Operation
Abstract
This paper develops a data-driven framework to synthesize local Volt/Var control strategies for distributed energy resources (DERs) in power distribution grids (DGs). Aiming to improve DG operational efficiency, as quantified by a generic optimal reactive power flow (ORPF) problem, we propose a two-stage approach. The first stage involves learning the manifold of optimal operating points determined by an ORPF instance. To synthesize local Volt/Var controllers, the learning task is partitioned into learning local surrogates (one per DER) of the optimal manifold with voltage input and reactive power output. Since these surrogates characterize efficient DG operating points, in the second stage, we develop local control schemes that steer the DG to these operating points. We identify the conditions on the surrogates and control parameters to ensure that the locally acting controllers collectively converge, in a global asymptotic sense, to a DG operating point agreeing with the local surrogates. We use neural networks to model the surrogates and enforce the identified conditions in the training phase. AC power flow simulations on the IEEE 37-bus network empirically bolster the theoretical stability guarantees obtained under linearized power flow assumptions. The tests further highlight the optimality improvement compared to prevalent benchmark methods.
Index Terms:
Distributed energy resources, global stability, local control, Volt/Var control.I Introduction
The deployment of a massive number of distributed energy resources (DERs) in power distribution grids (DGs) is dramatically changing the electric power grid. Primarily driven by sustainability and economic incentives, DERs present additional opportunities, including reductions in the power generation costs and of greenhouse gas emissions. Nevertheless, DERs’ uncoordinated power injections or sudden generation changes could pose challenges to system operations and stability, e.g., induce undesirable voltage deviations in DGs. To facilitate their integration in power grids, DERs are being provided with sensing and computational capabilities, hence becoming smart agents. DERs can exploit the flexibility of their power electronic interface to perform, among other ancillary services, reactive power control. They can also take advantage of the widespread availability of data from DGs and the increased capabilities for storing and processing the data to learn effective control policies. This paper aims to leverage learning in the synthesis of local Volt/Var controllers for voltage regulation incorporating optimality considerations and rigorous performance guarantees.
Literature Review
The main goal of Volt/Var control strategies is to keep voltages within safe preassigned limits by commanding DERs’ reactive power injections. Classically, DERs’ reactive power outputs are computed, in an open-loop fashion, by the system operator solving optimal power flow (OPF) problems. Efficient and advanced solvers for OPF problems are available, see, e.g. [1, 2, 3]. However, high penetration of renewable generation and increased variability of DGs require solving numerous instances of OPF problems within a limited time frame. Aiming to tackle this challenge, several learning-based approaches have been proposed to predict OPF solutions, see, e.g., [4, 5, 6, 7, 8], to mention a few. Once trained, the inference time for these approaches when presented with a new input is minimal. Nevertheless, the solution of OPF problems requires information from all the buses. Specifically, power demands from loads and generation limits from generators must be precisely known. Such requirements are prohibitive for practical DGs because, in general, not all the buses are monitored in real time, individual loads are unlikely to announce their demand profiles in advance, and the availability of small size generators is hard to predict.
This has motivated the development of closed-loop strategies, which compensate for the lack of information with measurements retrieved from the field. Given the massive number of controllable devices envisioned to be hosted in future DGs, decentralized approaches are often advocated for practical applications. There are two notable classes of decentralized algorithms. The first consists of distributed algorithms in which agents cooperate and share information with peers. Distributed algorithms can achieve optimal performance in the sense that they can be designed to exactly solve a given OPF instance, see, e.g., [9]. Optimization-based feedback controllers that steer the network toward solutions to OPF problems based on the cyclical alternation of sensing, communication, and actuation have recently become popular [10, 11, 12]. Nevertheless, distributed strategies are suitable for systems endowed with a reliable real-time communication network meeting precise and strict requirements, which are rarely satisfied in practice for DGs. For instance, in many works, each generator is required to share information with all its neighbors in the power network before every power output update [10]. The second class of decentralized algorithms consists of local approaches, in which each agent makes decisions based only on information available locally. In local schemes, reactive power compensations are adjusted based merely on measurements taken locally. Even though pertinent standards allow DERs to provide reactive power compensations following static Volt/Var control rules, see IEEE standard 1547 [13], the literature has provided a variety of options for local voltage regulation [10, 14, 15, 16]. However, local schemes have intrinsic performance limitations, e.g., they might fail to regulate voltages even if the overall generation resources are enough [17].
Recent advances in data-driven and learning-based control seek to leverage data from the plant to learn optimal controllers. Though impressive results have been demonstrated, it has not yet been widely used in engineering practice due to the lack of closed-loop stability guarantees. Various results have been developed to tackle this problem, see e.g., a comprehensive review [18]. Although most of these works achieve the stability of neural network control by using penalty functions to integrate the stability requirement as soft constraints, recent work in power systems, primarily on frequency control, seeks to explicitly engineer the neural network structure to integrate the stability requirement as hard constraints, see, e.g., [19, 20]. In the context of Volt/Var control, the goal is to leverage learning techniques to enhance the performance of local control schemes and reduce the gap with distributed and/or optimal controllers, while retaining closed-loop system stability. Related works include [21] and [22], where reinforcement learning is used to learn stability-guaranteed local Volt/Var control schemes. However, the former enforces stringent derivative constraints on the policies to be searched, whereas the latter only guarantees that the voltages converge to a region, instead of an equilibrium point, and both of them require the control policy to be continuously differentiable. Furthermore, neither of them takes accounts for the reactive power capacity limitations, which are critical when dealing with small-size generators. Recent works [23, 24] optimize the local Volt/Var control schemes though interval optimization with a day-ahead schedule, while preserving closed-loop system stability. However, the considered local Volt/Var curves are limited to a piecewise linear form, and might suffer non-negligible optimality gaps. Other works provide interesting insights on learning Volt/Var rules, but do not assess the stability of the overall system and hence are not straightforwardly suitable for practical applications: [25, 26] leverage segmented linear regression techniques to learn local surrogates that predict OPF solutions, [27] proposes to learn the local controller by taking as an input both voltages and active power setpoints, and [28] proposes a framework for tuning the parameters of standard piecewise linear local voltage regulators.
Statement of Contributions
We propose a framework for designing local Volt/Var scheme whose goal is to not only regulate voltages but also act as local surrogates of optimal reactive power flow (ORPF) problem solvers. ORPF problems are particular instances of OPF problem in which the goal is to optimize the generator’s reactive power injections. We base our work on the distinction between the control function and the equilibrium function. The first represents the reactive power update rule, and the latter describes the possible system equilibrium points. In many works, the equilibrium functions coincide with the control functions, but this is not the case for our framework. We advocate for a two-stage strategy. In the first stage, for each controllable node, the equilibrium function providing the ORPF solution surrogates is learned from historical data. Precisely, such a function receives as input the local voltage and gives as an output an approximation of the optimal reactive power setpoint. In the second stage, we devise a control function whose equilibrium points are exactly the ORPF approximated solutions provided by the equilibrium functions. The novelties of our paper with respect to the recent literature can be summarized as:
-
•
The equilibrium functions are not forced to be (piecewise) linear and are not subject to slope limitations [10, 14, 15]. This relaxes several restrictive constraints on equilibrium functions, which leads to an enlarged search space of potential candidates of desired OPRF surrogates, thus reducing the optimality gap.
-
•
The control rule is globally asymptotically stable, as opposed to algorithms that are locally asymptotically stable [16, 21] or whose stability is not analytically characterized. Our design provably steers the system to the desirable configuration described by the equilibrium functions irrespective of the initial reactive power injection.
-
•
We introduce the idea of pseudo data points to enhance the voltage regulation capability of learned controllers when voltages are not within the desired limits.
With respect to its preliminary version [29], this work differs as follows: it relaxes the differentiability requirement on the control rule; it establishes global, rather than local, stability guarantees for the control scheme; it provides a more general design of neural networks in the learning process; and it uses of pseudo data points.
Outline
The paper is organized as follows. In Section II, we model a power distribution network and define the problem of interest. Section III introduces the control scheme, states its stability properties, and identifies conditions on the equilibrium functions needed for the system stability. Sections IV describes the learning process: precisely, it reports how we construct the data set used for learning and how we parameterize the equilibrium function with a neural network to meet the required conditions by design. Numerical simulations in Section V validate the proposed approach and show significant improvements with respect to prevalent benchmark methods. Finally, Section VI concludes this work.
Notation
Throughout the paper, and denote the set of real and complex numbers, respectively. Upper and lowercase boldface letters denote matrices and column vectors, respectively. Sets are represented by calligraphic symbols. Given a vector (a diagonal matrix ), its -th (diagonal) entry is denoted by . denotes that matrix is positive (semi-) definite, and denotes that matrix is negative (semi-) definite. The symbol stands for transposition, and denote vectors of all ones and zeros and identity matrix with appropriate dimensions, respectively. Operators and extract the real and imaginary parts of a complex-valued argument, and act element-wise. With a slight abuse of notation, we use to denote the absolute value for real-valued arguments, the magnitude for complex-valued arguments, and the cardinality when the argument is a set. represents the Euclidean norm. Given a symmetric matrix , and represent its largest and smallest eigenvalue, respectively. For any matrix , it holds that . The graph of a function is the set of all points of the form , whereas the range of is the set of its possible output values.
II Grid Modeling and Problem Formulation
Consider a balanced three-phase power distribution network111Although the analysis and algorithms developed in this work consider balanced grids, contemporary research has demonstrated applicability of related approaches to unbalanced multiphase networks [24, 30]. We leave for future research a rigorous and detailed extension of our findings to encompass unbalanced grids. with buses represented by its single-phase equivalent and modeled as an undirected graph , where are associated with the electrical buses, and represents the set of the electrical lines between these buses. We label the substation node as 0, and assume that it behaves as an ideal voltage source imposing the nominal voltage of 1 p.u. Define the following quantities:
-
•
is the voltage phasor at bus ;
-
•
is the voltage magnitude at bus ;
-
•
is the injected current phasor at bus ;
-
•
is the nodal complex power injection at bus , where are the active and reactive powers, respectively. Powers take positive (negative) values, i.e., (), when they are injected into (absorbed from) the grid.
We use vectors to collect the complex voltages, currents, and complex powers of buses , and vectors to collect their voltage magnitudes, and active and reactive power injections. Denote by and by the impedance and the admittance of line , respectively. The network bus admittance matrix is a symmetric matrix that can be expressed as , where
and the vector collects the shunt components of each bus. The matrix is a complex Laplacian matrix, and hence satisfies . We partition the bus admittance matrix by separating the components associated with the substation and the ones associated with the other nodes, obtaining
with , , and . If the network is connected, then is invertible [31]. Let , the power flow equations are
(1a) | ||||
(1b) | ||||
(1c) | ||||
(1d) | ||||
(1e) |
where denotes the complex conjugate of and . Eq. (1a) represents the Kirchoff equations and provides the relation between voltages and currents. Eqs. (1b) and (1c) hold because the substation is modeled as the slack bus. Eq. (1d) comes from the fact that all the nodes, except the substation, are modeled to be constant power buses.
Assume a subset of buses hosts DERs, with . Every DER corresponds to a smart agent provided with some computational sensing capability, i.e., it measures its voltage magnitude. The remaining nodes constitute the set and are referred to as loads. For convenience, we partition the reactive powers and the voltage magnitudes by grou** together the nodes belonging to the load and generation sets
Motivated by practical considerations, we assume that the grid is not endowed with a communication network that can be used by agents, loads, and the system operator to share information in real-time. As a notable consequence, load demands are not known to the system operator or to agents in real time, preventing the use of open-loop strategies for computing the power outputs. The (averaged) demands could, however, be reported on a hourly/daily basis for slow-timescale applications such as billing.
The massive deployment of DERs in DGs might induce voltage quality issues. For example, sudden generation drops could lead the voltages of a network with high penetration of renewables below desired operational limits and even close to collapse. Since DERs are able to provide ancillary services, reactive power compensation can be used to regulate voltage profiles. Ideally, one wants the DER reactive power setpoints to be the solution of an optimal reactive power flow (ORPF) problem of the form222More comprehensive OPRF problems could in principle be of interest in practical applications, e.g., considering line flows limitations as well. Although in this paper we focus on OPRF problems of the type (2), our approach can be readily applied to other ORPF formulations. Also, we restrict our attention to the case in which problem (2) admits a unique solution. When that is not the case, can be chosen among the set of minimizers.
(2a) | ||||
(2b) | ||||
(2c) |
where are the minimum and maximum DERs’ reactive power injections; are the desired voltage lower and upper bounds on all the network buses; and is the cost function of interest. The minimizer depends on the uncontrolled variables and , which appear implicitly in the constraint (2b) via equation (1e). Also, notice that for given (re)active loads and active generation, the voltage at node and the vector of the voltage magnitudes become functions exclusively of , i.e.,
The complexity of solving (2) depends on the choice of the cost function and the non-convexity of (1). Tremendous advancements have been made to overcome the computational limitations via convex relaxations [1], linearized power flow equations [11], distributed optimization [9], and learning-based approaches [6]. However, solving (2) inevitably requires the knowledge of network-wide quantities , centrally or via peer-to-peer communication. Because the necessary supporting real-time communication infrastructure is not prevalent for most distribution systems, the optimal cannot be directly computed. Rather, inspired by the ongoing efforts towards designing local communication-free control rules for DERs and the recently reported success of neural-network-based surrogates for OPF, this work proposes a two-stage approach. In the first stage, termed the learning stage, historical data are used to learn functions that map voltages to (approximate) solutions of the ORPF problem (2). Specifically, for each agent , we learn a function
that takes as an input the local voltage , and provides as an output the approximated ORPF solution. Given any voltage , represents an approximation of the reactive power that the DER at node would inject if its voltage is and the network is operating at a solution of (2). The graph of , namely, points of the form , consists then of the ORPF solutions’ surrogates and describes desirable network configurations. The second stage, termed the control stage, aims to design local control rules that steer the network to the aforesaid desirable configurations. That is, the controller equilibrium points are determined by the ’s and, for this reason, the ’s are hereafter called equilibrium functions. We introduce first in Section III the local control scheme and derive conditions ensuring system stability. We build on these conditions in Section IV to guide the learning of to promote the efficient operation of the DG.
III Provably Stable Local Volt/Var Control
Here, we propose a local Volt/Var controller and analyze its stability properties. For each , given the equilibrium function , consider the reactive power update
(3) |
In (3), the new reactive power setpoint is chosen as a convex combination between the previous one and the equilibrium function evaluated at the current voltage. Rules such as (3) are referred to as incremental, because the updated reactive power setpoint is obtained by adding to the previous one an increment weighted by the stepsize parameter . An equilibrium point of (3), denoted , satisfies for
(4a) | |||
(4b) |
That is, belongs to the graph of and hence is a desirable configuration. It remains now to establish under what conditions the algorithm (3) converges to an equilibrium. The following convergence analysis assumes that uncontrolled variables, namely, and , assume arbitrary, but fixed in time, values.
As customary in the literature of reactive power control for DGs, e.g., see [11, 12, 15], we rely on the following linearization of the power flow equations to study the stability properties of (3). In general, voltage magnitudes are nonlinear functions of the nodal power injections. Define and , by using a first-order Taylor expansion, the power flow equation can be linearized to obtain [10]
(5) |
Also, the matrices and can be decomposed according to the former partition, yielding
with [15]. From (5), voltage magnitudes become functions exclusively of :
(6) |
where
(7) |
Collecting the in the vector-valued function , and adopting the linearization (6), the system dynamics can be described in compact form as
(8a) | |||
(8b) |
where it is tacitly assumed that, at the timescale of the above iterates, the exogenous variables remain constant, resulting in a constant term from (7). Let an equilibrium point of (8). By definition, it must satisfy
(9a) | ||||
(9b) |
In particular, it holds that for each , see (4), showing that the functions describe all the possible equilibrium points of (8a).
Define the feasible set of reactive power injections , with . To ensure the stability of the proposed local algorithm, we require each to meet the following properties:
-
C1)
is Lipschitz, i.e., there exists such that , for all ;
-
C2)
is nonincreasing in ;
-
C3)
, i.e., .
The role of conditions C1) – C3) will be clear from the following formal results proved in the Appendix. The first one characterizes the equilibrium points of (8).
Proposition III.1.
The next result characterizes the stability properties of the equilibrium point identified in Proposition III.1.
Proposition III.2.
Proposition III.2 indicates that, as long as the ’s meet the conditions C1) – C3), one can always find so that converges to the unique equilibrium point under the reactive power update rule (3). Note that, in condition (10), is fully determined by the DG and can be computed once the functions have been selected. Because and are fixed, the convergence of leads, cf. (6), also to the global asymptotic convergence of . Finally, we note that the proposed reactive power update rule (3) is a generalized version of the local control scheme proposed in [10] which considers only linear functions (instead of arbitrary nonlinear satisfying C1) – C3)).
Remark III.3.
(Global vs. local asymptotic stability of the equilibrium): In our previous work [29], the equilibrium point of (8) under the reactive power update rule (3) is shown to be locally asymptotically stable if . The previous claim roughly implies that if is close enough to , then it converges to . Our result here extends the stability properties from local to global, at the cost of reducing the selection range of , as .
Remark III.4.
(Non-incremental vs. incremental reactive power update rules): Many works in the literature consider local Volt/Var control schemes of the form [13, 14, 15]
(11) |
Reactive power update rules such as (11), where the new reactive power setpoints are determined based on the local voltage without explicitly exploiting a memory of past setpoints, are referred to as non-incremental [32]. The equilibrium points of (11) satisfy
i.e., plays the double role of the control function and the equilibrium function. Thus, even the control rule
(12) |
looks appealing for our framework because its equilibria are determined by , this rule corresponds to in (3). From the proof of Proposition III.2, one can show that the algorithm (12) is globally asymptotically stable if the equilibrium functions meet not only C1) – C3) but also
(13) |
The former condition bounds the slope of the and appears often in the literature [29, 16, 10]. This means that, to ensure the stability of (11), we need to restrict the search space of potential candidates of , thus risking a degradation in system performance in terms of the optimality gap at the equilibrium. The aforementioned restriction motivates adopting an incremental control like (3).
IV Learning Equilibrium Functions For Efficient Network Operation
Having established the conditions on equilibrium functions for system stability, here we lay out a data-driven approach to synthesize the functions to improve operational efficiency of the DG. Specifically, our goal is to learn local equilibrium functions under which the system equilibrium is as close as possible to the ORPF problem solution . The learning process consists of the following steps. First, given that the solution of (2) depends on , we build a set of load-generation scenarios. One can obtain the aforementioned scenarios via random sampling from assumed probability distributions, historical data, or from forecasted conditions for a look-ahead period. Second, we solve the ORPF problem (2) for these scenarios to obtain a labeled data set of corresponding minimizers , where the parametric dependencies are omitted for notational ease. Third, the entries for these minimizers are then separated for each to obtain data sets of the form , and each equilibrium function is then trained by solving
(14) | ||||
Typical approaches to solve (14) involves restricting the search space for function via convenient parameterization leading to approaches such as polynomial regression and neural network approximation methods. Here, we adopt the latter. Enforcing the properties C1) – C3) is, in general, not trivial and depends on many aspects, e.g., the number of considered layers and the used activation functions. In particular, designing monotone neural networks might require additional considerations. Approaches to do so include, for instance, structure-based [33], gradient-constrained [34], and verification-based [35] methods. In the following, we provide a single-hidden-layer neural network design framework that achieves C1) – C3) and uses the Rectified Linear Unit (ReLU) activation function
Note however that, in principle, any continuous and monotonic activation function could be used in our framework, e.g., the Sigmoid or the Tanh333..
Each equilibrium function is then modeled using a single-hidden-layer neural network as
(15) |
where
(16) |
with and being the weight and bias of the -th neuron unit, respectively; being an additional bias term applied in the output layer; and is the number of neuron units in the hidden layer. Note that conditions C1) and C3) for are automatically met because of the Lipschitzness of the ReLU function and because the output of the neural network is constrained to the set , cf. (IV). Condition C2) is instead encoded by the next result.
Proposition IV.1.
(Universal approximation of Lipschitz nonincreasing function using ReLU activation function): Consider the single-hidden-layer neural network (16), and reorder the neuron units such that . is non-increasing if and only if
(17) |
Furthermore, for any Lipschitz non-increasing function and given any compact domain and , there exist , , , and such that for all .
Its proof can be found in the Appendix, and note that the monotonicity of remains after the projection (IV). This design imposes weight constraints (17) and output constraints (IV) on a single-hidden-layer neural network (16) so that it meets the conditions C1) – C3) by construction. Leveraging the universal approximation property, the optimization problem (14) is then equivalent to the parameterized formulation
(18) | ||||
which can be solved to local optima using suitable renditions of (stochastic) gradient descent prevalent for neural network training. Also, exploiting the fact that the ReLU function is used as an activation function, the Lipschitz constant of each can be easily computed, see (17), as
The two stages of the proposed framework are summarized in Algorithm 1. Fig. 1 provides a flowchart to illustrate the overall scheme.
Remark IV.2.
(Enhancing the capability to regulate voltages when they are not within desired limits through pseudo data points): In the above exposition, the data set points are solutions to the ORPF problem (2), which are subject to the constraint (2b). That is, for each , the equilibrium function is trained only using data points such that , i.e., not when the voltages exceed the limits. Nevertheless, in practical implementation, a DG might experience load-generation scenarios in which (2) is infeasible and the voltages do not meet the desired constraints. Engineering considerations suggest that in such cases the available reactive power capability should be maximally used to alleviate the voltage violations as much as possible. Namely, for each , if (), then , see [10, 14]. To ensure that the learned function meets this condition, we can add a certain number of additional pseudo data points to the data set, e.g., points of the form , and points of the form , with . These points could be uniformly spaced or randomly sampled. Here we adopt the former method, illustrated in Fig. 2.
Remark IV.3.
(Deep neural network parameterization of non-increasing function via gradient penalization): Though the single-hidden-layer neural network parameterization of (16) achieves universal approximation, it requires the “width” of the neural networks, i.e., to be sufficiently large. Instead, in certain situations, deeper neural networks could achieve better approximations than the shallower ones, even if they are much narrower [36]. On the other hand, the structure-based restrictions enforced on the neural networks to guarantee monotonicity could in some cases restrict expressibility and lead to unsatisfactory approximation results [35]. To overcome these challenges, we describe a deep neural network parameterization approach by incorporating the monotonicity requirement as a penalization in the cost function of the learning process. Suppose for each , is parameterized by a deep neural network, and denote by the (sub)gradient of with respect to . The cost function in (14) is then replaced by
where is a tuning parameter. During implementation, one can gradually increase until is verified to be non-increasing.
Remark IV.4.
(On the comparison with existing reinforcement learning-based approaches): Recent literature has also investigated reinforcement learning approaches for learning stability guaranteed local Volt/Var controllers, e.g., [21, 22]. However, due to the lack of communication in the training phase, the cost function that the whole system seeks to minimize in such settings can only be separable, i.e., the summation of all the local cost functions at each node. Therefore, these approaches generally cannot cope with cost functions such as power losses which shows coupling among nodes. In contrast, since our approach only uses off-line collected data, any type of cost function could, in principle, be considered when solving the ORPF problem (2).
V Numerical Tests
We conduct case studies on the IEEE 37-bus feeder. We omit regulators, incorporate five solar generators, and convert it to its single-phase equivalent, see Fig. 3. The feeder has 25 buses with non-zero load, and the five solar generators are the DERs participating in reactive power compensation.
For our experiments, we use minute-based load and solar generation data retrieved from the Pecan Street data set (June 1, 2018) [37]. The first 75 nonzero load buses from the data set are aggregated every 3 loads and normalized to obtain 25 load profiles. Similarly, we obtain 5 solar generation profiles for the active power of DERs. The normalized load profiles for the 24-hour period are scaled so that the demand peak is 1.65 times the nominal load. We synthesize the reactive loads by scaling the active demand to match the power factors of the IEEE 37-bus feeder. Fig. 4 shows the total demand and solar generation across the feeder.
To evaluate the effectiveness of our control framework, it is compared with the standard linear droop control from [10, 14] which dictates
where , and with the the optimized droop control design444In [28], the voltage limits for maximum reactive power provision and absorption are selected as p.u. and p.u, respectively. To ensure the DERs reach maximum reactive power compensation capability when voltage exceeds the limits, as discussed in Remark IV.2, here they are set to p.u. and . from [28]
where and are parameters satisfying which are optimized given the data set prescribing a day-ahead forecast.
V-A The Learning Stage
We considered an optimization problem of the form (2) where the cost is set to
where ① and ② aims to minimize the voltage deviations and power losses [10], respectively, and the parameter trades-off those two objectives. We assume the 5 DERs have uniform generation capabilities, precisely, MVAR and . The voltage limit vectors are set to p.u. and p.u.
The data set for the learning process is built using the aforesaid power demands and generations obtained from the Pecan Street data, which are intended as day-ahead forecasts. We use the CVX toolbox [38] to solve the ORPF problem (2) with linearized power flow (5). Note however that, one can use any other power flow models to solve the ORPF problem. We add the pseudo data points to the obtained data set as described in Remark IV.2 with , which results in a total of data points for each DER. We implement the neural network approach according to Proposition IV.1 using TensorFlow 2.7.0 and conduct the training process in Google Colab with a single TPU with 32 GB memory. The number of episodes and the number of neurons are 2000 and 1000, respectively, and the neural networks are trained using the Adam optimizer [39] with the learning rate initialized at 0.01 and decays every 500 steps with a base of 0.5.
Fig. 5 plots the solutions to the ORPF problem (2) for all data profiles, the equilibrium function learned with and without pseudo points, the standard droop function , and the optimized droop function for the DER at node 32 with . In contrast to the case in which no pseudo points are added in the learning process, the learned equilibrium function with pseudo points reaches maximum reactive power compensation capability when voltage exceeds the limits. We further summarize in Table I the average loss for the whole training data set using the learned equilibrium functions and optimized/standard droop control functions, i.e.,
(19) |
where is for the data-based method, for the optimized droop control, and for the standard droop control. The results illustrate the enhanced optimality of the learned equilibrium functions in approximating ORPF solutions compared to benchmarks.
Learned equil. func. | Opt. droop func. | Std. droop func. | |
0 | 0.0305 | 0.0438 | |
1/3 | 0.0171 | 0.0395 | |
1/2 | 0.0429 | 0.0662 | |
2/3 | 0.0724 | 0.0852 | |
1 | 0.0878 | 0.0965 |
Next, we illustrate the advantage of using the incremental algorithm. Recall that to guarantee the convergence of the non-incremental algorithm, i.e., , one needs to further enforce an additional slope constraint (13) on the learned equilibrium functions, cf. Remark III.4. Fig. 6 shows that this additional slope constraint leads to larger approximation errors of the learned equilibrium functions in fitting the data set (we do not consider the pseudo points during learning here for fairness), and thus degrades the optimality of system performance.
V-B The Control Stage
We run the following simulations using the learned equilibrium functions for the case with the pseudo data points considered and assume that . Matpower [40] was used to solve the power flow equation. First, we verify the convergence properties of the proposed reactive power update rule (3) stated in Proposition III.2. Consider the scenario where the load-generation profiles are fixed, Fig. 7 reports the evolution of the DERs’ reactive power setpoints using load-generation profiles of the 695-th minute and considers 120 iterations of (3). For , the reactive power setpoint trajectories converge to their final values, cf. Fig. 7(a), whereas the case fails, cf. Fig. 7(b). This is consistent with the sufficient condition
derived in Proposition III.2.
Next, we test the proposed data-based control method in a scenario where the load-generation profiles are time varying. Specifically, we obtain load-generation profiles by randomly perturbing (5%) the consumption data used to learn the equilibrium functions. This can be interpreted as having the data from the data set prescribing a day-ahead forecast, whereas their random perturbation acts as the true realization of the load-generation scenarios. These loads and generations are minute-based and we consider 120 iterations of (3) per minute with . Fig. 8 compares the evolution of the maximum/minimum voltages under the proposed data-based control method, the optimized droop control method, the ORPF solutions, and the case where no control action is taken. One can observe that, in contrast to the proposed data-based method, the optimized droop control method induces instability issues within 12:00 and 16:00 causing voltages to oscillate. We further compare in Fig. 9 the distances between the actual reactive power setpoints and ORPF solutions, i.e., . Compared to the benchmarks, the reactive power setpoints during evolution under the proposed data-based method remains much closer to the ORPF solutions, thus leading to significantly improved optimality. To further illustrate the effectiveness and advantages of the proposed data-based control method, Table II summarizes the comparison results of the proposed data-based control method against the standard and optimized linear droop control methods, as well as the case where no control action is taken for different values of . We quantify the performance by the average of the distances of the actual and optimal reactive power setpoints, i.e., average of for the entire day. It can be observed that the proposed data-based control method outperforms the benchmark methods in all cases.
0 | 1/3 | 1/2 | 2/3 | 1 | |
---|---|---|---|---|---|
Data-based | |||||
Opt. Droop | 0.2786 | 0.2474 | 0.3728 | 0.4410 | 0.4854 |
Std. Droop | 0.2886 | 0.3311 | 0.4076 | 0.4699 | 0.5047 |
No Control | 0.3160 | 0.5081 | 0.6842 | 0.8029 | 0.8358 |
V-C Robustness to Voltage Measurement Noise
Here, we test the robustness of the proposed data-based method against the voltage measurement noise. Similar to Section V-B, we use the learned equilibrium functions to run the simulations, but add random perturbations to the measurement of the local voltages. Table III summarizes the distances between actual reactive power setpoints and the ORPF solutions under different voltage measurement noise levels. Specifically, 0.5% perturbation to the voltage measurement corresponds to a common level of precision among smart meters in the United States [41], whereas the case of 1% perturbation represents the biggest error allowed in power systems. Table III indicates that, even in the latter case, the proposed data-based method still significantly outperforms the benchmark methods without measurement noise.
0 | 1/3 | 1/2 | 2/3 | 1 | |
---|---|---|---|---|---|
0.2% | 0.1210 | 0.1017 | 0.0936 | 0.1291 | 0.1739 |
0.5% | 0.1317 | 0.1176 | 0.1378 | 0.1862 | 0.2237 |
1.0% | 0.1571 | 0.1553 | 0.2127 | 0.2762 | 0.3129 |
V-D Discussion
Our simulation results above validate the improved performance of the proposed data-based method compared to the linear droop control method for different control goals. In fact, apart from considering the minimization of voltage deviations and power losses, our framework allows the users to consider any other type of cost functions, depending on specific control goals, to learn purely local controllers that steer system operating points to approximated ORPF solutions. However, as shown in Table I, different cost functions could result in different optimality gaps between the proposed data-based method and the ORPF approach. Since the data set we construct only maps the local voltage to the local optimal reactive power setpoint, it is possible that one fixed voltage corresponds to multiple optimal reactive power setpoints. On the other hand, it could also be that the optimal solution pairs are not as close to the non-increasing shape as we require the equilibrium functions to be. We refer to these phenomena as data inconsistency. We note that different selections of cost function significantly influence the data inconsistency, and thus leads to very different optimality gaps. For example, as Table I suggests, the data becomes significantly more inconsistent when the minimization of the voltage deviations takes a more important role in the cost function. As part of our follow-up work, we plan to include other available local information to alleviate the data inconsistency challenge, e.g., prevailing (re)active power injections as additional inputs of the equilibrium function. Another important observation is that, although the ORPF approach strictly guarantees that the voltages are within limits, our approach does not. For instance, in Fig. 8, the voltage nadir during evolution under the proposed data-based method slightly violates the voltage limits. The reason is that when is relatively small, many of the optimal solutions given by the ORPF problem lie on the boundary of the voltages limits. Since the local surrogates only provide approximations of the optimal solutions, the actual converged voltages can easily go out of limits in such situations. On the other hand, as pointed out in [17], purely local control strategies generally have no guarantee on desired regulation, in the sense that the equilibrium of (8) could result in a , even if there indeed exists such that .
VI Conclusions
We have presented a data-driven framework to design local Volt/Var controllers capable of steering a power distribution network towards efficient network configurations. Building on the idea of learning local surrogates that map local voltages to reactive power setpoints that approximate the ORPF solution, we have proposed a local control update scheme and identified conditions on surrogates and control parameters so that the reactive power point converges in a global asymptotic sense. By constructing a labeled data set of ORPF solutions with different load and generation profiles, we have trained neural networks whose resulting parameterized functions meet the conditions on surrogates by design to fit the data set. We have shown in AC power flow simulation tests that the proposed framework guarantees the voltage stability and significantly reduces the operation cost compared to prevalent local control approaches. Future research directions include considering the regulation of legacy devices and unbalanced DGs, enhancing data consistency by making use of other local information in building the data set, reducing the optimality gap during the learning process, and extending the proposed framework to a more general scenario where we take advantage of communication among neighboring agents.
Appendix A Technical Lemmas
Lemma A.1.
(Bauer and Fike Theorem [42, Corollary 6.3.4]): Let with normal. If is an eigenvalue of , then there exists an eigenvalue of such that .
Lemma A.2.
(Positive semidefiniteness of and upper bound of ): The matrix is positive semidefinite. Moreover, it holds
Proof.
Let be a left eigenpair for . Then, is a left eigenpair for the symmetric matrix . Indeed,
Therefore, is positive semidefinite as well. Also,
which completes the proof. ∎
Appendix B Proofs of Propositions
Proof of Proposition III.1.
First, we show by induction the feasibility of the reactive power update (3). The initial power injection belongs to by hypothesis. Assume now that and C3) holds. Then is the convex combination of two elements of . Next, we show that (8) has an unique equilibrium point. From (9), the equilibrium exists if has a solution, where is a continuous vector function with . Since is convex and compact, according to Brouwer’s Fixed Point Theorem [43, Corollary 6.6], such a solution exists. Finally, to show uniqueness, we reason by contradiction. Assume both and are equilibrium points for (8) with . From (9a),
(20) |
where is a diagonal matrix with
From C2), is nonincreasing in for all . Hence, , and . On the other hand, (9b) yields
Then, it follows that
Since , it holds that , . As a consequence, and , cf. (9a), which is a contradiction. This completes the proof. ∎
Proof of Proposition III.2.
Consider the voltage evolution under (8),
We show that, for small enough values of , the operator is a contraction, i.e.,
(21) |
for any . Indeed, define a diagonal matrix with the -th diagonal entry being
Then, it follows that
where we have used in the second equality the fact that is nonincreasing in for each , and thus .
To prove (21), it is sufficient to show that there always exists such that , which is equivalent to proving that , where is
Rewrite as
Note that is symmetric. According to Lemma A.1, provided in the Appendix, it holds that . Now, it remains to show that there always exists such that
Let . According to Lemma A.2, , and therefore . This condition is then equivalent to
which yields
Finally, according to Lemma A.2, it holds
and hence
Considering that we require , (10) follows, concluding the proof. ∎
Proof of Proposition IV.1.
To show the sufficiency of (17), notice that, for any , if , then ; and for , is divided into segments with the slope of the -th segment being for . Given (17), it follows that is nonincreasing. To show the necessity of (17), suppose is nonincreasing. Then, there exists a segment of the equilibrium function, e.g., the -th, which is increasing. Hence, which is a contradiction.
We next show the universal approximation property. Given a compact domain of the form , consider an equispaced partition of into intervals, with the length of each interval being . Consider the function
whose parameters are defined as: , , , ,…, . Note that it holds that
because is nonincreasing, for . Hence, inequality (17) is satisfied. It can be observed that
where is the Lipschitz constant of . Hence, by setting , it holds that for all . This completes the proof. ∎
References
- [1] S. H. Low, “Convex relaxation of optimal power flow - Part I: Formulations and equivalence,” IEEE Transactions on Control of Network Systems, vol. 1, no. 1, pp. 15–27, 2014.
- [2] B. Cui and X. A. Sun, “A new voltage stability-constrained optimal power-flow model: Sufficient condition, SOCP representation, and relaxation,” IEEE Transactions on Power Systems, vol. 33, no. 5, pp. 5092–5102, 2018.
- [3] L. Gan, N. Li, U. Topcu, and S. H. Low, “Optimal power flow in tree networks,” in IEEE Conf. on Decision and Control, (Firenze, Italy), pp. 2313–2318, Dec. 2013.
- [4] X. Pan, T. Zhao, M. Chen, and S. Zhang, “DeepOPF: A deep neural network approach for security-constrained DC optimal power flow,” IEEE Transactions on Power Systems, vol. 36, no. 3, pp. 1725–1735, 2021.
- [5] D. Owerko, F. Gama, and A. Ribeiro, “Optimal power flow using graph neural networks,” in IEEE Int. Conf. on Acoustics, Speech and Signal Processing, (Barcelona, Spain), pp. 5930–5934, 2020.
- [6] M. K. Singh, S. Gupta, V. Kekatos, G. Cavraro, and A. Bernstein, “Learning to optimize power distribution grids using sensitivity-informed deep neural networks,” in IEEE Int. Conf. on Communications, Control, and Computing Technologies for Smart Grids, (Tempe, AZ, USA), Nov. 2020.
- [7] M. K. Singh, V. Kekatos, and G. B. Giannakis, “Learning to solve the AC-OPF using sensitivity-informed deep neural networks,” IEEE Transactions on Power Systems, vol. 37, no. 4, pp. 2833–2846, 2022.
- [8] F. Fioretto, T. W. K. Mak, and P. Van Hentenryck, “Predicting AC optimal power flows: Combining deep learning and lagrangian dual methods,” in AAAI Conference on Artificial Intelligence, (New York, USA), pp. 630–637, Feb. 2020.
- [9] E. Dall’Anese, H. Zhu, and G. B. Giannakis, “Distributed optimal power flow for smart microgrids,” IEEE Transactions on Smart Grid, vol. 4, no. 3, pp. 1464–1475, 2013.
- [10] G. Cavraro and R. Carli, “Local and distributed voltage control algorithms in distribution networks,” IEEE Transactions on Power Systems, vol. 33, no. 2, pp. 1420–1430, 2017.
- [11] E. Dall’Anese and A. Simonetto, “Optimal power flow pursuit,” IEEE Transactions on Smart Grid, vol. 9, no. 2, pp. 942–952, 2018.
- [12] G. Qu and N. Li, “Optimal distributed feedback voltage control under limited reactive power,” IEEE Transactions on Power Systems, vol. 35, no. 1, pp. 315–331, 2020.
- [13] “IEEE standard for interconnection and interoperability of distributed energy resources with associated electric power systems interfaces,” IEEE Std 1547-2018 (Revision of IEEE Std 1547-2003), pp. 1–138, 2018.
- [14] K. Turitsyn, P. Sulc, S. Backhaus, and M. Chertkov, “Options for control of reactive power by distributed photovoltaic generators,” Proceedings of the IEEE, vol. 99, no. 6, pp. 1063–1073, 2011.
- [15] H. Zhu and H. J. Liu, “Fast local voltage control under limited reactive power: Optimality and stability analysis,” IEEE Transactions on Power Systems, vol. 31, no. 5, pp. 3794–3803, 2015.
- [16] X. Zhou, M. Farivar, Z. Liu, L. Chen, and S. H. Low, “Reverse and forward engineering of local voltage control in distribution networks,” IEEE Transactions on Automatic Control, vol. 66, no. 3, pp. 1116–1128, 2021.
- [17] S. Bolognani, R. Carli, G. Cavraro, and S. Zampieri, “On the need for communication for voltage regulation of power distribution grids,” IEEE Transactions on Control of Network Systems, vol. 6, no. 3, pp. 1111–1123, 2019.
- [18] C. Dawson, S. Gao, and C. Fan, “Safe control with learned certificates: A survey of neural Lyapunov, barrier, and contraction methods,” arXiv preprint arXiv:2202.11762, 2022.
- [19] W. Cui, Y. Jiang, and B. Zhang, “Reinforcement learning for optimal primary frequency control: A Lyapunov approach,” IEEE Transactions on Power Systems, 2022. To appear.
- [20] Z. Yuan, C. Zhao, and J. Cortés, “Reinforcement learning for distributed transient frequency control with stability and safety guarantees,” Systems & Control Letters, 2022. Submitted.
- [21] W. Cui, J. Li, and B. Zhang, “Decentralized safe reinforcement learning for inverter-based voltage control,” Electric Power Systems Research, vol. 211, p. 108609, 2022.
- [22] Y. Shi, G. Qu, S. H. Low, A. Anandkumar, and A. Wierman, “Stability constrained reinforcement learning for real-time voltage control,” in American Control Conference, (Atlanta, GA), pp. 2715–2721, June 2022.
- [23] C. Zhang, Y. Xu, Y. Wang, Z. Y. Dong, and R. Zhang, “Three-stage hierarchically-coordinated Voltage/Var control based on PV inverters considering distribution network voltage stability,” IEEE Transactions on Sustainable Energy, vol. 13, no. 2, pp. 868–881, 2021.
- [24] S. Gupta, S. Chatzivasileiadis, and V. Kekatos, “Deep learning for optimal Volt/VAR control using distributed energy resources,” arXiv preprint arXiv:2211.09557, 2022.
- [25] S. Karagiannopoulos, P. Aristidou, and G. Hug, “Data-driven local control design for active distribution grids using off-line optimal power flow and machine learning techniques,” IEEE Transactions on Smart Grid, vol. 10, no. 6, pp. 6461–6471, 2019.
- [26] P. S. Torre and P. Hidalgo-Gonzalez, “Decentralized optimal power flow for time-varying network topologies using machine learning,” Electric Power Systems Research, vol. 212, p. 108575, 2022.
- [27] X. Sun, J. Qiu, and J. Zhao, “Optimal local Volt/Var control for photovoltaic inverters in active distribution networks,” IEEE Transactions on Power Systems, vol. 36, no. 6, pp. 5756–5766, 2021.
- [28] H. Ji, C. Wang, P. Li, J. Zhao, G. Song, F. Ding, and J. Wu, “A centralized-based method to determine the local voltage control strategies of distributed generator operation in active distribution networks,” Applied Energy, vol. 228, pp. 2024–2036, 2018.
- [29] G. Cavraro, Z. Yuan, M. K. Singh, and J. Cortés, “Learning local Volt/Var controllers towards efficient network operation with stability guarantees,” in IEEE Conf. on Decision and Control, (Cancun, Mexico), pp. 5056–5061, Dec. 2022.
- [30] J. Feng, Y. Shi, G. Qu, S. H. Low, A. Anandkumar, and A. Wierman, “Stability constrained reinforcement learning for real-time voltage control in distribution systems,” arXiv preprint arXiv:2209.07669, 2022.
- [31] A. M. Kettner and M. Paolone, “On the properties of the compound nodal admittance matrix of polyphase power systems,” IEEE Transactions on Power Systems, vol. 34, no. 1, pp. 444–453, 2019.
- [32] M. Farivar, X. Zhou, and L. Chen, “Local voltage control in distribution systems: An incremental control algorithm,” in IEEE Int. Conf. on Communications, Control, and Computing Technologies for Smart Grids, (Miami, FL, USA), pp. 732–737, Nov. 2015.
- [33] H. Daniels and M. Velikova, “Monotone and partially monotone neural networks,” IEEE Transactions on Neural Networks, vol. 21, no. 6, pp. 906–917, 2010.
- [34] A. Wehenkel and G. Louppe, “Unconstrained monotonic neural networks,” in Conference on Neural Information Processing Systems, vol. 32, (Vancouver, Canada), pp. 1543–1553, Dec. 2019.
- [35] X. Liu, X. Han, N. Zhang, and Q. Liu, “Certified monotonic neural networks,” in Conference on Neural Information Processing Systems, vol. 33, (Vancouver, Canada), pp. 15427–15438, Dec. 2020.
- [36] I. Safran and O. Shamir, “Depth-width tradeoffs in approximating natural functions with neural networks,” in International Conference on Machine Learning, (Sydney, Australia), pp. 2979–2987, Aug. 2017.
- [37] “Dataport: The world’s largest energy data resource,” Pecan Street Inc, 2015. Available at https://dataport.pecanstreet.org/.
- [38] M. Grant and S. Boyd, “CVX: Matlab software for disciplined convex programming, version 2.1,” Mar. 2014. Available at http://cvxr.com/cvx.
- [39] D. P. Kingma and J. Ba, “Adam: A method for stochastic optimization,” in International Conference on Learning Representations, (San Diego, CA, USA), May 2015.
- [40] R. D. Zimmerman, C. E. Murillo-Sánchez, and R. J. Thomas, “Matpower: Steady-state operations, planning and analysis tools for power systems research education,” IEEE Transactions on Power Systems, vol. 26, no. 1, pp. 12–19, 2011.
- [41] EEI-AEIC-UTC, “Smart meters and smart meter systems: A metering industry perspective,” Washington, DC, USA, Edison Elect. Inst., White Paper, 2011.
- [42] R. A. Horn and C. R. Johnson, Matrix Analysis. Cambridge University Press, 2012.
- [43] K. C. Border, Fixed Point Theorems with Applications to Economics and Game Theory. Cambridge, UK: Cambridge University Press, 1985.
Zhenyi Yuan (Student Member, IEEE) was born in Jiangxi, China, in 1998. He is currently working toward the Ph.D. degree in mechanical engineering at the University of California, San Diego, CA, USA. Prior to that, he was enrolled in successive undergraduate and postgraduate program at the Honors School of Harbin Institute of Technology, Harbin, China, where he received the B.S. and M.S. degrees in control science and engineering in 2018 and 2020, respectively. He was also a visiting research assistant with the Department of Information Engineering of the Chinese University of Hong Kong, Hong Kong, in 2021. His research interests lie at the intersection of control, optimization and learning, with applications to smart grids and robotic systems. |
Guido Cavraro (Member, IEEE) received the Ph.D. degree in Information Engineering from the University of Padova, Italy, in 2015. He was a visiting scholar at the California Institute for Energy and Environment (CIEE) at U.C. Berkeley in 2014. In 2015 and 2016, he was a postdoctoral associate at the Department of Information Engineering of the University of Padova. From 2016 to 2018, he was a postdoctoral associate with the Bradley Department of Electrical and Computer Engineering of Virginia Tech, USA. Currently, he is a Senior Researcher with the Power Systems Engineering Center at National Renewable Energy Laboratory, USA. His research interests include control, optimization, and estimation with applications to power systems. |
Manish K. Singh (Member, IEEE) received the B.Tech. degree from the Indian Institute of Technology (BHU), Varanasi, India, in 2013; and the M.S. and Ph.D. degrees in electrical engineering from Virginia Tech, Blacksburg, VA, USA, in 2018 and 2021, respectively. He is currently a postdoctoral researcher with the University of Minnesota, Minneapolis, MN. During 2013-2016, he worked as an Engineer in the Smart Grid Dept. of POWERGRID, the central transmission utility of India. His research interests are focused on optimization, control, and learning techniques to develop algorithmic solutions for the operation and analysis of electric power systems as well as water and natural gas networks. |
Jorge Cortés (Fellow, IEEE) received the Licenciatura degree in mathematics from Universidad de Zaragoza, Zaragoza, Spain, in 1997, and the Ph.D. degree in engineering mathematics from Universidad Carlos III de Madrid, Madrid, Spain, in 2001. He held postdoctoral positions with the University of Twente, Twente, The Netherlands, and the University of Illinois at Urbana-Champaign, Urbana, IL, USA. He was an Assistant Professor with the Department of Applied Mathematics and Statistics, University of California, Santa Cruz, CA, USA, from 2004 to 2007. He is a Professor in the Department of Mechanical and Aerospace Engineering, University of California, San Diego, CA, USA. He is a Fellow of IEEE, SIAM, and IFAC. His research interests include distributed control and optimization, network science, nonsmooth analysis, reasoning and decision making under uncertainty, network neuroscience, and multi-agent coordination in robotic, power, and transportation networks. |