Improving Grid Impedance Estimation Using Model Fitting

Table of contents

  1. Introduction
  2. Using Estimated Data for Operational Planning
  3. Proposed Model Fitting Algorithm
  4. Key Takeaways

1) Introduction

The voltage control I have developed in previous studies are model based controllers, which rely fully on grid data (i.e., line impedance data).

However in real-life, distribution grid data is usually not available/hard to obtain, especially for low-voltage grid.

In this study, I develop a model fitting algorithm to compute line impedance using historic measurement data.

The test case used in this study is a 11-bus distribution grid, as shown in figure below:



In the test case, we use a centralized controller to control the battery (the PV is not controllable/cannot be curtailed) in order to maintain the grid voltage.

We consider one-day simulation/operation with 30 minutes time step. The controller then aims to optimize the battery for the full one day of operation.

In the first step of the simulation, we do not have any knowledge of the line impedance. Thus, I use a rough estimation for the impedance value. This point will be explained further in the next section.

Firstly, let's load the grid data and PV profile:

Load the data & profile

Let's look on the PV profile:

And the load profile:

2) Operational Planning with Estimated Data

To recall, our main objective is to maintain the grid voltage over the day using batteries. To do so, I developed a voltage control / optimization algorithm that takes into account battery operation. The proposed voltage control was adapted based on my previous work. The full formulation of the controller is not yet available because it is still an ongoing publication.

In the first step of this study, we try to use estimated grid (line impedance) data to optimize the grid operation, because the real/actual data is not available.

Let's open our estimated data:

Now, let's see the difference between the estimated data that we will use for optimization and the actual data:

Figure above shows the difference between the actual data of line resistance (top) and the reactance (bottom) and the dashed lines represent the absolute error between the actual and the estimated data.

Note that line 3 has very small resistance and reactance, thus we cannot see clearly in the bar chart. As we can see, our estimation is not perfect, with some lines can reach absolute error above 50 %.

This situation may happen in real life, since grid data is oftenly not available.

Now, let's see what happen if we use our estimated data to control the grid operation.

We use the following controller parameters:

Note that the parameters used here are different than the two previous studies.

Now run the controller:

The output of the controller is battery operational schedule for one day, which are battery state-of-charge (SoC) and battery power setpoints. Moreover, the controller also internally calculate the expected grid voltage.

The battery SoC:

Now, let's use the obtained intial battery setpoints in the actual operation (load flow simulation):

To assess the accuracy of the estimated impedance, we can compare the expected voltage computed by the controller and the actual voltage measurements (from load flow).

For each time step, the voltage error (in %) can be calculated by using the following formula [1]:

Ref: [1] R. Rigo-Mariani, V. Debusschere and M. -C. Alvarez-Herault, "A Modified DistFlow for Distributed Generation Planning Problems in Radial Grids," IECON 2020 The 46th Annual Conference of the IEEE Industrial Electronics Society, 2020, pp. 1626-1632, doi: 10.1109/IECON43393.2020.9254865.

$$\large{\Delta V (\%) = \frac{100}{\text{nb of bus}} \sum_{i \in N} \frac{\vert V_i - V_i^* \vert}{\frac{1}{\text{nb of bus}} \sum_{i \in N} \vert 1 - V_i^* \vert} }$$

Where V* denotes the measurement voltage.

We can then create a voltage error data frame:

Create voltage error for estimated data

Plot the error:

We can see that the absolute estimated voltage error is around 20% over the time.

To see clearly the error, let's observe voltage profile of one of the nodes:

We can see clearly the gap of error between the controller's estimation and the real measurement.

We can see the controller expected the voltage to always be above the lower limit (0.95 p.u.). However, due to inacuraccy of the estimated impedance, the real voltage at bus 11 happens to be lower than the expected, resulting in undervoltage between 16:00 until midnight.

3) Proposed Model Fitting Algorithm

The aim of model fitting algorithm is to improve the accuracy of the estimated impedance, by using historical measurement data.

The algorithm works as follow:



In principal:

  1. Firstly, we use the initial estimated grid impedance to optimize the grid for a day (the time horizon could be less/more).
  2. Then we use the actual measurement data as the input of the proposed fitting algorithm
  3. The fitting algorithm will give the new estimated impedance (we will call it fitted impedance)
  4. The fitted impedance then will be used to optimize the next following days.

In the previous simulation, we have obtained the actual measurement data. Let's use that measurement data in the proposed fitting algorithm:

Now, let's see the comparison between the obtained fitted impedance with the actual impedance:

We can see now the fitted impedance shows significant improvement of estimation accuracy compared to the intial estimated impedance to less than 10% overall absolute error. Except for line 8, who the absolute error become increasing after fitting.

Let's now use the fitted impedance to optimized the grid

And use the obtained new battery setpoints to the actual operation:

Compute the new Verror for fitted impedance

Let's see the new voltage error:

Although the we have high absolute impedance error at bus 8, the fitted impdeance still shows significant improvement. Figure above shows the proposed fitted impedance improves significantly the accuracy of the estimation, initially from around 20% to 5%.

This increase of accuracy can be seen clearly on the voltage profile below:

We can see now the accuracy of the controller to estimate the grid voltage is increased, indicated by the narrower gap of error.

This then highlights that the proposed fitting algorithm can effectively improves the accuracy of the impedance estimation.

4) Key Takeaways

We have seen that the proposed fitting algorithm can increase the accuracy of impedance estimation.

The proposed fitting algorithm can provide distribution grid operator or any thrid party actors such as aggregator or market operator a methodology to obtain a good estimation of grid/impedance data, which then can help them to effectively optimize the grid.

There are still lot of improvements can be done in this algorithm, especially to improve the accuracy of the error (as we have seen in line 8) and to limit the number of measurements data required to computed the fitted impedance.