I am working on some advanced branching heuristics for mixed integer programming using CPLEX (12.9) by its Python (3.6) API. Part of the branching decisions should be based on the strong branching (SB) score of variables. While I can query the pseudo cost score of variables directly via the API [1], there seems to be no easy way to get calculated SB scores. Therefore I want to implement the calculation on my own. I found an old forum post, describing how to implement strong branching calculations as efficient as possible [2] by using the C-API. Unfortunately the described mehtod uses library calls (like CPXgetcallbacknodelp()) for which I can't find corresponding python methods.
This leaves me with three questions:
- Is there an API call to get SB scores I missed?
- Did I overlook the python wrapper for CPXgetcallbacknodelp() etc.?
- Is there an easy way to add wrappers to unsupported C-API calls to the cplex python wrapper (maybe by extending the SWIG generated python files)?