I’m trying to access my variable values through a callback on Gurobi (Gurobi Optimizer version 9.0.2; Pkg v0.8.1) (& JuMP v0.21.3). I’m able to run a few functions (eg. cbget_mipsol_obj), but ‘mipsol_sol’ is not working. Specifically, my code is:
cbget_mipsol_sol(m, cb_data, cb_where)
and I’m getting the error:
MethodError: no method matching cbget_mipsol_sol(::Model, ::CallbackData, ::Int32) Closest candidates are: cbget_mipsol_sol(!Matched::Gurobi.Optimizer, ::Any, ::Any) ...
I checked out the Gurobi grb_callbacks.jl page and saw that
("mipsol_sol",4001) is commented out. Is there any other way to access the variable values through a callback? Any help would be appreciated. Thank you?