When I try
#Produce an info callback
bbdata = Vector{Float64}[]
function infocallback(cb)
node = MathProgBase.cbgetexplorednodes(cb)
obj = MathProgBase.cbgetobj(cb)
bestbound = MathProgBase.cbgetbestbound(cb)
gap=(abs(bestbound-obj)/abs(obj))*100
**numcuts=cbget_mip_cutcnt(cb,Cint(3))**
push!(bbdata, [time(), node, obj, bestbound, gap])
end
addinfocallback(m, infocallback, when = :Intermediate)
I get the following error:
MethodError: no method matching cbget_mip_cutcnt(::Gurobi.GurobiCallbackData, ::Int32)e[0m
Closest candidates are:
cbget_mip_cutcnt(e[91m::Gurobi.CallbackDatae[39m, ::Int32) at C:\Users\bongiova.julia\v0.6\Gurobi\src\grb_callbacks.jl:138
(::#infocallback#238)(::Gurobi.GurobiCallbackData) at model_callback_full.jl:1205
infocallback(::Gurobi.GurobiCallbackData, ::JuMP.Model, ::Array{JuMP.InfoCallback,1}) at callbacks.jl:175
(::JuMP.##146#147{JuMP.Model,Array{JuMP.InfoCallback,1}})(::Gurobi.GurobiCallbackData) at callbacks.jl:192
mastercallback(::Ptr{Void}, ::Ptr{Void}, ::Int32, ::Ptr{Void}) at MPBWrapper.jl:695
optimize(::Gurobi.Model) at grb_solve.jl:5
optimize!(::Gurobi.GurobiMathProgModel) at MPBWrapper.jl:425
#solve#116(::Bool, ::Bool, ::Bool, ::Array{Any,1}, ::Function, ::JuMP.Model) at solvers.jl:175
macro expansion at model_callback_full.jl:1218 [inlined]
anonymous at :?
include_string(::String, ::String) at loading.jl:522
include_string(::String, ::String, ::Int64) at eval.jl:30
include_string(::Module, ::String, ::String, ::Int64, ::Vararg{Int64,N} where N) at eval.jl:34
(::Atom.##102#107{String,Int64,String})() at eval.jl:82
withpath(::Atom.##102#107{String,Int64,String}, ::String) at utils.jl:30
withpath(::Function, ::String) at eval.jl:38
hideprompt(::Atom.##101#106{String,Int64,String}) at repl.jl:67
macro expansion at eval.jl:80 [inlined]
(::Atom.##100#105{Dict{String,Any}})() at task.jl:80