Open jnnr opened 2 years ago
The postprocessed data does not tell to which bus it is connected.
As far as I can see, postprocessed data holds values from_bus
and to_bus
in scalar_params
:
Where do you need this information in further steps?
Thanks for your suggestion! The information is necessary when plotting existing capacities with invested capacities. In its current form, the data is inconsistent, e.g.
from, to, var_name, value
B-biomass-gt, None, capacity, 1
B-biomass-gt, B-electricity, invest, 1
which is finally mapped to
name, var_name, var_value
B-biomass-gt, capacity, 1
B-biomass-gt, invest_to_electricity, 1
This would only work if capacity is forwarded to flow component within facade component. I see three ways:
(node, None)
entry, orRevisited this issue in preparation for 1st release and decided to postpone it. Application-wise, this is important when optimizing brown-field. More generally, it would be good to find a solution, because the problem may arise with other variables as well.
Capacity is set to a flow in a component, internally. The postprocessed data does not tell to which bus it is connected.
Suggestion: Do not collect
capacity
. but rather nominal value of the flow.https://github.com/rl-institut/oemoflex/blob/cc1a1b903e967f7f614e0f52c7e46b6d4763ba1a/oemoflex/model/postprocessing.py#L610-L614