XPRSsetcbprenode


Purpose
Declares a preprocess node callback function, called before the node has been optimized, so the solution at the node will not be available.
Synopsis
int XPRS_CC XPRSsetcbprenode(XPRSprob prob, void (XPRS_CC *fupn)(XPRSprob my_prob, void *my_object, int *nodinfeas), void *object);
Arguments
prob 
The current problem.
fupn 
The callback function, which takes three arguments, my_prob, my_object and nodinfeas, and has no return value. This function is called before a node is reoptimized and the node may be made infeasible by setting *nodinfeas to 1.
my_prob 
The problem passed to the callback function, fupn.
my_object 
The user-defined object passed as object when setting up the callback with XPRSsetcbprenode.
nodinfeas 
Whether or not the node is infeasible. If the node is found to be infeasible during preprocessing, this is set to 1 indicating that the node should not be re-optimized.
object 
A user-defined object to be passed to the callback function, fupn.
Example
The following example notifies the user before each node is processed:
XPRSsetcbprenode(prob, preNode, NULL);
XPRSminim(prob,"g");
The callback function might resemble:
void XPRS_CC preNode(XPRSprob prob, void* data, int *Nodinfeas)
{
 *Nodinfeas = 0; /* set to 1 if node is infeasible */
}
Related topics
XPRSsetcbchgnode, XPRSsetcbinfnode, XPRSsetcbintsol, XPRSsetcbnodecutoff, XPRSsetcboptnode.


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