-
Notifications
You must be signed in to change notification settings - Fork 250
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
config["electricity"]["estimate_renewable_capacities"]["enable"] == True
incompatible with myopic foresight
#1016
Comments
In #1080, I went for option 3. I view this as a temporary fix, as we should uniformize the way existing capacities are added. It's messy because the merging of PyPSA-Eur and PyPSA-Eur-Sec is not 100% complete on that matter. One caveat remains if resources (including outputs of |
avoid duplicate existing RES capacities (closes #1016)
Great, thanks for the fix. I'm sure you're aware of this now, but it seems to me that it's not 100% trivial to "merge" how renewables are added in electricity-only and sector-coupled models because of myopic foresight! Adding different generators for renewables with different build-years leads to a large increase in solving time and memory, so you wouldn't want to do that for single horizon optimisations. This really implies things should be handled differently between overnight and myopic foresight but not necessarily electricity-only and sector-coupled networks; those things should be orthogonal. It's just that myopic foresight is only implemented for sector-coupled networks, and in fact the only way to run an overnight brownfield optimisation is to use myopic foresight anyway but with a single planning horizon (as far as I understand). I guess ideally one would want to untangle foresight from sector-coupling. |
I am glad this issue got cleared up and fixed! It was throwing off the reporting of installed renewable capacities for pypsa-ariadne |
Yes, I fully agree. I think the first problem is that the powerplants are added at drastically different stages in the workflow which makes it hard to keep an overview. Maybe one could make the grouping of the year contingent on whether the foresight is myopic or not. Well, we'll figure it out at some point. |
Checklist
master
branch or the latest release. Please indicate.pypsa-eur
environment. Update viaconda env update -f envs/environment.yaml
.Describe the Bug
I'm sure this is known amongst serious users of myopic foresight optimisation, but as it stands, the option to estimate existing renewable capacities in
add_electricity.py
is incompatible with myopic foresight. In particular, existing capacities are added twice; once inadd_electricity.py
and a second time inadd_existing_baseyear.py
.The fix of course is just to turn off estimating existing renewable capacities in the
electricity
config section. But that option is turned on by default, presenting a certain pitfall for new users.There are a couple of potential ways of dealing with this:
add_electricity.py
if foresight is myopic.add_existing_baseyear.py
(or even inprepare_sector_network.py
) before adding them back in (with correct build year etc.) inadd_existing_baseyear.py
.Let me know which option seems the most appealing, and I'd be happy to submit a PR.
The text was updated successfully, but these errors were encountered: