准备加更多的量测量,例如负荷量测,支路电流量测。
Signed-off-by: dmy@lab <dmy@lab.lab>
This commit is contained in:
parent
1ffcde12ba
commit
5cb2c57018
4
run.m
4
run.m
|
|
@ -2,7 +2,7 @@ clear
|
|||
clc
|
||||
% yalmip('clear')
|
||||
addpath('.\Powerflow')
|
||||
[~, ~, ~, ~,Volt,Vangle,Y,Yangle,r,c,newwordParameter,PG,QG,PD,QD,Balance]=pf('ieee301.dat', '0');
|
||||
[~, ~, ~, ~,Volt,Vangle,Y,Yangle,r,c,newwordParameter,PG,QG,PD,QD,Balance]=pf('ieee118.dat', '0');
|
||||
%% 开始生成量测量
|
||||
sigma=0.03;% 标准差
|
||||
%% 电压
|
||||
|
|
@ -100,7 +100,7 @@ fprintf('
|
|||
% 初始化一些值
|
||||
SEVolt=sparse(ones(length(mVolt),1));
|
||||
SEVolt(Balance)=rVolt(Balance);
|
||||
SEVAngle=sparse(zeros(length(mVolt),1));
|
||||
SEVAngle=sparse(-0.02*ones(length(mVolt),1));
|
||||
maxD=1000;
|
||||
Iteration=0;
|
||||
optimalCondition=100;
|
||||
|
|
|
|||
Loading…
Reference in New Issue