doc: fix line references in tutorial
This commit is contained in:
parent
c857f4ce95
commit
61be125bd8
@ -158,7 +158,7 @@ solving:
|
|||||||
clip_p_max_pu: 0.01
|
clip_p_max_pu: 0.01
|
||||||
#nhours: 10
|
#nhours: 10
|
||||||
solver:
|
solver:
|
||||||
name: glpk
|
name: cbc
|
||||||
# solver:
|
# solver:
|
||||||
# name: gurobi
|
# name: gurobi
|
||||||
# threads: 4
|
# threads: 4
|
||||||
|
@ -38,47 +38,47 @@ The model can be adapted to only include selected countries (e.g. Germany) inste
|
|||||||
|
|
||||||
.. literalinclude:: ../config.tutorial.yaml
|
.. literalinclude:: ../config.tutorial.yaml
|
||||||
:language: yaml
|
:language: yaml
|
||||||
:lines: 13
|
:lines: 14
|
||||||
|
|
||||||
Likewise, the example's temporal scope can be restricted (e.g. to a single month).
|
Likewise, the example's temporal scope can be restricted (e.g. to a single month).
|
||||||
|
|
||||||
.. literalinclude:: ../config.tutorial.yaml
|
.. literalinclude:: ../config.tutorial.yaml
|
||||||
:language: yaml
|
:language: yaml
|
||||||
:lines: 15-18
|
:lines: 16-19
|
||||||
|
|
||||||
It is also possible to allow less or more carbon-dioxide emissions. Here, we limit the emissions of Germany 100 Megatonnes per year.
|
It is also possible to allow less or more carbon-dioxide emissions. Here, we limit the emissions of Germany 100 Megatonnes per year.
|
||||||
|
|
||||||
.. literalinclude:: ../config.tutorial.yaml
|
.. literalinclude:: ../config.tutorial.yaml
|
||||||
:language: yaml
|
:language: yaml
|
||||||
:lines: 26
|
:lines: 28
|
||||||
|
|
||||||
PyPSA-Eur also includes a database of existing conventional powerplants.
|
PyPSA-Eur also includes a database of existing conventional powerplants.
|
||||||
We can select which types of powerplants we like to be included with fixed capacities:
|
We can select which types of powerplants we like to be included with fixed capacities:
|
||||||
|
|
||||||
.. literalinclude:: ../config.tutorial.yaml
|
.. literalinclude:: ../config.tutorial.yaml
|
||||||
:language: yaml
|
:language: yaml
|
||||||
:lines: 36
|
:lines: 40
|
||||||
|
|
||||||
To accurately model the temporal and spatial availability of renewables such as wind and solar energy, we rely on historical weather data.
|
To accurately model the temporal and spatial availability of renewables such as wind and solar energy, we rely on historical weather data.
|
||||||
It is advisable to adapt the required range of coordinates to the selection of countries.
|
It is advisable to adapt the required range of coordinates to the selection of countries.
|
||||||
|
|
||||||
.. literalinclude:: ../config.tutorial.yaml
|
.. literalinclude:: ../config.tutorial.yaml
|
||||||
:language: yaml
|
:language: yaml
|
||||||
:lines: 38-47
|
:lines: 42-50
|
||||||
|
|
||||||
We can also decide which weather data source should be used to calculate potentials and capacity factor time-series for each carrier.
|
We can also decide which weather data source should be used to calculate potentials and capacity factor time-series for each carrier.
|
||||||
For example, we may want to use the ERA-5 dataset for solar and not the default SARAH-2 dataset.
|
For example, we may want to use the ERA-5 dataset for solar and not the default SARAH-2 dataset.
|
||||||
|
|
||||||
.. literalinclude:: ../config.tutorial.yaml
|
.. literalinclude:: ../config.tutorial.yaml
|
||||||
:language: yaml
|
:language: yaml
|
||||||
:lines: 48,91-92
|
:lines: 52,95-96
|
||||||
|
|
||||||
Finally, it is possible to pick a solver. For instance, this tutorial uses the open-source solvers CBC and Ipopt and does not rely
|
Finally, it is possible to pick a solver. For instance, this tutorial uses the open-source solvers CBC and Ipopt and does not rely
|
||||||
on the commercial solvers Gurobi or CPLEX (for which free academic licenses are available).
|
on the commercial solvers Gurobi or CPLEX (for which free academic licenses are available).
|
||||||
|
|
||||||
.. literalinclude:: ../config.tutorial.yaml
|
.. literalinclude:: ../config.tutorial.yaml
|
||||||
:language: yaml
|
:language: yaml
|
||||||
:lines: 156-157
|
:lines: 151,160-161
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
@ -120,7 +120,7 @@ orders ``snakemake`` to run the script ``solve_network`` that produces the solve
|
|||||||
.. warning::
|
.. warning::
|
||||||
On Windows the previous command may currently cause a ``MissingRuleException`` due to problems with output files in subfolders.
|
On Windows the previous command may currently cause a ``MissingRuleException`` due to problems with output files in subfolders.
|
||||||
This is an `open issue < https://github.com/snakemake/snakemake/issues/46>`_ at `snakemake <https://snakemake.readthedocs.io/>`_.
|
This is an `open issue < https://github.com/snakemake/snakemake/issues/46>`_ at `snakemake <https://snakemake.readthedocs.io/>`_.
|
||||||
Windows users should instead run ``snakemake solve_all_elec_networks``.
|
Windows users should add the option ``--keep-target-files`` to the command or instead run ``snakemake solve_all_elec_networks``.
|
||||||
|
|
||||||
This triggers a workflow of multiple preceding jobs that depend on each rule's inputs and outputs:
|
This triggers a workflow of multiple preceding jobs that depend on each rule's inputs and outputs:
|
||||||
|
|
||||||
@ -262,7 +262,7 @@ the wildcards given in ``scenario`` in the configuration file ``config.yaml`` ar
|
|||||||
|
|
||||||
.. literalinclude:: ../config.tutorial.yaml
|
.. literalinclude:: ../config.tutorial.yaml
|
||||||
:language: yaml
|
:language: yaml
|
||||||
:lines: 6-11
|
:lines: 7-12
|
||||||
|
|
||||||
In this example we would not only solve a 6-node model of Germany but also a 2-node model.
|
In this example we would not only solve a 6-node model of Germany but also a 2-node model.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user