Skip to content

Use 1 m transformer lines in clustering (Fixes #893) - #894

Merged
ClaraBuettner merged 1 commit into
devfrom
fixes/#893-transformer-length
Nov 2, 2026
Merged

ClaraBuettner merged 1 commit into
devfrom
fixes/#893-transformer-length

Conversation

@mohsenmansouri

Copy link
Copy Markdown
Contributor

Transformers are converted to lines of 1 m instead of 1 km before clustering. With kmedoids-dijkstra the two ends then practically never fall into different clusters, so transformers are no longer merged into inter-cluster lines (wrong capital_cost, s_nom_min and x).

How to verify: run the spatial clustering and check capital_cost / length and x of the clustered lines. In our case, line 77581–77587 goes from 435 to 32 €/MW/km/a and from x = 0.0068 to 19 Ω.

@ClaraBuettner

Copy link
Copy Markdown
Contributor

Should I review this?

@mohsenmansouri

Copy link
Copy Markdown
Contributor Author

Should I review this?

Yes, please.

@ClaraBuettner
ClaraBuettner self-requested a review November 2, 2026 09:06

@ClaraBuettner ClaraBuettner left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some github tests are failing, but this is not realted to this change. I openend a new issue for this.
This PR can be merged.

@ClaraBuettner
ClaraBuettner merged commit 08c1e23 into dev Nov 2, 2026
4 of 6 checks passed
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.

2 participants