-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Features/add min max runtimes #446
Conversation
Memo:
|
I have now realized except for the constraint test. If it has been added, it should be fine! |
Looks good! |
You could also review the examples as they illustrate the functionality: oemof/oemof-examples#16 |
Good feature! I reviewed the examples, see PR #16. The actual code seems to have a problem passing the tests. There is an error in constraint_tests.py in test_emission_constraints(). |
This is weird. The tests have passed with oemof/oemof@1795b1d and started to fail with oemof/oemof@f2dfb12 although the changes only affected the documentation. And the emission constraints are not related to the runtimes.. |
…mof/oemof into features/add-min-max-runtimes
I can not review the correctness of this new functionality atm, Source code looks fine. Only thing was the update of docstrings (I pushed it). @ckaldemeyer: Thanks for adding!! |
This is a pyomo issue. It comes with 5.4.x. Just add pyomo<5.4 to the setup.py. Then we should open a new issue to find out if it is a bug or an API change. |
Thanks! |
See #448. |
Thanks for pointing this out. Nevertheless, this PR should be mergeable now as @simnh @jnnr and you are fine with it and the Pyomo error is of general nature. @jnnr : Feel free to merge if you are o.k. with my changes! |
Okay, I limited the pyomo version to pyomo < 5.4 until we know what happened there. Now the tests are fine 😄 |
Very good. Thanks! |
This adds the possibility to add min and max runtimes for
solph.NonConvexFlows
.See oemof/oemof-examples#16 for two example usages!