Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for test config #360

Merged
merged 2 commits into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions scripts/solve_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,10 @@ def add_existing(n):
n.meta = dict(snakemake.config, **dict(wildcards=dict(snakemake.wildcards)))
n.export_to_netcdf(snakemake.output[0])

# logging output to the terminal
print("Objective function: {}".format(n.objective))

# logging output to file
logger.info("Objective function: {}".format(n.objective))
logger.info("Objective constant: {}".format(n.objective_constant))
logger.info("Maximum memory usage: {}".format(mem.mem_usage))
4 changes: 2 additions & 2 deletions test/config.test1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ scenario:
opts:
- "Co2L"
sopts:
- "144H"
- "24H"
demand:
- "AB"

Expand Down Expand Up @@ -328,7 +328,7 @@ solving:
options:
formulation: kirchhoff
clip_p_max_pu: 1.e-2
load_shedding: false
load_shedding: true
noisy_costs: true
skip_iterations: true
track_iterations: false
Expand Down
4 changes: 2 additions & 2 deletions test/config.test_myopic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ scenario:
opts:
- "Co2L"
sopts:
- "144H"
- "24H"
demand:
- "DF"

Expand Down Expand Up @@ -331,7 +331,7 @@ solving:
options:
formulation: kirchhoff
clip_p_max_pu: 1.e-2
load_shedding: false
load_shedding: true
noisy_costs: true
skip_iterations: true
track_iterations: false
Expand Down
Loading