0001 function test_se
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020 idx.idx_zPF = [1;2];
0021 idx.idx_zPT = [3];
0022 idx.idx_zPG = [1;2;3];
0023 idx.idx_zVa = [];
0024 idx.idx_zQF = [];
0025 idx.idx_zQT = [];
0026 idx.idx_zQG = [];
0027 idx.idx_zVm = [2;3];
0028
0029
0030 measure.PF = [0.12;0.10];
0031 measure.PT = [-0.04];
0032 measure.PG = [0.58;0.30;0.14];
0033 measure.Va = [];
0034 measure.QF = [];
0035 measure.QT = [];
0036 measure.QG = [];
0037 measure.Vm = [1.04;0.98];
0038
0039
0040 sigma.sigma_PF = 0.02;
0041 sigma.sigma_PT = 0.02;
0042 sigma.sigma_PG = 0.015;
0043 sigma.sigma_Va = [];
0044 sigma.sigma_QF = [];
0045 sigma.sigma_QT = [];
0046 sigma.sigma_QG = [];
0047 sigma.sigma_Vm = 0.01;
0048
0049
0050 nbus = 3;
0051 [success, measure, idx, sigma] = checkDataIntegrity(measure, idx, sigma, nbus);
0052 if ~success
0053 error('State Estimation input data are not complete or sufficient!');
0054 end
0055
0056
0057 casename = 'case3bus_P6_6.m';
0058 type_initialguess = 2;
0059 [baseMVA, bus, gen, branch, success, et, z, z_est, error_sqrsum] = run_se(casename, measure, idx, sigma, type_initialguess);