Formatting of the oemof-solph results #10
Replies: 2 comments 5 replies
-
Essentially all information we need could be formatted in a tidy way, with a multi index
here the levels of the multi-index are
But this list can be expanded or reduced based on discussions. The reason for laying the timeseries in this fashion (as opposed to a transposed version) is because then each column of the dataframe is of the same With this data structure we could imaging adding columns such as "existing capacity", "annuity", "efficiency", "variable_costs" and have all the information necessary to perform all of the common costs calculation. As the number of "extra" columns ("investments", existing capacity", "annuity") is small it is not a burden to keep a list of those column names to easily get only the flows out of this dataframe by excluding the columns named after this list. |
Beta Was this translation helpful? Give feedback.
-
Defining the desired parameters for the resultsBelow I have listed all of the results that I think should be available to the user. Once they have been properly implemented in the new results structure (using the tidy dataframe as origin), they should be ticked off. I have tried to order the results depending on how they are found and whether they can be accessed directly or need to be calculated. List of results from model directly:
Lists of desired parameters to be calculated from model results:
List of desired parameters from inputs directly to be saved in results:
List of desired parameters to be calculated from inputs and model results:
List of desired parameters specific for multi-nodal energy systems:
|
Beta Was this translation helpful? Give feedback.
-
Context
Let's consider an oemof-solph model. The specific components within the model, nor the solver do matter at this stage as we would like to inquiry about the result processing in general.
A typical workflow to build and solve an oemof model would be the following:
Currently
results
is adict
withWe are looking at the flow results (i.e 1.), in this case the values within the results dict are are dictionaries and have two items with
scalars
andsequences
as keys.scalar
contains typically aninvest
if the component was subject to an Investment (optimization). It is not easy form the oemof-solph docs to know what other values could be expected here. It seems that it contains an emptypandas.Series
if not subject to an Investment.Problem
Oftentimes what is wished to perfom techno-economic analysis of energy systems requires to perform calculations using the flows, the invested capacities as well as some parameters which were used as inputs (such as existing capacities, annuity costs, variable_costs, etc. ). There is currently no function that fetches the most commonly used costs parameters.
Solutions
The aim of this github discussion is to look at possible solutions for OPTIMG project but also to see if some solution could be already be partly implemented at the oemof-solph level as many oemof users are performing those calculations. This could help address the current "lack of love" given to result processing as expressed by one of the oemof-solph core devs.
Beta Was this translation helpful? Give feedback.
All reactions