Originally posted by: frangio
Thanks. That's the difference between a wish and an order. :-)
Since I'm here: it seems to me there is a typo or something in the manual of Cplex 12.4 regarding the
CPXsetdeletenodecallbackfunc
The manual states that the callback function is
int callback (CPXCENVptr env,
void *cbdata,
int wherefrom,
void *cbhandle,
int seqnum,
void *handle);
However, trying to compile it we get errors. And indeed the relevant definition in cpxconst.h is
#define CALLBACK_DELETENODE_ARGS CPXCENVptr xenv,\
int wherefrom, void *cbhandle, int seqnum, void *handle
I've checked, and it has been like this since at least 12.2.
It seems "cbdata" is missing, although it looks that nobody is going to actually miss it, since according to the manual
cbdata
A pointer passed from the optimization routine to the user-written callback that identifies the problem being optimized. The only purpose of this pointer is to pass it to the callback information routines.
So I guess we can just eliminate cbdata from the function definition and live with that. Which is fine for us, but perhaps you may want the manual to be updated. Unless, of course, I'm missing something.
Regards
Antonio
#CPLEXOptimizers#DecisionOptimization