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

ex_wind_profile_d

PURPOSE ^

EX_WIND_PROFILE_D Example wind profile data for deterministic unit commitment.

SYNOPSIS ^

function windprofile = ex_wind_profile_d

DESCRIPTION ^

EX_WIND_PROFILE_D  Example wind profile data for deterministic unit commitment.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function windprofile = ex_wind_profile_d
0002 %EX_WIND_PROFILE_D  Example wind profile data for deterministic 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 https://github.com/MATPOWER/most 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 [CT_LABEL, CT_PROB, CT_TABLE, CT_TBUS, CT_TGEN, CT_TBRCH, CT_TAREABUS, ...
0017     CT_TAREAGEN, CT_TAREABRCH, CT_ROW, CT_COL, CT_CHGTYPE, CT_REP, ...
0018     CT_REL, CT_ADD, CT_NEWVAL, CT_TLOAD, CT_TAREALOAD, CT_LOAD_ALL_PQ, ...
0019     CT_LOAD_FIX_PQ, CT_LOAD_DIS_PQ, CT_LOAD_ALL_P, CT_LOAD_FIX_P, ...
0020     CT_LOAD_DIS_P, CT_TGENCOST, CT_TAREAGENCOST, CT_MODCOST_F, ...
0021     CT_MODCOST_X] = idx_ct;
0022 
0023 windprofile = struct( ...
0024     'type', 'mpcData', ...
0025     'table', CT_TGEN, ...
0026     'rows', 1, ...
0027     'col', PMAX, ...
0028     'chgtype', CT_REL, ...
0029     'values', [] );
0030 wp = ex_wind_profile;
0031 windprofile.values(:, :, 1) = mean(wp.values, 2);
0032 % windprofile.values(:, :, 1) = [
0033 %     0.80;
0034 %     0.65;
0035 %     0.60;
0036 %     0.82;
0037 %     1.00;
0038 %     0.70;
0039 %     0.50;
0040 %     0.85;
0041 %     1.00;
0042 %     1.10;
0043 %     1.06;
0044 %     0.95;
0045 % ];

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