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
Check 1452 #1454
Check 1452 #1454
Conversation
Minor changes to HighsHashTree.h motivated by #1372
|
Interesting, I cannot reproduce this on Windows. Could you tell me which assert is triggered? Thank you. |
|
The assert that I added is not yet pushed to GitHub - and it probably won't. I've run the easiest 100 miplib problems (in release, with a print statement) to see how often it's used in reality. It's not that I don't trust what you've done: I'm just curious to see why an apparent bug hasn't caused more trouble, and what that may tell us about the error in the user's issue |
| default: | ||
| throw std::logic_error( | ||
| "Unexpected result from entries_to_size_class"); |
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.
Note the discussion on exceptions here: #1368
The basic takeaway is that since they require catching and handling before being passed to the C API they might not be of much use without a more principled effort.
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.
At the very least it should be caught and rethrown to ensure correct propagation.
FYI, the new line (correctly zero out array) is hit on problem |
So, @fwesselm, an assert after
is triggered by
check/TestHighsHash.cpp, but not in any of the MIP instance tests