把PQQG作为常数加入潮流方程中。
添加了很多统计函数。
This commit is contained in:
13
@ForThesis/SqareDeviation.m
Normal file
13
@ForThesis/SqareDeviation.m
Normal file
@@ -0,0 +1,13 @@
|
||||
function [ output_args ] = SqareDeviation( this, PG0,QG0,PD0,QD0)
|
||||
%% 其实就是负荷系数不为0的目标函数
|
||||
|
||||
PD=this.PDArray(:,end);%用最后一列
|
||||
QD=this.QDArray(:,end);%用最后一列
|
||||
t1=PD-PD0;
|
||||
t2=t1./0.05;
|
||||
t3=QD-QD0;
|
||||
t4=t3./0.05;
|
||||
|
||||
output_args=sqrt(sum(t2.^2)+sum(t4.^2));
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user