uncertain costs: facilitate parameter sweep (#167)
* add opts for cost parameter sweep * add pr link to release note
This commit is contained in:
parent
412ff80551
commit
165dd2d440
@ -5,3 +5,4 @@ Trigger, Description, Definition, Status
|
|||||||
``CCL``, Add minimum and maximum levels of generator nominal capacity per carrier for individual countries. These can be specified in the file linked at ``electricity: agg_p_nom_limits`` in the configuration. File defaults to ``data/agg_p_nom_minmax.csv``., ``solve_network``, In active use
|
``CCL``, Add minimum and maximum levels of generator nominal capacity per carrier for individual countries. These can be specified in the file linked at ``electricity: agg_p_nom_limits`` in the configuration. File defaults to ``data/agg_p_nom_minmax.csv``., ``solve_network``, In active use
|
||||||
``BAU``, Add a per-``carrier`` minimal overall capacity; i.e. at least ``40GW`` of ``OCGT`` in Europe; configured in ``electricity: BAU_mincapacities``, ``solve_network``: `add_opts_constraints() <https://github.com/PyPSA/pypsa-eur/blob/6b964540ed39d44079cdabddee8333f486d0cd63/scripts/solve_network.py#L66>`_, Untested
|
``BAU``, Add a per-``carrier`` minimal overall capacity; i.e. at least ``40GW`` of ``OCGT`` in Europe; configured in ``electricity: BAU_mincapacities``, ``solve_network``: `add_opts_constraints() <https://github.com/PyPSA/pypsa-eur/blob/6b964540ed39d44079cdabddee8333f486d0cd63/scripts/solve_network.py#L66>`_, Untested
|
||||||
``SAFE``, Add a capacity reserve margin of a certain fraction above the peak demand to which renewable generators and storage do *not* contribute. Ignores network., ``solve_network`` `add_opts_constraints() <https://github.com/PyPSA/pypsa-eur/blob/6b964540ed39d44079cdabddee8333f486d0cd63/scripts/solve_network.py#L73>`_, Untested
|
``SAFE``, Add a capacity reserve margin of a certain fraction above the peak demand to which renewable generators and storage do *not* contribute. Ignores network., ``solve_network`` `add_opts_constraints() <https://github.com/PyPSA/pypsa-eur/blob/6b964540ed39d44079cdabddee8333f486d0cd63/scripts/solve_network.py#L73>`_, Untested
|
||||||
|
``carrier+factor``, "Alter the capital cost of a carrier by a factor. Example: ``solar+0.5`` reduces the capital cost of solar to 50\% of original values.", ``prepare_network``, In active use
|
|
@ -11,7 +11,7 @@ Release Notes
|
|||||||
Upcoming Release
|
Upcoming Release
|
||||||
================
|
================
|
||||||
|
|
||||||
* ...
|
* Added an option to alter the capital cost of carriers by a factor via ``carrier+factor`` in the ``{opts}`` wildcard. This can be useful for exploring uncertain cost parameters. Example: ``solar+0.5`` reduces the capital cost of solar to 50% of original values (`#167 <https://github.com/PyPSA/pypsa-eur/pull/167>`_).
|
||||||
|
|
||||||
|
|
||||||
PyPSA-Eur 0.2.0 (8th June 2020)
|
PyPSA-Eur 0.2.0 (8th June 2020)
|
||||||
|
@ -215,6 +215,19 @@ if __name__ == "__main__":
|
|||||||
else:
|
else:
|
||||||
add_co2limit(n, Nyears)
|
add_co2limit(n, Nyears)
|
||||||
|
|
||||||
|
for o in opts:
|
||||||
|
oo = o.split("+")
|
||||||
|
if oo[0].startswith(tuple(n.carriers.index)):
|
||||||
|
carrier = oo[0]
|
||||||
|
cost_factor = float(oo[1])
|
||||||
|
if carrier == "AC": # lines do not have carrier
|
||||||
|
n.lines.capital_cost *= cost_factor
|
||||||
|
else:
|
||||||
|
comps = {"Generator", "Link", "StorageUnit"}
|
||||||
|
for c in n.iterate_components(comps):
|
||||||
|
sel = c.df.carrier.str.contains(carrier)
|
||||||
|
c.df.loc[sel,"capital_cost"] *= cost_factor
|
||||||
|
|
||||||
if 'Ep' in opts:
|
if 'Ep' in opts:
|
||||||
add_emission_prices(n)
|
add_emission_prices(n)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user