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

Adapt Kernnetz Segmentation size #304

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

JulianGeis
Copy link
Contributor

@JulianGeis JulianGeis commented Dec 11, 2024

Before asking for a review for this PR make sure to complete the following checklist:

  • Workflow with target rule ariadne_all completes without errors
  • The logic of export_ariadne_variables has been adapted to the changes
  • One or several figures that validate the changes in the PR have been posted as a comment
  • A brief description of the changes has been added to Changelog.md
  • The latest main has been merged into the PR
  • The config has a new prefix of the format YYYYMMDDdescriptive_title

@JulianGeis
Copy link
Contributor Author

JulianGeis commented Dec 11, 2024

I noticed, that for our 49 cl model there is a relatively large Kernnetz pipe in the East:

The reason is a segmentation length of 10 km and a weird shaped region there. For a segmentation length of 10 km, all potential Kernnetz pipes are split into segments of 10 km and according to those segments the inter-region capacities are obtained. However this can lead to the case, that a pipeline is accounted several times for the same region to region interconnection if the regional shapes are nor convex. In this case the OPAL pipe has been accounted 3 times leading to too high interconnection capacity and a too high overall Kernnetz capacity.

With a segmentation length of 50 km it looks better:

Kernnetz capacity is reduced from 57 TW x km to 50 TW x km.

Copy link

github-actions bot commented Dec 11, 2024

Validator Report

I am the Validator. Download all artifacts here.
I'll be back and edit this comment for each new commit.

⚠️ Config changes detected!

Results may differ due to these changes:

diff --git a/config/config.yaml b/config/config.yaml
index 0a8fe37..45adc9b 100644
--- a/config/config.yaml
+++ b/config/config.yaml
@@ -4,7 +4,7 @@
 
 # docs in https://pypsa-eur.readthedocs.io/en/latest/configuration.html#run
 run:
-  prefix: 20241203-force-onwind-south
+  prefix: 20241211-kernnetz-segmentation
   name:
   # - CurrentPolicies
   - KN2045_Bal_v4
@@ -254,7 +254,7 @@ wasserstoff_kernnetz:
   enable: true
   reload_locations: false
   divide_pipes: true
-  pipes_segment_length: 10
+  pipes_segment_length: 50
   border_crossing: true
   aggregate_build_years: "mean"
   recalculate_length: true

Ariadne Variables

Comparison
NRMSE Pearson
System Cost|Capex|Hydrogen|Gas|w/ CCS 0.816 -0.630
Capacity|Hydrogen|Gas|w/ CCS 0.816 -0.629
Investment|Energy Supply|Hydrogen|Transmission and Distribution|Kernnetz|NOT-PCI+IPCEI 0.577 0.000
Investment|Energy Supply|Hydrogen|Gas|w/ CCS 0.565 0.271
System Cost|OPEX|Electricity|Hydro 0.536 -0.194
System Cost|OPEX|Hydrogen|Gas|w/ CCS 0.436 -0.316
Price|Secondary Energy|Hydrogen|Green 0.408 0.000
Capacity Additions|Hydrogen|Gas|w/ CCS 0.408 -0.186
System Cost|OPEX|Heat|Biomass|w/ CCS 0.332 0.650
System Cost|Capex|Heat|Biomass|w/ CCS 0.324 0.637
System Cost|Capex|Electricity|Storage Reservoir 0.322 0.628
System Cost|Capex|Electricity|Storage Reservoir|Stationary Batteries 0.322 0.628
Capacity|Electricity|Gas|OC 0.289 0.878
System Cost|Capex|Electricity|Hydrogen|FC 0.283 0.670
System Cost|Capex|Electricity|Gas|w/ CCS 0.277 0.699
System Cost|OPEX|Electricity|Gas|w/ CCS 0.259 0.921
System Cost|Capex|Electricity|Gas|OC 0.256 0.991
Capacity|Electricity|Storage Converter 0.245 0.741
Investment|Energy Supply|Liquids|Biomass 0.221 1.000
System Cost|OPEX|Electricity|Storage Converter|Stationary Batteries 0.206 0.826
System Cost|Capex|Gases|Hydrogen 0.197 0.880
Capacity|Hydrogen|Gas|w/o CCS 0.183 1.000
System Cost|Capex|Hydrogen|Gas|w/o CCS 0.183 1.000
System Cost|Capex|Electricity|Hydrogen|OC 0.172 1.000
System Cost|OPEX|Electricity|Storage Reservoir 0.160 0.903
System Cost|OPEX|Electricity|Storage Converter 0.160 0.904
System Cost|Capex|Liquids|Biomass 0.155 1.000
Capacity|Liquids|Biomass 0.155 1.000
Capacity Additions|Liquids|Biomass 0.155 1.000
System Cost|OPEX|Liquids|Biomass 0.155 1.000
System Cost|OPEX|Electricity|Storage Reservoir|Hydro Dam Reservoir 0.144 0.853
System Cost|OPEX|Electricity|Storage Converter|Hydro Dam Reservoir 0.144 0.853
Investment|Energy Supply|Hydrogen|Transmission and Distribution|Endogen|New-build 0.142 0.926
Price|Secondary Energy|Gases|Biomass 0.134 0.000
System Cost|OPEX|Electricity|Hydrogen|OC 0.117 1.000
Investment|Energy Supply|Hydrogen|Transmission and Distribution|Kernnetz|New-build 0.106 0.999
Investment|Energy Supply|Hydrogen|Transmission and Distribution|New-build 0.104 0.992

NRMSE: Normalized (combined-min-max) Root Mean Square Error
Pearson: Pearson correlation coefficient
Threshold: NRMSE > 0.1
Only variables reaching the threshold are shown. Find the equivalent plot for all of them below.

Plots
Main branch Feature branch
Image not available Image not available
Image not available Image not available
Image not available Image not available
Image not available Image not available
Image not available Image not available
Image not available Image not available
Image not available Image not available
Image not available Image not available
Image not available Image not available
Image not available Image not available
Image not available Image not available
Image not available Image not available
Image not available Image not available
Image not available Image not available
Image not available Image not available
Image not available Image not available
Image not available Image not available
Image not available Image not available
Image not available Image not available
Image not available Image not available
⚠️ Note: Only the first 20 variables are shown, but more are above the threshold. Find all of them in the artifacts.

General

Plots comparison
Main branch Feature branch
Image not available Image not available
Image not available Image not available
Image not available Image not available
Image not available Image not available
Image not available Image not available
Image not available Image not available
Files comparison
Status NRMSE MAE (norm)
csvs/price_statistics.csv ⚠️Changed 0.002 0.10
csvs/metrics.csv ⚠️Changed 0.000 0.06
csvs/cumulative_cost.csv ⚠️Changed 0.000 0.11
csvs/nodal_cfs.csv ✅ Almost equal 0.002 0.00
csvs/nodal_capacities.csv ✅ Almost equal 0.000 0.00
csvs/supply.csv ✅ Almost equal 0.001 0.00
csvs/prices.csv ✅ Almost equal 0.001 0.02
csvs/nodal_supply_energy.csv ✅ Almost equal 0.000 0.01
csvs/capacities.csv ✅ Almost equal 0.000 0.00
csvs/nodal_costs.csv ✅ Almost equal 0.000 0.00
csvs/market_values.csv ✅ Almost equal 0.007 0.03
csvs/curtailment.csv ✅ Almost equal 0.000 0.04
csvs/cfs.csv ✅ Almost equal 0.006 0.00
csvs/costs.csv ✅ Almost equal 0.000 0.01
csvs/supply_energy.csv ✅ Almost equal 0.000 0.02
csvs/energy.csv ✅ Almost equal 0.000 0.01
csvs/weighted_prices.csv ✅ Equal

NRMSE: Normalized (combined-min-max) Root Mean Square Error
MAE (norm): Mean Absolute Error on normalized data (min-max)
Status Threshold: MAE (norm) > 0.05 and NRMSE > 0.3

Model Metrics

Benchmarks Image not available Image not available Image not available

Comparing kernnetz-segmentation (bf01192) with main (5233ab0).
Branch is 1 commits ahead and 0 commits behind.
Last updated on 2024-12-11 11:35:09 CET.

@JulianGeis JulianGeis marked this pull request as ready for review December 11, 2024 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant