function mpc = case30_ga

%% 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.912500000   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.987500000   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.099999852   0.000000000    135.0   1       1.10   0.95  ;
    2       2       21.700000000    12.700000000    0.000000   0.000000   1       1.087902003   -3.370606217   135.0   1       1.10   0.95  ;
    3       1       2.400000000     1.200000000     0.000000   0.000000   1       1.079013945   -5.259103557   135.0   1       1.10   0.95  ;
    4       1       7.600000000     1.600000000     0.000000   0.000000   1       1.073447818   -6.313483990   135.0   1       1.10   0.95  ;
    5       2       94.200000000    19.000000000    0.000000   0.000000   1       1.061789549   -9.562402748   135.0   1       1.10   0.95  ;
    6       1       0.000000000     0.000000000     0.000000   0.000000   1       1.069419273   -7.364047564   135.0   1       1.10   0.95  ;
    7       1       22.800000000    10.900000000    0.000000   0.000000   1       1.059029927   -8.744814394   135.0   1       1.10   0.95  ;
    8       2       30.000000000    30.000000000    0.000000   0.000000   1       1.069469962   -7.623496658   135.0   1       1.10   0.95  ;
    9       1       0.000000000     0.000000000     0.000000   0.000000   1       1.076951569   -9.302510135   135.0   1       1.10   0.95  ;
    10      1       5.800000000     2.000000000     0.000000   5.000000   1       1.090059036   -10.909896657  135.0   1       1.10   0.95  ;
    11      2       0.000000000     0.000000000     0.000000   0.000000   1       1.099992945   -8.106965193   135.0   1       1.10   0.95  ;
    12      1       11.200000000    7.500000000     0.000000   5.000000   1       1.093920347   -10.137247818  135.0   1       1.10   0.95  ;
    13      2       0.000000000     0.000000000     0.000000   0.000000   1       1.099998387   -9.337243708   135.0   1       1.10   0.95  ;
    14      1       6.200000000     1.600000000     0.000000   0.000000   1       1.085056098   -11.032569370  135.0   1       1.10   0.95  ;
    15      1       8.200000000     2.500000000     0.000000   5.000000   1       1.085384801   -11.295764701  135.0   1       1.10   0.95  ;
    16      1       3.500000000     1.800000000     0.000000   0.000000   1       1.087267989   -10.765452502  135.0   1       1.10   0.95  ;
    17      1       9.000000000     5.800000000     0.000000   5.000000   1       1.087313224   -11.124523784  135.0   1       1.10   0.95  ;
    18      1       3.200000000     0.900000000     0.000000   0.000000   1       1.079038627   -11.878502816  135.0   1       1.10   0.95  ;
    19      1       9.500000000     3.400000000     0.000000   0.000000   1       1.078263917   -12.049961829  135.0   1       1.10   0.95  ;
    20      1       2.200000000     0.700000000     0.000000   4.500000   1       1.082994970   -11.879733306  135.0   1       1.10   0.95  ;
    21      1       17.500000000    11.200000000    0.000000   5.000000   1       1.082495763   -11.416891792  135.0   1       1.10   0.95  ;
    22      1       0.000000000     0.000000000     0.000000   0.000000   1       1.083074244   -11.404992735  135.0   1       1.10   0.95  ;
    23      1       3.200000000     1.600000000     0.000000   2.500000   1       1.081802121   -11.777924765  135.0   1       1.10   0.95  ;
    24      1       8.700000000     6.700000000     0.000000   5.000000   1       1.077735667   -11.916023393  135.0   1       1.10   0.95  ;
    25      1       0.000000000     0.000000000     0.000000   0.000000   1       1.081803361   -11.683972848  135.0   1       1.10   0.95  ;
    26      1       3.500000000     2.300000000     0.000000   0.000000   1       1.065217002   -12.054333978  135.0   1       1.10   0.95  ;
    27      1       0.000000000     0.000000000     0.000000   0.000000   1       1.092381841   -11.303766757  135.0   1       1.10   0.95  ;
    28      1       0.000000000     0.000000000     0.000000   0.000000   1       1.066363085   -7.839498495   135.0   1       1.10   0.95  ;
    29      1       2.400000000     0.900000000     0.000000   2.000000   1       1.080395102   -12.555665340  135.0   1       1.10   0.95  ;
    30      1       10.600000000    1.900000000     0.000000   0.000000   1       1.066983984   -13.242768027  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.055858294    -17.582314670    200.00    -20.00    1.099999852   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.696889745     21.556511169     100.00    -20.00    1.087902003   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.303379882     26.638069269     80.00     -15.00    1.061789549   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.074451111     31.331396939     60.00     -15.00    1.069469962   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.883231251     12.309247557     50.00     -10.00    1.099992945   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.000670103     4.859377238      60.00     -15.00    1.099998387   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.9125  0.00    0.00    30.0000  0.0000;
    4       12      0.90    1.10    0.0125  0.9875  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.500  ;
    21      0.000    5.000    0.500    5.000  ;
    23      0.000    5.000    0.500    2.500  ;
    24      0.000    5.000    0.500    5.000  ;
    29      0.000    5.000    0.500    2.000  ;
];


