DSIMA
 All Classes Namespaces Files Functions Variables
implementation.simulator.src.xmlsolution Namespace Reference

Functions

def maxValueAndIndex
 Get the maximum value of an index. More...
 
def floats2str
 Convert a list of floats to a string where the floats are separated by a comma. More...
 
def translate
 Translate an internal symbol to a user comprehensive text. More...
 
def export
 Export the solution to a XML file. More...
 

Variables

dictionary TRANSLATE_DICT
 Translate dictionary. More...
 

Function Documentation

def implementation.simulator.src.xmlsolution.export (   xmlPath,
  data,
  externs = [] 
)

Export the solution to a XML file.

Parameters
xmlPathPath to the XML file.
dataData.
externsList of externs to the image which needs to output data. The externs should implement a method "xmlData" which takes the data structure as argument and returns a string with the data.
def implementation.simulator.src.xmlsolution.floats2str (   floatList)

Convert a list of floats to a string where the floats are separated by a comma.

Parameters
floatListList of floats.
def implementation.simulator.src.xmlsolution.maxValueAndIndex (   vect)

Get the maximum value of an index.

Parameters
vectVector of elements.
Returns
value,index+1.
def implementation.simulator.src.xmlsolution.translate (   symbol)

Translate an internal symbol to a user comprehensive text.

Parameters
symbolSymbol to translate.
Returns
The translation. If no correspondance is found, returns the symbol itself.

Variable Documentation

dictionary TRANSLATE_DICT
Initial value:
1 = {'I':'Imbalance','O':'Opposite usage of flexibility','TU':'Total usage of flexibility',
2  'R+':'Requirement of upward flexibility','R-':'Requirement of downward flexibility',
3  'S+':'Submitted upward flexibility','S-':'Submitted downward flexibility',
4  'A+':'Upward flexibility contracted','A-':'Downward flexibility contracted',
5  'U+':'Activated upward flexibility','U-':'Activated downward flexibility',
6  'pi^E':'Energy price','pi^I+':'Upward imbalance price','pi^I-':'Downward imbalance price',
7  'C':'Line capacity','dC':'Max. capacity upgrade',
8  'g':'Downward access request bound','G':'Upward access request bound',
9  'b':'Safe downward access bound','B':'Safe upward access bound',
10  'k':'Downward flexible access bound','K':'Upward flexible access bound',
11  'l':'Downward full access bound','L':'Upward full access bound',
12  'p^b':'Local baseline','p^r':'Local corrected baseline','p':'Local realization','p^p':'Baseline proposal',
13  'P^b':'Global baseline','P^r':'Global corrected baseline','P':'Global realization',
14  'H':'Flexibility request','U':'Flexibility activation',
15  'h':'Local flexibility request','u':'Local flexibility activation',
16  'f^b':'Announced flow','f^r':'Corrected flow','f':'Flow realization',
17  'dpL^max':'Maximum upward dynamic flexibility', 'dpU^max':'Maximum downward dynamic flexibility',
18  'dpL':'Upward dynamic flexibility', 'dpU':'Downward dynamic flexibility',
19  'd':'Downward periodic access bound', 'D':'Upward periodic access bound'
20 }

Translate dictionary.