Hi everyone,
my task is to model a transformator between a medium and a low voltage grid with energy flows in two directions symbolising the two cases:
-
Feeding energy from the low voltage grid into the medium voltage grid in case of high renewable generation and
-
consume energy from the medium voltage grid in case of to less renewable generation to satisfy the load at the low voltage side.
The approach was to use two linear transformers with different flow directions connecting the two grids. The objective function of the Investment-Flow-Method uses the invest (equivalent to the nominal value of the flows after optimization) to calculate the total investment costs. As I have two connections between the grids to simulate the energy flow in two directions I have two invests with different values dependent on the energy flows on that connection. This is the problem. What I want to have is the maximum of the two invests.
So I want to write a Constraint which takes the maximum invest of both flow directions to calculate the total investment costs.
For this, does anyone got an idea? Or got an idea how to get access to the invest variable respectively how to index decent energy flows?
Hope you all got the problem and looking forward for some advice.
Cheers, Bastian