Originally posted by: SystemAdmin
Unfortunately, we do not track the maximal depth of the tree, so this is not so easy to get.
What you can do is to install a callback, for example a MIP callback by means of CPXsetmipcallbackfunc(). (I am talking about the C interface, as I don't know the C++ interface well enough, but you are probably able to translate this to the C++ interface.)
This callback is called at each node, and you can query the depth of the current node by CPXgetcallbacknodeinfo() using the whichinfo = CPX_CALLBACK_INFO_NODE_DEPTH argument. Then, just calculate the max depth yourself.
To get depth first search, just set the CPX_PARAM_NODESEL parameter (NodeSel in Concert) to CPX_NODESEL_DFS.
Tobias
#CPLEXOptimizers#DecisionOptimization