-
Notifications
You must be signed in to change notification settings - Fork 2
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
564 differences between costs in optimization tab and costs tab #565
564 differences between costs in optimization tab and costs tab #565
Conversation
…ces-between-costs-in-optimization-tab-and-costs-tab
Fixes #553
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wingechr now it looks much better. If you could adress the electricity cost / FLOW cost issue, the remaining differences are small enough that I can live with them.
Could you do this, and make the test pass? e.g. by relaxing the tolerance for the differences test
flh_opt_function = res_optimize["DERIV"]["FLH"] * 8760 | ||
assert flh_opt_tab == pytest.approx(flh_opt_function) | ||
|
||
# assert that differences between costs and opt tab are zero: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wingechr electricity specific costs are >0! They must be zero, and el. consumption must not create FLOW costs
# storage efficiency must not affect main chain scaling factors: | ||
if process_code not in ["EL-STR", "H2-STR"]: | ||
main_input_value = main_output_value | ||
main_output_value = main_input_value * eff |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wingechr this was the reason for higher RES capacities in the api.
# and this should have zero specific cost | ||
assert res_costs_agg.at["Derivative production", "FLOW"] == 0 | ||
assert input_data.loc["SPECCOST,,EL,,", "value"] == 0 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@markushal SPECCOST in input data can be > 0, for post transport processes
No description provided.