Purpose
Declares a user optimal
node
callback function, called after the current node has been found to be infeasible during the Branch
and Bound
search.
Synopsis
int XPRS_CC XPRSsetcbinfnode(XPRSprob prob, void (XPRS_CC *fuin)(XPRSprob my_prob, void *my_object), void
*object);
Arguments
prob
|
The current problem
|
fuin
|
The callback function which takes two arguments, my_prob and my_object, and has no return value. This function is called after the current node has been found to be infeasible.
|
my_prob
|
The problem passed to the callback function, fuin.
|
my_object
|
The user-defined object passed as object when setting up the callback with XPRSsetcbinfnode.
|
object
|
A user-defined object to be passed to the callback function, fuin.
|
Related Controls
Example
The following notifies the user whenever an infeasible node is found during the global
search:
XPRSsetintcontrol(prob,XPRS_NODESELECTION,2);
XPRSsetcbinfnode(prob,nodeInfeasible,NULL);
XPRSmaxim(prob,"g");
The callback function may resemble:
void XPRS_CC nodeInfeasible(XPRSprob prob, void *obj)
{
int node;
XPRSgetintattrib(prob, XPRS_NODES, &node);
printf("Node %d infeasible\n", node);
}
See the example depthfirst.c on the Xpress‑MP CD-ROM.
Related topics
If you have any comments or suggestions about these pages,
please send mail to docs@dashoptimization.com.