You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi guys,
I'm using your latest branch of CPLEX.jl
I'm struggling with the updating of Julia to 1.0 and I've problems with callbacks in CPLEX.jl, (Gurobi.jl instead works well).
So I've updated JuMP to 0.18.3 using the branch release-0.18 and now I can use the @lazyconstraint function but still I have the following error:
ERROR: LoadError: MethodError: no method matching cbgetstate(::CPLEX.CplexLazyCallbackData)
Closest candidates are:
cbgetstate(::Gurobi.GurobiCallbackData) at C:\Users\user\.julia\packages\Gurobi\hnOi4\src\MPBWrapper.jl:633
cbgetstate(::MathProgBase.SolverInterface.LPQPWrapperCallbackData) at C:\Users\user\.julia\packages\MathProgBase\e5IOK\src\SolverInterface\lpqp_to_conic.jl:323
cbgetstate(::Int64) at C:\Users\user\.julia\packages\MathProgBase\e5IOK\src\SolverInterface\SolverInterface.jl:29
...
Stacktrace:
[1] lazycallback(::CPLEX.CplexLazyCallbackData, ::Model, ::Array{JuMP.LazyCallback,1}) at C:\Users\user\.julia\packages\JuMP\5fDvz\src\callbacks.jl:63
[2] (::getfield(JuMP, Symbol("##129#130")){Model,Array{JuMP.LazyCallback,1}})(::CPLEX.CplexLazyCallbackData) at C:\Users\user\.julia\packages\JuMP\5fDvz\src\callbacks.jl:96
[3] mastercallback(::Ptr{Nothing}, ::Ptr{Nothing}, ::Int32, ::Ptr{Nothing}, ::Ptr{Int32}) at C:\Users\user\.julia\packages\CPLEX\FUtHu\src\CplexSolverInterface.jl:535
[4] optimize!(::CPLEX.CplexMathProgModel) at C:\Users\user\.julia\packages\CPLEX\FUtHu\src\cpx_solve.jl:5
[5] #solve#119(::Bool, ::Bool, ::Bool, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Model) at C:\Users\user\.julia\packages\JuMP\5fDvz\src\solvers.jl:175
[6] solve(::Model) at C:\Users\user\.julia\packages\JuMP\5fDvz\src\solvers.jl:150
[7] top-level scope at C:\Users\user\.julia\packages\JuMP\5fDvz\src\macros.jl:1237
[8] top-level scope at myjuliafile.jl:76
[9] include at .\boot.jl:317 [inlined]
[10] include_relative(::Module, ::String) at .\loading.jl:1041
[11] include(::Module, ::String) at .\sysimg.jl:29
[12] include(::String) at .\client.jl:388
[13] top-level scope at none:0
in expression starting at myjuliafile.jl:72
Please fix this issue!
Thank you for giving us support and for keeping updated all the packages.
I love Julia and I don't want stop using it :)
The text was updated successfully, but these errors were encountered:
The functions in that PR need MathProgBase. prepended to them. The PR is still WIP, so PR's to that branch with the changes you need would be very helpful!
Hi guys,
I'm using your latest branch of CPLEX.jl
I'm struggling with the updating of Julia to 1.0 and I've problems with callbacks in CPLEX.jl, (Gurobi.jl instead works well).
So I've updated JuMP to 0.18.3 using the branch
release-0.18
and now I can use the@lazyconstraint
function but still I have the following error:Please fix this issue!
Thank you for giving us support and for keeping updated all the packages.
I love Julia and I don't want stop using it :)
The text was updated successfully, but these errors were encountered: