-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Difference between objective_weighting and timeincrement #987
Comments
To my understanding, Maybe, we need something ( |
Hi, excellent that you brought this up, @henhuy. In my view, this is bit of a weak spot.
Now concerning the weighting of an objective value:
I checked the code basis: |
Thanks for your feedback!
If you agree to above suggestions, I could start an issue to propose above mentioned changes. |
I recently found out, that a model can be set up using
objective_weighting
parameter, which is used inSimpleFlowBlock
,NonConvexFlowBlock
andSinkDSM
component.First I thought, that this is very nice and could help me with integrating TSAM in oemof (see #980).
But then I saw, that
objective_weighting
is basically used liketimeincrement
in other components - if not set, it is set up per default as same array astimeincrement
.As far as I can read out from code,
objective_weighting
is used to calculate variable costs, whiletimeincrement
is used for calculating energy flows, but both are used somehow identically.For example compare variable cost implementation in
SimpleFlowBlock
:oemof-solph/src/oemof/solph/flows/_simple_flow_block.py
Lines 456 to 463 in f02297e
with full_load_hours implementation in
SimpleFlowBlock
:oemof-solph/src/oemof/solph/flows/_simple_flow_block.py
Lines 216 to 225 in f02297e
For TSAM integration in oemof, I need to integrate weighting of clusters (i.e. how often does a "typical day" occurs in original timeseries) but still need unrelated time-increments, as hours of a day might be segmented into three-hour steps.
Thus, energy flows must be calculated using `timeincrement and variable costs and full load hours have to be calculated using occurrence mapping.
My question is somehow, if
oemof.solph
implements those two parameters in a coherent way? For example, I would have thought, that full load hours useobjective_weighting
instead oftimeincrement
.The text was updated successfully, but these errors were encountered: