Home > matpower6.0 > case4gs.m

case4gs

PURPOSE ^

CASE4GS Power flow data for 4 bus, 2 gen case from Grainger & Stevenson.

SYNOPSIS ^

function mpc = case4gs

DESCRIPTION ^

CASE4GS  Power flow data for 4 bus, 2 gen case from Grainger & Stevenson.
   Please see CASEFORMAT for details on the case file format.

   This is the 4 bus example from pp. 337-338 of "Power System Analysis",
   by John Grainger, Jr., William Stevenson, McGraw-Hill, 1994.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function mpc = case4gs
0002 %CASE4GS  Power flow data for 4 bus, 2 gen case from Grainger & Stevenson.
0003 %   Please see CASEFORMAT for details on the case file format.
0004 %
0005 %   This is the 4 bus example from pp. 337-338 of "Power System Analysis",
0006 %   by John Grainger, Jr., William Stevenson, McGraw-Hill, 1994.
0007 
0008 %   MATPOWER
0009 
0010 %% MATPOWER Case Format : Version 2
0011 mpc.version = '2';
0012 
0013 %%-----  Power Flow Data  -----%%
0014 %% system MVA base
0015 mpc.baseMVA = 100;
0016 
0017 %% bus data
0018 %    bus_i    type    Pd    Qd    Gs    Bs    area    Vm    Va    baseKV    zone    Vmax    Vmin
0019 mpc.bus = [
0020     1    3    50    30.99    0    0    1    1    0    230    1    1.1    0.9;
0021     2    1    170    105.35    0    0    1    1    0    230    1    1.1    0.9;
0022     3    1    200    123.94    0    0    1    1    0    230    1    1.1    0.9;
0023     4    2    80    49.58    0    0    1    1    0    230    1    1.1    0.9;
0024 ];
0025 
0026 %% generator data
0027 %    bus    Pg    Qg    Qmax    Qmin    Vg    mBase    status    Pmax    Pmin    Pc1    Pc2    Qc1min    Qc1max    Qc2min    Qc2max    ramp_agc    ramp_10    ramp_30    ramp_q    apf
0028 mpc.gen = [
0029     4    318    0    100    -100    1.02    100    1    318    0    0    0    0    0    0    0    0    0    0    0    0;
0030     1    0    0    100    -100    1    100    1    0    0    0    0    0    0    0    0    0    0    0    0    0;
0031 ];
0032 
0033 %% branch data
0034 %    fbus    tbus    r    x    b    rateA    rateB    rateC    ratio    angle    status    angmin    angmax
0035 mpc.branch = [
0036     1    2    0.01008    0.0504    0.1025    250    250    250    0    0    1    -360    360;
0037     1    3    0.00744    0.0372    0.0775    250    250    250    0    0    1    -360    360;
0038     2    4    0.00744    0.0372    0.0775    250    250    250    0    0    1    -360    360;
0039     3    4    0.01272    0.0636    0.1275    250    250    250    0    0    1    -360    360;
0040 ];

Generated on Fri 16-Dec-2016 12:45:37 by m2html © 2005