Home > matpower6.0 > most > t > ex_case3b.m

ex_case3b

PURPOSE ^

EX_CASE3B Three bus example system for stochastic unit commitment.

SYNOPSIS ^

function mpc = ex_case3b

DESCRIPTION ^

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

Generated on Fri 16-Dec-2016 12:45:37 by m2html © 2005