-
Notifications
You must be signed in to change notification settings - Fork 24
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
Rewrite SCIP wrapper with Clang.jl to support a MIP solver through MOI #76
Conversation
- based on example of ArrowGlib.jl - incomplete (only wrap scip_general.h)
- these declarations used to be in scip.h - types are still missing
- those that appear in the first block in scip.h - but not type_var.h, which yields an error (undefined `union SCIP_DomChg`)
- requires updated Clang.jl with #214 fixed.
- see PR JuliaInterop/Clang.jl#210 - and discussion at JuliaInterop/Clang.jl#214
- inspired by Gurobi.jl - seems to work when `/usr/lib/libscip.so` exists.
- otherwise, if system-wide installation exists, can not point it to another installation which is useful for testing (debug mode build)
- otherwise, constraints can not be created!
I would be ready to merge this to master and the continue to work on features in separate PRs. |
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.
Very nice! I made a bunch of comments but most of the hard work is already done.
- remove those that are used infrequently - use longer, more descriptive names - use CamelCase when abbreviated name is more than just initials
(Unable to reply inline)
Correct. If you set a convergence tolerance on the solver and the solver happens to do better than you asked, you still get OPTIMAL. You can always check the gap manually later. |
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.
The points remaining are minor and I think properly accounted for with issues if needed, so LGTM to merge after addressing my last comments.
fixes #28, but does not support callbacks or nonlinear expressions 😞