Home > matpower7.0 > extras > se > test_se_14bus.m

test_se_14bus

PURPOSE ^

TEST_SE_14BUS Test state estimation on IEEE 14-bus system

SYNOPSIS ^

function test_se_14bus

DESCRIPTION ^

TEST_SE_14BUS    Test state estimation on IEEE 14-bus system
    created by Rui Bo on Jan 6, 2010

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function test_se_14bus
0002 %TEST_SE_14BUS    Test state estimation on IEEE 14-bus system
0003 %    created by Rui Bo on Jan 6, 2010
0004 
0005 %   MATPOWER
0006 %   Copyright (c) 2009-2016, Power Systems Engineering Research Center (PSERC)
0007 %   by Rui Bo
0008 %
0009 %   This file is part of MATPOWER/mx-se.
0010 %   Covered by the 3-clause BSD License (see LICENSE file for details).
0011 %   See https://github.com/MATPOWER/mx-se/ for more info.
0012 
0013 %%------------------------------------------------------
0014 % using data for IEEE 14-bus system
0015 %%------------------------------------------------------
0016 % NOTE:
0017 % 1) all eight members of 'idx', 'measure' and 'sigma' must be
0018 % defined. They should be null vectors([]) if they do not have data
0019 % 2) all data used in this code are for testing purpose only
0020 %% which measurements are available
0021 idx.idx_zPF = [1;3;8;9;10;13;15;16;17;19];
0022 idx.idx_zPT = [4;5;7;11];
0023 idx.idx_zPG = [1;2;3;4;5];
0024 idx.idx_zVa = [];
0025 idx.idx_zQF = [1;3;8;9;10;13;15;19];
0026 idx.idx_zQT = [4;5;7;11];
0027 idx.idx_zQG = [1;2];
0028 idx.idx_zVm = [2;3;6;8;10;14];
0029 
0030 %% specify measurements
0031 measure.PF = [1.5708;0.734;0.2707;0.1546;0.4589;0.1834;0.2707;0.0523;0.0943;0.0188];
0032 measure.PT = [-0.5427;-0.4081;0.6006;-0.0816];
0033 measure.PG = [2.32;0.4;0;0;0];
0034 measure.Va = [];
0035 measure.QF = [-0.1748;0.0594;-0.154;-0.0264;-0.2084;0.0998;0.148;0.0141];
0036 measure.QT = [0.0213;-0.0193;-0.1006;-0.0864];
0037 measure.QG = [-0.169;0.424];
0038 measure.Vm = [1;1;1;1;1;1];
0039 
0040 %% specify measurement variances
0041 sigma.sigma_PF = 0.02;
0042 sigma.sigma_PT = 0.02;
0043 sigma.sigma_PG = 0.015;
0044 sigma.sigma_Va = [];
0045 sigma.sigma_QF = 0.02;
0046 sigma.sigma_QT = 0.02;
0047 sigma.sigma_QG = 0.015;
0048 sigma.sigma_Vm = 0.01;
0049 
0050 %% check input data integrity
0051 nbus = 14;
0052 [success, measure, idx, sigma] = checkDataIntegrity(measure, idx, sigma, nbus);
0053 if ~success
0054     error('State Estimation input data are not complete or sufficient!');
0055 end
0056     
0057 %% run state estimation
0058 casename = 'case14.m';
0059 type_initialguess = 2; % flat start
0060 [baseMVA, bus, gen, branch, success, et, z, z_est, error_sqrsum] = run_se(casename, measure, idx, sigma, type_initialguess);

Generated on Mon 24-Jun-2019 15:58:45 by m2html © 2005