Home > matpower7.1 > lib > t > t_loadcase > case_for_off_path_test.m

case_for_off_path_test

PURPOSE ^

CASE_NO_NET Two bus, single gen example to mimic the case with no network.

SYNOPSIS ^

function mpc = case_for_off_path_test

DESCRIPTION ^

CASE_NO_NET  Two bus, single gen example to mimic the case with no network.
   Please see CASEFORMAT for details on the case file format.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function mpc = case_for_off_path_test
0002 %CASE_NO_NET  Two bus, single gen example to mimic the case with no network.
0003 %   Please see CASEFORMAT for details on the case file format.
0004 
0005 %   MATPOWER
0006 
0007 %% MATPOWER Case Format : Version 2
0008 mpc.version = '2';
0009 
0010 %%-----  Power Flow Data  -----%%
0011 %% system MVA base
0012 mpc.baseMVA = 100;
0013 
0014 %% bus data
0015 %    bus_i    type    Pd    Qd    Gs    Bs    area    Vm    Va    baseKV    zone    Vmax    Vmin
0016 mpc.bus = [
0017     1    3    0    0    0    0    1    1    0    135    1    1.05    0.95;
0018     2    1    20    0    0    0    1    1    0    135    1    1.05    0.95;
0019 ];
0020 
0021 %% generator data
0022 %    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
0023 mpc.gen = [
0024     1    10    0    50    -50    1    100    1    100    0    0    0    0    0    0    0    0    100    100    0    0;
0025 ];
0026 
0027 %% branch data
0028 %    fbus    tbus    r    x    b    rateA    rateB    rateC    ratio    angle    status    angmin    angmax
0029 mpc.branch = [
0030     1    2    0.005    0.01    0    0    0    0    0    0    1    -360    360;
0031 ];
0032 
0033 %%-----  OPF Data  -----%%
0034 %% generator cost data
0035 %    1    startup    shutdown    n    x1    y1    ...    xn    yn
0036 %    2    startup    shutdown    n    c(n-1)    ...    c0
0037 mpc.gencost = [
0038     2    0    0    3    2    0    0;
0039 ];

Generated on Fri 09-Oct-2020 11:21:31 by m2html © 2005