Home > matpower5.1 > extras > se > test_se_14bus_err.m

test_se_14bus_err

PURPOSE ^

TEST_SE_14BUS Test state estimation on IEEE 14-bus system.

SYNOPSIS ^

function test_se_14bus_err

DESCRIPTION ^

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

Generated on Fri 20-Mar-2015 18:23:34 by m2html © 2005