Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  assign user data to a B&B node

    Posted 04/03/13 12:07 AM

    Originally posted by: QiuFeng


    I know you can do it when you do the branch yourself, using the following function

    int CPXPUBLIC CPXbranchcallbackbranchbds(CPXCENVptr env, void * cbdata, int wherefrom, double nodeest, int cnt, const int * indices, const char * lu, const int * bd, void * userhandle, int * seqnum_p)
    But suppose you are in a cut callback, and you want to record how many iterations of cut generation has been done on this node. Can you create a data structure and associate with this node? That would be convenient.

    Thanks!
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: assign user data to a B&B node

    Posted 04/03/13 02:24 AM

    Originally posted by: SystemAdmin


    Even cut callbacks have this facility:

    status = CPXsetusercutcallbackfunc(env, cutcallback, cbhandle);

    I hope it would work with 'cbhandle' too?

    Regards,
    Vivek.
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: assign user data to a B&B node

    Posted 04/03/13 06:07 AM

    Originally posted by: SystemAdmin


    Since CPLEX 12.5.0.0 there is function CPXcallbacksetuserhandle that allows you to set/change the user data stored at a node. If I understand correctly then this is exactly what you need.
    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: assign user data to a B&B node

    Posted 04/03/13 09:55 AM

    Originally posted by: QiuFeng


    Thanks a lot.

    It seems that I need to upgrade from 12.2 to 12.5.
    #CPLEXOptimizers
    #DecisionOptimization