Next Article in Journal
Virtual Power Plants: Challenges, Opportunities, and Profitability Assessment in Current Energy Markets
Next Article in Special Issue
The Implementation and Evaluation of Virtualized Protection Intelligent Electronic Devices into a Virtual Substation
Previous Article in Journal
Electricity Theft Detection and Prevention Using Technology-Based Models: A Systematic Literature Review
Previous Article in Special Issue
Combined Light and Data Driving Stages without Capacitors for Energy Transformation
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Enhancing Distribution Grid Efficiency and Congestion Management through Optimal Battery Storage and Power Flow Modeling

by
Víctor Taltavull-Villalonga
,
Eduard Bullich-Massagué
*,†,
Antonio E. Saldaña-González
and
Andreas Sumper
Centre d’Innovació Tecnològica en Convertidors Estàtics i Accionaments (CITCEA-UPC), Departament d’Enginyeria Elèctrica, Universitat Politècnica de Catalunya ETS d’Enginyeria Industrial de Barcelona, Avinguda Diagonal, 647, Pl. 0, Pav. G, 08028 Barcelona, Spain
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Electricity 2024, 5(2), 351-369; https://doi.org/10.3390/electricity5020018
Submission received: 27 March 2024 / Revised: 14 May 2024 / Accepted: 4 June 2024 / Published: 9 June 2024
(This article belongs to the Special Issue Electricity in 2024)

Abstract

:
The significant growth in demand for electricity has led to increasing congestion on distribution networks. The challenge is twofold: it is needed to expand and modernize our grid to meet this increased demand but also to implement smart grid technologies to improve the efficiency and reliability of electricity distribution. In order to mitigate these congestions, novel approaches by using flexibility sources such as battery energy storage can be used. This involves the use of battery storage systems to absorb excess energy at times of low demand and release it at peak times, effectively balancing the load and reducing the stress on the grid. In this paper, two optimal power flow formulations are discussed: the branch flow model (non-convex) and the relaxed bus injection model (convex). These formulations determine the optimal operation of the flexibility sources, i.e., battery energy storage, with the objective of minimizing power losses while avoiding congestions. Furthermore, a comparison of the performance of these two formulations is performed, analyzing the objective function results and the flexibility operation. For this purpose, a real Spanish distribution network with its corresponding load data for seven days has been used.

1. Introduction

Today, a remarkable and accelerated transformation is taking place in the electrification of European countries, as the European Union has set two significant challenges related to emission reductions, the first being that greenhouse gas emissions should be reduced by 20 percent compared to the 1990 level and the second being that each Member State should achieve 20 percent of its energy consumption from renewable sources [1,2,3].
Due to this increased electrification, electricity distribution systems have to evolve and adapt to changing requirements to facilitate and accommodate this change. These changes include handling higher loads, accommodating higher currents, managing bi-directional power flows, optimizing network configurations for efficiency, and mitigating congestion using flexibility sources [4].
In order to contribute to the stability of the electricity system, flexibility can be defined as the ability to change generation or consumption patterns in response to an external signal (activation signals). This is an important force for the drivers, some examples of which are: integrating renewable energy, which is intermittent and difficult to predict; electrifying systems that consume more, including electric vehicles; maintaining the balance between production and demand; and helping to decarbonize the electricity system [5,6].
Different authors propose using flexibility to solve grid congestions. Authors in [7] discuss all aspects of electric vehicle deployment, particularly their grid support functions in the vehicle-to-grid (V2G) system. It also examines the integration of the electrified fleet with renewable energy sources into the smart grid. In a nutshell, the authors use the V2G capabilities of EVs and analyze their potential, but they do not consider the optimization of flexibility, i.e., the use of flexibility in an optimal way.
The study [8] examines the technical feasibility and potential benefits of using energy storage to increase the transmission capacity of congested transmission systems serving regions of the country with large amounts of renewable energy generation. It also includes a brief description of the various storage applications and reviews previous work by EPRI and others investigating the use of storage in the transmission system. In short, it uses energy storage but does not rely on optimization. In contrast, several studies [9,10,11] propose a market-based mechanism to alleviate distribution grid congestions through a centralized and coordinated home energy management system (HEMS). In this model, the distribution system operator (DSO) applies dynamic tariffs (DT) and daily power-based network tariffs (DPT) to manage congestions induced by EVs and HP. Definitely, it uses demand as network flexibility but does not realize optimal power flows (OPF) [12,13].
Another source of flexibility to be taken into account is the variation of the demand in the industry. In the literature [14,15,16,17], it is studied how to implement this new concept to the distribution networks. However, no optimization of the power flow is carried out.
Optimising engineering problems involves three steps. The first part is based on the mathematical formulation of the problem to be solved. At this point we are in the various cases of optimization that are explained in the literature [18]. The second part is to choose a programming environment and to model the equations for that specific environment. Nowadays there are many different types of languages, and therefore it is interesting to have a comparison between them, and this comparison is done in the literature [19]. Finally, there is the choice of the solver that will do the solving and return the value of the objective function. There are many solvers, the most common being Gurobi, GLPK, CPLEX, and IPOPT.
With regard to the optimization of congested electricity distribution networks, this is explained in [20], but no source of flexibility is used. OPF formulations have been analyzed in [21,22,23]. One of them is a non-convex OPF. This implies that finding the global optimal solution cannot be guaranteed. To solve this, for radial networks, the convex second-order cone optimal power flow (SOCP-OPF) [24,25,26] has been studied. While [24,25] study the properties of the SOCP-OPF formulation, ref. [26] includes photovoltaic and diesel generators into the model.
The aim of this paper is to analyze two optimal power flow model formulations used in the literature: (i) the so-called bus injection model (BIM), a non-convex, non-linear optimal power flow model, and (ii) the branch flow model (BFM), a relaxed convex second-order cone optimization problem. Our contributions include a comparative evaluation of BIM and BFM in terms of network loss optimization, focusing on metrics such as execution time and loss minimization. In addition, these models can provide optimal battery scheduling based on specific battery capacities and locations. The objective of this battery scheduling is to reduce the load in distribution lines when a predefined threshold is exceeded, thereby ensuring the safety levels of the distribution networks.
In this work, we also evaluate the proposed models through a real congestion management case study. Our goal is to offer valuable insights and solutions for designing power distribution systems that are robust and resilient for a sustainable future.
The content of this study is structured as follows: Section 2 describes the methodology used in this work, while Section 3 includes the formulation of the first model, called the bus injection Model, the formulation of the second proposed model, called the branch flow Model, the formulation of the battery model and the objective function of the problem. The case study in Section 4 shows the characteristics and peculiarities of the network under study. The simulation results are presented in Section 5. Finally, in Section 6, conclusions are drawn.

2. Methodology

The methodology shown in Figure 1 describes two different optimization models for battery scheduling within an electricity distribution network. This methodology considers the parameters of the network, generation profiles, demand profiles, and battery parameters to create and execute the optimization analysis.
Module 1—Distribution network modelling: Using Pandapower, a Python-based software, this module constructs a detailed model of the distribution network. This process simulates the realistic network behavior and interactions.
Module 2—Power flow simulation: Using the standard Newton-Raphson method, this module performs a power flow simulation to determine critical metrics such as branch power flows, voltage deviations at each bus, and transformer loads. This simulation identifies potential network overloads and areas for improvement.
Assessment of loading criteria: An integral part of the methodology is the assessment of network assets against pre-defined DSO thresholds. Exceeding these thresholds triggers the implementation of the optimal battery charge/discharge schedule to mitigate congestion risks and improve network reliability.
Module 3—Optimization model comparison: This module entails a comparative analysis of two optimization models: the branch-current-based model (BIM) and the branch-flow model (BFM). The primary objective is to minimize overall network losses, adhering to the following criteria: BIM Optimization Model: This model formulates an admittance matrix encapsulating the power flow equations and network constraints, including battery model constraints and optimal congestion management strategies. The evaluation focuses on performance metrics such as execution time and the effectiveness of loss minimization. BFM Optimization Model: Contrasting the BIM, the BFM does not incorporate an admittance matrix but still models the power flow equations and network constraints, along with battery model constraints and optimal congestion management. The evaluation similarly emphasizes the efficiency in execution time and loss reduction. Finally, the optimization problem is solved using an interior point solver combined by the branch and bound for tracking the binary variables.

3. OPF Formulations

3.1. Bus Injection Model Formulation

The calculation of the variables in an electrical network is usually carried out using load flow. This method makes it possible to obtain the power flowing through the network and the different voltage or current values at each point in the network. However, the operation of the network entails the need to satisfy specific demands and safety constraints. The task of operating the network, therefore, is to fulfill this demand while complying with grid constraints and minimizing a specific objective function simultaneously. This operation is obtained by applying an optimization problem based on the load flow equations, which is called optimal power flow.
  • Admittance matrix
The bus injection model (BIM) equations require several network characteristics to be obtained. Specifically, it is first necessary to obtain the admittance matrix of the grid in order to carry out all the calculations. The admittance matrix is very well known, but in this article, its basis is recalled as being key to the development of the model in question.
The matrix size is n × n, where n is the number of nodes in the network. For its calculation, it is necessary to differentiate between the diagonal elements of the matrix and the off-diagonal elements. The method to follow for each is:
(i)
Diagonal elements ( Y i i ): equals the sum of all admittances connected to bus i ( i = 1 , , n ).
(ii)
Elements outside the diagonal ( Y i j ): equals the admittance between bus i and j ( i , j = 1 , , n ; i j ) changed sign.
This gives the admittance matrix Y b u s . This can also be expressed as the sum of two matrices, the real part ( G b u s ) and the imaginary part ( B b u s ) of Y b u s , as shown in Equation (1). This form is used in this model as it allows working only with real values, making the calculations much more straightforward.
[ Y b u s ] = Y 11 Y 12 Y 1 n Y 21 Y 22 Y 2 n Y n 1 Y n 2 Y n n = [ G b u s ] + j [ B b u s ]
  • BIM Formulation
First, the indices associated with the variables or parameters are shown in Table 1. These indicate more precisely which specific element the variable or parameter refers to. Table 2 shows the nomenclature of the variables used in this formulation, and Table 3 depicts the required model parameters. These have a fixed value that is given by the network characteristic itself.
  • OPF-BIM Equations
The BIM formulation is the most common formulation and is mainly based on node-related variables. The power balances at the nodes are shown in Equations (2) and (3).
P n t = V n t m = 1 n V m t G n m · cos ( δ n t δ m t ) + B n m · sin ( δ n t δ m t ) t T ; n N ;
Q n t = V n t m = 1 n V m t G n m · sin ( δ n t δ m t ) B n m · cos ( δ n t δ m t ) t T ; n N ;
This power is related to generation and demand according to Equations (4) and (5). In this way, power injected into the grid is considered positive and negative if consumed.
P n t = P G n t P d n t t T ; n N ;
Q n t = Q G n t Q d n t t T ; n N ;
In order to solve the load flow, it is necessary to fix the voltage and angle of a particular node. As usual, the chosen Slack node corresponds to the connection to the high-voltage transformer. The modulus of the voltage and its angle are set according to (6):
V n t = V s l a c k t T ; n = 1 ;
n t = 0 t T ; n = 1 ;
The main objective of this optimization is that the lines do not exceed a certain percentage of load. To achieve this, it is necessary to obtain variables concerning the lines and not only concerning the nodes. In this formulation, as seen in the (8) and (9) equations, the powers between nodes are calculated to impose a limit on them, thus limiting their load.
P n m t = V n t g n n l V n t g n n l V m t cos ( δ n t δ m t ) + b n m l V m t sin ( δ n t δ m t ) t T ; ( n , m ) L ;
Q n m t = V n t b n n l V n t + b n n l V m t cos ( δ n t δ m t ) + g n m l V m t sin ( δ n t δ m t ) t T ; ( n , m ) L ;
For the BIM model, the constraint is given by the maximum apparent power of the line, so the Equation (10)
P n m t 2 + Q n m t 2 = L P max · S max   m 2 t T ; ( n , m ) L ;

3.2. Brach Flow Model Formulation

A second-order cone problem (SOCP) is an optimization problem that is convex, leading to global optimum solutions. To obtain an SOCP using the BFM formulation and find a globally optimal solution, we make a relaxation of the equations, which is explained below.
  • Branch Flow Model Formulation
The indices of this model add two more elements that take into account whether nodes are the origin or the destination of a line. This is seen in the Table 4.
In this model, the bus voltage and line current are squared, and the angle of the voltages is not taken into account, as can be seen in Table 5.
In the BFM model, no use is made of the admittance matrix, and the resistance and impedance of each line are used directly. Below is the Table 6 with the parameters.
  • OPF-BFM Equations
The second formulation of the optimal load flow is called the branch flow model (BFM). Unlike the previous one, this model uses mainly line variables instead of node variables and is designed for radial networks.
The slack node’s active and reactive power balances are shown in (11) and (12), respectively. This differs from the others as it will always be the source node of the lines and never the destination node. The balance at the rest of the nodes is detailed in (13) and (14). This considers the power losses caused by the resistance and inductance of the lines. The consumption at a node is equal to the input power minus the output power.
P n t G = m d ( n ) P n m t t T ; n = 1 ;
Q n t G = m d ( n ) Q n m t t T ; n = 1 ;
P n t = m u ( n ) ( P n m t r m n · i m n t ) m d ( n ) P n m t t T ; n N { 1 } ;
Q n t = m u ( n ) ( Q n m t x m n · i m n t ) m d ( n ) Q n m t t T ; n N { 1 } ;
The consumption equations are shown in Equations (15) and (16). They represent the expected demand minus the power generated at that node. Unlike the BFM model, positive power is considered at a node if consumed and negative injected into the grid.
P n t = P d n t P G n t t T ; n N ;
Q n t = Q d n t Q G n t t T ; n N ;
The voltage drop is expressed according to (17). As in the previous case, the slack voltage is set to a specific value. These voltages refer to the bus voltage squared, just as the current is also the line current squared. This variable change makes it possible to obtain linear equations, facilitating their calculation. In addition, it should be noted that the admittance matrix is not necessary in this formulation.
v m t = v n t 2 ( r n m P n m t + x n m Q n m t ) + i n m t ( r n m 2 + x n m 2 ) t T ; n N ; m M ;
v n t = v slack t T ; n = 1
The power flowing between nodes is expressed according to (19). However, this constraint is clearly non-linear and also non-convex. This is a problem for its resolution, as it makes it challenging to obtain the global optimum of the problem. To solve it, the constraint is relaxed to transform into (20), obtaining a convex constraint.
i n m t = P n m t 2 + Q n m t 2 v n t t T ; n N ; m d ( n ) ;
i n m t · v n t P n m t 2 + Q n m t 2 t T ; n N ; m d ( n ) ;
This relaxation, however, can lead to a physically meaningless result if the equality is not satisfied. For this reason, once the simulation has been carried out, it is necessary to check that the result obtained complies with the equality constraint. If this is not the case, the objective function must be modified, and an iterative process must be executed.
For the BFM model, according to the percentage of the maximum allowable load, the square of the current flowing through the lines is also limited according to the expression (21).
i n m t = ( i n m m a x · L P m a x ) 2 t T ; n N ; m d ( n ) ;

3.3. Battery Model

Batteries have the unique ability to inject and absorb power flows in a controlled manner. This allows the load on a line to be dynamically adjusted and energy to be efficiently redistributed. Challenges such as grid congestion, integrating intermittent renewables, and improving power supply stability and quality can be addressed by harnessing this capability.
  • Battery formulation
The battery variables are the same in both models and are discussed in Table 7:
Subsequently, the battery-related parameters are also shown, which, as with the variables, are the same for both models. Below is the Table 8 with the parameters.
  • Battery equations
Next, the sources of flexibility, in this case batteries, are modeled. Each battery’s state of charge (SOC) is calculated according to (22). This considers the battery’s performance, which produces power losses when interacting with the grid.
S O C n t = P n t C h · Δ T · η C n P n t D i s · Δ T C n · η + S O C n ( t 1 ) t T { 1 } ; n F ;
Battery charging is limited to an operating range according to (23) to increase the life cycle of the battery, as this avoids complete charge/discharge cycles. Each battery’s initial state of charge is shown in (24).
S O C n m i n S O C n t S O C n m a x t T ; n F ;
S O C n t = S O C n i n i si t = 1 ; n F ;
The charging and discharging power of the battery is restricted according to (25) and (26), respectively. This ensures that the battery is constantly charging or discharging.
P n t D i s · ( 1 α n t ) P n , M a x D i s t T ; n F ;
P n t C h · α n t P n , M a x C h t T ; n F ;
The power generated at nodes with flexibility is shown in (27) and is equal to the discharge power minus the load power.
P n t G = P n t D i s P n t C h t T ; n F ;

3.4. Object Function

The objective function is the last equation to be defined in the optimization problem, aimed at minimizing the network losses. Thus, in the first model, the objective function to be minimized is expressed as (28):
O b j = ( n , T ) P n t
On the other hand, in the second model, the objective function minimized is seen in expression (29).
O b j = ( n , m , T ) r m n · i n m t
It can be seen that in both functions, the same is calculated but in different ways due to the different model formulations. However, this does not affect the result. In both models, the losses are minimized either by Ohm’s law or by the basic formulae for electricity transmission networks.

4. Case Study

The network used in the analysis of this study is a 116-node Spanish distribution network with a rated voltage of 25 kV, while the rated power at the first section (from node 1 to node 2) is 10.5 MVA. It consists of a mainline with two branches, as seen in Figure 2. The characteristics and parameters of the network can be found in Appendix A.
Focusing on the energy demand data of the network, these are distributed over the different nodes. The demand for each node in the network can be seen in Figure 3. In this figure, the aim is to show the behavior of these nodes and to see the scale of magnitude of the consumption, which ranges between 0 and 0.6.
On the other hand, the aggregate demand at the slack node of such a network over a year can be seen in Figure 4. It can be seen that there are some peaks in demand at 9 and 10 MVA. However, the demand remains relatively constant throughout the year at around 4 MVA base and 7 MVA peak. It should be noted that there are times when demand is 0, and this is supposed to be due to network maintenance days.
Note that if we look at the enlargement of Figure 4, we can observe a periodicity in the behavior of consumption, where consumption is higher during the week than at weekends.
Once all the data are known, the optimal power flow models developed can be analyzed and tested.

5. Results

The results obtained have been validated with a load flow calculation tool (Matpower), verifying that the results comply with the power flow equations.

5.1. Line Congestion Analysis at the Initial Situation

Currently, the analyzed network does not have a source of flexibility. A series of power flows are carried out during different periods of high demand to check whether the network needs congestion mitigation mechanisms. Specifically, the most interesting analysis focuses on the week with the highest consumption from days 202 to 209, which corresponds to 22th July to 28th July. The overall result for all lines can be seen in Figure 5.
As the above figure can be difficult to interpret, as an example, the result for the most congested line is shown in Figure 6:
It can be seen that line 9 of the network is overloaded up to four times. Accordingly, the distribution system operator (DSO) is evaluating the installation of a flexibility source based on a battery at node 49 to avoid grid congestion.

5.2. Optimal Battery Operation for Grid Congestion Management

The proposed battery is planned to be installed at node 49, as the network configuration is a bifurcation network, with node 49 being the point where it splits in two. This is the optimal node to avoid the congestion. Figure 5 shows how, from one line onwards, the distribution of the power circulating in the network drops considerably, and this change occurs at this node where there is a bifurcation.
The characteristics of the battery are shown in Table 9. As an initial hypothesis, an initial state of charge of 50% is assumed, as this is not a very high and quite probable value.
With the introduction of the battery, we can start to decongest the network. We will limit the maximum apparent power that can circulate through the line to 90%. The limit is set at 90% for distribution system operator security reasons. This is because the predictions they make can be erroneous, thus ensuring that the network always works correctly.
To operate the battery optimally and avoid congestion, the optimal power flow explained in Section 2 and Section 3 is executed. The result of the battery operation is shown in Figure 7.
It can be observed that the periods of congestion on line 9 have disappeared and that, in general, the grid operates more smoothly, i.e., its load percentage is lower in cases where optimal power flows are used, thanks to the use of the battery. The battery optimizes the operation of the network and reduces the load on the distribution lines by feeding and withdrawing energy from the network.
It will be on display that the optimal power flow of the line never reaches the safety limit set by the DSO (yellow discontinuous line); this is an important aspect to highlight as in some scenarios, the DSO forecast can be wrong, and this 10% safety limit prevents the network from operating under stress.

5.3. Comparison between the Two Optimization Models

We will compare the two models in different areas of interest to decide which is more optimal and scalable once we have seen that the two models are valid for decongesting the network.
On the one hand, we will focus on battery usage. If we look at Figure 8, we can see that both models’ instantaneous state of charge is the same. This is quite logical, as they both optimize the SOC.
Figure 9 shows the change in the behavior of the stresses of the nodes during optimization; it can be seen that these generally have smaller and flatter peaks. However, as there were no problems before, now there are no problems either, although the behavior is better.
On the other hand, a box/whisker plot is used to analyze the result of the objective function. In Figure 10, it is possible to see that the function of the BFM model is slightly better than that of the BIM model. If we calculate the real error between the two solutions, we can see that the maximum difference is 0.11641 in the first iteration. This difference decreases as the days go by.
Then, the modelstat of the optimizations is studied, as it gives us information about the model concerned: validation of the model, effective optimization, and the possibility of generalizing to new scenarios. In our case, the modelstat for the two models is different. For the BIM model, it is 8, which in GAMS means proven optimal, meaning that it has been mathematically proven to meet all the requirements of the problem but that the model does not assure you that it is the best solution. However, in the BFM it is 1, which in GAMS means globally optimal, meaning that it is the best probable solution.
When looking at the results concerning the computational time of operation of each model in Figure 11, it can be seen that the time taken by the BFM to perform each optimization is approximately four times longer than the BIM model.
Specifically, in Table 10, the calculation time of each period is analyzed, leaving a list of the values of the 7 optimized periods.

6. Conclusions

This paper investigates asset congestions in power distribution lines, which could occur due to increasing electrification. This work compares two optimal power flow models, the bus injection model and the branch flow model, to minimize losses and mitigate the congestion. The study demonstrates that these models maintain congestion below 90% of the line capacity, highlighting the identical resource management efficiency of both models. Another interesting finding is that battery usage is identical in both formulations when mitigating line congestions, indicating consistent resource management.
In addition, the objective function value of the BFM model was slightly higher than that of the BIM model, underlining the effectiveness of the proposed formulation The maximum difference between the two solutions in the simulation of one day is 0.11, corresponding to the first day simulated; the following days, the error between the two models is of the order of 0.01. In this case, the relaxation gap remains zero throughout the optimization period, suggesting robustness in solving the proposed problem. In terms of computation times, the BIM model is notably more efficient than the BFM as observed in Table 10, in practically all simulation periods the computation time of the BFM is four times longer than the computation time of the BIM. However, it is important to consider that the BFM model achieves a global optimum. In the case study of this paper, the results of the objective function are quite similar. However, generally speaking, BIM cannot ensure finding a global optimum.
Finally, when observing the voltage drops in the network nodes, it can be seen that even though there are no problems with the voltage limits, when the optimization is carried out and the battery is introduced, the levels improve with respect to the initial case; specifically, before introducing the battery, the voltage peaks dropped to 0.992 pu and now only to 0.994 pu, as can be seen in Figure 9. It should be noted that, in the battery state of charge, in this case the results of the BIM and the BFM are identical.
For future research directions, it is suggested to explore the integration of demand-side flexibility or electric vehicles to alleviate excessive stress on batteries. This approach would leverage three sources of flexibility and enhance adaptability within the electricity grid. Such areas offer new opportunities to further improve the efficiency and management of the electricity system. In addition, it is also suggested to introduce different renewable generation sources, such as photovoltaic or wind, together with their respective generation profiles to analyze the dynamic behavior of the grid.

Author Contributions

Conceptualization, V.T.-V., E.B.-M., A.E.S.-G. and A.S.; methodology, V.T.-V., E.B.-M., A.E.S.-G. and A.S.; validation, E.B.-M. and A.S.; formal analysis, V.T.-V.; investigation, V.T.-V.; resources, V.T.-V. and A.E.S.-G.; writing—original draft preparation, V.T.-V.; writing—review and editing, V.T.-V., E.B.-M., A.E.S.-G. and A.S.; visualization, V.T.-V., E.B.-M., A.E.S.-G. and A.S.; supervision, E.B.-M. and A.S.; project administration, E.B.-M. and A.S. All authors have read and agreed to the published version of the manuscript.

Funding

This project has been supported by the Chair of Energy Innovation and Sustainability Endesa Red. This publication is part of the project TED2021-131753B-I00, funded by MICIU/AEI/ 10.13039/501100011033 and by the European Union “NextGenerationEU/PRTR”. The work of Andreas Sumper is supported by the ICREA Academia program. Eduard Bullich-Massagué is a lecturer of the Electrical Engineering Department of UPC of the Serra Húnter Programme.

Data Availability Statement

The datasets presented in this article is not available because it contains confidential grid and user data. Requests to access the datasets should be directed to “e-distribution España”.

Acknowledgments

We would like to thank the Chair of Energy Innovation and Sustainability Endesa Red for providing grid data and making this study possible.

Conflicts of Interest

The authors declare no conflicts of interest.

Appendix A. Parameters of the Study Network

Table A1. Characteristics of the case study network.
Table A1. Characteristics of the case study network.
fromtoLength (km)r ( Ω · km)x ( Ω · km)fromtoLength (km)r ( Ω · km)x ( Ω · km)
010.1250.0780.105058590.1260.0780.1050
120.2010.0780.102059600.0740.0780.1050
230.1970.0780.102060610.0190.0780.1050
340.1330.0780.105061620.0270.0780.1050
450.1320.0780.102062630.0630.0780.1050
5601350.0780.102063640.1090.0780.1050
670.5340.0780.105064650.0080.0780.1050
780.8020.0780.105065660.0340.0780.1050
890.0610.1250.113066670.1310.0780.1050
9100.3650.0780.102067680.0460.0780.1050
10110.0070.0780.102068690.020.0780.1050
11120.0210.0780.102069700.0160.0780.1050
12130.3780.0780.105070710.0170.0780.1050
13141.1150.0780.102071720.0860.0780.1050
14150.0190.0780.105072730.0450.0780.1050
15160.0860.0780.105073740.0060.0780.1050
16170.1540.0780.105074750.040.0780.1020
17180.0190.0780.105075760.0530.0780.1050
18190.020.0780.105076770.0910.0780.1050
19200.130.0780.105077780.0520.0780.1050
20210.0530.0780.105078790.0450.0780.1020
21220.0510.0780.105079800.0440.0780.1020
22230.0880.0780.105080810.0530.0780.1020
23240.310.0780.102081820.0550.0780.1050
24250.310.0780.102082830.0190.0780.1050
25260.0010.0780.102083840.1680.0780.1050
26270.050.0780.105084850.010.1250.1090
27280.0470.0780.105085860.0020.1250.1090
28290.0640.0780.102086870.0130.0780.1020
29300.0670.0780.105087880.0060.0780.1020
30310.020.0780.105088890.0180.0780.1020
31320.040.0780.102089900.030.0780.1020
32330.0410.0780.102090910.0750.1250.1130
33340.0780.0780.105091920.0560.1250.1130
34350.0130.0780.105049930.160.1250.1090
35360.040.0780.105093940.0730.0780.1020
36370.010.0780.105094950.0360.1930.1330
37380.0090.0780.105095960.0040.1250.1130
38390.3340.0780.105096970.0030.1930.1330
39400.0410.0780.102097980.1270.1930.330
40410.0470.0780.102098990.0060.1250.1130
41420.5040.0780.1050991000.0550.1930.1330
42430.070.0780.10501001010.0170.0780.1050
43440.0150.0780.10501011020.0110.0780.1050
44450.0110.0780.10501021030.1050.1930.1330
45460.030.0780.10501031040.0490.0780.1050
46470.0590.0780.10501041050.0530.0780.1050
47480.0960.0780.10501051060.0330.1930.1330
48490.0570.0780.10501061070.040.1250.1130
49500.1040.0780.10501071080.0090.1250.1130
50510.0730.0780.10501081090.4540.1930.1330
51520.1760.0780.10501091100.1210.1930.1330
52530.0140.0780.10501101110.0130.1250.1130
53540.1020.0780.10501111120.0150.1250.1130
54550.1020.0780.10501121130.0930.1930.1330
55560.110.0780.10501131140.0260.0780.1050
56570.0490.0780.10501141150.0310.0780.1050
57580.040.0780.09701151160.1230.1930.1330

References

  1. Circular Economy. Available online: https://environment.ec.europa.eu/topics/circular-economy_en (accessed on 8 February 2024).
  2. Energy. Available online: https://energy.ec.europa.eu/index_en (accessed on 8 February 2024).
  3. Mobility and Transport. Available online: https://transport.ec.europa.eu/index_en (accessed on 8 February 2024).
  4. Olivella-Rosell, P.; Bullich-Massagué, E.; Aragüés-Peñalba, M.; Sumper, A.; Ødegaard Ottesen, S.; Vidal-Clos, J.A.; Villafáfila-Robles, R. Optimization problem for meeting distribution system operator requests in local flexibility markets with distributed energy resources. Appl. Energy 2018, 210, 881–895. [Google Scholar] [CrossRef]
  5. Degefa, M.Z.; Sperstad, I.B.; Sæle, H. Comprehensive classifications and characterizations of power system flexibility resources. Electr. Power Syst. Res. 2021, 194, 107022. [Google Scholar] [CrossRef]
  6. O’Dwyer, C.; Duignan, R.; O’Malley, M. Modeling demand response in the residential sector for the provision of reserves. In Proceedings of the IEEE Power and Energy Society General Meeting, San Diego, CA, USA, 22–26 July 2012. [Google Scholar] [CrossRef]
  7. Bibak, B.; Tekiner-Moğulkoç, H. A comprehensive analysis of Vehicle to Grid (V2G) systems and scholarly literature on the application of such systems. Renew. Energy Focus 2021, 36, 1–20. [Google Scholar] [CrossRef]
  8. Rosso, A.D.D.; Eckroad, S.W. Energy storage for relief of transmission congestion. IEEE Trans. Smart Grid 2014, 5, 1138–1146. [Google Scholar] [CrossRef]
  9. Ghazvini, M.A.F.; Lipari, G.; Pau, M.; Ponci, F.; Monti, A.; Soares, J.; Castro, R.; Vale, Z. Congestion management in active distribution networks through demand response implementation. Sustain. Energy Grids Netw. 2019, 17, 100185. [Google Scholar] [CrossRef]
  10. Huang, S.; Wu, Q. Real-time congestion management in distribution networks by flexible demand swap. IEEE Trans. Smart Grid 2018, 9, 4346–4355. [Google Scholar] [CrossRef]
  11. Vo, T.H.; Haque, A.N.M.M.; Nguyen, P.H.; Kamphuis, I.G.; Eijgelaar, M.; Bouwman, I. A study of Congestion Management in Smart Distribution Networks based on Demand Flexibility. In Proceedings of the 2017 IEEE Manchester PowerTech, Manchester, UK, 18–22 June 2017. [Google Scholar]
  12. Morales-España, G.; Martínez-Gordón, R.; Sijm, J. Classifying and modelling demand response in power systems. Energy 2022, 242. [Google Scholar] [CrossRef]
  13. Ribó-Pérez, D.; Larrosa-López, L.; Pecondón-Tricas, D.; Alcázar-Ortega, M. A critical review of demand response products as resource for ancillary services: International experience and policy recommendations. Energies 2021, 14, 846. [Google Scholar] [CrossRef]
  14. Wan, P.K.; Ranaboldo, M.; Burgio, A.; Caccamo, C.; Fragapane, G. A Framework for Enabling Manufacturing Flexibility and Optimizing Industrial Demand Response Services; Springer Science and Business Media Deutschland GmbH: Cham, Germany, 2023; Volume 692 AICT, pp. 634–649. [Google Scholar] [CrossRef]
  15. FLEX4FACT Project. Available online: https://flex4fact.eu (accessed on 3 June 2024).
  16. Lund, P.D.; Lindgren, J.; Mikkola, J.; Salpakari, J. Review of energy system flexibility measures to enable high levels of variable renewable electricity. Renew. Sustain. Energy Rev. 2015, 45, 785–807. [Google Scholar] [CrossRef]
  17. Nižetić, S.; Arıcı, M.; Hoang, A.T. Smart and Sustainable Technologies in energy transition. J. Clean. Prod. 2023, 389, 135944. [Google Scholar] [CrossRef]
  18. Boyd, S.P.; Vandenberghe, L. Convex Optimization; Cambridge University Press: Cambridge, UK, 2004; p. 716. [Google Scholar]
  19. Hofmann, F. Linopy: Linear optimization with n-dimensional labeled variables. J. Open Source Softw. 2023, 8, 4823. [Google Scholar] [CrossRef]
  20. Nguyen, D.B.; Scherpen, J.M.; Bliek, F. Distributed Optimal Control of Smart Electricity Grids with Congestion Management. IEEE Trans. Autom. Sci. Eng. 2017, 14, 494–504. [Google Scholar] [CrossRef]
  21. Caballero, J.A.; Grossmann, I.E. Una revisión del estado del arte en optimización. Rev. Iberoam. Autom. Inform. Ind. RIAI 2007, 4, 5–23. [Google Scholar] [CrossRef]
  22. Subhonmesh, B.; Low, S.H.; Chandy, K.M. Equivalence of branch flow and bus injection models. In Proceedings of the 2012 50th Annual Allerton Conference on Communication, Control, and Computing (Allerton), Monticello, IL, USA, 1–5 October 2012; pp. 1893–1899. [Google Scholar] [CrossRef]
  23. Yang, T.; Guo, Y.; Deng, L.; Sun, H.; Wu, W. A Linear Branch Flow Model for Radial Distribution Networks and Its Application to Reactive Power Optimization and Network Reconfiguration. IEEE Trans. Smart Grid 2021, 12, 2027–2036. [Google Scholar] [CrossRef]
  24. Farivar, M.; Low, S.H. Branch flow model: Relaxations and convexification-part i. IEEE Trans. Power Syst. 2013, 28, 2554–2564. [Google Scholar] [CrossRef]
  25. Yuan, Z. Formulations and Approximations of Branch Flow Model for General Power Networks. J. Mod. Power Syst. Clean Energy 2022, 10, 1110–1126. [Google Scholar] [CrossRef]
  26. Bullich-Massagué, E.; Aragüés-Peñalba, M.; Prieto-Araujo, E.; Sumper, A.; Caire, R. Optimal feeder flow control for grid connected microgrids. Int. J. Electr. Power Energy Syst. 2019, 112, 144–155. [Google Scholar] [CrossRef]
Figure 1. Flowchart of the article methodology.
Figure 1. Flowchart of the article methodology.
Electricity 05 00018 g001
Figure 2. Study distribution network structure and topology.
Figure 2. Study distribution network structure and topology.
Electricity 05 00018 g002
Figure 3. Apparent power demanded hourly by each network node over one year.
Figure 3. Apparent power demanded hourly by each network node over one year.
Electricity 05 00018 g003
Figure 4. Apparent power aggregated to the slack node throughout the year and zoom of the week with the highest consumption of the year.
Figure 4. Apparent power aggregated to the slack node throughout the year and zoom of the week with the highest consumption of the year.
Electricity 05 00018 g004
Figure 5. Power flow result. Apparent power is flowing through each line of the network.
Figure 5. Power flow result. Apparent power is flowing through each line of the network.
Electricity 05 00018 g005
Figure 6. Apparent power flowing through line 9 of the network when carrying out a power flow.
Figure 6. Apparent power flowing through line 9 of the network when carrying out a power flow.
Electricity 05 00018 g006
Figure 7. Percentage load of network line 9 for each study model (Power Flow, BIM, and BFM) and maximum power and safety limits of the DSO.
Figure 7. Percentage load of network line 9 for each study model (Power Flow, BIM, and BFM) and maximum power and safety limits of the DSO.
Electricity 05 00018 g007
Figure 8. State-of-charge behavior of the network storage system over 7 time periods.
Figure 8. State-of-charge behavior of the network storage system over 7 time periods.
Electricity 05 00018 g008
Figure 9. Comparison between voltage results for power flow and optimal power flow.
Figure 9. Comparison between voltage results for power flow and optimal power flow.
Electricity 05 00018 g009
Figure 10. BoxPlot of objective function results with BIM and BFM models.
Figure 10. BoxPlot of objective function results with BIM and BFM models.
Electricity 05 00018 g010
Figure 11. Comparison of Computational Time Using BIM and BFM Models.
Figure 11. Comparison of Computational Time Using BIM and BFM Models.
Electricity 05 00018 g011
Table 1. Indices for the BIM model.
Table 1. Indices for the BIM model.
IndexDefinition
n = ( 1 N ) Nodes of the network (slack node: n = 1 )
m = ( 1 M ) Nodes of the network
FNodes of the network where there are batteries
LLines ( n , m ) that connect nodes n and m
TSimulation periods
Table 2. BIM model variables.
Table 2. BIM model variables.
VariableDefinition
V n t Voltage at node n at time t
δ n t Voltage angle at node n at time t
P n t Active power injected into the network through node n at time t
Q n t Reactive power injected into the network through node n at time t
P G n t Active power generated at node n at time t
Q G n t Reactive power generated at node n at time t
P n m t Active power transferred from node n to node m at time t
Q n m t Reactive power transferred from node n to node m at time t
Table 3. BIM model parameters.
Table 3. BIM model parameters.
ParameterDefinition
P d n t Active power consumed at node n at time t
Q d n t Reactive power consumed at node n at time t
G n m Real part of the admittance matrix between nodes n and m
B n m Imaginary part of the admittance matrix between nodes n and m
g l n m Real part of the admittance matrix between nodes n and m via line l
b l n m Imaginary part of the admittance matrix between nodes n and m via line l
V s l a c k Voltage at the slack node
S m a x n m Maximum apparent power on the line connecting nodes n and m
L P m a x Maximum line loading percentage
Table 4. BFM model indices.
Table 4. BFM model indices.
IndexDefinition
NNodes of the network (slack node: n = 1 )
LLines ( n , m ) going from node n (origin) to node m (destination)
u ( n ) Nodes m N that are the origin of node n N
d ( n ) Nodes m N that are the destination of node n N
FNodes of the network where there are batteries
TSimulation periods
Table 5. Variables of the BFM model.
Table 5. Variables of the BFM model.
VariableDefinition
v n t Square of the voltage at node n at time t
i n m t Square of the current flowing between node n and m at time t
P n t Active power injected into node n at time t
Q n t Reactive power injected into node n at time t
P G n t Active power generated at node n at time t
Q G n t Reactive power generated at node n at time t
P n m t Active power transferred from node n to node m at time t
Q n m t Reactive power transferred from node n to node m at time t
Table 6. Parameters of the BFM model.
Table 6. Parameters of the BFM model.
ParameterDefinition
r m n Resistance of the line from node n to m
x m n Reactance of the line from node n to m
v slack Square of the voltage at the slack node
P d n t Active power consumed at node n at time t
Q d n t Reactive power consumed at node n at time t
i m a x n m Maximum square of the current in the line from node n to m
L P m a x Maximum line loading percentage
Table 7. Battery variables.
Table 7. Battery variables.
VariableDefinition
S O C n t State of charge of the battery at node n at time t (Non-negative variable)
P n t D i s Battery discharge power at node n at time t (Non-negative variable)
P n t C h Battery charging power at node n at time t (Non-negative variable)
α n t Binary variable indicating whether the battery at node n is charging at time t
Table 8. Battery parameters.
Table 8. Battery parameters.
ParameterDefinition
η Battery efficiency
C n Battery capacity at node n
S O C m i n n t Minimum state of charge of the battery at node n
S O C m a x n t Maximum state of charge of the battery at node n
P D i s n , M a x Maximum battery discharge power at node n
P C h n , M a x Maximum battery charging power at node n
Table 9. Battery parameters.
Table 9. Battery parameters.
ParameterDefinition
Initial battery charge50%
Battery capacity35 MW
Battery efficiency90%
Maximum battery power3 MW
Table 10. Computation Time Values for BIM and BFM.
Table 10. Computation Time Values for BIM and BFM.
PeriodComputation Time BIM (s)Computation Time BFM (s)
1104.42306.252
286.149527.227
375.3324.046
472.966362.967
570.792456.844
691.234405.74
784.457337.046
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Taltavull-Villalonga, V.; Bullich-Massagué, E.; Saldaña-González, A.E.; Sumper, A. Enhancing Distribution Grid Efficiency and Congestion Management through Optimal Battery Storage and Power Flow Modeling. Electricity 2024, 5, 351-369. https://doi.org/10.3390/electricity5020018

AMA Style

Taltavull-Villalonga V, Bullich-Massagué E, Saldaña-González AE, Sumper A. Enhancing Distribution Grid Efficiency and Congestion Management through Optimal Battery Storage and Power Flow Modeling. Electricity. 2024; 5(2):351-369. https://doi.org/10.3390/electricity5020018

Chicago/Turabian Style

Taltavull-Villalonga, Víctor, Eduard Bullich-Massagué, Antonio E. Saldaña-González, and Andreas Sumper. 2024. "Enhancing Distribution Grid Efficiency and Congestion Management through Optimal Battery Storage and Power Flow Modeling" Electricity 5, no. 2: 351-369. https://doi.org/10.3390/electricity5020018

APA Style

Taltavull-Villalonga, V., Bullich-Massagué, E., Saldaña-González, A. E., & Sumper, A. (2024). Enhancing Distribution Grid Efficiency and Congestion Management through Optimal Battery Storage and Power Flow Modeling. Electricity, 5(2), 351-369. https://doi.org/10.3390/electricity5020018

Article Metrics

Back to TopTop