Merge pull request #728 from PyPSA/fix-min-capacity-myopic
Fix min capacity myopic
This commit is contained in:
commit
635877b53c
@ -14,6 +14,8 @@ Upcoming Release
|
|||||||
|
|
||||||
* For industry distribution, use EPRTR as fallback if ETS data is not available.
|
* For industry distribution, use EPRTR as fallback if ETS data is not available.
|
||||||
|
|
||||||
|
* The minimum capacity for renewable generators when using the myopic option has been fixed.
|
||||||
|
|
||||||
PyPSA-Eur 0.8.1 (27th July 2023)
|
PyPSA-Eur 0.8.1 (27th July 2023)
|
||||||
================================
|
================================
|
||||||
|
|
||||||
|
@ -51,6 +51,9 @@ def _add_land_use_constraint(n):
|
|||||||
# warning: this will miss existing offwind which is not classed AC-DC and has carrier 'offwind'
|
# warning: this will miss existing offwind which is not classed AC-DC and has carrier 'offwind'
|
||||||
|
|
||||||
for carrier in ["solar", "onwind", "offwind-ac", "offwind-dc"]:
|
for carrier in ["solar", "onwind", "offwind-ac", "offwind-dc"]:
|
||||||
|
extendable_i = (n.generators.carrier == carrier) & n.generators.p_nom_extendable
|
||||||
|
n.generators.loc[extendable_i, "p_nom_min"] = 0
|
||||||
|
|
||||||
ext_i = (n.generators.carrier == carrier) & ~n.generators.p_nom_extendable
|
ext_i = (n.generators.carrier == carrier) & ~n.generators.p_nom_extendable
|
||||||
existing = (
|
existing = (
|
||||||
n.generators.loc[ext_i, "p_nom"]
|
n.generators.loc[ext_i, "p_nom"]
|
||||||
|
Loading…
Reference in New Issue
Block a user