2024-02-19 15:21:48 +00:00
|
|
|
# SPDX-FileCopyrightText: : 2023-2024 The PyPSA-Eur Authors
|
2023-03-08 16:29:01 +00:00
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
|
2024-01-04 08:01:00 +00:00
|
|
|
|
2023-03-08 16:29:01 +00:00
|
|
|
rule solve_sector_network:
|
2023-05-15 08:33:17 +00:00
|
|
|
params:
|
|
|
|
solving=config["solving"],
|
2023-06-02 10:52:49 +00:00
|
|
|
foresight=config["foresight"],
|
|
|
|
planning_horizons=config["scenario"]["planning_horizons"],
|
2023-06-02 10:53:09 +00:00
|
|
|
co2_sequestration_potential=config["sector"].get(
|
|
|
|
"co2_sequestration_potential", 200
|
|
|
|
),
|
2024-01-04 08:00:31 +00:00
|
|
|
custom_extra_functionality=input_custom_extra_functionality,
|
2023-03-08 16:29:01 +00:00
|
|
|
input:
|
|
|
|
network=RESULTS
|
|
|
|
+ "prenetworks/elec_s{simpl}_{clusters}_l{ll}_{opts}_{sector_opts}_{planning_horizons}.nc",
|
2023-08-02 12:31:08 +00:00
|
|
|
config=RESULTS + "config.yaml",
|
2023-03-08 16:29:01 +00:00
|
|
|
output:
|
|
|
|
RESULTS
|
|
|
|
+ "postnetworks/elec_s{simpl}_{clusters}_l{ll}_{opts}_{sector_opts}_{planning_horizons}.nc",
|
|
|
|
shadow:
|
|
|
|
"shallow"
|
|
|
|
log:
|
2024-01-19 15:58:05 +00:00
|
|
|
solver=RESULTS
|
|
|
|
+ "logs/elec_s{simpl}_{clusters}_l{ll}_{opts}_{sector_opts}_{planning_horizons}_solver.log",
|
|
|
|
memory=RESULTS
|
|
|
|
+ "logs/elec_s{simpl}_{clusters}_l{ll}_{opts}_{sector_opts}_{planning_horizons}_memory.log",
|
|
|
|
python=RESULTS
|
|
|
|
+ "logs/elec_s{simpl}_{clusters}_l{ll}_{opts}_{sector_opts}_{planning_horizons}_python.log",
|
2024-01-22 08:28:51 +00:00
|
|
|
threads: solver_threads
|
2023-03-08 16:29:01 +00:00
|
|
|
resources:
|
|
|
|
mem_mb=config["solving"]["mem"],
|
2023-08-04 10:58:31 +00:00
|
|
|
walltime=config["solving"].get("walltime", "12:00:00"),
|
2023-03-08 16:29:01 +00:00
|
|
|
benchmark:
|
|
|
|
(
|
|
|
|
RESULTS
|
2023-03-08 18:22:29 +00:00
|
|
|
+ BENCHMARKS
|
|
|
|
+ "solve_sector_network/elec_s{simpl}_{clusters}_l{ll}_{opts}_{sector_opts}_{planning_horizons}"
|
2023-03-08 16:29:01 +00:00
|
|
|
)
|
2023-03-08 16:46:14 +00:00
|
|
|
conda:
|
|
|
|
"../envs/environment.yaml"
|
2023-03-08 16:29:01 +00:00
|
|
|
script:
|
2023-03-09 21:51:56 +00:00
|
|
|
"../scripts/solve_network.py"
|