openego / eDisGo

Optimization of flexibility options and grid expansion for distribution grids based on PyPSA
GNU Affero General Public License v3.0
38 stars 14 forks source link

[FEATURE] Improve connection of charging points #413

Open birgits opened 3 months ago

birgits commented 3 months ago
khelfen commented 3 months ago

I have updated the docstring and comments within the mentioned function get_weights_df a bit. You can find it in PR #416. At the moment the tests fail, but I think this is due to your changes @joda9 ?

The function already includes the distance to the next MV/LV substation:

https://github.com/openego/eDisGo/blob/d68e4d4c609bcc36f0fbd4ed49526107f527a6e7/edisgo/io/electromobility_import.py#L725-L727

This is based on the distance calculation here:

https://github.com/openego/eDisGo/blob/d68e4d4c609bcc36f0fbd4ed49526107f527a6e7/edisgo/network/components.py#L893-L918

At the beginning of the process of assigning charging processes to charging points, it is not clear if a charging park (charging park consists of one or more charging points) will be connected to LV, MV/LV, MV or even HV/MV level. Also, when the code was written, the LV level wasn't geolocated yet. So I used the distance to the next MV/LV substation as a guess.