Dataset Format

The results are returned as a dictionary, which can be converted to an array with the results_to_array function. This resulting array has the same format as the exported datasets from results_to_csv.

The array formatted datasets have column headers indicating variables and each row contains the data for one sample. Columns are organized with variables in the order of input variables, output variables, then dual variables. The order of variables within each section is determined by the order of the variables given through the result variable array arguments. For each variable there is a column corresponding to each element in the network. The header for a column indicating the active power demand at the first load bus would be "load1:pd". An example results 'csv' file header can be seen below for the pjm case5 network,

load1:pdload2:pdload3:pdload1:qdload2:qdload3:qdgen1:p_gengen2:p_gen...
4.5934256.0233293.3972892.5222021.0989170.5228650.41.7...
4.5167424.3252415.0344861.0252721.4999843.3820870.41.7...
3.9367775.6267921.3307432.1837050.3857591.0273810.41.363544...
...........................