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

technical_lifetime not defined for historical vintages in Westeros tutorial #609

Closed
volker-krey opened this issue May 23, 2022 · 0 comments · Fixed by #815 · May be fixed by #625
Closed

technical_lifetime not defined for historical vintages in Westeros tutorial #609

volker-krey opened this issue May 23, 2022 · 0 comments · Fixed by #815 · May be fixed by #625
Assignees
Labels
bug Doesn't work as advertised/unintended effects discuss Discussion, design, and planning

Comments

@volker-krey
Copy link
Contributor

Problem description

The technical_lifetime lifetime parameter for historical vintages of the power plant (and bulb) technologies is not defined. Usually, this issue does not cause a problem with running the Westeros tutorial, because the message_ix takes the technical_lifetime of the first_period when constructing the set map_tec_lifetime:

< sum(first_period, technical_lifetime(node,tec,first_period) ) ) = yes ;

However, for #451 the absence of the technical_lifetime of historical vintages causes problems and would thus be beneficial to correct (probably as part of this PR). This problem arises as a result of the year_vtg set in of technical_lifetime being defined over model_horizon:

" year_vtg=model_horizon,\n",

Suggested solution

My understanding is that an easy fix is to define technical_lifetime over the set vintage_years as used for the parameters input and output:

" year_vtg=vintage_years,\n",

It would be beneficial to discuss the approach as this may have other implications.

@volker-krey volker-krey added bug Doesn't work as advertised/unintended effects discuss Discussion, design, and planning labels May 23, 2022
@khaeru khaeru changed the title technical_lifetime parameter not defined for historical vintages in Westeros tutorial technical_lifetime not defined for historical vintages in Westeros tutorial May 30, 2022
@OFR-IIASA OFR-IIASA linked a pull request Jun 8, 2022 that will close this issue
4 tasks
@OFR-IIASA OFR-IIASA added this to the 3.6 milestone Jun 8, 2022
@khaeru khaeru removed this from the 3.6 milestone Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Doesn't work as advertised/unintended effects discuss Discussion, design, and planning
Projects
None yet
4 participants