-
Notifications
You must be signed in to change notification settings - Fork 21
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
H2 Storage incorrect set names #57
Comments
@dharik13 could be add to the PR that you already have open. Requires 2 line changes. Otherwise, I can pull a PR and merge it when you merge yours. |
@shakesy94 thanks for catching these errors. One note, the constraint H2SoCBalStart in h2_storage_all.jl should index over all resources belonging to H2_STOR_SHORT_DURATION (and not H2_STOR_LONG_DURATION as you suggested). The if conditions checks whether the representative weeks are being modeled and if the H2_STOR_LONG_DURATION is non-empty. If yes, then we apply the constraints only to those technologies part of H2_STOR_SHORT_DURATION, else we apply them to set H2_STOR_ALL. I made the edit to H2-storage-module-edits and will push it to the PR |
Ohh okay, in this case, should we also check if H2_STOR_SHORT_DURATION is not empty in the if statement? If operation wrapping is on and long duration storage is not empty and short duration storage is empty, the statement will execute and return an error. |
@shakesy94 Good point on checking for H2_STOR_SHORT_DURATION. Resolved in this pull request 55: #55 |
Resolved in TDR 55: #55 |
https://github.com/MacroEnergyProject/DOLPHYN-dev/blob/1a8c3bf3dfd92c82aca1a37546f9e66d2726dbd8/src/HSC/model/storage/h2_storage_all.jl#L142
this constraints indexes over H2_STOR_SHORT_DURATION, this should be H2_STOR_LONG_DURATION instead. Moreover, the H2_STOR_LONG_DURATION is not defined. Instead the following line at the beginning of the function should be added
H2_STOR_LONG_DURATION = inputs["H2_STOR_LONG_DURATION"]
Additionally, incorrect set names in https://github.com/MacroEnergyProject/DOLPHYN-dev/blob/1a8c3bf3dfd92c82aca1a37546f9e66d2726dbd8/src/HSC/model/storage/h2_long_duration_storage.jl#L98 and https://github.com/MacroEnergyProject/DOLPHYN-dev/blob/1a8c3bf3dfd92c82aca1a37546f9e66d2726dbd8/src/HSC/model/storage/h2_long_duration_storage.jl#L102
Should be
H2_STOR_LONG_DURATION
instead ofSTOR_LONG_DURATION
The text was updated successfully, but these errors were encountered: