SD = LOADSTORAGEDATA(SD_TABLE)
SD = LOADSTORAGEDATA(SD_TABLE, GEN)
SD = LOADSTORAGEDATA(SD_TABLE, MPC)
Loads data from a StorageData table struct, or from a M-file or MAT-file
that returns such a struct, and converts it to a StorageData struct.
StorageData contains all parameters required by MOST for storage
units that is not included in MPC or xGenData.
If the first argument is the name of an M-file the optional second
argument will be passed to it. This can be useful for cases where
the user wishes to use data from GEN or GENCOST to set values in the
StorageData.
Inputs:
SD_TABLE : a StorageData table struct or the name of an M-file
or MAT-file that returns one, with the following fields
.colnames : N dimensional cell array of names corresponding
to the columns of the 'data' field. Valid column names
are the same as the output field names. All columns are
optional and the correpsonding defaults are listed
next the output field names below.
.data : (NS x N) matrix of data
.MinStorageLevel (optional) (scalar)
.MaxStorageLevel (optional) (scalar)
.OutEff (optional) (scalar)
.InEff (optional) (scalar)
.LossFactor (optional) (scalar)
.rho (optional) (scalar)
(values in any of the scalar fields listed above are
overridden by any corresponding values in the 'data' table)
GEN : (optional) standard GEN matrix for generators corresponding
to storage units in SD_TABLE
MPC : (optional) MATPOWER case struct containing GEN and GENCOST
matrices for generators corresponding to storage units in
SD_TABLE
Output:
SD : a StorageData struct, contains the following fields,
all of which are (NS x 1) vectors unless otherwise
indicated. Defaults are as provided by MD_INIT.
.UnitIdx (ns x 1)
.ExpectedTerminalStorageAim (ns x 1)
.ExpectedTerminalStorageMin (ns x 1)
.ExpectedTerminalStorageMax (ns x 1)
.InitialStorage (ns x 1)
.InitialStorageLowerBound (ns x 1)
.InitialStorageUpperBound (ns x 1)
.InitialStorageCost (ns x 1)
.TerminalStoragePrice (ns x 1)
.TerminalChargingPrice0 (ns x 1)
.TerminalDischargingPrice0 (ns x 1)
.TerminalChargingPriceK (ns x 1)
.TerminalDischargingPriceK (ns x 1)
.MinStorageLevel (ns x 1) or (1 x 1)
.MaxStorageLevel (ns x 1) or (1 x 1)
.OutEff (ns x 1) or (1 x 1)
.InEff (ns x 1) or (1 x 1)
.LossFactor (ns x 1) or (1 x 1)
.rho (ns x 1) or (1 x 1)