oemof.solph.Results¶
Modules for providing a convenient data structure for solph results.
- class oemof.solph._results.Results(model: ConcreteModel)[source]¶
Bases:
object- keys()[source]¶
Method returning keys of the result object
- Returns:
set – keys that can be used to access results
- property objective¶
Returns objective of model
- Returns:
float – optimum of model
- property timeindex¶
Returns timeindex of energy system
- Returns:
float – time index of the model
- to_df(variable: str) DataFrame | Series[source]¶
Return a DataFrame view of the model’s variable.
This is the function that attribute and dictionary access to variables as DataFrame`s is based on. Use it if you like to be explicit. For convenience you can also replace `results.to_df(“variable”) with the equivalent results.variable or results[“variable”].