0001 function windprofile = ex_wind_profile_d
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
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
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044
0045