Hi everyone,

I am trying to model a group of 4 buildings with their own electricity production units (for example PV or any transformer which produces electricity). Now the task is to connect the electricity buses of these four buildings (elBus_1, elBus_2, elBus_3, elBus_4) so that they can share the electricity production. I am looking for a way to model a switch between multiple buses in oemof.solph.

The first approach I tried was to use several Transformer objects with one input, one output and a conversion factor of 1, for every combination of these electricity buses. But now we want to add investment object so that the optimizer can choose whether or not the electrical connection between buildings should be made, and also increase the number of buildings to 50. So the point-to-point connections with a Transformer would not work anymore.

Is there another way to implement this?

Hope I could explain the problem well. Looking forward to some advice.

Thanks, Neha