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

ex_storage

PURPOSE ^

EX_STORAGE Example Storage data file for stochastic unit commitment.

SYNOPSIS ^

function storage = ex_storage(mpc)

DESCRIPTION ^

EX_STORAGE  Example Storage data file for stochastic unit commitment.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function storage = ex_storage(mpc)
0002 %EX_STORAGE  Example Storage data file 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 %%-----  storage  -----
0013 ecap = 200;          %% energy capacity
0014 pcap = ecap * .4; %0.25; %% power capacity
0015 scost = 45.166667;      %% cost/value of initial/residual stored energy
0016 %scost = 30;      %% cost/value of initial/residual stored energy
0017 scost2 = 41.6666667;      %% cost/value of initial/residual stored energy
0018 scost3 = 53.3333333;      %% cost/value of initial/residual stored energy
0019 %% generator data
0020 %    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
0021 storage.gen = [
0022 %    1    0    0    0    0    1    100    1    pcap    -pcap    0    0    0    0    0    0    0    20    20    0    0;
0023 %    2    0    0    0    0    1    100    1    pcap    -pcap    0    0    0    0    0    0    0    20    20    0    0;
0024     3    0    0    0    0    1    100    1    pcap    -pcap    0    0    0    0    0    0    0    20    20    0    0;
0025 ];
0026 
0027 %%-----  OPF Data  -----%%
0028 %% generator cost data
0029 %    1    startup    shutdown    n    x1    y1    ...    xn    yn
0030 %    2    startup    shutdown    n    c(n-1)    ...    c0
0031 % storage.gencost = [
0032 %     2    0    0    2    0    0;
0033 % ];
0034 
0035 %% xGenData
0036 storage.xgd_table.colnames = {
0037     'CommitKey', ...
0038         'CommitSched', ...
0039             'PositiveActiveReservePrice', ...
0040                 'PositiveActiveReserveQuantity', ...
0041                     'NegativeActiveReservePrice', ...
0042                         'NegativeActiveReserveQuantity', ...
0043                             'PositiveActiveDeltaPrice', ...
0044                                 'NegativeActiveDeltaPrice', ...
0045                                     'PositiveLoadFollowReservePrice', ...
0046                                         'PositiveLoadFollowReserveQuantity', ...
0047                                             'NegativeLoadFollowReservePrice', ...
0048                                                 'NegativeLoadFollowReserveQuantity', ...
0049 };
0050 
0051 storage.xgd_table.data = [
0052     2    1    1e-8    2*pcap    2e-8    2*pcap    1e-9    1e-9    1e-6    2*pcap    1e-6    2*pcap;
0053 %    2    1    1e-8    2*pcap    2e-8    2*pcap    1e-9    1e-9    1e-6    2*pcap    1e-6    2*pcap;
0054 %    2    1    1e-8    2*pcap    2e-8    2*pcap    1e-9    1e-9    1e-6    2*pcap    1e-6    2*pcap;
0055 ];
0056 
0057 %% StorageData
0058 storage.sd_table.OutEff                = 1;
0059 storage.sd_table.InEff                = 1;
0060 storage.sd_table.LossFactor            = 0;
0061 storage.sd_table.rho                = 0;
0062 storage.sd_table.colnames = {
0063     'InitialStorage', ...
0064         'InitialStorageLowerBound', ...
0065             'InitialStorageUpperBound', ...
0066                 'InitialStorageCost', ...
0067                     'TerminalStoragePrice', ...
0068                         'MinStorageLevel', ...
0069                             'MaxStorageLevel', ...
0070                                 'OutEff', ...
0071                                     'InEff', ...
0072                                         'LossFactor', ...
0073                                             'rho', ...
0074 };
0075 
0076 storage.sd_table.data = [
0077     0    0    ecap    scost    scost    0    ecap    1    1    1e-5    0;
0078 %    0    0    ecap    scost2    scost2    0    ecap    1    1    0    0;
0079 %    0    0    ecap    scost3    scost3    0    ecap    1    1    0    0;
0080 ];

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