Power System States Estimations Using Kalman Filter
Power System States Estimations Using Kalman Filter
Murtaza Farsadi1, Farzad Mohammadzadeh Shahir2, Student Member, IEEE, and Ebrahim Babaei3, Senior
Member, IEEE
1
Faculty of Electrical and Computer Engineering, Urmia University, Urmia, Iran
[email protected]
2
Department of Electrical Engineering, Urmia Branch, Islamic Azad University, Urmia, Iran
[email protected]
3
Faculty of Electrical and Computer Engineering, University of Tabriz, Tabriz, Iran
[email protected]
Abstract dynamic state estimation are in the field of linear systems [11-
12]. These papers include linearizing the algebraic and
Power system state estimation plays an important role in the differential equations can be done by calculating the Jacobian
analysis of control and system stability and many other key matrix. Linear approximation leads to errors, which could be
functions such as economic analysis of load, optimal power effective in the whole of the time, especially for higher-power
flow (OPF), events analysis and gaining static and dynamic and complex systems [14]. The Jacobian matrix is performed for
algorithms with complex calculations. Using linear designs,
parameters of systems are based on state estimation.
recent papers have done research aimed at eliminating
Conventional state estimation due to low rates of update of
linearization and using unscented conversion and preventing the
SCADA system, cannot demonstrate the dynamic situations
calculation of Jacobian matrix at any repetition [3, 13-14].
(several seconds). In order to deal with the obstacles due to Power system state estimation plays an important role in the
linearization and calculation of Jacobian matrix, a non-linear analysis of control and system stability and many other key
dynamic state estimation without calculation of the Jacobian functions such as economic analysis of load, OPF, events
matrix is provided in this paper. Kalman filter is a analysis and gaining static and dynamic parameters of systems
mathematical method that aims to provide values closer to are based on state estimation [15-16]. Conventional state
actual values from measurements that include noise and estimation due to low rates of update of SCADA system, cannot
inaccuracy. The method matches the non-linear demonstrate the dynamic situations (several seconds). In order
characteristics of system as well as probability of measured to deal with the obstacles due to linearization and calculation of
values. After, Kalman filter state estimation method is Jacobian matrix, a non-linear dynamic state estimation without
presented in both linear and nonlinear modes and simulation calculation of the Jacobian matrix is provided in this paper. At
results are presented in MATLAB. the beginning, it is tried to simply explain state estimation using
[17] and then its application and its relationship with other
1. Introduction sectors in the power system are elaborated.
In the following, to better understand the paper a linear
The structure of the transmission system in the developed system, which in fact are the equations of motion is used and
world is faced with two major challenges: reliability and simulation results are presented in MATLAB. Kalman filter has
extensibility. New technologies to produce electric power by errors when the input data is not obtained from dynamics
wind and solar energy replace fossil fuels in power plants with simulation, so using DigSilent software dynamic state of system
synchronized machine [1-2]. With these changes due to is modeled simulation results in is provided at this software but
concentrated synchronized production the current power model it should be noted that this data is not used in MATLAB
in transmission system cannot be fixed. In recent decades for software.
many reasons there have been no effective investments in the
transmission system [3-4]. Technologies related to control and 2. State Estamition
computational layers play an important role in avoiding the
blackouts of the transmission system. But the majority of First, we need to be discussing state estimation to some
monitoring and control instruments of energy management extent and provide an example using reference [17] to properly
systems (EMSs) are based on steady-state model of the system. understand the concept. In this reference, the concept has been
Therefore, it cannot be properly show dynamic performance of simply stated for static state. In the eighteenth century for the
the system [5-6]. This limit is due to dependency of EMS to first time, scientists observed wonderful arrangement in
very slow update rate of SCADA systems. With the advent of measuring errors. They found that observed samples or
phasor measurement unit (PMU) based on wide area distributions are approximated by continuous distribution as it
measurement systems (WAMSs) new techniques for dynamic was called normal curve of errors, and attributed them to the
security assessment (DSA) are developed to assess the security laws of chance. An operator must have access to the right
of system that is an effective method for studying the dynamics information from the system, to detect errors in the system based
of the system compared to conventional EMSs [7-10]. Exact on that information and based on this information, he can decide
knowledge of dynamic state of system is through dynamic state on overvoltage, overload etc. The task of state estimation is to
estimation (DSE) and it can be said that state estimation is the provide right information for operator at different conditions,
core of these techniques [11-13]. Most studies related to what made the state estimation successful is the advantage of
808
uthorized licensed use limited to: Indian Institute Of Technology (Banaras Hindu University) Varanasi. Downloaded on November 03,2024 at 17:12:07 UTC from IEEE Xplore. Restrictions apply
probability rules; as mentioned above, the measurement errors these measurements has the risk of bad measurement; we will
are normally distributed and when a non-measurement error begin with the largest value and put it aside. Again state
exist in calculations it can be detected with this method and its estimation is performed for the rest of the data and J(x) will be
effect can be reduced or eliminated. Measuring converters in the specified; on the basis of the new threshold, if it was less than
power system, like any other device are prone to error, if these threshold, a bad measurement is achieved; otherwise, the
errors are small they may not be detected and measured value operation must be repeated for other candidates. It is necessary
can incorrectly enter the calculation and even the output may be to mention here that some of the measurements are with very
useless; for example, the device may be installed in reverse small errors. Therefore, it is not possible to detect them, but
order and may provide a negative value. In some cases, parts of what is important is that the operator knows that there is no big
telecommunication system may be disconnected and the error in the data.
operator may not be available; these were the reasons for
development of state estimation at the past.
Networks used in [17] are provided in Figure 1. With state
estimation, using the algorithm in Figure 2 values of Table I is
achieved. Random error is added to the measured values to
obtain the measurement with the random error. According to
Table I, it is possible to achieve efficiency of state estimation in
the power system. For example, measurement of M23 shows the
active power to be 8.6MW, but the actual value, 2.9MW, the value
proposed by estimator is equal to 3MW. Despite the measurement
error, the estimation algorithm calculated some values, which is
much closer to the actual values. There are other advantages for
state estimation algorithm including, a) The ability of state
estimation for detection bad measurements, b) The ability for
estimation of the values of which are not measured or
communicated. The following a brief explanation of reference
[17] is given.
809
uthorized licensed use limited to: Indian Institute Of Technology (Banaras Hindu University) Varanasi. Downloaded on November 03,2024 at 17:12:07 UTC from IEEE Xplore. Restrictions apply
noise and inaccuracy. From the standpoint of theory, Kalman Table 1. The values obtained from the state estimation of
filter is an algorithm to infer an accurate result in a linear figure 1
dynamic system and all variables have Gaussian distribution.
The first implementation of the Kalman filter returns to his visit
from NASA research center that he found that he can use this
method to estimate the Apollo route. Kalman filter of system
dynamics model that control inputs and measurement systems
comprise it provide better value for the estimation of the system
variables compared to the individual measurements. First, to be
better understand the Kalman filter in non-linear mode, an
understandable example is expressed to specify the concepts
used in non-linear mode. For example, the aim is to determine
the exact position of a vehicle, which there is a GPS in the
vehicle that can locate the device with an error of up to several
meters; the estimation of GPS is in the form of noise that
sometimes sudden jumps can be observed, but there is always
maximum error. The position of vehicle can through be obtained
taking integration of speed and direction over time. It means that
by gaining changes of momentum and changes of wheel the data
can be obtained. In this example, the Kalman filter operates in
two distinct phases; a) Predict phase, b) Update phase
810
uthorized licensed use limited to: Indian Institute Of Technology (Banaras Hindu University) Varanasi. Downloaded on November 03,2024 at 17:12:07 UTC from IEEE Xplore. Restrictions apply
simulation the equation of constant acceleration for linear T ª Pk k −1 0 º
x ka k −1 = ª xˆ Tk E ªv Tk º º ; Pka k −1 = « » (14)
1
motion is used as x = at 2 . ¬ k −1 ¬ ¼¼
¬« 0 R k »¼
2
x k0 k −1 = x ka k −1
4. Nonlinear Kalman Filter
x ki k −1 = x ka k −1 + §¨ ( L + λ ) Pka k −1 ·¸ i = 1,....L
© ¹i (15)
Kalman filter is provided primarily for linear modes but it is
§ ·
x ki k −1 − ¨ ( L + λ ) Pk k −1 ¸
used in non-linear modes as follows: At each time step, the a a
k −1 = x k i = L + 1,....2 L
Jacobian matrix is calculated according to the predict phase. © ¹i − L
Now, this matrix can be used in the Kalman filter; by this Here an point obtained from (15) is given to equation (16)
method linearization can be performed around the estimation as follows:
point. But it should be noted that the calculation of Jacobian
matrix is very time consuming for complex functions and also γ ki = h (x ki k −1 ) i = 1,....2L (16)
when in the equation (8), presented as below, two functions of f
and h are highly nonlinear, linearization leads to very poor Now, by applying weighted values in equation (16), equation
performance of filter: (17) can be obtained that is used for covariance and estimated
x k = f ( x k −1,u k ) + w k ; z k = h ( x k ) + v k
measured value as follows:
(8) 2L 2L
¦W ¦W
T
ª i ºª i ˆ º
s γk ; «¬x k k −1 − x k k −1 »¼ ¬γ k − z k ¼
i i i
Unscented Kalman filter (UKF) uses specific sampling zˆk = Px k z k = c ˆ (17)
technique to make a matrix, where points are chosen; now i =0 i =0
with the use of the information, estimation and covariance of
estimation can be obtained. The interesting point here is that
k k = Px k z k P −1x k z k ; xˆ k k = xˆ k k −1 + K k (z k − zˆk )
(18)
there is no need to calculate the Jacobian matrix. For this filter
Pk k = Pk k −1 − K k Px k z k K Tk
UKF is used.
It can be seen that the initial values for next state are
4.1. Predict Phase obtained according to outputs of equation (18).
Two equations are converted to equation (9) to estimate
position and covariance as follows: 5. Simulation Results
T ª Pk −1 k −1 0 º
x ka −1 k −1 = ªxˆTk −1 k −1 E ªw Tk º º ; Pka−1 k −1 = « » (9) In this section the simulation results of this study are
¬« ¬ ¼ »¼ «¬ 0 Q k »¼
presented using linear Kalman filter and non-linear Kalman
=2L+1 points is calculated by equation (10) and L is added filter at sample power system.
to the matrix, as follows:
x k0 −1 k −1 = x ka −1 k −1 1000 800
x ki −1 k −1 = x ka −1 k −1 + §¨ (L + λ )Pka−1 k −1 ·¸ i = 1,....L
Value of M easurement
600
(10) 600
© ¹i 400
400
0 0
© ¹i (a) (b)
Created of Value Measure by Considering Nois
1000 1000
column of matrix. Using points obtained and using it non-
Augmentedof A,B,C parts.
x ki k −1 = f (x ki −1 k −1 ) i = 0...2L (11)
0 0
The weighted points are combined for prediction phase and Valuof MeasureWith Noise.
Valueof MeasureWithout Noise.
equation (12) is obtained as below: -500 -500
Prediction of ValueMeasurement By Filter Kalman.
0 50 100 150 200 250 300 350 400 0 50 100 150 200 250 300 350 400
2L Number of Measurement Number of Measurement
xˆ k k −1 = ¦W
i =0
s
i
x i
k k −1
(12)
(c) (d)
Fig. 3. Using a linear Kalman filter, (a) estimated values of
2L measurer using linear Kalman filter, (b) measured value
¦W
T
Pk = i ªx i − xˆ k º ªx i − xˆ k º produced without taking into account the noise on the measured
k −1 c «¬ k k −1 k −1 »¼«¬ k k −1 k −1 »¼
i =0 value,(c) measured value produced by taking into account the
Typical values for the parameters of (13) are as follows: noise on the measured value, and (d) shows (a), (b) and (c) at
the same time
λ λ
W si = ; W ci = + (1 − α 2 + β )
L +λ L +λ (13) 5.1. Linear Kalman Filter
1
W si = W ci = ; λ = α 2 (L + κ ) − L Figure 3 shows the performance of linear Kalman filter; (a),
2( L + λ ) estimated values of measurer using linear Kalman filter, (b)
measured value produced without taking into account the noise
4.2. Update Phase on the measured value(c)measured value produced by taking
The difference of this section with the previous section is that into account the noise on the measured value and (d) shows a, b
here the mean and covariance of the measurement noise is used, and c at the same time. Filter acts excellent for small values but
which is shown in equations (14) and (15): for larger ones it does not operate properly; it seems as
811
uthorized licensed use limited to: Indian Institute Of Technology (Banaras Hindu University) Varanasi. Downloaded on November 03,2024 at 17:12:07 UTC from IEEE Xplore. Restrictions apply
mentioned earlier, this model does not provide correct answers results are shown for both linear and nonlinear systems. The
in cases where the system is not dynamically modeled. estimation method used for linear and non-linear systems are
respectively linear and nonlinear Kalman filters.
5.2. Non-linear Kalman Filter
Figure 4 shows non-linear Kalman filter which respectively 7. References
include, (a) estimated values of measurer using non-linear
Kalman filter, (b) value produced by measurer without taking [1] F. M. Shahir and E. Babaei, “Evaluating the Dynamic
into account the noise on the measurer, (c) value produced by Stability of Power System Using UPFC based on Indirect
measurer with taking into account the noise on the measurer, (d) Matrix Converter,” JOACE, Vol. 1, No. 4, pp. 279-284,
shows a, b and c at the same time. As seen in Figure 4, it seems Dec., 2013.
that this method was able to eliminate the noise at an acceptable [2] F. M. Shahir and E. Babaei, “Evaluation of Power System
level. IEEE 9-bus 3 generators system implemented in Stability by UPFC via Two Shunt Voltage-Source
DigSilent. The effect of non-linear Kalman filter is examined Converters and a Series Capacitor,” in Proc. ICEE, 2012,
pp. 318-323.
fairly. Synchronous 2nd generator curves obtained is shown in [3] A. Kumar Singh and B.C. Pal, “Decentralized dynamic
Fig. 5. state estimation in power systems using unscented
transformation,” IEEE Trans. on Power Systems, vol. 29,
Creadated of Value Measure Without considering
1
1
no. 2, pp. 794-804, 2014.
With Unscented Filter Kalman.
0.5
0.5
“Design of Robust Power System Stabilizer based-on
0 0
Optimal Control Theory,” in Proc. ICTPE, 2013.
-0.5 -0.5
[5] F. M. Shahir and E. Babaei, “Assessment of Power System
Stability by UPFC with Two Shunt Voltage-Source
-1
0 100 200 300 400 500 600 700 800 900 1000 -1
0 100 200 300 400 500 600 700 800 900 1000 Converters and a Series Capacitor,” ERR, Vol. 1, No. 4, pp.
Number of Measurement Number of Measurement
104-115, October 2013
(a) (b) [6] F. M. Shahir, M. Farsadi, H. Zafari and A. Sadighmanesh,
Created of Value Measure with considering noi
812
uthorized licensed use limited to: Indian Institute Of Technology (Banaras Hindu University) Varanasi. Downloaded on November 03,2024 at 17:12:07 UTC from IEEE Xplore. Restrictions apply