Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a maximum uptime constraint for NonConvex flows.
The motivation is a scheduling problem for industrial processes, if you have e.g. a cyclic industrial process (block profile) with a certain time between each process and a fixed length of the process. With a
maximum_uptime
attribute and in combination with the existingminimum_downtime
and other attributes, it is possible to model this problem within oemof.solph. See the example.The API is an additional attribute at the NonConvex class:
The constraint itself is based on the rule that the sum of
maximum_uptime
+1 consecutive binary decision variables of the flow need to be smaller or equal the maximum operation timemaximum_uptime
.If there is nothing against the implementation of this constraint, I would continue to implement docstrings, tests, etc. I would a appreciate a short feedback on that.
p.s.: This constraint would allow the scheduling of block profiles. We would be also interested to schedule fixed but fluctuating profiles. Any ideas?