function mpc = case30_gsa

%% MATPOWER Case Format : Version 2
mpc.version = '2';

%%-----  Power Flow Data  -----% 
%% system MVA base
mpc.baseMVA = 100.000000;


%%    branch    data
%   fbus  tbus     r         x         b      rateA  rateB  rateC  ratio  angle status angmin angmax
mpc.branch = [
    1       2       0.019200000000000  0.057500000000000  0.052800   130.00  130.00  130.00  1.000000000   0.000000000   1       -360.000  360.000 ;
    1       3       0.045200000000000  0.185200000000000  0.040800   130.00  130.00  130.00  1.000000000   0.000000000   1       -360.000  360.000 ;
    2       4       0.057000000000000  0.173700000000000  0.036800   65.00   65.00   65.00   1.000000000   0.000000000   1       -360.000  360.000 ;
    3       4       0.013200000000000  0.037900000000000  0.008400   130.00  130.00  130.00  1.000000000   0.000000000   1       -360.000  360.000 ;
    2       5       0.047200000000000  0.198300000000000  0.041800   130.00  130.00  130.00  1.000000000   0.000000000   1       -360.000  360.000 ;
    2       6       0.058100000000000  0.176300000000000  0.037400   65.00   65.00   65.00   1.000000000   0.000000000   1       -360.000  360.000 ;
    4       6       0.011900000000000  0.041400000000000  0.009000   90.00   90.00   90.00   1.000000000   0.000000000   1       -360.000  360.000 ;
    5       7       0.046000000000000  0.116000000000000  0.020400   70.00   70.00   70.00   1.000000000   0.000000000   1       -360.000  360.000 ;
    6       7       0.026700000000000  0.082000000000000  0.017000   130.00  130.00  130.00  1.000000000   0.000000000   1       -360.000  360.000 ;
    6       8       0.012000000000000  0.042000000000000  0.009000   32.00   32.00   32.00   1.000000000   0.000000000   1       -360.000  360.000 ;
    6       9       0.000000000000000  0.208000000000000  0.000000   65.00   65.00   65.00   1.037500000   0.000000000   1       -360.000  360.000 ;
    6       10      0.000000000000000  0.556000000000000  0.000000   32.00   32.00   32.00   0.900000000   0.000000000   1       -360.000  360.000 ;
    9       11      0.000000000000000  0.208000000000000  0.000000   65.00   65.00   65.00   1.000000000   0.000000000   1       -360.000  360.000 ;
    9       10      0.000000000000000  0.110000000000000  0.000000   65.00   65.00   65.00   1.000000000   0.000000000   1       -360.000  360.000 ;
    4       12      0.000000000000000  0.256000000000000  0.000000   65.00   65.00   65.00   0.975000000   0.000000000   1       -360.000  360.000 ;
    12      13      0.000000000000000  0.140000000000000  0.000000   65.00   65.00   65.00   1.000000000   0.000000000   1       -360.000  360.000 ;
    12      14      0.123100000000000  0.255900000000000  0.000000   32.00   32.00   32.00   1.000000000   0.000000000   1       -360.000  360.000 ;
    12      15      0.066200000000000  0.130400000000000  0.000000   32.00   32.00   32.00   1.000000000   0.000000000   1       -360.000  360.000 ;
    12      16      0.094500000000000  0.198700000000000  0.000000   32.00   32.00   32.00   1.000000000   0.000000000   1       -360.000  360.000 ;
    14      15      0.221000000000000  0.199700000000000  0.000000   16.00   16.00   16.00   1.000000000   0.000000000   1       -360.000  360.000 ;
    16      17      0.082400000000000  0.192300000000000  0.000000   16.00   16.00   16.00   1.000000000   0.000000000   1       -360.000  360.000 ;
    15      18      0.107000000000000  0.218500000000000  0.000000   16.00   16.00   16.00   1.000000000   0.000000000   1       -360.000  360.000 ;
    18      19      0.063900000000000  0.129200000000000  0.000000   16.00   16.00   16.00   1.000000000   0.000000000   1       -360.000  360.000 ;
    19      20      0.034000000000000  0.068000000000000  0.000000   32.00   32.00   32.00   1.000000000   0.000000000   1       -360.000  360.000 ;
    10      20      0.093600000000000  0.209000000000000  0.000000   32.00   32.00   32.00   1.000000000   0.000000000   1       -360.000  360.000 ;
    10      17      0.032400000000000  0.084500000000000  0.000000   32.00   32.00   32.00   1.000000000   0.000000000   1       -360.000  360.000 ;
    10      21      0.034800000000000  0.074900000000000  0.000000   32.00   32.00   32.00   1.000000000   0.000000000   1       -360.000  360.000 ;
    10      22      0.072700000000000  0.149900000000000  0.000000   32.00   32.00   32.00   1.000000000   0.000000000   1       -360.000  360.000 ;
    21      22      0.011600000000000  0.023600000000000  0.000000   32.00   32.00   32.00   1.000000000   0.000000000   1       -360.000  360.000 ;
    15      23      0.100000000000000  0.202000000000000  0.000000   16.00   16.00   16.00   1.000000000   0.000000000   1       -360.000  360.000 ;
    22      24      0.115000000000000  0.179000000000000  0.000000   16.00   16.00   16.00   1.000000000   0.000000000   1       -360.000  360.000 ;
    23      24      0.132000000000000  0.270000000000000  0.000000   16.00   16.00   16.00   1.000000000   0.000000000   1       -360.000  360.000 ;
    24      25      0.188500000000000  0.329200000000000  0.000000   16.00   16.00   16.00   1.000000000   0.000000000   1       -360.000  360.000 ;
    25      26      0.254400000000000  0.380000000000000  0.000000   16.00   16.00   16.00   1.000000000   0.000000000   1       -360.000  360.000 ;
    25      27      0.109300000000000  0.208700000000000  0.000000   16.00   16.00   16.00   1.000000000   0.000000000   1       -360.000  360.000 ;
    28      27      0.000000000000000  0.396000000000000  0.000000   65.00   65.00   65.00   0.962500000   0.000000000   1       -360.000  360.000 ;
    27      29      0.219800000000000  0.415300000000000  0.000000   16.00   16.00   16.00   1.000000000   0.000000000   1       -360.000  360.000 ;
    27      30      0.320200000000000  0.602700000000000  0.000000   16.00   16.00   16.00   1.000000000   0.000000000   1       -360.000  360.000 ;
    29      30      0.239900000000000  0.453300000000000  0.000000   16.00   16.00   16.00   1.000000000   0.000000000   1       -360.000  360.000 ;
    8       28      0.063600000000000  0.200000000000000  0.042800   32.00   32.00   32.00   1.000000000   0.000000000   1       -360.000  360.000 ;
    6       28      0.016900000000000  0.059900000000000  0.013000   32.00   32.00   32.00   1.000000000   0.000000000   1       -360.000  360.000 ;
];


%%    bus    data
% bus_i  type    Pd      Qd    Gs     Bs     area     Vm     Va   baseKV zone  Vmax  Vmin
mpc.bus = [
    1       3       0.000000000     0.000000000     0.000000   0.000000   1       1.099999789   0.000000000    135.0   1       1.10   0.95  ;
    2       2       21.700000000    12.700000000    0.000000   0.000000   1       1.087749616   -3.369649081   135.0   1       1.10   0.95  ;
    3       1       2.400000000     1.200000000     0.000000   0.000000   1       1.077744609   -5.244361549   135.0   1       1.10   0.95  ;
    4       1       7.600000000     1.600000000     0.000000   0.000000   1       1.071913455   -6.295678566   135.0   1       1.10   0.95  ;
    5       2       94.200000000    19.000000000    0.000000   0.000000   1       1.061507980   -9.564277240   135.0   1       1.10   0.95  ;
    6       1       0.000000000     0.000000000     0.000000   0.000000   1       1.068591355   -7.354389091   135.0   1       1.10   0.95  ;
    7       1       22.800000000    10.900000000    0.000000   0.000000   1       1.058420719   -8.740205707   135.0   1       1.10   0.95  ;
    8       2       30.000000000    30.000000000    0.000000   0.000000   1       1.069252094   -7.622771675   135.0   1       1.10   0.95  ;
    9       1       0.000000000     0.000000000     0.000000   0.000000   1       1.078713443   -9.272956858   135.0   1       1.10   0.95  ;
    10      1       5.800000000     2.000000000     0.000000   5.000000   1       1.094092750   -10.862889338  135.0   1       1.10   0.95  ;
    11      2       0.000000000     0.000000000     0.000000   0.000000   1       1.099991111   -8.079056434   135.0   1       1.10   0.95  ;
    12      1       11.200000000    7.500000000     0.000000   5.000000   1       1.098388140   -10.085901642  135.0   1       1.10   0.95  ;
    13      2       0.000000000     0.000000000     0.000000   0.000000   1       1.099998353   -9.289131409   135.0   1       1.10   0.95  ;
    14      1       6.200000000     1.600000000     0.000000   0.000000   1       1.089601837   -10.978268537  135.0   1       1.10   0.95  ;
    15      1       8.200000000     2.500000000     0.000000   5.000000   1       1.089936023   -11.244443002  135.0   1       1.10   0.95  ;
    16      1       3.500000000     1.800000000     0.000000   0.000000   1       1.091583358   -10.713554036  135.0   1       1.10   0.95  ;
    17      1       9.000000000     5.800000000     0.000000   5.000000   1       1.091462576   -11.074474095  135.0   1       1.10   0.95  ;
    18      1       3.200000000     0.900000000     0.000000   0.000000   1       1.083066519   -11.814299285  135.0   1       1.10   0.95  ;
    19      1       9.500000000     3.400000000     0.000000   0.000000   1       1.081969522   -11.979520552  135.0   1       1.10   0.95  ;
    20      1       2.200000000     0.700000000     0.000000   4.000000   1       1.086513155   -11.807748328  135.0   1       1.10   0.95  ;
    21      1       17.500000000    11.200000000    0.000000   5.000000   1       1.086618299   -11.368771686  135.0   1       1.10   0.95  ;
    22      1       0.000000000     0.000000000     0.000000   0.000000   1       1.087203697   -11.357589650  135.0   1       1.10   0.95  ;
    23      1       3.200000000     1.600000000     0.000000   3.000000   1       1.086898751   -11.746095457  135.0   1       1.10   0.95  ;
    24      1       8.700000000     6.700000000     0.000000   5.000000   1       1.082027545   -11.874959908  135.0   1       1.10   0.95  ;
    25      1       0.000000000     0.000000000     0.000000   0.000000   1       1.085188023   -11.644261119  135.0   1       1.10   0.95  ;
    26      1       3.500000000     2.300000000     0.000000   0.000000   1       1.068655172   -12.012279040  135.0   1       1.10   0.95  ;
    27      1       0.000000000     0.000000000     0.000000   0.000000   1       1.095176979   -11.267128592  135.0   1       1.10   0.95  ;
    28      1       0.000000000     0.000000000     0.000000   0.000000   1       1.066069177   -7.834997204   135.0   1       1.10   0.95  ;
    29      1       2.400000000     0.900000000     0.000000   2.500000   1       1.084891795   -12.557669778  135.0   1       1.10   0.95  ;
    30      1       10.600000000    1.900000000     0.000000   0.000000   1       1.070813945   -13.220010724  135.0   1       1.10   0.95  ;
];


%%    generator    data
%    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
mpc.gen = [
    1       177.045353727    -16.558874957    200.00    -20.00    1.099999789   1.000   1     200.0   50.0    0.000    0.000    0.000    0.000    0.000    0.000    0.000    0.000    0.000    0.000    0      ;
    2       48.694716324     22.604361379     100.00    -20.00    1.087749616   1.000   1     80.0    20.0    0.000    0.000    0.000    0.000    0.000    0.000    0.000    0.000    0.000    0.000    0      ;
    5       21.304381527     26.873636778     80.00     -15.00    1.061507980   1.000   1     50.0    15.0    0.000    0.000    0.000    0.000    0.000    0.000    0.000    0.000    0.000    0.000    0      ;
    8       21.080794307     32.926281743     60.00     -15.00    1.069252094   1.000   1     35.0    10.0    0.000    0.000    0.000    0.000    0.000    0.000    0.000    0.000    0.000    0.000    0      ;
    11      11.886283278     11.376365131     50.00     -10.00    1.099991111   1.000   1     30.0    10.0    0.000    0.000    0.000    0.000    0.000    0.000    0.000    0.000    0.000    0.000    0      ;
    13      12.000985301     1.348610018      60.00     -15.00    1.099998353   1.000   1     40.0    12.0    0.000    0.000    0.000    0.000    0.000    0.000    0.000    0.000    0.000    0.000    0      ;
];


%%    generator    cost    data
%    1    startup    shutdown    n    x1    y1    ...    xn    yn
%    2    startup    shutdown    n    c(n-1)    ...    c0
mpc.gencost = [
    2       0.000000000      0.000000000      3         0.003750000        2.000000000        0.000000000        ;
    2       0.000000000      0.000000000      3         0.017500000        1.750000000        0.000000000        ;
    2       0.000000000      0.000000000      3         0.062500000        1.000000000        0.000000000        ;
    2       0.000000000      0.000000000      3         0.008340000        3.250000000        0.000000000        ;
    2       0.000000000      0.000000000      3         0.025000000        3.000000000        0.000000000        ;
    2       0.000000000      0.000000000      3         0.025000000        3.000000000        0.000000000        ;
];


%%    transformer data
%    branch        min_tap    max_tap    increment    tap_setting    min_angle    max_angle    increment    angle_setting
mpc.transformer = [
    6       9       0.90    1.10    0.0125  1.0375  0.00    0.00    30.0000  0.0000;
    6       10      0.90    1.10    0.0125  0.9000  0.00    0.00    30.0000  0.0000;
    4       12      0.90    1.10    0.0125  0.9750  0.00    0.00    30.0000  0.0000;
    28      27      0.90    1.10    0.0125  0.9625  0.00    0.00    30.0000  0.0000;
];


%%    Switchable Volt Ampere Reactive compensator (SVAR) data 
%    bus     min      max      increment      setting
mpc.svar = [
    10      0.000    5.000    0.500    5.000  ;
    12      0.000    5.000    0.500    5.000  ;
    15      0.000    5.000    0.500    5.000  ;
    17      0.000    5.000    0.500    5.000  ;
    20      0.000    5.000    0.500    4.000  ;
    21      0.000    5.000    0.500    5.000  ;
    23      0.000    5.000    0.500    3.000  ;
    24      0.000    5.000    0.500    5.000  ;
    29      0.000    5.000    0.500    2.500  ;
];


