modex-flexmex / oemof-flexmex

oemof-flexmex is an oemof model built for model comparison within the Modex project FlexMex.
https://oemof-flexmex.readthedocs.io
MIT License
0 stars 0 forks source link

Transmission capacities are set before losses #153

Closed jnnr closed 3 years ago

jnnr commented 3 years ago

NTC are constraints that should act after transmission losses, not before. This affects UC2d and UC10 of experiment 1.

There are two ways of fixing this: Either changing the tabular.facade.Link or pass higher capacity values that make up for the losses. The latter would probably be quicker, but more of a hack.

jnnr commented 3 years ago

Update: Adapting the facade would actually be simpler than previously thought: Just move nominal_value and investment to the input flows instead (https://github.com/oemof/oemof-tabular/blob/ab58d8c3035b6e97d9d45169832745de11e5bb36/src/oemof/tabular/facades.py#L1249-L1262)

jnnr commented 3 years ago

There seems to have been a confusion: The constraint is set on the outputs which means that it acts after losses.