odow
2
You need to pass cb_data.context to cpx_ccall instead of cb_data.
Note that you can access the full CPLEX generic callback if you use CPLEX.CallbackFunction() instead of MOI.UserCutCallback().
This isn’t really documented, but you can see an example here:
2 Likes