Conversation
…weighting based on electrical distance of buses from buses in focus region
…culation of distance to border of focus region, set up default parameters, add pot. h2 clustering
|
Do you have anything in particular in mind that I should try out? |
|
Maybe you could try it once with a shape-file and once with a list of Kreise and check the clustered network afterwards? I also did that, of course, but that is mainly what I think could be beneficial. |
|
I ran into some problems when I wanted to test the focus region:
|
|
When I try to use the "kmeans" method, the gas_clsutering fails: |
I added a warning for non-valid names. I also fixed the problem with 'Schleswig-Flensburg' which was related to cross-border lines. Should be working now for this case and also other Kreise near borders. |
Solved this issue. |
…nding and adapt parameter names wihtin clustering process
…non-valid names or regions
|
With these settings: I unfortunatly run into this error: |
|
I tested with the same settings and a few minor changes, but I still can't reproduce this error. Maybe we can have a look together tomorrow in the office. |
|
We found this error and fixed it. I will start one more bigger calculation with all the new updates and fixes for a final check today. |
Closes #800
This PR introduces a new functionality enabling spatial clustering with a regional focus.
The focus region can currently be defined either via a shapefile, or by selecting the corresponding Kreis.
A default parameterization is implemented to control the distribution of buses outside the focus region. The clustering weights are adjusted based on the shortest path distance of each bus to the boundary of the focus region. Therefore, the distance it used within a sigmoid decay function with a characteristic length scale of 50 km.
While the current implementation is fully functional and usable, several aspects require further refinement. These improvements will be tracked in a dedicated follow-up issue.
In addition to the clustering extensions, the spatial clustering arguments were partially restructured to improve usability and clarity. Some related aspects are documented in #811.