Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Adding cuts up to a certain depth in B&B tree

    Posted 11/13/18 10:12 AM

    Originally posted by: SteffenBakker


    I am currently implementing a branch and cut algorithm using the CPLEX CutCallback ( CPLEX Python API, CPLEX Optimization Studio 12.7.1), where I want to apply my user cuts only up to a certain depth in the branch and bound tree. However, I cannot access the depth_node function in the CutCallback. This is only possible in a NodeCallback. As far as I can see, I cannot exchange information between these callbacks. Is there any way around this?


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Adding cuts up to a certain depth in B&B tree

    Posted 11/19/18 11:16 AM

    Indeed, there is no function to obtain the depth of a node from the cut callback :-(

    However, you can use an undocumented function for that. Can you please try self._get_node_info(222, 0)? That should return the depth of the current node.


    #CPLEXOptimizers
    #DecisionOptimization