Purpose
Declares a
barrier log
callback function, called at each iteration during the interior point algorithm.
Synopsis
int XPRS_CC XPRSsetcbbarlog (XPRSprob prob, int (XPRS_CC *fubl)(XPRSprob my_prob, void *my_object), void *object);
Arguments
prob
|
The current problem.
|
fubl
|
The callback function itself. This takes two arguments, my_prob and my_object, and has an integer return value. If the value returned by fubl is nonzero, the solution process will be interrupted. This function is called at every barrier iteration.
|
my_prob
|
The problem passed to the callback function, fubl.
|
my_object
|
The user-defined object passed as object when setting up the callback with XPRSsetcbbarlog.
|
object
|
A user-defined object to be passed to the callback function, fubl.
|
Example
This simple example prints a line to the screen for each iteration of the algorithm.
XPRSsetcbbarlog(prob,barLog,NULL);
XPRSmaxim(prob,"b");
The callback function might resemble:
int XPRS_CC barLog(XPRSprob prob, void *object)
{
printf("Next barrier iteration\n");
}
Further information
If the callback function returns a nonzero value, the Optimizer run will be
interrupted.
Related topics
If you have any comments or suggestions about these pages,
please send mail to docs@dashoptimization.com.