Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Does heuristic callback infulence the MIP features?

    Posted 05/07/15 03:53 AM

    Originally posted by: Itherain


    I call a heuristic callback to solve a MIP. However, this method much slower than that using cplex solve the MIP directly.

    There is a sentence print on the screen: Warining: Control callbacks may disable some MIP features.

    So, my question is : Does heuristic callback infulences the MIP solving process of cplex and some MIP features, deeply?

     

     

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Does heuristic callback infulence the MIP features?

    Posted 05/18/15 01:14 AM

    Yes, it does. A heuristic callback is a control callback and the presence of any control callback will switch CPLEX from dynamic search to traditional search. There is nothing you can do about that.

    Also note that adding a control callback will by default switch CPLEX to single-threaded mode. You can get back multi-threaded mode by explicitly setting CPX_PARAM_THREADS to the number of desired threads (without control callbacks uses as many threads as there are cores, as indicated by CPXgetnumcores). You should try that and see whether it gives you back the desired performance.

    Finally, the heuristic callback is invoked at every node. If you spend a lot of time in the callback then this may slow down things as well. Maybe you want to do the heavy work only every Nth node or so.


    #CPLEXOptimizers
    #DecisionOptimization