-
Notifications
You must be signed in to change notification settings - Fork 153
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
WIP: sketch of 2 variants to add commodity flow of capacity variables #387
Conversation
For variant 2, for the case of retirement, the output value in the year (vintage + lifetime) will specify the material that is released upon retirement. I was wondering with the current formulation, isn't it the case that if the capacity is retired earlier than its lifetime, the material is still going to be released at the end of its lifetime even though it is retired earlier? |
@GamzeUnlu95 good point. The implications of premature retirement for continuous commodity flow could be addressed in variant 2 by switching from the CAP_NEW to the CAP variable (equivalent to fix_cost), but to ensure that end-of-life release of commodities is treated correctly, we either have treat commodity flow beyond the lifetime in a special way or switch to variant 1. |
…d of lifetime - limited variant 2 to inv_tec technologies - capacity-related commodity flows during lifetime are treated like fix_cost (via CAP variable) - capacity-related commodity flows prior to or after end of technical lifetime are triggered regardless of premature retirement (via CAP_NEW variable) - ATTENTION: commodity flows will only be triggered once the technical lifetime is reached, independent of the actual lifetime due to premature retirement
@GamzeUnlu95 please have a look at the revised formulation of variant 2. This now consistently deals with commodity flows during lifetime, but the issue of commodity flows after end-of-life remains unsolved. The question is whether this is an acceptable error. |
…e retirement - restricted variant 1 equations to technologies with capacity
One issue that still needs attention are commodity flows upon capacity retirement if the vintage period (when the capacity was built) has a different length than the retirement period (period after last available of capacity). Since the CAP variables are normalized to annual construction, in such a case, the flow triggered upon retirement can be larger or smaller than intended. For the global model this is relevant in the transition from 5- to 10-year steps after 2060. A rescaling will need to be introduced. |
- scaling factor adjusts for difference in length of construction and retirement periods of capacities in related commodity flows - added missing closing parenthesis to sums in commodity flow
In today's MESSAGE meeting, regarding the new items (sets, variables, equations, and parameters) please look at #190, in particular the additions to message_ix/message_ix/models.py Lines 20 to 44 in 3203190
New additions due to this PR should be handled in the same way. |
…d of lifetime - limited variant 2 to inv_tec technologies - capacity-related commodity flows during lifetime are treated like fix_cost (via CAP variable) - capacity-related commodity flows prior to or after end of technical lifetime are triggered regardless of premature retirement (via CAP_NEW variable) - ATTENTION: commodity flows will only be triggered once the technical lifetime is reached, independent of the actual lifetime due to premature retirement
…e retirement - restricted variant 1 equations to technologies with capacity
- scaling factor adjusts for difference in length of construction and retirement periods of capacities in related commodity flows - added missing closing parenthesis to sums in commodity flow
…d of lifetime - limited variant 2 to inv_tec technologies - capacity-related commodity flows during lifetime are treated like fix_cost (via CAP variable) - capacity-related commodity flows prior to or after end of technical lifetime are triggered regardless of premature retirement (via CAP_NEW variable) - ATTENTION: commodity flows will only be triggered once the technical lifetime is reached, independent of the actual lifetime due to premature retirement
…e retirement - restricted variant 1 equations to technologies with capacity
- scaling factor adjusts for difference in length of construction and retirement periods of capacities in related commodity flows - added missing closing parenthesis to sums in commodity flow
- scaling factor adjusts for difference in length of construction and retirement periods of capacities in related commodity flows - added missing closing parenthesis to sums in commodity flow
…ge_ix into material_stock
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.
I've tested the functionality of this branch with the main MESSAGEix-Materials model, and it is working as it is expected without generating additional issues.
This one is now superseded by #451. |
The PR sketches two alternative variants that allow connecting a commodity flow to capacity addition and retirement.
Comments on the two variants of adding commodity flow of capacity variables are appreciated.