Originally posted by: PierreBonami
Hi,
For the second question, gtoptimizer is correct.
For the first one, I am not sure but maybe this is because you are using CPLEX 12.6.0 or more recent?
We changed the argument of branching callbacks (because we know allow users to branch on continuous variables now). The prototype of a branch callback shoule be now:
int branchcb (CPXCENVptr env,
void *cbdata,
int wherefrom,
void *cbhandle,
int type,
int sos,
int nodecnt,
int bdcnt,
const int *nodebeg,
const int *indices,
const char *lu,
const double *nodeest,
const double *bd,
int *useraction_p);
Notice that nodeest moved and bd became an array of double. Normally we changed the position of nodeest so that compilers would not compile (indeed your code didn't compile on my machine).
#CPLEXOptimizers#DecisionOptimization