Purpose
Declares a MIP thread callback function, called every time a MIP thread is started by the parallel MIP code.
Synopsis
int XPRS_CC XPRSsetcbmipthread(XPRSprob prob, void (XPRS_CC *fmt)(XPRSprob my_prob, void *my_object, XPRSprob thread_prob),
void *object);
Arguments
prob
|
The current problem.
|
fmt
|
The callback function which takes three arguments, my_prob, my_object and thread_prob, and has no return value.
|
my_prob
|
The problem passed to the callback function.
|
my_object
|
The user-defined object passed to the callback function.
|
thread_prob
|
The problem pointer for the MIP thread
|
object
|
A user-defined object to be passed to the callback function.
|
Related Controls
Integer
|
Number of MIP threads to create.
|
Example
The following example clears the message callback for each of the MIP threads:
XPRSsetcbmipthread(prob,mipthread,NULL);
void XPRS_CC mipthread(XPRSprob my_prob, void* my_object,
XPRSprob mipthread)
{
/* clear the message callback*/
setcbmessage (mipthread,NULL,NULL);
}
Related topics
If you have any comments or suggestions about these pages,
please send mail to docs@dashoptimization.com.