DSIMA
 All Classes Namespaces Files Functions Variables
globalResults Namespace Reference

Functions

def addResults
 Add the results given by the xml file. More...
 
def outputXML
 Create an xml file with the global results. More...
 
def getGlobalResults
 Get the global results for the simulated days. More...
 

Variables

dictionary attributes
 List of attributes to display in the global results. More...
 
dictionary dayData
 List of data to get for each day. More...
 
tuple tic = time.time()
 

Detailed Description

Scripts that create an xml file with the global results

Function Documentation

def globalResults.addResults (   results,
  dayResults,
  actorCosts,
  xmlFile,
  day 
)

Add the results given by the xml file.

Parameters
resultsDictionnary with the results of the previous days.
dayResultsDictionnary with the individual results of the previous days.
actorCostsCosts for each actors.
xmlFileFile like object containing the results.
dayDay index
def globalResults.getGlobalResults (   hash,
  path = "instances" 
)

Get the global results for the simulated days.

Parameters
hashHash of the instance.
pathPath to the instance simulation results.
def globalResults.outputXML (   path,
  results,
  dayResults,
  actorCosts 
)

Create an xml file with the global results.

Parameters
pathTarget path.
resultsResults dictionary.
dayResultsDictionnary with the individual results of the previous days.
actorCostsCosts for each actors.

Variable Documentation

dictionary attributes
Initial value:
1 = {"Welfare":{"unit":"€"},
2  "Shedding costs":{"unit":"€"},
3  "DSOs costs":{"unit":"€"},
4  "TSOs surplus":{"unit":"€"},
5  "Producers surplus":{"unit":"€"},
6  "Retailers surplus":{"unit":"€"},
7  "Total energy shed":{"unit":"MWh"},
8  "Max. imbalance":{"unit":"MW"},
9  "Total production":{"unit":"MWh"},
10  "Total consumption":{"unit":"MWh"},
11  "Total imbalance":{"unit":"MWh"},
12  "Total usage of flex.":{"unit":"MWh"},
13  "Total opp. usage of flex.":{"unit":"MWh"}
14  }

List of attributes to display in the global results.

dictionary dayData
Initial value:
1 = {"Welfare":{"unit":"€"},
2  "Time":{"unit":"s"},
3  "Iterations":{"unit":''},
4  "DSOs costs":{"unit":"€"},
5  "Shedding costs":{"unit":"€"},
6  "TSOs surplus":{"unit":"€"},
7  "Producers surplus":{"unit":"€"},
8  "Retailers surplus":{"unit":"€"},
9  "Total energy shed":{"unit":"MWh"},
10  "Total production":{"unit":"MWh"},
11  "Total consumption":{"unit":"MWh"},
12  "Max. imbalance":{"unit":"MW"},
13  "Total imbalance":{"unit":"MWh"},
14  "Total usage of flex.":{"unit":"MWh"}
15  }

List of data to get for each day.

tuple tic = time.time()