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
|
|
|
|
|
2023-03-08 16:46:14 +00:00
|
|
|
|
2023-03-08 16:29:01 +00:00
|
|
|
rule solve_sector_network:
|
2023-05-15 08:33:17 +00:00
|
|
|
params:
|
2023-09-22 11:58:08 +00:00
|
|
|
solving=config_provider("solving"),
|
|
|
|
foresight=config_provider("foresight"),
|
|
|
|
planning_horizons=config_provider("scenario", "planning_horizons"),
|
|
|
|
co2_sequestration_potential=config_provider(
|
|
|
|
"sector", "co2_sequestration_potential", default=200
|
2023-06-02 10:52:49 +00:00
|
|
|
),
|
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
|
2024-09-13 13:37:01 +00:00
|
|
|
+ "prenetworks/base_s_{clusters}_l{ll}_{opts}_{sector_opts}_{planning_horizons}.nc",
|
2023-03-08 16:29:01 +00:00
|
|
|
output:
|
2024-03-13 07:57:57 +00:00
|
|
|
network=RESULTS
|
2024-09-13 13:37:01 +00:00
|
|
|
+ "postnetworks/base_s_{clusters}_l{ll}_{opts}_{sector_opts}_{planning_horizons}.nc",
|
2024-03-13 07:57:57 +00:00
|
|
|
config=RESULTS
|
2024-09-13 13:37:01 +00:00
|
|
|
+ "configs/config.base_s_{clusters}_l{ll}_{opts}_{sector_opts}_{planning_horizons}.yaml",
|
2023-03-08 16:29:01 +00:00
|
|
|
shadow:
|
|
|
|
"shallow"
|
|
|
|
log:
|
2024-01-19 15:58:05 +00:00
|
|
|
solver=RESULTS
|
2024-09-13 13:37:01 +00:00
|
|
|
+ "logs/base_s_{clusters}_l{ll}_{opts}_{sector_opts}_{planning_horizons}_solver.log",
|
2024-01-19 15:58:05 +00:00
|
|
|
memory=RESULTS
|
2024-09-13 13:37:01 +00:00
|
|
|
+ "logs/base_s_{clusters}_l{ll}_{opts}_{sector_opts}_{planning_horizons}_memory.log",
|
2024-01-19 15:58:05 +00:00
|
|
|
python=RESULTS
|
2024-09-13 13:37:01 +00:00
|
|
|
+ "logs/base_s_{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:
|
2024-03-09 13:47:01 +00:00
|
|
|
mem_mb=config_provider("solving", "mem_mb"),
|
|
|
|
runtime=config_provider("solving", "runtime", default="6h"),
|
2023-03-08 16:29:01 +00:00
|
|
|
benchmark:
|
2024-02-17 22:36:46 +00:00
|
|
|
(
|
|
|
|
RESULTS
|
2024-09-13 13:37:01 +00:00
|
|
|
+ "benchmarks/solve_sector_network/base_s_{clusters}_l{ll}_{opts}_{sector_opts}_{planning_horizons}"
|
2024-02-10 17:09:23 +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"
|