Summary of the invention
Technical matters to be solved by this invention, just be to provide a kind of based on nuclear power generating sets prime mover of simplicial method and the method for governor parameter identification thereof, the present invention does not need the derivative obtaining objective function, namely when larger, the to be identified number of parameters of convenient measured data amount is more, calculated amount is also less, speed of convergence is very fast, and searching times is less, and the parameter picked out can ensure that prime mover and governing system model thereof can accurately for bulk power grid.
Solve the problem, the present invention adopts following technical scheme:
Based on nuclear power generating sets prime mover of simplicial method and a method for governor parameter identification thereof, comprise the following steps:
The given α of S1
0, λ, μ, ε, N, K, K
1=0,
Wherein: α
0for needing one group of estimated value of identified parameters, μ is broadening factor, and μ is compressibility factor, and ε is convergence, and N equals to need identified parameters number, and K is maximum iteration time;
S2 determines initial simplex, calculates α
i=α
0+ h*e
i, i=1,2 ... n (2);
S3 target function type (1), calculates mean deviation corresponding to each group of parameter according to objective function, calculates C
i=Q (α
i) (i=1,2 ..., N);
S4 finds out α
h, α
l, α
g;
S5 iterations adds 1, K
1=K
1+ 1;
S6 judges | C
h-C
l| < ε C
lif set up, export successful α
l, C
l, terminate;
S7 judges K
1if >K sets up, export failed α
l, CL, terminates; Or: return step S1 given α again
0, λ, μ, ε, N, K, K
1=0, re-start parameter identification;
S8 computational reflect point
And C
r=Q (α
r);
S9 judges C
r<C
gs15 is gone to step if be false;
S10 calculates and judges (1-μ) * C
h+ μ * C
r<C
lif set up and go to step S13;
S11 makes
S12 replaces worst point
Return S4;
S13 calculates
S14 judges C
e<C
rif set up, go to step S11, otherwise go to step S12;
S15 R, H point exchanges;
S16 calculates α
s=(1-λ) * α
h+ λ * α
rand CS;
S17 judges C
s<C
gif set up and go to step S12;
S18 calculates α
i=(α
l+ α
i)/2(i=1,2 ..., N), go to step S3.
The mean deviation that described objective function is defined as simulation curve and measured curve divided by the absolute value of the maximum deviation of measured power during emulating and its initial value, that is:
Wherein T is simulation time length, P
simfor simulation value, P
mesfor measured value, | Δ P
max| be the absolute value of the maximum deviation of measured power and its initial value.
Estimated value in described step 1 gets the representative value of nuclear power generating sets prime mover and governor model thereof.
Implication in above-mentioned concrete steps is explained as follows:
One, initial simplex is determined
Suppose that certain nuclear power generating sets prime mover and governor model thereof have n parameter to need identification, then initial simplex should be made up of n+1 point (parameter value of the corresponding one group of prime mover of each point and speed regulator thereof), and this n+1 the necessary Line independent of point, otherwise probably search for less than minimal point.General, first can give one group of estimated value (" representative value " of nuclear power generating sets prime mover and governor model thereof) to this n parameter, then change each parameter respectively to obtain a new point, specifically, if select initial estimate α
0, then α
1, α
2..., α
nfor:
α
i=α
0+h*e
i,i=1,2,…n (2)
In above formula, h for a change measures; e
ifor n-dimensional vector, except i-th element is 1, other is zero, i.e. e
i=[0,0 ..., 0,1,0 ..., 0]
Initial estimation point α
0add n the point obtained like this, just constitute initial simplex.
Two, the determination of sublating and newly putting of old point
If objective function gets certain group parameter alpha
htime its value maximum, then α
hthe point that will remove exactly; New point is generally taken on " opposite " of the point be removed, and becomes reflection spot, for:
The expansion of three, newly putting, compression and simplex are shunk
If α
hfor worst point (objective function C
hvalue maximum), α
lfor the most better (objective function C
lvalue minimum), α
gfor secondary bad point (C
gcompare C
hlittle, but all larger than the target function value of other each point).
If new point (reflection spot) α
rfunctional value C
rbe less than C
g, this illustrates α
rpoint may advance not, and now can readvance along reflection direction, this is called expansion, obtains α
e:
α
E=(1-μ)*α
H+μ*α
R,μ>1 (4)
Otherwise, if C
rbe greater than C
g, α is described
rpoint advances too far away, needs compression, namely retreats along original reflection direction, obtain α
s:
α
S=(1-λ)*α
H+λ*α
R(5)
λ is compressibility factor, and span between 0 to 1, but can not equal 0.5, otherwise can reduce the space dimensionality of simplex, is unfavorable for search.
If C after compression
sstill C is greater than
g, illustrate that original simplex obtains too large, all limits all can be reduced to form new simplex, be called contraction.Concrete grammar is:
Then return step 1 and continue cycle calculations smallest point.
Four, convergence is judged
If ε is convergence, K is maximum search number of times, if | (C
h-C
l)/C
l| < ε, then illustrate and search for successfully, can think α
lfor the most better; If still do not meet above formula through K search, then search for failure; Now can attempt returning step 1 and adjust initial estimation point α
0, and identified parameters h, μ, λ, re-start parameter identification.
Principle of the present invention: function derivative is its important feature, the opposite direction of such as gradient is exactly the direction of steepest descent of this function near this point.If for a certain reason, can not obtain gradient information, then first can calculate the functional value at several some places, these points constitute initial simplex.Then they are compared, just can infer the approximate trend of function from the magnitude relationship between them, for the descent direction seeking function provides reference.Then in these being put, maximum one of functional value removes, and determines a new point by certain algorithm simultaneously, constitutes a new simplex.So circulation is gone down always, the point that finally functional value just can be found minimum.
Beneficial effect: of the present invention based on nuclear power generating sets prime mover of simplicial method and the method for governor parameter identification thereof, do not need the derivative obtaining objective function, without the need to target, searching times is less, very fast to controling parameters optimizing convergence ratio, amount of calculation is less, and the parameter picked out can ensure that prime mover and governing system model thereof can accurately for bulk power grid.
Embodiment
Of the present invention based on nuclear power generating sets prime mover of simplicial method and the method for governor parameter identification thereof, comprise the following steps:
The given α of S1
0, λ, μ, ε, N, K, K
1=0,
Wherein: α
0for needing one group of estimated value of identified parameters, μ is broadening factor, and μ is compressibility factor, and ε is convergence, and N equals to need identified parameters number, and K is maximum iteration time;
S2 determines initial simplex, calculates α
i=α
0+ h*e
i, i=1,2 ... n (2);
S3 target function type (1), calculates mean deviation corresponding to each group of parameter according to objective function, calculates C
i=Q (α
i) (i=1,2 ..., N);
S4 finds out α
h, α
l, α
g;
S5 iterations adds 1, K
1=K
1+ 1;
S6 judges | C
h-C
l| < ε C
lif set up, export successful α
l, CL, terminates;
S7 judges K
1if >K sets up, export failed α
l, CL, terminates; Or: return step S1 given α again
0, λ, μ, ε, N, K, K
1=0, re-start parameter identification;
S8 computational reflect point
And C
r=Q (α
r);
S9 judges C
r<C
gs15 is gone to step if be false;
S10 calculates and judges (1-μ) * C
h+ μ * C
r<C
lif set up and go to step S13;
S11 makes
S12 replaces worst point
Return S4;
S13 calculates
S14 judges C
e<C
rif set up, go to step S11, otherwise go to step S12;
S15 R, H point exchanges;
S16 calculates α
s=(1-λ) * α
h+ λ * α
rand CS;
S17 judges C
s<C
gif set up and go to step S12;
S18 calculates α
i=(α
l+ α
i)/2(i=1,2 ..., N), go to step S3.
The mean deviation that described objective function is defined as simulation curve and measured curve divided by the absolute value of the maximum deviation of measured power during emulating and its initial value, that is:
Wherein T is simulation time length, P
simfor simulation value, P
mesfor measured value, | Δ P
max| be the absolute value of the maximum deviation of measured power and its initial value.
Estimated value in described step 1 gets the representative value of nuclear power generating sets prime mover and governor model thereof.
Below to illustrate the parameter identification of nuclear power generating sets GGOV1 prime mover and governor model thereof, in this model, need the parameter of identification to be Kpgov(speed regulator scale-up factor in permanent speed regulation r, PID controller) and Kigov(speed regulator integral coefficient), Tb(steam turbine lag time constant in prime mover) and load governor in Kimw(load governor gain coefficient)
Prime mover and governor parameter thereof of newly calculating are organized for each, needs the bound checking each parameter.In GGOV1 model, if R<0.04, then R=0.04; If Kpgov<0.1, then Kpgov=0.1; If Kigov<0.02, then Kigov=0.02; If Tb>30, then Tb=30; If kimw<0, then kimw=0.
For the GGOV1 model of certain power plant and power measured value, the initial value of above-mentioned 5 parameters respectively:
R |
Kpgov |
Kigov |
Tb |
Kimw |
0.082 |
19.64 |
2.55 |
3.2 |
0.0019 |
Maximum iteration time K=100 is set, broadening factor μ=1.5, compressibility factor λ=0.7, convergence criterion epsilon=0.005.
Step 1: initial simplex.
|
R |
Kpgov |
Kigov |
Tb |
Kimw |
α
0 |
0.082 |
19.64 |
2.55 |
3.2 |
0.0019 |
α
1 |
0.092 |
19.64 |
2.55 |
3.2 |
0.0019 |
α
2 |
0.082 |
20.14 |
2.55 |
3.2 |
0.0019 |
α
3 |
0.082 |
19.64 |
2.75 |
3.2 |
0.0019 |
α
4 |
0.082 |
19.64 |
2.55 |
3.7 |
0.0019 |
α
5 |
0.082 |
19.64 |
2.55 |
3.2 |
0.0039 |
Step 2: the determination of sublating and newly putting of old point.According to objective function (1), utilize equivalent two machine systems, can calculate in the mean deviation often organizing simulation curve and measured curve under prime mover governor parameter.
|
α
1 |
α
2 |
α
3 |
α
4 |
α
5 |
Mean deviation |
0.039579 |
0.064168 |
0.039807 |
0.040654 |
0.038724 |
According to mean deviation, α
2should be the parameter that will sublate, according to formula (3), computational reflect point:
|
R |
Kpgov |
Kigov |
Tb |
Kimw |
α
R |
0.086 |
19.84 |
2.63 |
3.4 |
0 |
Step 3: the expansion of newly putting, compression and simplex are shunk
Reflection spot error is 0.301678, is greater than the mean deviation of worst point, therefore needs compression, calculates compression point according to formula (5):
|
R |
Kpgov |
Kigov |
Tb |
Kimw |
α
S |
0.0832 |
19.7 |
2.574 |
3.26 |
0.00273 |
Compression point error is 0.137663, is greater than the mean deviation of worst point, and therefore simplex needs to shrink, and calculates the simplex after shrinking according to formula (6):
|
R |
Kpgov |
Kigov |
Tb |
Kimw |
α
0 |
0.082 |
19.64 |
2.55 |
3.45 |
0.0019 |
α
1 |
0.087 |
19.64 |
2.55 |
3.45 |
0.0019 |
α
2 |
0.082 |
19.89 |
2.55 |
3.45 |
0.0019 |
α
3 |
0.082 |
19.64 |
2.65 |
3.45 |
0.0019 |
α
4 |
0.082 |
19.64 |
2.55 |
3.7 |
0.0019 |
α
5 |
0.084 |
19.74 |
2.59 |
3.55 |
0.00095 |
Return step 2, cycle calculations like this, eventually pass 9 loop iteration convergences, nuclear power generating sets prime mover and governor parameter identification result thereof:
R |
Kpgov |
Kigov |
Tb |
Kimw |
0.082046 |
19.648594 |
2.640938 |
3.458594 |
0.001879 |
The mean deviation of the final argument that identification obtains is 0.03722713726.
Measured power curve and simulation curve are shown in accompanying drawing 3.