XPRSremovecbgloballog
XPRSremovecbgloballog |
Purpose
Removes a global log
callback function previously added by
XPRSaddcbgloballog. The specified callback function will no longer be called after it has been removed.
Synopsis
int XPRS_CC XPRSremovecbgloballog(XPRSprob prob, int (XPRS_CC *f_globallog)(XPRSprob prob, void* vContext), void* object);
Arguments
prob
|
The current problem.
|
f_globallog
|
The callback function to remove. If NULL then all global log callback functions added with the given user-defined object value will be removed.
|
object
|
The object value that the callback was added with. If NULL, then the object value will not be checked and all global log callbacks with the function pointer
f_globallog will be removed.
|
Example
The following code sets and removes a callback function:
XPRSsetintcontrol(prob, XPRS_MIPLOG, 3); XPRSaddcbgloballog(prob, globalLog, NULL, 0); XPRSmipoptimize(prob,""); XPRSremovecbgloballog(prob,globalLog,NULL); }
Related topics