-
Notifications
You must be signed in to change notification settings - Fork 69
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
Segfault when trying to add PreProcessing for cbcModel #124
Comments
Although it lives in the Cgl package, However, when you call Cbc from CyLP, it should actually call the preprocessor internally by default, just as when you call it through PuLP. You shouldn't need to do anything special. So I'm not sure what you're trying to do exactly. If you can explain a little further, maybe I can make a suggestion. |
You are right! Turns out initial model for my specific problem (not the demo model) was not specified correctly, so all sorts of bad things were happening. When I specified it correctly, CBC indeed called the cut generator. The issue with calling |
Thanks for confirming. I guess I'll leave this open as a reminder that I should probably just remove |
I'm trying to run the example given for cbcModel, but adding a PreProcessing cut generator (full context: I was trying to solve a much bigger problem and running into the same issue as below). However, this is causing a segfault, and I have no idea how to start debugging this. I've encountered this with two separate builds of Cbc (one via
conda
, and one viacoinbrew
, all on Linux running within WSL). Here's the exact code:Result:
I hope that I'm just doing something really ignorant, but other cut generators don't cause the same issue. And from solving my problem using PuLP previously, I can see that the PreProcessing step substantially reduced the size of the problem before Cbc found the ultimate solution. Just throwing the model at Cbc without preprocessing definitely is not working.
The text was updated successfully, but these errors were encountered: