XPRSsetcbnodecutoff


Purpose
Declares a user node cutoff callback function, called every time a node is cut off as a result of an improved integer solution being found during the Branch and Bound search.
Synopsis
int XPRS_CC XPRSsetcbnodecutoff(XPRSprob prob, void (XPRS_CC *fucn)(XPRSprob my_prob, void *my_object, int nodnum), void *object);
Arguments
prob 
The current problem.
fucn 
The callback function, which takes three arguments, my_prob, my_object and nodnum, and has no return value. This function is called every time a node is cut off as the result of an improved integer solution being found.
my_prob 
The problem passed to the callback function, fucn.
my_object 
The user-defined object passed as object when setting up the callback with XPRSsetcbnodecutoff.
nodnum 
The number of the node that is cut off.
object 
A user-defined object to be passed to the callback function, fucn.
Example
The following notifies the user whenever a node is cutoff during the global search:
XPRSsetcbnodecutoff(prob,Cutoff,NULL);
XPRSmaxim(prob,"g");
The callback function might resemble:
void XPRS_CC Cutoff(XPRSprob prob, void *obj, int node)
{
  printf("Node %d cutoff\n", node);
}
See the example depthfirst.c on the Xpress‑MP CD-ROM.
Further information
This function allows the user to keep track of the eligible nodes.
Related topics
XPRSsetcbchgnode, XPRSsetcboptnode, XPRSsetcbinfnode, XPRSsetcbintsol, XPRSsetcbchgbranch, XPRSsetcbprenode.


If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.