Bayesian estimation based parameter estimation for composite load model
11181873 · 2021-11-23
Assignee
Inventors
- Zhe Yu (San Jose, CA, US)
- Yishen Wang (San Jose, CA, US)
- Haifeng Li (Nanjing, CN)
- Chang Fu (San Jose, CA, US)
- Zhiwei Wang (San Jose, CA)
- Di Shi (San Jose, CA)
Cpc classification
Y04S20/00
GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
Y04S40/20
GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
H02J3/00
ELECTRICITY
Y02B90/20
GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
H02J2203/20
ELECTRICITY
H02J3/28
ELECTRICITY
H02J2203/10
ELECTRICITY
Y02E60/00
GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
International classification
Abstract
A method for managing a power load of a grid includes performing a statistic-based distribution estimation of a composite load model using static and dynamic models with Gibbs sampling; deriving a distribution estimation of load model coefficients; and controlling grid power based on a simulation, a prediction, a stability analysis or a reliability analysis with the load model coefficients.
Claims
1. A method for managing a power load of a grid, comprising: performing a statistic-based distribution estimation of a composite load model using static and dynamic models with Gibbs sampling, wherein the load comprises resistive and inductive loads; deriving a distribution estimation of load model coefficients; and controlling grid power based on a simulation, a prediction, a stability analysis or a reliability analysis with the load model coefficients by applying the simulation, prediction, stability analysis or reliability analysis to control power of electrical loads having impedance, current or power provided to one or more resistive and inductive loads.
2. The method of claim 1, wherein the statistic-based estimation comprises a Bayesian estimation.
3. The method of claim 1, wherein the static model comprises a ZIP model.
4. The method of claim 3, wherein the ZIP model describes load power changes as a voltage varies in a steady-state condition.
5. The method of claim 3, wherein the ZIP model comprises:
6. The method of claim 1, wherein the dynamic model comprises an induction motor (IM) model.
7. The method of claim 6, wherein the IM model can be expressed as follows:
8. The method of claim 1, comprising determining:
X′X.sub.s+X.sub.mX.sub.r/(X.sub.m+X.sub.r),
XX.sub.s+X.sub.m,
T′(X.sub.r+X.sub.m)/R.sub.r.
9. The method of claim 1, comprising determining a prior.
10. The method of claim 9, comprising applying gradient descent (GD) to update the prior.
11. The method of claim 10, wherein the GD comprises applying an Adaptive Moment Estimation (Adam) to determine adaptive learning rates for each parameter.
12. The method of claim 1, comprising determining a total active power and reactive power as:
13. The method of claim 1, comprising determining real power and reactive power of the load.
14. The method of claim 1, wherein a mean value is selected as an estimated value of each parameter.
15. The method of claim 1, comprising performing Gibbs sampling of the IM model.
16. The method of claim 15, comprising determining τ.sub.I.sup.(k+1)|E′.sub.d,E′.sub.q,U.sub.d,U.sub.q,I.sub.d,I.sub.q,α.sub.b.sup.(k+1),α.sub.c.sup.(k+1)˜G(α.sub.I.sup.(k+1),β.sub.I.sup.(k+1)).
Description
BRIEF DESCRIPTIONS OF FIGURES
(1) The following Figures are for illustration purposes only and are not drawn to scale. The exemplary embodiments, both as to organization and method of operation, may best be understood by reference to the detailed description which follows taken in conjunction with the accompanying drawings in which:
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
DETAILED DESCRIPTION OF THE ILLUSTRATED EMBODIMENTS
(15) Nomenclature
(16) P.sub.ZIP, Q.sub.ZIP: Real/reactive power measurement of a ZIP load
(17) α.sub.1, . . . , α.sub.6: Coefficients to estimate in the ZIP model
(18) V: voltage magnitude at the load terminal
(19) P.sub.ZIP0, Q.sub.ZIP0, V.sub.0: corresponding measurement of a ZIP load at the initial operating condition.
(20)
(21) P.sub.IM, Q.sub.IM: Real/reactive power measurement of an IM load
(22) {circumflex over (P)}, {circumflex over (Q)}: estimate of real/reactive power
(23) θ: the coefficient vector to estimate
(24) q(θ): the prior distribution of the coefficients
(25) R.sub.S: motor stator winding resistance
(26) X.sub.S: motor stator leakage reactance
(27) X.sub.m: motor magnetizing reactance
(28) R.sub.r: rotor resistance
(29) X.sub.r: rotor leakage reactance
(30) H: rotor inertia constant
(31) ω: rotor speed
(32) I.sub.d, I.sub.q: stator current in d-axis and q-axis
(33) U.sub.d, U.sub.q: bus voltage in d-axis and q-axis
(34) E.sub.d′, E.sub.q′: stator voltage in d-axis and q-axis
(35) T.sub.0: the initial load torque
(36) X.sub.r, X.sub.m, X.sub.s, R.sub.r, R.sub.T, A, B, C, H: Coefficients to estimate in the IM model
(37) (x, y){(x.sub.ZIP[1], y.sub.ZIP[1]), . . . , (x.sub.ZIP[n], y.sub.ZIP[n])}: time series measurement of the ZIP model
(38) μ, μ.sub.1, μ.sub.2, μ.sub.3, μ.sub.β.sub.
(39) τ, τ.sub.1, τ.sub.2, τ.sub.3, τ.sub.β.sub.
(40) ε[t], ε.sub.E.sub.
(41) λ.sub.p, λ.sub.q: real/reactive power fraction of the ZIP model
(42) I. Approaches
(43) A composite load with ZIP+IM model is shown in
(44)
(45) The parameters need to be identified in this composite model are α.sub.1, . . . α.sub.6, X.sub.m, X.sub.r, X.sub.s, R.sub.r, A, B, C, H. Some notations in equations (1) and (2) are defined as follows:
X′X.sub.s+X.sub.mX.sub.r/(X.sub.m+X.sub.r),
XX.sub.s+X.sub.m,
T′(X.sub.r+X.sub.m)/R.sub.r (3)
(46) A. ZIP Model
(47) The ZIP model describes how the power of load changes as voltage varies in the steady-state condition. The ZIP model is formulated as follows.
(48)
where Σ.sub.i=1.sup.3α.sub.i=λ.sub.p, Σ.sub.i=4.sup.6α.sub.i=λ.sub.q,
(49) One implementation defines y.sub.ZIP[t]=P.sub.ZIP[t]/P.sub.ZIP0, x.sub.ZIP[t]=V[t]/V.sub.0, where P.sub.ZIP[t] and V[t] are the t.sup.th measurements of the real power and voltage magnitude of the ZIP load. The following assumptions are made.
(50) The measurement noise follows a normal distribution, i.e., y.sub.ZIP[t]=α.sub.1x.sub.ZIP[t].sup.2+α.sub.2 x.sub.ZIP[t]+α.sub.3+ε[t], where ε[t]˜(0,1/τ), and 1/τ is the variance. The reasons for making this assumption are: 1) According to the law of large numbers, a normal distribution would be the best one to represent the characteristics of the noise if the number of experiments is large enough. 2) Since normal distribution is a conjugate distribution, it is easier for model parameter updating when implementing Gibbs sampling.
(51) Total number of n independent and identically distributed (i.i.d.) samples were drawn, namely (x, y){(x.sub.ZIP[1], y.sub.ZIP [1]), . . . , (x.sub.ZIP[n], y.sub.ZIP[n])}. Thus, the likelihood
(52)
where μ[t]α.sub.1x[t].sup.2+α.sub.2x[t]+α.sub.3 is the mean.
(53) B. IM Model
(54) The parameters to be identified in an IM model are X.sub.r, X.sub.m, X.sub.s, R.sub.r, R.sub.s, A, B, C, H. Typically, A is assumed to be 1 as the mechanical torque is assumed to be proportional to the square of the rotation speed of the motor. Consequently B and C are both equal to 0. For simplicity, define Y.sub.E.sub.dE.sub.q/dt, y.sub.E.sub.
dE.sub.d/dt, y.sub.ω
dω/dt, y.sub.I.sub.
I.sub.d, y.sub.I.sub.
I.sub.q, β.sub.1
1/T, β.sub.2
−(X−X′)/T′, β.sub.3
−½H, α.sub.b
R.sub.s/R.sub.s.sup.2+X.sup.2, α.sub.c
X′/R.sub.s.sup.2+X.sup.2. Assuming that the measurement noise is i.i.d. and follows a normal distribution, the IM model can be expressed as follows:
(55)
(56) where ε.sub.E.sub.
(57) For a composite model with ZIP+IM model, the total active power and reactive power can be respectively computed as:
(58)
where λ.sub.p+λ.sub.q=1. Since the available data can be used for identification of aforementioned parameters is limited by the fact that the composite model proposed in
(59)
(60) In one embodiment, a BE based method is used without optimizing the error between the measured value and the estimated value. The algorithm in
(61) Gibbs sampling is an extension of Monte Carlo Markov Chain method, which performs well when there are multiple parameters to identify. The detailed sampling algorithm is shown in Algorithm 1.
(62) TABLE-US-00001 Algorithm 1 Gibbs Sampling Draw initial samples θ.sup.(0) ~ q(θ), where q(θ) is the prior For iteration i = 1,2, ... , M do Calculate p (θ.sub.1|θ.sub.2.sup.(i−1), θ.sub.3.sup.(i−1), ... , θ.sub.n.sup.(i−1)) and sample θ.sub.1.sup.(i) ~ p (θ.sub.1|θ.sub.2.sup.(i−1), θ.sub.3.sup.(i−1), ... , θ.sub.n.sup.(i−1)) Calculate p (θ.sub.2|θ.sub.1.sup.(i), θ.sub.3.sup.(i−1), ... , θ.sub.n.sup.(i−1)) and sample θ.sub.2.sup.(i) ~ p (θ.sub.2|θ.sub.1.sup.(i), θ.sub.3.sup.(i−1), ... , θ.sub.n.sup.(i−1)) Calculate p (θ.sub.n|θ.sub.1.sup.(i), θ.sub.3.sup.(i), ... , θ.sub.n−1.sup.(i)) and Sample θ.sub.n.sup.(i) ~ p (θ.sub.n|θ.sub.1.sup.(i), θ.sub.3.sup.(i), ... , θ.sub.n−1.sup.(i)) End for The distribution estimate is the histogram of θ.sup.i, i = m, ... , M. Others are burn-in data and discarded
(63) Starting with priors, Gibbs sampling estimates the posterior of one parameter while fixing others' values as samples from previous estimated posteriors. This process repeats for all parameters in one iteration.
(64) C. Gibbs in ZIP Model
(65) Start with the prior guess as follows:
α.sub.1˜(μ.sub.1.sup.(0),1/τ.sub.1.sup.(0)) (7)
α.sub.2˜(μ.sub.2.sup.(0),1/τ.sub.2.sup.(0)) (8)
α.sub.3˜(μ.sub.3.sup.(0),1/τ.sub.3.sup.(0)) (9)
τ˜(a.sup.(0),b.sup.(0)) (10)
where the distribution of τ is a gamma distribution follows (a, b). It can be shown that after each iteration of Gibbs sampling, the post distributions of these three parameters remains the same form. Only the first iteration will be shown here as an example. First, samples are drawn from the prior and α.sub.1.sup.(0), α.sub.2.sup.(0), α.sub.3.sup.(0), τ.sup.(0) are initialized. After some algebraic yields:
p(α.sub.1|α.sub.2.sup.(0),α.sub.3.sup.(0),τ.sup.(0),x,y)∝p(x,y|α.sub.1,α.sub.2.sup.(0),α.sub.3.sup.(0),τ.sup.(0))p(α.sub.1) (11)
where p(α.sub.1|α.sub.2.sup.(0), τ.sup.(0), x, y) is the posterior probability given the samples of x, y, α.sub.2, and τ, p(x, y|α.sub.1, α.sub.2.sup.(0), τ.sup.(0)) is the likelihood in (3), and p(α.sub.1) is the prior estimation following (7). Taking the log form on both sides of (11) yields
(66)
(67) Taking log form helps convert the multiplications of the probabilities to summations, which can significantly simplify calculations when updating the distributions of the posteriors. For a normal distribution y˜(μ, 1/τ), the log dependence on y is
(68)
(69) The right-hand side of equation (12) can be further written as the following if the terms not related to α.sub.1 are omitted.
(70)
(71) Then sample a new α.sub.1 from the estimated distribution (μ.sub.1.sup.(1)), τ.sub.1.sup.(1)) as α.sub.1.sup.(1). Following the similar procedures α.sub.2 and α.sub.3 can be derived. Define
(72)
and τ.sub.2.sup.(1)τ.sub.2.sup.(0)+τ.sup.(0)Σ.sub.i=1.sup.n(x[t]−1).sup.2. Therefore, the following can be derived: α.sub.2|α.sub.1.sup.(1), α.sub.2.sup.(0), τ.sup.(0), τ.sub.2.sup.(0), μ.sub.2.sup.(0), x, y˜
(μ.sub.2.sup.(1), 1/τ.sub.2.sup.(1))
(73) Define
(74)
(75) Therefore, the following can be derived:
α.sub.3|α.sub.1.sup.(1),α.sub.2.sup.(1),τ.sup.(0),τ.sub.3.sup.(0),μ.sub.4.sup.(0),x,y˜(μ.sub.3.sup.(1),1/τ.sub.3.sup.(1)).
(76) For τ, the posterior given new samples of α.sub.1.sup.(1), and α.sub.2.sup.(1) can be written as p(τ|α.sub.1.sup.(1), α.sub.2.sup.(1), x, y)∝p(x, y|α.sub.1.sup.(1), α.sub.2.sup.(1), τ)p(τ). Taking the log form of both sides of the posterior and yields
(77)
(78) Define a.sup.(1)=a.sup.(0)+n/2, b.sup.(1)=.sup.(0)+Σ.sub.t=1.sup.n(y[t]−α.sub.1.sup.(1)x[t].sup.2−α.sub.2.sup.(1)x[t]−α.sub.3.sup.(1)).sup.2/2. The posterior τ|α.sub.1.sup.(1), α.sub.2.sup.(1), x, y, ˜(a.sup.(1), b.sup.(1)) can be obtained.
(79) D. Gibbs in IM Models
(80) GS in IM model will follow the same steps as that in ZIP model. Start with the priors as follows.
β.sub.1˜(μ.sub.β1.sup.(0),1/τ.sub.β1.sup.(0)),β.sub.2˜
(μ.sub.β2.sup.(0),1/τ.sub.β2.sup.(0)),
β.sub.3˜(μ.sub.β.sub.
(μ.sub.α.sub.
α.sub.c˜(μ.sub.αc.sup.(0),1/τ.sub.αc.sup.(0)),τ.sub.E˜
(a.sub.E.sup.(0),b.sub.E.sup.(0))
τ.sub.ω˜(a.sub.ω.sup.(0),b.sub.ω.sup.(0)),τ.sub.I˜
(a.sub.I.sup.(0),b.sub.I.sup.(0)).
(81) Given the measurement of y.sub.E.sub.
(82) Define
(83)
We have, β.sub.1|β.sub.2.sup.(k), y.sub.E.sub.(μ.sub.β.sub.
Define:
(84)
We have β.sub.2|β.sub.1.sup.(k+1), y.sub.E.sub.(μ.sub.β.sub.
Define
(85)
We have, β.sub.3|E.sub.d, E.sub.q, U.sub.d, U.sub.q, I.sub.d, I.sub.q, ω, τ.sub.E.sup.(k), τ.sub.β.sub.(μ.sub.β.sub.
Define
(86)
We have, α.sub.b|E.sub.d, E.sub.q, U.sub.d, U.sub.q, I.sub.d, I.sub.q, ω, τ.sub.I.sup.(k), τ.sub.α.sub.(μ.sub.α.sub.
Define
(87)
We have, α.sub.c|E.sub.d, E.sub.q, U.sub.d, U.sub.q, I.sub.d, I.sub.q, ω, τ.sub.I.sup.(k), τ.sub.α.sub.(μ.sub.α.sub.
Define
(88)
We have, τ.sub.E.sup.(k+1)|I.sub.d, I.sub.q, y.sub.E.sub.(a.sub.E.sup.(k+1), b.sub.E.sup.(k+1))
Define
(89)
We have, τ.sub.ω.sup.(k+1)|I.sub.d, I.sub.q, E.sub.d, E.sub.q, y.sub.ω, ω, U.sub.d, U.sub.q, β.sub.3.sup.(k+1)˜(a.sub.ω.sup.(k+1), b.sub.ω.sup.(k+1))
Define
(90)
We have, τ.sub.I.sup.(k+1)|E.sub.d, E.sub.q, U.sub.d, U.sub.q, I.sub.d, I.sub.q, α.sub.b.sup.(k+1), α.sub.c.sup.(k+1)˜(a.sub.I.sup.(k+1), b.sub.I.sup.(k+1))
(91) E. Updates of the Prior
(92) Gradient descent is a first-order iterative optimization algorithm for finding the minimum of a function. To find a local minimum of a function using gradient descent, one takes steps proportional to the negative of the gradient (or approximate gradient) of the function at the current point. In one embodiment, ADAM method is used for parameter updating as stated in Algorithm 2.
(93) TABLE-US-00002 Algorithm2 For a slightly more efficient (but less clear) order of computation. g.sub.t .sup.2 indicates the elementwise square g.sub.t ⊙ g.sub.t. Good default settings for the tested machine learning problems are s = 0. 001, β.sub.1 = 0. 9, β.sub.2 = 0. 999 and ϵ = 10.sup.−8. All operations on vectors are element-wise. With β.sub.1.sup.t and β.sub.2.sup.t we denote β.sub.1 and β.sub.2 to the power t. Require: Δ: Step size Require: β.sub.1, β.sub.2 ∈ [0, 1): Exponential decay rates for the moment estimates Require: f(θ) Stochastic objective function with parameters θ Require: θ.sub.0: Initial parameter vector m.sub.0 ← 0 (Initialize 1st moment vector) v.sub.0 ← 0 (Initialize 2nd moment vector) t ← 0 (Initialize timestep) while θ.sub.t not converged do t ← t + 1 g.sub.t ← ∇.sub.θf.sub.t(θ.sub.t−1) (Get gradients w.r.t. stochastic objective at timestep t) m.sub.t ← β.sub.1 .Math. m.sub.t−1 + (1 − β.sub.1) .Math. g.sub.t (Update biased first moment estimate) v.sub.t ← β.sub.2 .Math. v.sub.t−1 + (1 − β.sub.2) .Math. g.sub.t.sup.2 (Update biased second raw moment estimate) ← m.sub.t/(1 − β.sub.1 .sup.t) (Compute bias-corrected first moment estimate)
← v.sub.t /(1 − β.sub.2.sup.t) (Compute bias-corrected second raw moment estimate) θ.sub.t ← θ.sub.t−1 − Δ .Math.
/(
+ ϵ) (Update parameters) end while return (Resulting parameters)
(94) II. Case Studies
(95) Simulation studies are carried out in this section for composite models with ZIP+IM considering measurement errors and outliers. Benchmark test using least square and genetic algorithm methods are also proposed. Only active power is shown as an example, the reactive power will follow the same steps. In GS, the length of burn-in process m is chosen as 5000.
(96) A. Composite Model Parameters Identification
(97) The 33-bus test feeder, as shown in
(98) GS is able to handle certain measurement error and anomalies. In
(99) B. Comparison with Benchmarks
(100) The ZIP and IM model parameters derived by the proposed GS method are compared against least square (LS) and Genetic Algorithm (GA) methods. The “Isqcurvefit” and “ga” function in Matlab was used to derive the coefficients in LS and GA, respectively. Parameters identified by three different approaches are listed in
(101) With the integration of renewable resources, electrical vehicles and other uncertain resources into power system, the accuracy of the instant load model plays an important role in simulation, prediction, as well as stability and reliability analysis. The statistic (Bayesian Estimation) based distribution estimation approach generates composite load models, including static (ZIP) and dynamic (Induction Motor) parts, by implementing Gibbs sampling. The system provides a distribution estimation of load models coefficients and is robust to measurement errors.