openego / eTraGo

Optimization of flexibility options for transmission grids based on PyPSA
GNU Affero General Public License v3.0
32 stars 13 forks source link

Solve problem while clustering foreign buses #560

Closed CarlosEpia closed 1 year ago

CarlosEpia commented 1 year ago

solves #541

CarlosEpia commented 1 year ago

This branch fixes the problem related to foreign buses clustered to German buses image

CarlosEpia commented 1 year ago

The problem with AC buses is also solved. image

KathiEsterl commented 1 year ago

I would take over the reviewing of this PR :)

pieterhexen commented 1 year ago

I would take over the reviewing of this PR :)

Great! I already applied the code in another branch and found that some 'DE' buses are isolated when only considering the German grid. What happend is that 'DE'-buses only connected through foreign nodes to the German grid are then isolated. The relevant bus-ids I found are '32461' and '33515'. The following image shows the initial state of bus '33515' at the DE/AT border: grafik

I only applied the method from this PR after doing some other aggregation so it is possible, that the problem is tied to the things I did. But maybe this serves as a hint for you on where to look a bit closer :)