-
Notifications
You must be signed in to change notification settings - Fork 62
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
Fix 07 #179
Fix 07 #179
Conversation
Thanks! We don't have CI set up so this is hard to test (I don't have a CPLEX license). Could you confirm that CPLEX passes tests on both 0.6 and 0.7 under this PR? We are not dropping 0.6 support yet. |
src/CPLEX.jl
Outdated
@@ -119,6 +120,8 @@ module CPLEX | |||
try | |||
eval(current_module(), Expr(:import,:JuMP)) | |||
include("JuMPfunctions.jl") | |||
catch e |
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.
Looks like a whitespace mismatch
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 got tricked by a tab-space conversion
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.
fixed in last commit
@@ -1,4 +1,4 @@ | |||
using Base.Test | |||
using Test |
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.
Should this be Compat.Test?
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.
this looks fine with just "Test", it was suggested directly by the compiler
@@ -19,8 +19,8 @@ function setcallbackcut(cbdata::CallbackData, where::Cint, ind::Vector{Cint}, va | |||
@assert length(val) == len | |||
sns = convert(Cint, sense) | |||
stat = @cpx_ccall(cutcallbackadd, Cint, ( | |||
Ptr{Void}, | |||
Ptr{Void}, | |||
Ptr{Nothing}, |
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.
Please use Cvoid
instead of Nothing
for void*
types.
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.
fixed in last commit
As mentioned, there is still a ccall yielding an error and I could not track down where it's coming from
|
Seemed like CPLEX.jl needs a refresh for 0.7, I fixed some things.
Things I couldn't get right:
Env
needs to be redefinedccall
is done incorrectly, yielding an error in the testsimportall
is used, I haven't got through all places where importall-ed package are used