-
-
Notifications
You must be signed in to change notification settings - Fork 390
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
remove 'presolve' hook #275
Conversation
As far as I know, it'll just break the example code I sent you today. |
Should remove the export as well (or else it's going to stick around for like a year until someone rediscovers it...) |
b79e892
to
4d83255
Compare
Ah, didn't realize it was exported. |
@juan-pablo-vielma pointed out that this was being used in CPLEX.jl to implement branch/incumbent callbacks. Any opposition to restoring? |
Could you use the |
It seems kludgy to me to force the user to use something like In other words, something like
is kosher, but since we can't add a new method to dispatch on |
Any code using incumbent or branching callbacks is already not generic. What about
instead of
If we're planning on documenting the CPLEX callbacks and making it official that's one thing, but as it is now this would get things working without adding extra kludge to JuMP itself. |
I mean it ideally would look generic---the fact that CPLEX is the only solver to support it, and where exactly the code lives should be immaterial to the end user. What would a more general |
Something like |
Sounds reasonable to me. |
Could we have a setHook with a solve or print option? That'd be the two awkward things with "RobustModel" resolved. |
@joehuchette, if this isn't really needed, I'd prefer to remove this functionality in favor of
buildInternalModel(); ...; solve()
. How badly does this break things?Ref discussion in 28c8a5d.