2023-03-08 16:29:01 +00:00
|
|
|
# SPDX-FileCopyrightText: : 2023 The PyPSA-Eur Authors
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
|
2023-03-08 16:46:14 +00:00
|
|
|
|
2023-03-08 16:29:01 +00:00
|
|
|
rule solve_sector_network:
|
|
|
|
input:
|
|
|
|
overrides="data/override_component_attrs",
|
|
|
|
network=RESULTS
|
|
|
|
+ "prenetworks/elec_s{simpl}_{clusters}_l{ll}_{opts}_{sector_opts}_{planning_horizons}.nc",
|
|
|
|
costs="data/costs_{}.csv".format(config["costs"]["year"]),
|
|
|
|
config=RESULTS + "configs/config.yaml",
|
|
|
|
#env=RDIR + 'configs/environment.yaml',
|
|
|
|
output:
|
|
|
|
RESULTS
|
|
|
|
+ "postnetworks/elec_s{simpl}_{clusters}_l{ll}_{opts}_{sector_opts}_{planning_horizons}.nc",
|
|
|
|
shadow:
|
|
|
|
"shallow"
|
|
|
|
log:
|
|
|
|
solver=LOGS
|
|
|
|
+ "elec_s{simpl}_{clusters}_l{ll}_{opts}_{sector_opts}_{planning_horizons}_solver.log",
|
|
|
|
python=LOGS
|
|
|
|
+ "elec_s{simpl}_{clusters}_l{ll}_{opts}_{sector_opts}_{planning_horizons}_python.log",
|
|
|
|
memory=LOGS
|
|
|
|
+ "elec_s{simpl}_{clusters}_l{ll}_{opts}_{sector_opts}_{planning_horizons}_memory.log",
|
|
|
|
threads: config["solving"]["solver"].get("threads", 4)
|
|
|
|
resources:
|
|
|
|
mem_mb=config["solving"]["mem"],
|
|
|
|
benchmark:
|
|
|
|
(
|
|
|
|
RESULTS
|
2023-03-08 18:22:00 +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-08 16:46:14 +00:00
|
|
|
"../scripts/solve_sector_network.py"
|