deflex.fetch_dual_results

deflex.fetch_dual_results(results, bus=None, exclude_commodities=True)[source]

Collect all the results of the dual variables.

A bus can be passed to get only the dual variables of this specific bus, otherwise the results of the dual variables of all buses are collected. The variables of the commodity buses can be excluded using the exclude_commodities parameter.

Parameters:
  • results (dict) – A valid deflex results dictionary.
  • bus (oemof.network.Bus) – An existing Bus of the deflex model results.
  • exclude_commodities (bool) – Exclude the results of the commodity buses.
Returns:

Return type:

pandas.Series