Home > matpower7.1 > most > lib > t > ex_case3a.m

ex_case3a

PURPOSE ^

EX_CASE3A Three bus example system.

SYNOPSIS ^

function mpc = ex_case3a

DESCRIPTION ^

EX_CASE3A  Three bus example system.
   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 = ex_case3a
0002 %EX_CASE3A  Three bus example system.
0003 %   Please see CASEFORMAT for details on the case file format.
0004 
0005 %   MOST
0006 %   Copyright (c) 2015-2016, Power Systems Engineering Research Center (PSERC)
0007 %   by Ray Zimmerman, PSERC Cornell
0008 %
0009 %   This file is part of MOST.
0010 %   Covered by the 3-clause BSD License (see LICENSE file for details).
0011 %   See https://github.com/MATPOWER/most for more info.
0012 
0013 %% MATPOWER Case Format : Version 2
0014 mpc.version = '2';
0015 
0016 %%-----  Power Flow Data  -----%%
0017 %% system MVA base
0018 mpc.baseMVA = 100;
0019 
0020 %% bus data
0021 %    bus_i    type    Pd    Qd    Gs    Bs    area    Vm    Va    baseKV    zone    Vmax    Vmin
0022 mpc.bus = [
0023     1    3    0    0    0    0    1    1    0    135    1    1.05    0.95;
0024     2    2    0    0    0    0    1    1    0    135    1    1.05    0.95;
0025     3    2    0    0    0    0    1    1    0    135    1    1.05    0.95;
0026 ];
0027 
0028 %% generator data
0029 %    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
0030 mpc.gen = [
0031     1    125    0    25    -25    1    100    1    200    0    0    0    0    0    0    0    0    250    250    0    0;
0032     1    125    0    25    -25    1    100    1    200    0    0    0    0    0    0    0    0    250    250    0    0;
0033     2    200    0    50    -50    1    100    1    500    0    0    0    0    0    0    0    0    600    600    0    0;
0034     3    -450    0    0    0    1    100    1    0    -450    0    0    0    0    0    0    0    500    500    0    0;
0035 ];
0036 
0037 %% branch data
0038 %    fbus    tbus    r    x    b    rateA    rateB    rateC    ratio    angle    status    angmin    angmax
0039 mpc.branch = [
0040     1    2    0.005    0.01    0    300    300    300    0    0    1    -360    360;
0041     1    3    0.005    0.01    0    240    240    240    0    0    1    -360    360;
0042     2    3    0.005    0.01    0    300    300    300    0    0    1    -360    360;
0043 ];
0044 
0045 %%-----  OPF Data  -----%%
0046 %% generator cost data
0047 %    1    startup    shutdown    n    x1    y1    ...    xn    yn
0048 %    2    startup    shutdown    n    c(n-1)    ...    c0
0049 mpc.gencost = [
0050     2    0    0    3    0.1    0    0;
0051     2    0    0    3    0.1    0    0;
0052     2    0    0    3    0.1    0    0;
0053     2    0    0    3    0    1000    0;
0054 ];
0055 
0056 %%-----  Reserve Data  -----%%
0057 %% reserve zones, element i, j is 1 if gen j is in zone i, 0 otherwise
0058 mpc.reserves.zones = [
0059     1    1    1    0;
0060 ];
0061 
0062 %% reserve requirements for each zone in MW
0063 mpc.reserves.req   = 150;
0064 
0065 %% reserve costs in $/MW for each gen that belongs to at least 1 zone
0066 %% (same order as gens, but skipping any gen that does not belong to any zone)
0067 % mpc.reserves.cost  = [    5;    5;    21;    ];
0068 % mpc.reserves.cost  = [    5;    5;    16.25;    ];
0069 % mpc.reserves.cost  = [    0;    0;    11.25;    ];
0070 mpc.reserves.cost  = [    1;    3;    5;    ];
0071 
0072 %% OPTIONAL max reserve quantities for each gen that belongs to at least 1 zone
0073 %% (same order as gens, but skipping any gen that does not belong to any zone)
0074 mpc.reserves.qty   = [    100;    100;    200;    ];

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