function mpc = case30;

mpc.version = '2';

mpc.baseMVA = 100.000000;


mpc.bus = [
    1       3       0.000000000     0.000000000     0.000000   0.000000   1       1.083108680   0.000000000    135.0   1       1.10   0.95  ;
    2       2       21.700000000    12.700000000    0.000000   0.000000   1       1.063582850   -0.058962540   135.0   1       1.10   0.95  ;
    3       1       2.400000000     1.200000000     0.000000   0.000000   1       1.049999712   -0.092549633   135.0   1       1.05   0.95  ;
    4       1       7.600000000     1.600000000     0.000000   0.000000   1       1.041953444   -0.111118412   135.0   1       1.05   0.95  ;
    5       2       94.200000000    19.000000000    0.000000   0.000000   1       1.032508267   -0.171747441   135.0   1       1.10   0.95  ;
    6       1       0.000000000     0.000000000     0.000000   0.000000   1       1.038045213   -0.130440830   135.0   1       1.05   0.95  ;
    7       1       22.800000000    10.900000000    0.000000   0.000000   1       1.028226448   -0.156211873   135.0   1       1.05   0.95  ;
    8       2       30.000000000    30.000000000    0.000000   0.000000   1       1.036837496   -0.134793322   135.0   1       1.10   0.95  ;
    9       1       0.000000000     0.000000000     0.000000   0.000000   1       1.035582041   -0.167011793   135.0   1       1.05   0.95  ;
    10      1       5.800000000     2.000000000     0.000000   0.000000   1       1.045784324   -0.197171879   135.0   1       1.05   0.95  ;
    11      2       0.000000000     0.000000000     0.000000   0.000000   1       1.076706869   -0.144802674   135.0   1       1.10   0.95  ;
    12      1       11.200000000    7.500000000     0.000000   1.000000   1       1.049958319   -0.182280299   135.0   1       1.05   0.95  ;
    13      2       0.000000000     0.000000000     0.000000   0.000000   1       1.050524174   -0.167048614   135.0   1       1.10   0.95  ;
    14      1       6.200000000     1.600000000     0.000000   0.000000   1       1.040050984   -0.199127755   135.0   1       1.05   0.95  ;
    15      1       8.200000000     2.500000000     0.000000   4.000000   1       1.039819331   -0.203747326   135.0   1       1.05   0.95  ;
    16      1       3.500000000     1.800000000     0.000000   0.000000   1       1.042789346   -0.194225593   135.0   1       1.05   0.95  ;
    17      1       9.000000000     5.800000000     0.000000   5.000000   1       1.042624888   -0.201081220   135.0   1       1.05   0.95  ;
    18      1       3.200000000     0.900000000     0.000000   0.000000   1       1.033639357   -0.215122042   135.0   1       1.05   0.95  ;
    19      1       9.500000000     3.400000000     0.000000   0.000000   1       1.033099703   -0.218557708   135.0   1       1.05   0.95  ;
    20      1       2.200000000     0.700000000     0.000000   5.000000   1       1.038179708   -0.215415480   135.0   1       1.05   0.95  ;
    21      1       17.500000000    11.200000000    0.000000   5.000000   1       1.037448280   -0.206636722   135.0   1       1.05   0.95  ;
    22      1       0.000000000     0.000000000     0.000000   0.000000   1       1.038020946   -0.206408086   135.0   1       1.05   0.95  ;
    23      1       3.200000000     1.600000000     0.000000   3.000000   1       1.036318413   -0.213184146   135.0   1       1.05   0.95  ;
    24      1       8.700000000     6.700000000     0.000000   5.000000   1       1.031630992   -0.215804581   135.0   1       1.05   0.95  ;
    25      1       0.000000000     0.000000000     0.000000   0.000000   1       1.035402871   -0.211686799   135.0   1       1.05   0.95  ;
    26      1       3.500000000     2.300000000     0.000000   0.000000   1       1.018045775   -0.218753444   135.0   1       1.05   0.95  ;
    27      1       0.000000000     0.000000000     0.000000   0.000000   1       1.046181688   -0.204641851   135.0   1       1.05   0.95  ;
    28      1       0.000000000     0.000000000     0.000000   0.000000   1       1.034659387   -0.139119738   135.0   1       1.05   0.95  ;
    29      1       2.400000000     0.900000000     0.000000   2.500000   1       1.034575620   -0.228978278   135.0   1       1.05   0.95  ;
    30      1       10.600000000    1.900000000     0.000000   0.000000   1       1.020115441   -0.241872878   135.0   1       1.05   0.95  ;
];


mpc.gen = [
    1       176.937905482    2.948540329      200.00    -20.00    1.083108680   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.816039087     19.251948960     100.00    -20.00    1.063582850   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.421215424     26.002394721     80.00     -15.00    1.032508267   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.342118379     27.787753424     60.00     -15.00    1.036837496   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.904586026     21.420366255     50.00     -10.00    1.076706869   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.000000000     0.515995289      60.00     -15.00    1.050524174   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      ;
];


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.062500000   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.975000000   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 ;
];


mpc.gencost = [
    2       0.000000      0.000000      3       0.003750      2.000000      0.000000     ;
    2       0.000000      0.000000      3       0.017500      1.750000      0.000000     ;
    2       0.000000      0.000000      3       0.062500      1.000000      0.000000     ;
    2       0.000000      0.000000      3       0.008340      3.250000      0.000000     ;
    2       0.000000      0.000000      3       0.025000      3.000000      0.000000     ;
    2       0.000000      0.000000      3       0.025000      3.000000      0.000000     ;
    2       0.000000      0.000000      0       0.000000      0.000000      0.000000     ;
    2       0.000000      0.000000      0       0.000000      0.000000      0.000000     ;
    2       0.000000      0.000000      0       0.000000      0.000000      0.000000     ;
    2       0.000000      0.000000      0       0.000000      0.000000      0.000000     ;
    2       0.000000      0.000000      0       0.000000      0.000000      0.000000     ;
    2       0.000000      0.000000      0       0.000000      0.000000      0.000000     ;
];


mpc.transformer = [
    6       9       0.90    1.10    0.0125  0.00    0.00    30.00 ;
    6       10      0.90    1.10    0.0125  0.00    0.00    30.00 ;
    4       12      0.90    1.10    0.0125  0.00    0.00    30.00 ;
    28      27      0.90    1.10    0.0125  0.00    0.00    30.00 ;
];


mpc.svar = [
    10      0.000    5.000    0.500    0.0;
    12      0.000    5.000    0.500    1.0;
    15      0.000    5.000    0.500    4.0;
    17      0.000    5.000    0.500    5.0;
    20      0.000    5.000    0.500    5.0;
    21      0.000    5.000    0.500    5.0;
    23      0.000    5.000    0.500    3.0;
    24      0.000    5.000    0.500    5.0;
    29      0.000    5.000    0.500    2.5;
];


