Skip to content
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

Merged

Conversation

markushal
Copy link
Collaborator

No description provided.

@markushal markushal self-assigned this Sep 16, 2024
@markushal markushal linked an issue Sep 16, 2024 that may be closed by this pull request
@markushal
Copy link
Collaborator Author

this is an overview of cost differences from the test:

grafik

Copy link
Collaborator Author

@markushal markushal left a 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:
Copy link
Collaborator Author

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

Comment on lines +55 to +58
# 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
Copy link
Collaborator Author

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.

@markushal markushal assigned wingechr and unassigned markushal Sep 16, 2024
# and this should have zero specific cost
assert res_costs_agg.at["Derivative production", "FLOW"] == 0
assert input_data.loc["SPECCOST,,EL,,", "value"] == 0

Copy link
Collaborator

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

@wingechr wingechr merged commit 8f9eb2b into develop Sep 17, 2024
3 checks passed
@wingechr wingechr deleted the 564-differences-between-costs-in-optimization-tab-and-costs-tab branch September 17, 2024 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Differences between costs in optimization tab and costs tab
2 participants