oemof / oemof-solph

A model generator for energy system modelling and optimisation (LP/MILP).
https://oemof.org
MIT License
297 stars 125 forks source link

Accept negative Flows for GenericStorage #938

Open p-snft opened 1 year ago

p-snft commented 1 year ago

The problem of charging and discharging a storage at the same time (to waste energy) can be avoided by using non-convex flows (binary constraint). However, this comes at the expense of computational performance. Instead, we could allow to use the GenericStorage with bidirectional flows.

lensum commented 1 year ago

Scanning the issues, I just noticed that this might contradict (or at least influence) the issue #925.

With cellular energy systems in mind (#912), bi-directional flows might simplify the modelling here and there. I'm not sure, however, if it wouldn't complicate things for the results interpretation as the (from, to)-paradigm would be broken.

p-snft commented 1 year ago

You are right, there is some cross-talk between the issues. I just improved the description in #925, so both do not collide.