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

ex_contab

PURPOSE ^

EX_CONTAB Example contingency data for stochastic unit commitment.

SYNOPSIS ^

function contab = ex_contab

DESCRIPTION ^

EX_CONTAB  Example contingency data for stochastic unit commitment.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function contab = ex_contab
0002 %EX_CONTAB  Example contingency data for stochastic unit commitment.
0003 
0004 %   MOST
0005 %   Copyright (c) 2015-2016, Power Systems Engineering Research Center (PSERC)
0006 %   by Ray Zimmerman, PSERC Cornell
0007 %
0008 %   This file is part of MOST.
0009 %   Covered by the 3-clause BSD License (see LICENSE file for details).
0010 %   See http://www.pserc.cornell.edu/matpower/ for more info.
0011 
0012 %% define constants
0013 [GEN_BUS, PG, QG, QMAX, QMIN, VG, MBASE, GEN_STATUS, PMAX, PMIN, ...
0014     MU_PMAX, MU_PMIN, MU_QMAX, MU_QMIN, PC1, PC2, QC1MIN, QC1MAX, ...
0015     QC2MIN, QC2MAX, RAMP_AGC, RAMP_10, RAMP_30, RAMP_Q, APF] = idx_gen;
0016 [F_BUS, T_BUS, BR_R, BR_X, BR_B, RATE_A, RATE_B, RATE_C, ...
0017     TAP, SHIFT, BR_STATUS, PF, QF, PT, QT, MU_SF, MU_ST, ...
0018     ANGMIN, ANGMAX, MU_ANGMIN, MU_ANGMAX] = idx_brch;
0019 [CT_LABEL, CT_PROB, CT_TABLE, CT_TBUS, CT_TGEN, CT_TBRCH, CT_TAREABUS, ...
0020     CT_TAREAGEN, CT_TAREABRCH, CT_ROW, CT_COL, CT_CHGTYPE, CT_REP, ...
0021     CT_REL, CT_ADD, CT_NEWVAL, CT_TLOAD, CT_TAREALOAD, CT_LOAD_ALL_PQ, ...
0022     CT_LOAD_FIX_PQ, CT_LOAD_DIS_PQ, CT_LOAD_ALL_P, CT_LOAD_FIX_P, ...
0023     CT_LOAD_DIS_P, CT_TGENCOST, CT_TAREAGENCOST, CT_MODCOST_F, ...
0024     CT_MODCOST_X] = idx_ct;
0025 
0026 %%-----  contingencies  -----
0027 %% contingency table
0028 % label probty  type        row column      chgtype newvalue
0029 contab = [
0030     1   0.06    CT_TGEN     2   GEN_STATUS  CT_REP  0;      %% gen 2 at bus 1
0031     2   0.04    CT_TBRCH    2   BR_STATUS   CT_REP  0;      %% line 1-3
0032 ];

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