-
Notifications
You must be signed in to change notification settings - Fork 33
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
Enable multiple edges in the same direction between two nodes #157
Conversation
@simonbowly I have implemented with a more minimal implementation as requested. |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
@jsfreischuetz Thanks for the updated PR! |
I had this code in a previous commit, but was trying to limit changes, but thanks! |
Everything seems to be working properly |
Ah cool, sorry, did not realise. I think it makes sense, it is safer than dictionaries as the order can sometimes differ leading to randomly failing tests. I can revert it if Simon is not happy with it. @simonbowly please review, sorry about the numerous changes to the tests but I think it is better like this |
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.
I have a couple of comments.
Changing the test structure is ok by me, as long as it doesn't change the meaning of the tests. I simplified things a bit further in 2536cbf
Thanks @jsfreischuetz and @torressa! I'll release the changes as version 2.2, just want to take a look at another open PR first and hopefully merge and release that in the same go. |
Enable multiple edges in the same direction between two nodes
Description
Currently the solver does not support multiple edges of between two nodes in the same direction. This PR implements this feature for pandas and networkx.
scipy, because of the matrix representation, requires some more complex changes to support it. For now this is left out as it is somewhat obvious to the user that this would not be supported for this structure.
fixes #155
Implements based on feedback from #156
Checklist
gurobi_optimods
installable packagetests/
gurobi_optimods.datasets
for loading data)