Introduction

To achieve a carbon-neutral electricity system, Distributed Renewable Energy Sources (DRESs), such as Photovoltaics (PVs), are installed in the distribution grid. Especially in rural areas, additional PV generation can cause reverse power flow, which result in overvoltage situations. To avoid generation curtailment, DRESs can offer voltage regulation as Ancillary Service (AS) to the grid operator (Kryonidis et al. 2021; Rousis et al. 2021).

In literature, several papers propose centralized and decentralized solutions for optimal voltage regulation to achieve different goals such as fairness (Hu et al. 2021; Kryonidis et al. 2018) or loss minimization (Kryonidis et al. 2019, 2020, 2021; Faiya et al. 2021; Kontis et al. 2019; Millar and Jiang 2018). In Hu et al. (2021), the optimal active and reactive power allocation of electric vehicle charging is determined using a parallel consensus mechanisms to establish a local power dispatch. Their solution implements fair pricing schemes that use the involvement level of the individual vehicles. Authors of (Faiya et al. 2021) propose a self-organized Multi-Agent System (MAS) that clusters the distribution grid based on its sensitivity matrix and solves smaller optimization problems centrally at linear programming solver agents. In Kryonidis et al. (2021), DRESs contribute reactive power in a coordinated, nearly-optimal manner by delaying their reactive power reaction according to the sensitivity matrix of the distribution system (Kryonidis et al. 2016), which minimizes grid losses. Consensus protocols are used for optimal power flow (Millar and Jiang 2018), management of virtual power plants (Wang et al. 2018), or more generally for various purposes in wireless sensor networks (Iutzeler et al. 2012). The impact of the communication topology and network delay on distributed voltage regulation is rarely addressed or are subject to hard assumptions.

This paper contributes with the following points:

  • A new max-consensus protocol that determines the maximum voltage node (regulated node) of the power distribution grid in a fully decentralized manner, independent of the underlying communication network topology.

  • Cross-disciplinary dynamic sensitivity ring overlay network design using the sensitivity matrix of the voltage controller.

  • Comparison of different overlay networks in co-simulation on the IEEE 906 low voltage test feeder and a simple queuing-based communication simulator to validate the impact of message delay and communication topology.

Methodology

In general, there are synchronous and asynchronous max-consensus protocols, of which different aspects are discussed in literature, e.g., convergence (Giannini et al. 2013a, b, 2016; Lin et al. 2007; Shi et al. 2015), max-plus algebra (Nejad et al. 2009), or signal noise (Zhang et al. 2016). Additionally, they can be classified as static (constant signal) or dynamic (varying signal and/or number of agents). Although there exist methods to approximate the maximum of dynamic signals (Deplano et al. 2020; Monteiro and Peixoto 2020), this paper models varying input signals as a sequence of static max-consensus problems.

The voltage regulation algorithm is equal to the work by Kryonidis et al. (2021). They iteratively require a consensus on the maximum voltage in the grid, but do not analyze the effect of communication on their algorithm. This work extends the voltage regulation with communication aspects and the fully decentralized detection of the maximum voltage node. To clearly distinguish the systems, we use the terms node and line for the power system, vertex and edge for the communication system, and agent and neighbor for the MAS. All variables are summarized in Table 1.

Table 1 Overview of voltage regulation, max-consensus and communication network variables

Power system nodes (e.g., bus bars) are connected by lines (e.g., overhead cables) to form the power grid. The distributed algorithm (Kryonidis et al. 2021) solves overvoltage events with nearly minimum grid losses by utilizing reactive power capabilities of the DRES that is located nearest to the node with the highest measured voltage value, also called the regulated node (Kryonidis et al. 2019). Because low voltage grids have a high R/X ratio, the reaction of the local DRES might not be sufficient to fully mitigate the voltage violation, but other nearby DRESs can support. In order to minimize the grid losses, the approach of Kryonidis et al. (2021) selects the next best DRES according to the sensitivity matrix, which measures the impact of reactive power variations on the voltage at the regulated node. For a given voltage variation at a certain node, a DRES with higher sensitivity will need to absorb less reactive power than a DRES with lower sensitivity. Reactive power absorption in low voltage grids correlates with active power losses due to higher current flows. Consequently, selecting a DRES with high sensitivity and therefore low reactive power contribution will result in near-minimum power losses (Kryonidis et al. 2021).

It is assumed that all relevant nodes \(k \in \{1,\ldots , n\}\) can measure local voltage values \(U^{loc}_k\). Furthermore, DRESs exist at a subset of those nodes \(d\), \(1 \le d \le n\), which can control their reactive power with an upper limit of \(\overline{Q}_k\). The flow chart in Fig. 1 shows a practical implementation of the distributed control scheme that is applied at each DRES node i.

Fig. 1
figure 1

Reactive power control scheme at DRES i according to Kryonidis et al. (2021). The Proportional Integral (PI) controller is part of the gray shaded voltage regulation process box. Note, that determination of the maximum voltage node (red dashed box) is also required after the delay time has elapsed and after the voltage regulation process (red dots on the arrows)

First, the regulated node j with the maximum voltage is determined. Therefore, every node needs to measure its local voltage value and share this value with all other nodes such that every DRES can obtain \(\max _{k=1,\ldots , n} (U^{loc}_k)\). More details on communication and distributed maximum value calculation are given in the following sections. If the maximum measured voltage \(\max U^{loc}\) is greater than the maximum allowed voltage \(\overline{U}\) (right branch of the flow chart), after a certain time delay reactive power is absorbed using a PI controller until one of the following conditions is met.

  1. i.

    The regulated node changes from j to \(j'\). In this case, the impact of DRES i on the voltage might differ and, therefore, a different time delay is applied. The process restarts with a new maximum voltage value at regulated node \(j'\).

  2. ii.

    The maximum reactive power at DRES i is reached. In this case, other DRESs will start absorbing reactive power after their delay time.

  3. iii.

    The overvoltage is finally cleared and the voltage value at the regulated node resides below the maximum limit \(\overline{U}\) minus half of the dead-band db to avoid oscillation caused by varying voltage profiles.

Similarly, in case the maximum voltage value is below the permissible limit (considering db), the regulation process reverses to release unnecessary reactive power from the grid. Before the PI controller starts absorbing reactive power, each DRES needs to wait a certain delay time (\(d^{up}_{j,i}\) or \(d^{down}_{j,i}\)). This ensures that the DRESs start contributing in the optimal order to minimize power losses. The respective delay times are extracted from the sensitivity matrix of the power grid, which is calculated using the time-invariant line impedance (following the approach in Brenna et al. (2013)) instead of the inverse Jacobian matrix. In this way, the sensitivity matrix and thus the corresponding delay times can be precomputed based on the power grid topology only. Both, the sensitivity matrix and the delay matrices contain row entries for each potential regulated node, but only sensitivity/delay values for all DRES nodes. When DRES i has the p-th highest sensitivity on a regulated node j, the delay time is calculated by \(d^{down}_{j,i} = (p - 1) \Delta ^{delay}\) and \(d^{up}_{j,i} = (n - p) \Delta ^{delay}\), where \(\Delta ^{delay}\) is the time between two consecutive actions. For voltage reduction, the waiting time of the DRES with highest sensitivity on the regulated node is the shortest.

Max-consensus protocol

The voltage measurement nodes \(i\in \{1,\ldots , n\}\) are represented by agents that iteratively share their local information state with their neighbors in order to reach a consensus on the maximum voltage value and the corresponding regulated node. The distributed agents are assumed to measure their local voltage \(U_i^{loc}\) in synchronized intervals of \(\Delta ^{volt}\), e.g., ensured by GPS time or synchronized over the power grid frequency. Each agent i stores its selected maximum voltage value \(U_i\) located at a regulated node \(r_i\) and a sequence number \(t_{r_i}\) in its information state \(m_i = (U_i, r_i, t_{r_i})\). Whenever the local voltage updates every \(\Delta ^{volt}\), the information state is reset to \(m_i = (U_i^{loc}, i, t_i + 1)\). Furthermore, due to variable communication delays between agents, asynchronous updates can be triggered by received messages.

Whenever agent i receives a message from agent j, Algorithm 1 is executed. Messages with outdated sequence numbers are ignored; likewise if the regulated node \(r_j\) points to agent i. The local information state is updated if voltage \(U_j\) is greater than the known one or, in case of equality, only if agent i is a DRES node with higher sensitivity on the regulated node \(r_j\). This ensures nearly optimal overvoltage regulation. Finally, agent i communicates all maximum voltage information states to its neighbors. Thus, every agent can decide individually according to its sensitivity.

figure a

An agent shares its information state with its neighbors whenever (i) the local voltage measurement \(U^{loc}\) updates after \(\Delta ^{volt}\), (ii) a received message updates the local information state \(m_i\), or (iii) a predefined interval \(\Delta ^{com} < \Delta ^{volt}\) has passed. As long as the local voltage values are constant (within \(\Delta ^{volt}\)), eventually all connected agents converge to \(U_i = \max _{k\in \{1,\ldots , n\}}(U_k^{loc})\). However, agents may point to different regulated nodes, forming consensus clusters depending on their sensitivity.

Communication and overlay network

The communication network is modeled by a static graph \(\mathcal {G}=(\mathcal {V}, \mathcal {E})\) consisting of a vertex set \(\mathcal {V}=\{1,\ldots , m\}\) and a set of edges \(\mathcal {E}\subseteq \mathcal {V}\times \mathcal {V}\), including self-loops (\(\forall i \in \mathcal {V} :(i,i) \in \mathcal {E}\)). Note that at least every agent needs to communicate (\(m\ge n\)), but additional vertices may exist, such as wireless network base stations. If vertex \(i\in \mathcal {V}\) can directly receive information from vertex \(j\in \mathcal {V}\), we call i and j neighbors and \((i,j)\in \mathcal {E}\). We assume that bidirectional communication is possible, hence \(\mathcal {G}\) is undirected and \(\forall (i,j) \in \mathcal {E} :(j,i) \in \mathcal {E}\). The communication delay of messages from i to j can be specified by d(ij), where \(d(i,i) = 0\). Note that communication delay is not necessarily symmetric, hence \(d(i,j) = x \,\,/\!\!\!\!\!\!\Rightarrow d(j,i) = x\). We further assume that \(\mathcal {G}\) is connected, such that there exist a multi-hop path \((a, \ldots , b)\) that connects any two vertices \(a, b \in \mathcal {G}\). The communication delay along the path is the sum of the individual communication delays of the neighboring vertices. Finally, we assume that there are no communication failures, as we only investigate the message delay.

An overlay network \(\mathcal {G}' = (\mathcal {V}', \mathcal {E}')\) implements logical connections among agents that are placed at a subset of the vertices \(\mathcal {V}'=\{1, \ldots , n\} \subseteq \mathcal {V}\). Every edge in \(\mathcal {E}'\) can be mapped to a path in \(\mathcal {G}\), where the one with the smallest expected delay time is chosen in case of ambiguity. The following overlay networks implement different connections \(\mathcal {E}'\), where the diameter is given by \(D(\mathcal {G}')\).

Local broadcast

A commonly used communication schema for max-consensus algorithms is broadcasting the information state to all direct neighbors (Giannini et al. 2013a, b, 2016; Bertsekas and Tsitsiklis 1989). This overlay network contains all direct edges between agent vertices (\(\mathcal {E}' = \{(i, j) \in \mathcal {E} :i, j \in \mathcal {V}'\}\)) and transitive edges, that connect two agent vertices from \(\mathcal {V}'\) via vertices from \(\mathcal {V}\setminus \mathcal {V}'\). The neighbors of agent i are denoted by \(\mathcal {N}_i=\{j \in \mathcal {V}' :(i, j) \in \mathcal {E}'\}\). Since broadcast messages will flood the communication network, local information updates (either from local measurement or received messages) are not passed on immediately, but at the next broadcast round after \(\Delta ^{com}\).

Because messages are only exchanged in synchronized communication intervals \(\Delta ^{com}\), the system can be seen as synchronous, as long as \(\max _{i \in \mathcal {V}', j \in \mathcal {N}_i} d(i, j) < \Delta ^{com}\). Asynchronously received messages do not cause any update until the next communication interval, hence can be considered to be synchronously right before the next communication. It is well known, that such a synchronized system converges within \(D(\mathcal {G}') \cdot \Delta ^{com} < \Delta ^{volt}\) (Bertsekas and Tsitsiklis 1989). Some communication technologies support multicast or broadcast messages that address a group or all devices at once. Otherwise, the agents need to send unicast messages to each neighbor individually, which increases the total traffic and overall communication delay.

Static ring

Another simple overlay network is a ring, which connects each agent to exactly two neighbors to form a cyclic path in \(\mathcal {V}'\). Because the underlying communication network can have arbitrary topology, neighbors in this path potentially need to communicate via multiple hops in \(\mathcal {G}\). However, there exist network embedding algorithms that optimize for minimum communication delay (Wu et al. 2020). In its simplest form, the ring is operated as directed graph, where each agent has only one successor.

Because the global maximum always updates the local information state, the message is immediately re-transmitted to the next agent. Consensus is finally reached when the message fully circled the ring, hence, convergence time scales linearly with the number of agents n. Failing agents cause convergence to fail, however can be detected when no message is received from the predecessor after \(\Delta ^{volt}\) and resolved by skip** the failed agent. Convergence time and failure resilience improve when the ring is operated bidirectionally, which in turn doubles the number of messages.

Sensitivity ring

Instead of embedding the ring with minimum communication cost, the ring can be constructed using the sensitivity matrix of the voltage regulation algorithm. Thereby, the neighbor is selected according to its influence on the locally known regulated node. A non-DRES agent j simply sends its local information state to the DRES agent i with the highest sensitivity on node j, acting as remote measurement devices. If a DRES agent i measures the globally maximum voltage value, it always has the highest sensitivity to its own node i and the next neighbor is the DRES agent with second highest sensitivity. Because the sensitivity matrix is shared among all agents, every DRES agent k that receives \((U_i, r_i, t_{r_i})\) can assume that agents with higher sensitivity on \(r_i\) are already informed and, therefore, communicates to the agent with next lower sensitivity. The ring is closed when agent i receives a message from the lowest sensitive agent on \(r_i\). Because the regulated node changes over time, there exist d different rings (row entries of the sensitivity matrix) that are dynamically chosen depending on the local information state at the sending agent. An exemplary sensitivity ring is depicted in Fig. 2, where the marked row vector of the sensitivity matrix is valid for regulated node 2. The non-DRES agent 5 selects agent 1 from the sensitivity matrix.

Fig. 2
figure 2

Example with \(m=6\) communication nodes, \(n=5\) consensus nodes, \(d=4\) DRES nodes depicting the sensitivity ring for regulated node 2

Because the overlay sensitivity ring is dynamically chosen, the convergence time is upper limited by the maximum communication delay of the different ring paths plus the maximum delay of the remote measurement devices. The sensitivity ring contains only d DRES agents, which reduces the communication steps required. On the other hand, sensitivity rings may have more multi-hop edges, hence, convergence time depends on the underlying communication topology. As one significant advantage, the sensitivity ring guarantees that agents with high sensitivity will obtain updated voltage values much faster, which can speed up the PI controller.

Case study

The proposed max-consensus protocol is applied to a co-simulation scenario with the framework mosaik (version 2.5.2) in time resolution of \(1\,{\hbox {ms}}\). The IEEE 906 low voltage test feeder in Fig. 3 is simplified to a balanced single-phase system simulated by pypower.

Fig. 3
figure 3

IEEE  906 low voltage test feeder with 20 DRESs

Consensus agents are located at all 55 household nodes and ideal PV generation profiles are attached at the DRES nodes. The case study demonstrates the impact of communication delay and selection of overlay network on two different communication networks, shown in Fig. 4: (i) A central network \(\mathcal {G}_1\) with a wireless base station at the transformer that connects to all agents with bandwidth of \(1000\, {\hbox {kbit/s}}\) (\(D(\mathcal {G}_1) = 2\)). (ii) A meshed network \(\mathcal {G}_2\) that connects any two agents within \({40}\, {\hbox {m}}\) with bandwidth of \(100\, {\hbox {kbit/s}}\) (\(D(\mathcal {G}_2) = 5\)). The message delay along an edge of the communication network consists of four delay parts for processing, queuing, propagation, and transmission. Since processing and propagation delays are an order of magnitude smaller than the transmission and queuing delays, we focus on the later two.

Fig. 4
figure 4

Communication networks mapped on the IEEE  906 low voltage test feeder

Simulation setup

A simple queuing network simulator models the communication network with queues of unlimited size and first-in-first-out logic at every edge. Note that the communication network only depicts logic links between nodes and does not capture additional delays that occur due to packet collisions in the shared medium. A message contains the compressed Internet protocol header (\({20}\,{\hbox {Byte}}\)), the voltage value as single precision float (\({4}\,{\hbox {Byte}}\)), the regulated node UUID (\({16}\,{\hbox {Byte}}\)) and the sequence number as Unix timestamp (\({4}\,{\hbox {Byte}}\)). In the co-simulation, message delivery is delayed by the calculated transmission and simulated queuing delay \(d (i, j)\) of the path between source i and destination j.

The max-consensus algorithm is compared to a central baseline communication mechanism with a central controller at node 34 that receives all voltage measurements \(U^{loc}_i\), determines the maximum information state every \(\Delta ^{com}\), and transmits the result to all DRES agents. Note that node 34 is centered in \(\mathcal {G}_2\) with minimal total communication hops to all other nodes.

Analysis

The following experiments are executed at 12:00 during the highest PV generation, where household 53 has the unique maximum voltage value and therefore is the regulated node. \(\Delta ^{volt} = {1}\,{\hbox {s}}\) is fixed to be greater than the convergence time to avoid voltage changes before a common regulated node is determined.

Using the local broadcast strategy, every agent is reachable via the base station in the central network \(\mathcal {G}_1\) (\(D(\mathcal {G}_1') = 1\)). In the single broadcast round, each agent transmits \(54 \cdot {44}\,{{\hbox {Byte}}} = {2.376}\,{\hbox {kByte}}\) and the traffic that passes the base station equals \({130.68}\,{\hbox {kByte}}\). Because all agents communicate at once, \(\Delta ^{com}\) is set to \(150\, {\hbox {ms}}\), below which \(\mathcal {G}_1\) cannot handle the amount of messages. With \(D(\mathcal {G}_2) = 5\) and maximum 21 neighbors (mean 13.1) per node, the meshed network \(\mathcal {G}_2\) requires 5 broadcast rounds. Despite a \({21}\,\%\) increase of the total traffic (\(55 \cdot 5 \cdot 13.1 \cdot {44}\,{\hbox {Byte}} = {158,51}\,{\hbox {kByte}}\)), the upper limit passing any vertex is limited by \({9.24}\,{\hbox {kByte}}\). Note that with communication protocols supporting broadcast messages, the required traffic can be reduced. Experimental convergence is shown in Fig. 5.

Fig. 5
figure 5

Convergence time of local broadcast comparing centralized and meshed network

Ring network embedding on the central communication network \(\mathcal {G}_1\) results in two hop communication between any two successive agents, in total 110 hops. However, an optimal ring overlay on the meshed network \(\mathcal {G}_2\) has only one hop between any two agents, in total 55 hops. Because a message is transmitted to only one single neighbor at once, the total traffic is rather small. Bidirectional communication in the static ring nearly halves convergence time, as shown in Fig. 6.

Fig. 6
figure 6

Convergence time of (bidirectional) ring comparing centralized and meshed network

Any sensitivity ring (consisting of the 20 DRES agents) requires 2 hops per agent in \(\mathcal {G}_1\) plus 2 hops for each non-DRES agent to reach the most influential DRES agent. Given the sensitivity matrix of the IEEE 906 low voltage test feeder, the sensitivity rings are embedded in \(\mathcal {G}_2\) with maximum 40 hops (mean 32.9) and maximum distance of non-DRES agents of 3 (mean 1.2). The sensitivity ring of the regulated node 53 requires only 28 hops in \(\mathcal {G}_2\). As can be seen in Fig. 7, the convergence time of the sensitivity ring is reasonable fast, especially on the central network. The total traffic is reduced to \({4.88}\,{\hbox {kByte}}\) for \(\mathcal {G}_1\) and \({7.13}\,{\hbox {kByte}}\) for \(\mathcal {G}_2\) due to hierarchical order of remote measurement devices and smaller ring size.

Fig. 7
figure 7

Convergence time of sensitivity ring for regulated node 53. Note that only the 20 DRES agents need to agree on a consensus

The experiment results are summarized in Table 2, which additionally compares convergence time and traffic requirements with the central baseline algorithm. Similar to local broadcast, the baseline algorithm benefits from meshed networks with no bottleneck at the base station, but represents a single point of failure at the central controller. The sensitivity ring stands out with both, low convergence time and low traffic (total and maximum traffic at a single edge of the communication network). We want to note that with a more realistic network simulator that also covers interference of message delivery in the shared medium air, lower traffic is preferred to avoid packet losses and re-transmission, which impacts the message delay and therefore convergence time. However, this also depends on the actual communication technology chosen. The selection of the overlay network is a trade off between convergence time and total traffic, and the optimal decision also depends on the underlying communication network infrastructure.

Table 2 Comparison of the different neighbor selection strategies with the central baseline algorithm

Conclusion and future work

This paper discussed the problem of determining the maximum voltage value and the corresponding node in the power system using a modified maximum consensus algorithm. Three communication overlay networks are discussed for neighbor selection of each DRES agent. In a case study, the IEEE  906 low voltage test feeder is extended with two communication networks: one with a central base station at the transformer and a meshed network. The simulations show that the optimal overlay network and communication strategy depends on the underlying communication infrastructure and is trade off between convergence time and total required traffic. Local broadcasting works fast in meshed communication networks with reasonable low amount of required traffic per edge. However, central communication networks work best with ring overlay network, where especially the sensitivity ring can drastically reduce the required traffic.

In the future, this work will be extended with an exact communication simulation that considers packet interference in shared media. Furthermore, it is planned to investigate the impact of failures and to perform a closed loop evaluation to identify the impact of the consensus mechanism on the voltage regulation algorithm.