Skip to content
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

no method matching cbgetstate(::CPLEX.CplexLazyCallbackData) #186

Closed
giadasp opened this issue Oct 6, 2018 · 4 comments
Closed

no method matching cbgetstate(::CPLEX.CplexLazyCallbackData) #186

giadasp opened this issue Oct 6, 2018 · 4 comments

Comments

@giadasp
Copy link

giadasp commented Oct 6, 2018

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 :)

@odow
Copy link
Member

odow commented Oct 6, 2018

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!

@giadasp
Copy link
Author

giadasp commented Oct 6, 2018

Sorry, I'm not getting what you mean for "pull requests to that branch with the changes you need would be very helpful" -.-"

@mlubin
Copy link
Member

mlubin commented Oct 10, 2018

Closed by #184

@mlubin mlubin closed this as completed Oct 10, 2018
@giadasp
Copy link
Author

giadasp commented Oct 11, 2018

Thank you Miles.
I'm going to update cplex with that branch and tell you if everything is ok.
Thank you for working so hard these days. <3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants