0001 function test_se_14bus_err
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023 idx.idx_zPF = [1;3;8;9;10;13;15;19];
0024 idx.idx_zPT = [4;5;7;11];
0025 idx.idx_zPG = [1;2];
0026 idx.idx_zVa = [];
0027 idx.idx_zQF = [1;3;8;9;10;13;15;19];
0028 idx.idx_zQT = [4;5;7;11];
0029 idx.idx_zQG = [1;2];
0030 idx.idx_zVm = [2;3];
0031
0032
0033 measure.PF = [1.5708;0.734;0.2707;0.1546;0.4589;0.1834;0.2707;0.0188];
0034 measure.PT = [-0.5427;-0.4081;0.6006;-0.0816];
0035 measure.PG = [2.32;0.4];
0036 measure.Va = [];
0037 measure.QF = [-0.1748;0.0594;-0.154;-0.0264;-0.2084;0.0998;0.148;0.0141];
0038 measure.QT = [0.0213;-0.0193;-0.1006;-0.0864];
0039 measure.QG = [-0.169;0.424];
0040 measure.Vm = [1;1];
0041
0042
0043 sigma.sigma_PF = 0.02;
0044 sigma.sigma_PT = 0.02;
0045 sigma.sigma_PG = 0.015;
0046 sigma.sigma_Va = [];
0047 sigma.sigma_QF = 0.02;
0048 sigma.sigma_QT = 0.02;
0049 sigma.sigma_QG = 0.015;
0050 sigma.sigma_Vm = 0.01;
0051
0052
0053 nbus = 14;
0054 [success, measure, idx, sigma] = checkDataIntegrity(measure, idx, sigma, nbus);
0055 if ~success
0056 error('State Estimation input data are not complete or sufficient!');
0057 end
0058
0059
0060 casename = 'case14.m';
0061 type_initialguess = 2;
0062 [baseMVA, bus, gen, branch, success, et, z, z_est, error_sqrsum] = run_se(casename, measure, idx, sigma, type_initialguess);