Home > matpower7.0 > extras > reduction > Example_9bus.m

Example_9bus

PURPOSE ^

Example_9bus

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

 Example_9bus
 test reduction code on 9-bus system (case9)

 Created by Yujia Zhu, yzhu54@asu.edu, Oct. 2014

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % Example_9bus
0002 % test reduction code on 9-bus system (case9)
0003 %
0004 % Created by Yujia Zhu, yzhu54@asu.edu, Oct. 2014
0005 
0006 %   MATPOWER
0007 %   Copyright (c) 2014-2016, Power Systems Engineering Research Center (PSERC)
0008 %   by Yujia Zhu, PSERC ASU
0009 %
0010 %   This file is part of MATPOWER/mx-reduction.
0011 %   Covered by the 3-clause BSD License (see LICENSE file for details).
0012 %   See https://github.com/MATPOWER/mx-reduction/ for more info.
0013 
0014 %% load 9-bus case in MATPOWER format
0015 % If you have installed MATPOWER, you can use function "loadcase" instead
0016 % to read the case data
0017 mpc = loadcase('case9'); % input full model in MATPOWER case format
0018 %% give external bus indices
0019 ExBus=[1,5,8]'; % input list of external buses (buses to be eliminated)
0020 %% run reduction subroutine (MPReduction)
0021 %Input notes:
0022 % mpc: struct, the original full model in MATPOWER case format
0023 % ExBus: 1*n array, list of external buses
0024 [mpcreduced,Link,BCIRCr]=MPReduction(mpc,ExBus,0); % call reduction subroutine
0025 % Output notes:
0026 % 1. The output mpcreduced is the reduced 6 bus model
0027 % 2. All branch B shunts are converted to B shunts on buses
0028 % 3. There are 4 equivalent branches generated in the reduction process
0029 %    branch between bus: 2-7, 2-9, 4-6, 7-9, all equivalent branches have
0030 %    circuit number 99.
0031 % 4. Equivalent lines have no line ratings.
0032 % 5. Link gives generator bus mapping showing how generators are moved.
0033 %    E.g: Generator on bus 1 is moved to bus 4, all other generators are
0034 %    not moved since they were on retained buses
0035 % 6. The reduction process will generate equivalent lines with large
0036 %   impedance. The software eliminate equivalent lines whose impedance is
0037 %   larger than the threshold value. The threshold value in the software is
0038 %   10 times of maximum impedance (reactance) value in the original full
0039 %   model.

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