DSIMA
 All Classes Namespaces Files Functions Variables
TimeData Class Reference

Set of timedata. More...

Public Member Functions

def __init__
 Constructor. More...
 
def getMeanMax
 Get the mean and the maximum value excluding the extreme one. More...
 
def adjustMeanMax
 Adjust a list of floats to meet a given mean and max value. More...
 
def periodValue
 Get the value for a period t in {0,...T-1} from a data vector. More...
 
def readFromFolder
 Read timedata from a folder. More...
 
def readColumn
 Read a column of a csv file. More...
 

Public Attributes

 energyPrices
 Energy prices for each quarter. More...
 
 windPower
 Wind powers for each quarter. More...
 
 load
 Load consumption for each quarter. More...
 
 upwardImbalancePrices
 Upward imbalance prices for each quarter. More...
 
 downwardImbalancePrices
 Upward imbalance prices for each quarter. More...
 
 systemImbalance
 System imbalance for each quarter. More...
 

Private Member Functions

def _buildImbalancePricesForecast
 Replace the read upward and downward imbalance prices by forecasts based on the previous data. More...
 

Detailed Description

Set of timedata.

Constructor & Destructor Documentation

def __init__ (   self,
  folderPath = None 
)

Constructor.

Parameters
folderPathFolder with the timedata files.
See also
TimeData.readFromFolder

Member Function Documentation

def _buildImbalancePricesForecast (   self)
private

Replace the read upward and downward imbalance prices by forecasts based on the previous data.

def adjustMeanMax (   datalist,
  newMean = 0,
  newMax = 1 
)

Adjust a list of floats to meet a given mean and max value.

Parameters
datalistList of floats.
newMeanNew mean of the resulting list.
newMaxNew max of the resulting list.
Returns
Adjusted maplist of floats.
def getMeanMax (   datalist,
  excludedProportion = 0.025 
)

Get the mean and the maximum value excluding the extreme one.

Parameters
datalistList of data
excludedProportionProportion of data to be excluded.
Returns
Tuple (mean,max) values.
def periodValue (   data,
  t,
  T 
)

Get the value for a period t in {0,...T-1} from a data vector.

If the length of data is greater than T, take the mean values of the data covered by the period t. It the length of data is less or equal than T, take the corresponding value.

Parameters
dataData as a vector of numbers.
tPeriod index
TNumber of periods in the output time horizon.
def readColumn (   self,
  filePath,
  column = 0 
)

Read a column of a csv file.

Parameters
filePathPath to the csv file.
columnColumn index.
Returns
List with the column entries converted to float.
def readFromFolder (   self,
  folderPath 
)

Read timedata from a folder.

Parameters
folderPathFolder with the timedata files. The folder should contains the following files:
  • energyPrices.csv
  • load.csv
  • windPower.csv

Member Data Documentation

downwardImbalancePrices

Upward imbalance prices for each quarter.

energyPrices

Energy prices for each quarter.

load

Load consumption for each quarter.

systemImbalance

System imbalance for each quarter.

upwardImbalancePrices

Upward imbalance prices for each quarter.

windPower

Wind powers for each quarter.


The documentation for this class was generated from the following file: