-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add soft constraints in link node #213
Add soft constraints in link node #213
Conversation
If there are no problems with the implementation, I may start writing a paragraph about this in the book |
I've only had quick read through this. My initial reaction is whether the main I think this would require an aggregated node to enforce the hard min & max flows across the multiple internal nodes if either soft bound is defined, and the soft max applied to the main L node. @Batch21 thoughts? |
Keeping the soft constraints within the bounds of Could apportioning volumes to the different links be an alternative to using an agg node. Something like this: L_min |
I'm not sure I follow this. This constraint would be redundant because it could just be applied to I was thinking of it like this: If soft min and max defined:
if only soft min defined:
If only soft max defined:
If neither soft max or soft min defined:
|
…e' into feature/soft-constraint-link-node
Improved documentation Added tests
Hello, I implemented the new constraints as suggested. I think it would be nice to export the internal nodes' flow data using metrics. What do you think? I have no idea why the pipelines fail. On my machine the project compiles |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good. I've just noticed a possibly outdated sentence in the docstring. One other very minor comment. At some point we should provide expected output data for the test models.
Happy to merge when the doc string is fixed.
Agreed. What are you thinking? Some attributes that might be useful (first two more than the last two):
WTW node could also implement the soft min related ones. |
Hi, thanks for the feedback. I created two separate issues to address the additional metrics and the test implementation |
Thanks for implementing this! |
No description provided.