-
Notifications
You must be signed in to change notification settings - Fork 157
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
Techs incorrectly excluded from capacity_factor
via map_tec_time
#592
Comments
Since this |
Looking at this code: https://github.com/iiasa/ixmp_source/blob/85ce0616fdca8885f1a2716f7869b486d4b94191/src/main/java/at/ac/iiasa/ixmp/objects/MsgScenario.java#L1466-L1542 it appears indeed the condition is that the key (set of labels for the dimensions of Do I understand correctly that the
|
capacity_factor
via map_tec_time
A thought on implementation: since the change here is to expand (i.e. to change the set elements from the union of {A, B, C} to the union of {A, B, C, D}), we can implement the full logic in Python using the mechanism introduced in #561/#514. This runs before the Java code linked above. So the Java code linked above becomes redundant; it will simply re-add elements to these mapping sets that have already been added. This would partly address #254. This approach will not work in other cases where the desired behaviour is not a superset of the behaviour implemented in Java. E.g. here if we wanted to go from union {A, B, C} to union {A, C}, this would not be a viable approach. |
Thanks @khaeru for the thoughts. I checked this through the equations again. As I understand, |
It seems in the GAMS formulation some technologies are omitted from
capacity_factor
, even though defined by the user. These technologies do not haveinput
,output
commodity defined and do not appear inrelation_activity
; that's why they are not in the setmap_tec_time
, and hence, mapped out fromcapacity_factor
in this equation. I believe this is not correct, as some technologies can play a role with their capacity, e.g., in parameterrelation_total_capacity
, and should not be excluded from capacity equations if they don't have input/output commodity, or because not appearing inrelation_activity
.The text was updated successfully, but these errors were encountered: