CallbackAPI
API for registering callbacks. More...
Public Member Functions |
|
| auto | addAfterObjectiveCallback (std::function< void(XpressProblem &)> callback, int prio=0) -> CallbackHandle |
Add an afterobjective callback. |
|
| auto | addBarIterationCallback (std::function< void(XpressProblem &, int *)> callback, int prio=0) -> CallbackHandle |
Add a bariteration callback. |
|
| auto | addBarlogCallback (std::function< int(XpressProblem &)> callback, int prio=0) -> CallbackHandle |
Add a barlog callback. |
|
| auto | addBeforeObjectiveCallback (std::function< void(XpressProblem &)> callback, int prio=0) -> CallbackHandle |
Add a beforeobjective callback. |
|
| auto | addChangeBranchObjectCallback (std::function< void(XpressProblem &, xpress::BranchObject *, xpress::BranchObject **)> callback, int prio=0) -> CallbackHandle |
Add a changebranchobject callback. |
|
| auto | addCheckTimeCallback (std::function< int(XpressProblem &)> callback, int prio=0) -> CallbackHandle |
Add a checktime callback. |
|
| auto | addComputeRestartCallback (std::function< void(XpressProblem &)> callback, int prio=0) -> CallbackHandle |
Add a computerestart callback. |
|
| auto | addCutlogCallback (std::function< int(XpressProblem &)> callback, int prio=0) -> CallbackHandle |
Add a cutlog callback. |
|
| auto | addCutRoundCallback (std::function< void(XpressProblem &, int, int *)> callback, int prio=0) -> CallbackHandle |
Add a cutround callback. |
|
| auto | addGapNotifyCallback (std::function< void(XpressProblem &, double *, double *, double *, double *)> callback, int prio=0) -> CallbackHandle |
Add a gapnotify callback. |
|
| auto | addInfnodeCallback (std::function< void(XpressProblem &)> callback, int prio=0) -> CallbackHandle |
Add an infnode callback. |
|
| auto | addIntsolCallback (std::function< void(XpressProblem &)> callback, int prio=0) -> CallbackHandle |
Add an intsol callback. |
|
| auto | addLplogCallback (std::function< int(XpressProblem &)> callback, int prio=0) -> CallbackHandle |
Add a lplog callback. |
|
| auto | addMessageCallback (std::function< void(XpressProblem &, char const *, int, int)> callback, int prio=0) -> CallbackHandle |
Add a message callback. |
|
| auto | addMiplogCallback (std::function< int(XpressProblem &)> callback, int prio=0) -> CallbackHandle |
Add a miplog callback. |
|
| auto | addMipThreadCallback (std::function< void(XpressProblem &, XpressProblem &)> callback, int prio=0) -> CallbackHandle |
Add a mipthread callback. |
|
| auto | addMipThreadDestroyCallback (std::function< void(XpressProblem &)> callback, int prio=0) -> CallbackHandle |
Add a mipthreaddestroy callback. |
|
| auto | addMsJobEndCallback (std::function< int(XpressProblem &, void *, char const *, int *)> callback, int prio=0) -> CallbackHandle |
Add a msjobend callback. |
|
| auto | addMsJobStartCallback (std::function< int(XpressProblem &, void *, char const *, int *)> callback, int prio=0) -> CallbackHandle |
Add a msjobstart callback. |
|
| auto | addMsWinnerCallback (std::function< int(XpressProblem &, void *, char const *)> callback, int prio=0) -> CallbackHandle |
Add a mswinner callback. |
|
| auto | addNewnodeCallback (std::function< void(XpressProblem &, int, int, int)> callback, int prio=0) -> CallbackHandle |
Add a newnode callback. |
|
| auto | addNlpCoefEvalErrorCallback (std::function< int(XpressProblem &, int, int)> callback, int prio=0) -> CallbackHandle |
Add a nlpcoefevalerror callback. |
|
| auto | addNodecutoffCallback (std::function< void(XpressProblem &, int)> callback, int prio=0) -> CallbackHandle |
Add a nodecutoff callback. |
|
| auto | addNodeLPSolvedCallback (std::function< void(XpressProblem &)> callback, int prio=0) -> CallbackHandle |
Add a nodelpsolved callback. |
|
| auto | addOptnodeCallback (std::function< void(XpressProblem &, int *)> callback, int prio=0) -> CallbackHandle |
Add an optnode callback. |
|
| auto | addPreIntsolCallback (std::function< void(XpressProblem &, int, int *, double *)> callback, int prio=0) -> CallbackHandle |
Add a preintsol callback. |
|
| auto | addPrenodeCallback (std::function< void(XpressProblem &, int *)> callback, int prio=0) -> CallbackHandle |
Add a prenode callback. |
|
| auto | addPresolveCallback (std::function< void(XpressProblem &)> callback, int prio=0) -> CallbackHandle |
Add a presolve callback. |
|
| auto | addSlpCascadeEndCallback (std::function< int(XpressProblem &)> callback, int prio=0) -> CallbackHandle |
Add a slpcascadeend callback. |
|
| auto | addSlpCascadeStartCallback (std::function< int(XpressProblem &)> callback, int prio=0) -> CallbackHandle |
Add a slpcascadestart callback. |
|
| auto | addSlpCascadeVarCallback (std::function< int(XpressProblem &, int)> callback, int prio=0) -> CallbackHandle |
Add a slpcascadevar callback. |
|
| auto | addSlpCascadeVarFailCallback (std::function< int(XpressProblem &, int)> callback, int prio=0) -> CallbackHandle |
Add a slpcascadevarfail callback. |
|
| auto | addSlpConstructCallback (std::function< int(XpressProblem &)> callback, int prio=0) -> CallbackHandle |
Add a slpconstruct callback. |
|
| auto | addSlpDrColCallback (std::function< int(XpressProblem &, int, int, double, double *, double, double)> callback, int prio=0) -> CallbackHandle |
Add a slpdrcol callback. |
|
| auto | addSlpIntSolCallback (std::function< int(XpressProblem &)> callback, int prio=0) -> CallbackHandle |
Add a slpintsol callback. |
|
| auto | addSlpIterEndCallback (std::function< int(XpressProblem &)> callback, int prio=0) -> CallbackHandle |
Add a slpiterend callback. |
|
| auto | addSlpIterStartCallback (std::function< int(XpressProblem &)> callback, int prio=0) -> CallbackHandle |
Add a slpiterstart callback. |
|
| auto | addSlpIterVarCallback (std::function< int(XpressProblem &, int)> callback, int prio=0) -> CallbackHandle |
Add a slpitervar callback. |
|
| auto | addSlpPreUpdateLinearizationCallback (std::function< int(XpressProblem &, int *)> callback, int prio=0) -> CallbackHandle |
Add a slppreupdatelinearization callback. |
|
| auto | addUserSolNotifyCallback (std::function< void(XpressProblem &, char const *, int)> callback, int prio=0) -> CallbackHandle |
Add an usersolnotify callback. |
|
| void | removeAfterObjectiveCallback (CallbackHandle const &callback) |
Remove an afterobjective callback. |
|
| void | removeAfterObjectiveCallbacks () |
Remove all afterobjective callbacks. |
|
| void | removeBarIterationCallback (CallbackHandle const &callback) |
Remove a bariteration callback. |
|
| void | removeBarIterationCallbacks () |
Remove all bariteration callbacks. |
|
| void | removeBarlogCallback (CallbackHandle const &callback) |
Remove a barlog callback. |
|
| void | removeBarlogCallbacks () |
Remove all barlog callbacks. |
|
| void | removeBeforeObjectiveCallback (CallbackHandle const &callback) |
Remove a beforeobjective callback. |
|
| void | removeBeforeObjectiveCallbacks () |
Remove all beforeobjective callbacks. |
|
| void | removeChangeBranchObjectCallback (CallbackHandle const &callback) |
Remove a changebranchobject callback. |
|
| void | removeChangeBranchObjectCallbacks () |
Remove all changebranchobject callbacks. |
|
| void | removeCheckTimeCallback (CallbackHandle const &callback) |
Remove a checktime callback. |
|
| void | removeCheckTimeCallbacks () |
Remove all checktime callbacks. |
|
| void | removeComputeRestartCallback (CallbackHandle const &callback) |
Remove a computerestart callback. |
|
| void | removeComputeRestartCallbacks () |
Remove all computerestart callbacks. |
|
| void | removeCutlogCallback (CallbackHandle const &callback) |
Remove a cutlog callback. |
|
| void | removeCutlogCallbacks () |
Remove all cutlog callbacks. |
|
| void | removeCutRoundCallback (CallbackHandle const &callback) |
Remove a cutround callback. |
|
| void | removeCutRoundCallbacks () |
Remove all cutround callbacks. |
|
| void | removeGapNotifyCallback (CallbackHandle const &callback) |
Remove a gapnotify callback. |
|
| void | removeGapNotifyCallbacks () |
Remove all gapnotify callbacks. |
|
| void | removeInfnodeCallback (CallbackHandle const &callback) |
Remove an infnode callback. |
|
| void | removeInfnodeCallbacks () |
Remove all infnode callbacks. |
|
| void | removeIntsolCallback (CallbackHandle const &callback) |
Remove an intsol callback. |
|
| void | removeIntsolCallbacks () |
Remove all intsol callbacks. |
|
| void | removeLplogCallback (CallbackHandle const &callback) |
Remove a lplog callback. |
|
| void | removeLplogCallbacks () |
Remove all lplog callbacks. |
|
| void | removeMessageCallback (CallbackHandle const &callback) |
Remove a message callback. |
|
| void | removeMessageCallbacks () |
Remove all message callbacks. |
|
| void | removeMiplogCallback (CallbackHandle const &callback) |
Remove a miplog callback. |
|
| void | removeMiplogCallbacks () |
Remove all miplog callbacks. |
|
| void | removeMipThreadCallback (CallbackHandle const &callback) |
Remove a mipthread callback. |
|
| void | removeMipThreadCallbacks () |
Remove all mipthread callbacks. |
|
| void | removeMipThreadDestroyCallback (CallbackHandle const &callback) |
Remove a mipthreaddestroy callback. |
|
| void | removeMipThreadDestroyCallbacks () |
Remove all mipthreaddestroy callbacks. |
|
| void | removeMsJobEndCallback (CallbackHandle const &callback) |
Remove a msjobend callback. |
|
| void | removeMsJobEndCallbacks () |
Remove all msjobend callbacks. |
|
| void | removeMsJobStartCallback (CallbackHandle const &callback) |
Remove a msjobstart callback. |
|
| void | removeMsJobStartCallbacks () |
Remove all msjobstart callbacks. |
|
| void | removeMsWinnerCallback (CallbackHandle const &callback) |
Remove a mswinner callback. |
|
| void | removeMsWinnerCallbacks () |
Remove all mswinner callbacks. |
|
| void | removeNewnodeCallback (CallbackHandle const &callback) |
Remove a newnode callback. |
|
| void | removeNewnodeCallbacks () |
Remove all newnode callbacks. |
|
| void | removeNlpCoefEvalErrorCallback (CallbackHandle const &callback) |
Remove a nlpcoefevalerror callback. |
|
| void | removeNlpCoefEvalErrorCallbacks () |
Remove all nlpcoefevalerror callbacks. |
|
| void | removeNodecutoffCallback (CallbackHandle const &callback) |
Remove a nodecutoff callback. |
|
| void | removeNodecutoffCallbacks () |
Remove all nodecutoff callbacks. |
|
| void | removeNodeLPSolvedCallback (CallbackHandle const &callback) |
Remove a nodelpsolved callback. |
|
| void | removeNodeLPSolvedCallbacks () |
Remove all nodelpsolved callbacks. |
|
| void | removeOptnodeCallback (CallbackHandle const &callback) |
Remove an optnode callback. |
|
| void | removeOptnodeCallbacks () |
Remove all optnode callbacks. |
|
| void | removePreIntsolCallback (CallbackHandle const &callback) |
Remove a preintsol callback. |
|
| void | removePreIntsolCallbacks () |
Remove all preintsol callbacks. |
|
| void | removePrenodeCallback (CallbackHandle const &callback) |
Remove a prenode callback. |
|
| void | removePrenodeCallbacks () |
Remove all prenode callbacks. |
|
| void | removePresolveCallback (CallbackHandle const &callback) |
Remove a presolve callback. |
|
| void | removePresolveCallbacks () |
Remove all presolve callbacks. |
|
| void | removeSlpCascadeEndCallback (CallbackHandle const &callback) |
Remove a slpcascadeend callback. |
|
| void | removeSlpCascadeEndCallbacks () |
Remove all slpcascadeend callbacks. |
|
| void | removeSlpCascadeStartCallback (CallbackHandle const &callback) |
Remove a slpcascadestart callback. |
|
| void | removeSlpCascadeStartCallbacks () |
Remove all slpcascadestart callbacks. |
|
| void | removeSlpCascadeVarCallback (CallbackHandle const &callback) |
Remove a slpcascadevar callback. |
|
| void | removeSlpCascadeVarCallbacks () |
Remove all slpcascadevar callbacks. |
|
| void | removeSlpCascadeVarFailCallback (CallbackHandle const &callback) |
Remove a slpcascadevarfail callback. |
|
| void | removeSlpCascadeVarFailCallbacks () |
Remove all slpcascadevarfail callbacks. |
|
| void | removeSlpConstructCallback (CallbackHandle const &callback) |
Remove a slpconstruct callback. |
|
| void | removeSlpConstructCallbacks () |
Remove all slpconstruct callbacks. |
|
| void | removeSlpDrColCallback (CallbackHandle const &callback) |
Remove a slpdrcol callback. |
|
| void | removeSlpDrColCallbacks () |
Remove all slpdrcol callbacks. |
|
| void | removeSlpIntSolCallback (CallbackHandle const &callback) |
Remove a slpintsol callback. |
|
| void | removeSlpIntSolCallbacks () |
Remove all slpintsol callbacks. |
|
| void | removeSlpIterEndCallback (CallbackHandle const &callback) |
Remove a slpiterend callback. |
|
| void | removeSlpIterEndCallbacks () |
Remove all slpiterend callbacks. |
|
| void | removeSlpIterStartCallback (CallbackHandle const &callback) |
Remove a slpiterstart callback. |
|
| void | removeSlpIterStartCallbacks () |
Remove all slpiterstart callbacks. |
|
| void | removeSlpIterVarCallback (CallbackHandle const &callback) |
Remove a slpitervar callback. |
|
| void | removeSlpIterVarCallbacks () |
Remove all slpitervar callbacks. |
|
| void | removeSlpPreUpdateLinearizationCallback (CallbackHandle const &callback) |
Remove a slppreupdatelinearization callback. |
|
| void | removeSlpPreUpdateLinearizationCallbacks () |
Remove all slppreupdatelinearization callbacks. |
|
| void | removeUserSolNotifyCallback (CallbackHandle const &callback) |
Remove an usersolnotify callback. |
|
| void | removeUserSolNotifyCallbacks () |
Remove all usersolnotify callbacks. |
|
Detailed Description
API for registering callbacks.
- Since
- 44.00
Member Function Documentation
addAfterObjectiveCallback()
|
inline |
Add an afterobjective callback.
More details about afterobjective callbacks can be found in the documentation of the corresponding C callback. The callback function takes the following arguments:
-
cbprob -
The problem passed to the callback function,
afterobjective.
- Parameters
-
callback Callback function. prio Callback priority.
- Returns
- A handle that can be used to remove the callback later.
addBarIterationCallback()
|
inline |
Add a bariteration callback.
More details about bariteration callbacks can be found in the documentation of the corresponding C callback. The callback function takes the following arguments:
-
cbprob -
The problem passed to the callback function,
bariteration. -
p_action -
Defines a return value controlling barrier:
-
<0: continue with the next iteration; -
=0: let barrier decide (use default stopping criteria); -
1: barrier stops with status not defined; -
2: barrier stops with optimal status; -
3: barrier stops with dual infeasible status; -
4: barrier stops wih primal infeasible status.
-
- Parameters
-
callback Callback function. prio Callback priority.
- Returns
- A handle that can be used to remove the callback later.
addBarlogCallback()
|
inline |
Add a barlog callback.
More details about barlog callbacks can be found in the documentation of the corresponding C callback. The callback function takes the following arguments:
-
cbprob -
The problem passed to the callback function,
barlog.
- Parameters
-
callback Callback function. prio Callback priority.
- Returns
- A handle that can be used to remove the callback later.
- See also
- C documentation of XPRSaddcbbarlog()
addBeforeObjectiveCallback()
|
inline |
Add a beforeobjective callback.
More details about beforeobjective callbacks can be found in the documentation of the corresponding C callback. The callback function takes the following arguments:
-
cbprob -
The problem passed to the callback function,
beforeobjective.
- Parameters
-
callback Callback function. prio Callback priority.
- Returns
- A handle that can be used to remove the callback later.
addChangeBranchObjectCallback()
|
inline |
Add a changebranchobject callback.
More details about changebranchobject callbacks can be found in the documentation of the corresponding C callback. The callback function takes the following arguments:
-
cbprob -
branch -
p_newbranch
- Parameters
-
callback Callback function. prio Callback priority.
- Returns
- A handle that can be used to remove the callback later.
addCheckTimeCallback()
|
inline |
Add a checktime callback.
More details about checktime callbacks can be found in the documentation of the corresponding C callback. The callback function takes the following arguments:
-
cbprob -
The problem passed to the callback function,
checktime.
- Parameters
-
callback Callback function. prio Callback priority.
- Returns
- A handle that can be used to remove the callback later.
addComputeRestartCallback()
|
inline |
Add a computerestart callback.
More details about computerestart callbacks can be found in the documentation of the corresponding C callback. The callback function takes the following arguments:
-
cbprob -
The problem passed to the callback function,
computerestart.
- Parameters
-
callback Callback function. prio Callback priority.
- Returns
- A handle that can be used to remove the callback later.
addCutlogCallback()
|
inline |
Add a cutlog callback.
More details about cutlog callbacks can be found in the documentation of the corresponding C callback. The callback function takes the following arguments:
-
cbprob -
The problem passed to the callback function,
cutlog.
- Parameters
-
callback Callback function. prio Callback priority.
- Returns
- A handle that can be used to remove the callback later.
- See also
- C documentation of XPRSaddcbcutlog()
addCutRoundCallback()
|
inline |
Add a cutround callback.
More details about cutround callbacks can be found in the documentation of the corresponding C callback. The callback function takes the following arguments:
-
cbprob -
The problem passed to the callback function,
cutround. -
ifxpresscuts - An integer set to 1 if the Optimizer will apply a round of cuts after this callback. 0 otherwise.
-
p_action -
An integer return value that specifies the action the Optimizer should take:
-
-1: Continue unchanged. The default action. -
0: No further rounds of cuts should be applied on this node. -
1: The Optimizer should apply one more round of cutting, regardless of the value ofifxpresscuts -
2: The Optimizer should process any changes applied during this callback and fire the callback again, but skip any Optimizer cutting.
-
- Parameters
-
callback Callback function. prio Callback priority.
- Returns
- A handle that can be used to remove the callback later.
addGapNotifyCallback()
|
inline |
Add a gapnotify callback.
More details about gapnotify callbacks can be found in the documentation of the corresponding C callback. The callback function takes the following arguments:
-
cbprob - The current problem.
-
p_relgapnotifytarget -
The value the
MIPRELGAPNOTIFYcontrol will be set to after this callback. May be modified within the callback in order to set a new notification target. -
p_absgapnotifytarget -
The value the
MIPABSGAPNOTIFYcontrol will be set to after this callback. May be modified within the callback in order to set a new notification target. -
p_absgapnotifyobjtarget -
The value the
MIPABSGAPNOTIFYOBJcontrol will be set to after this callback. May be modified within the callback in order to set a new notification target. -
p_absgapnotifyboundtarget -
The value the
MIPABSGAPNOTIFYBOUNDcontrol will be set to after this callback. May be modified within the callback in order to set a new notification target.
- Parameters
-
callback Callback function. prio Callback priority.
- Returns
- A handle that can be used to remove the callback later.
addInfnodeCallback()
|
inline |
Add an infnode callback.
More details about infnode callbacks can be found in the documentation of the corresponding C callback. The callback function takes the following arguments:
-
cbprob -
The problem passed to the callback function,
infnode.
- Parameters
-
callback Callback function. prio Callback priority.
- Returns
- A handle that can be used to remove the callback later.
addIntsolCallback()
|
inline |
Add an intsol callback.
More details about intsol callbacks can be found in the documentation of the corresponding C callback. The callback function takes the following arguments:
-
cbprob -
The problem passed to the callback function,
intsol.
- Parameters
-
callback Callback function. prio Callback priority.
- Returns
- A handle that can be used to remove the callback later.
- See also
- C documentation of XPRSaddcbintsol()
addLplogCallback()
|
inline |
Add a lplog callback.
More details about lplog callbacks can be found in the documentation of the corresponding C callback. The callback function takes the following arguments:
-
cbprob -
The problem passed to the callback function,
lplog.
- Parameters
-
callback Callback function. prio Callback priority.
- Returns
- A handle that can be used to remove the callback later.
- See also
- C documentation of XPRSaddcblplog()
addMessageCallback()
|
inline |
Add a message callback.
More details about message callbacks can be found in the documentation of the corresponding C callback. The callback function takes the following arguments:
-
cbprob - The problem passed to the callback function.
-
msg -
A null terminated character array (string) containing the message, which may simply be a new line. The total number of bytes (including
NULterminator) will not exceedXPRS_MAXMESSAGELENGTH. If a message needs to be truncated to meet this limit, the last four bytes inmsgare set to "...\0". -
msglen - The length of the message string, excluding the null terminator.
-
msgtype -
Indicates the type of output message:
-
1: information messages; -
2: (not used); -
3: warning messages; -
4: error messages.
-
- Parameters
-
callback Callback function. prio Callback priority.
- Returns
- A handle that can be used to remove the callback later.
addMiplogCallback()
|
inline |
Add a miplog callback.
More details about miplog callbacks can be found in the documentation of the corresponding C callback. The callback function takes the following arguments:
-
cbprob -
The problem passed to the callback function,
miplog.
- Parameters
-
callback Callback function. prio Callback priority.
- Returns
- A handle that can be used to remove the callback later.
- See also
- C documentation of XPRSaddcbmiplog()
addMipThreadCallback()
|
inline |
Add a mipthread callback.
More details about mipthread callbacks can be found in the documentation of the corresponding C callback. The callback function takes the following arguments:
-
cbprob - The problem passed to the callback function.
-
threadprob - The new problem for the MIP thread
- Parameters
-
callback Callback function. prio Callback priority.
- Returns
- A handle that can be used to remove the callback later.
addMipThreadDestroyCallback()
|
inline |
Add a mipthreaddestroy callback.
More details about mipthreaddestroy callbacks can be found in the documentation of the corresponding C callback. The callback function takes the following arguments:
-
cbprob
- Parameters
-
callback Callback function. prio Callback priority.
- Returns
- A handle that can be used to remove the callback later.
addMsJobEndCallback()
|
inline |
Add a msjobend callback.
More details about msjobend callbacks can be found in the documentation of the corresponding C callback. The callback function takes the following arguments:
-
cbprob - The problem passed to the callback function.
-
jobdata - Job specific user-defined object, as specified by the multistart job creating API functions.
-
jobdesc - The description of the problem as specified by the multistart job creating API functions.
-
p_status -
User return status variable:
0 - use the default evaluation of the finished job
1 - disregard the result and continue
2 - stop the multistart search
- Parameters
-
callback Callback function. prio Callback priority.
- Returns
- A handle that can be used to remove the callback later.
addMsJobStartCallback()
|
inline |
Add a msjobstart callback.
More details about msjobstart callbacks can be found in the documentation of the corresponding C callback. The callback function takes the following arguments:
-
cbprob - The problem passed to the callback function.
-
jobdata - Job specific user-defined object, as specified by the multistart job creating API functions.
-
jobdesc - The description of the problem as specified by the multistart job creating API functions.
-
p_status -
User return status variable:
0 - normal return, solve the job,
1 - disregard this job and continue,
2 - Stop multistart.
- Parameters
-
callback Callback function. prio Callback priority.
- Returns
- A handle that can be used to remove the callback later.
addMsWinnerCallback()
|
inline |
Add a mswinner callback.
More details about mswinner callbacks can be found in the documentation of the corresponding C callback. The callback function takes the following arguments:
-
cbprob - The problem passed to the callback function.
-
jobdata - Job specific user-defined object, as specified by the multistart job creating API functions.
-
jobdesc - The description of the problem as specified by the multistart job creating API functions.
- Parameters
-
callback Callback function. prio Callback priority.
- Returns
- A handle that can be used to remove the callback later.
addNewnodeCallback()
|
inline |
Add a newnode callback.
More details about newnode callbacks can be found in the documentation of the corresponding C callback. The callback function takes the following arguments:
-
cbprob -
The problem passed to the callback function,
newnode. -
parentnode - Unique identifier for the parent of the new node.
-
node - Unique identifier assigned to the new node.
-
branch -
The sequence number of the new node amongst the child nodes of
parentnode. For regular branches on a MIP entity this will be either0or1.
- Parameters
-
callback Callback function. prio Callback priority.
- Returns
- A handle that can be used to remove the callback later.
addNlpCoefEvalErrorCallback()
|
inline |
Add a nlpcoefevalerror callback.
More details about nlpcoefevalerror callbacks can be found in the documentation of the corresponding C callback. The callback function takes the following arguments:
-
cbprob - The problem passed to the callback function.
-
col - The column position of the coefficient.
-
row - The row position of the coefficient.
- Parameters
-
callback Callback function. prio Callback priority.
- Returns
- A handle that can be used to remove the callback later.
addNodecutoffCallback()
|
inline |
Add a nodecutoff callback.
More details about nodecutoff callbacks can be found in the documentation of the corresponding C callback. The callback function takes the following arguments:
-
cbprob -
The problem passed to the callback function,
nodecutoff. -
node -
The node id of the node that is cut off. This id cannot be queried from the
CURRENTNODEattribute as for other callbacks since this callback is not invoked in the context of the node being cutoff.
- Parameters
-
callback Callback function. prio Callback priority.
- Returns
- A handle that can be used to remove the callback later.
addNodeLPSolvedCallback()
|
inline |
Add a nodelpsolved callback.
More details about nodelpsolved callbacks can be found in the documentation of the corresponding C callback. The callback function takes the following arguments:
-
cbprob -
The problem passed to the callback function,
nodelpsolved.
- Parameters
-
callback Callback function. prio Callback priority.
- Returns
- A handle that can be used to remove the callback later.
addOptnodeCallback()
|
inline |
Add an optnode callback.
More details about optnode callbacks can be found in the documentation of the corresponding C callback. The callback function takes the following arguments:
-
cbprob -
The problem passed to the callback function,
optnode. -
p_infeasible - The feasibility status. If set to a nonzero value by the user, the current node will be declared infeasible.
- Parameters
-
callback Callback function. prio Callback priority.
- Returns
- A handle that can be used to remove the callback later.
addPreIntsolCallback()
|
inline |
Add a preintsol callback.
More details about preintsol callbacks can be found in the documentation of the corresponding C callback. The callback function takes the following arguments:
-
cbprob -
The problem passed to the callback function,
preintsol. -
soltype -
The type of MIP solution that has been found:
-
0: The continuous relaxation solution to the current node of the tree search, which has been found to be integer feasible. -
1: A MIP solution found by a heuristic. -
2: A MIP solution provided by the user.
-
-
p_reject -
Set this to 1 if the solution should be rejected. When
soltypeis zero, this will also drop the node problem. -
p_cutoff -
The new cutoff value that the Optimizer will use if the solution is accepted.
If
p_cutoffis assigned a value, the new value will be used instead. The cutoff value will not be updated if the solution is rejected.
- Parameters
-
callback Callback function. prio Callback priority.
- Returns
- A handle that can be used to remove the callback later.
addPrenodeCallback()
|
inline |
Add a prenode callback.
More details about prenode callbacks can be found in the documentation of the corresponding C callback. The callback function takes the following arguments:
-
cbprob -
The problem passed to the callback function,
prenode. -
p_infeasible - The feasibility status. If set to a nonzero value by the user, the current node will be declared infeasible by the Optimizer.
- Parameters
-
callback Callback function. prio Callback priority.
- Returns
- A handle that can be used to remove the callback later.
addPresolveCallback()
|
inline |
Add a presolve callback.
More details about presolve callbacks can be found in the documentation of the corresponding C callback. The callback function takes the following arguments:
-
cbprob - The problem passed to the callback function.
- Parameters
-
callback Callback function. prio Callback priority.
- Returns
- A handle that can be used to remove the callback later.
addSlpCascadeEndCallback()
|
inline |
Add a slpcascadeend callback.
More details about slpcascadeend callbacks can be found in the documentation of the corresponding C callback. The callback function takes the following arguments:
-
cbprob - The problem passed to the callback function.
- Parameters
-
callback Callback function. prio Callback priority.
- Returns
- A handle that can be used to remove the callback later.
addSlpCascadeStartCallback()
|
inline |
Add a slpcascadestart callback.
More details about slpcascadestart callbacks can be found in the documentation of the corresponding C callback. The callback function takes the following arguments:
-
cbprob - The problem passed to the callback function.
- Parameters
-
callback Callback function. prio Callback priority.
- Returns
- A handle that can be used to remove the callback later.
addSlpCascadeVarCallback()
|
inline |
Add a slpcascadevar callback.
More details about slpcascadevar callbacks can be found in the documentation of the corresponding C callback. The callback function takes the following arguments:
-
cbprob - The problem passed to the callback function.
-
col - The number of the column which has been cascaded.
- Parameters
-
callback Callback function. prio Callback priority.
- Returns
- A handle that can be used to remove the callback later.
addSlpCascadeVarFailCallback()
|
inline |
Add a slpcascadevarfail callback.
More details about slpcascadevarfail callbacks can be found in the documentation of the corresponding C callback. The callback function takes the following arguments:
-
cbprob - The problem passed to the callback function.
-
col - The number of the column which has been cascaded.
- Parameters
-
callback Callback function. prio Callback priority.
- Returns
- A handle that can be used to remove the callback later.
addSlpConstructCallback()
|
inline |
Add a slpconstruct callback.
More details about slpconstruct callbacks can be found in the documentation of the corresponding C callback. The callback function takes the following arguments:
-
cbprob - The problem passed to the callback function.
- Parameters
-
callback Callback function. prio Callback priority.
- Returns
- A handle that can be used to remove the callback later.
addSlpDrColCallback()
|
inline |
Add a slpdrcol callback.
More details about slpdrcol callbacks can be found in the documentation of the corresponding C callback. The callback function takes the following arguments:
-
cbprob - The problem passed to the callback function.
-
col - The index of the column for which the determining columns is checked.
-
detcol - The index of the determining column for the column that is being updated.
-
detval - The value of the determining column in the current SLP iteration.
-
p_value -
Used to return the new value for column
col, should it need to be updated, in which case the callback must return a positive result to indicate that this value should be used. -
lb -
The original lower bound of column
col. The callback provides this value as a reference, should the bound be updated or changed during the solution process. -
ub -
The original upper bound of column
col. The callback provides this value as a reference, should the bound be updated or changed during the solution process.
- Parameters
-
callback Callback function. prio Callback priority.
- Returns
- A handle that can be used to remove the callback later.
addSlpIntSolCallback()
|
inline |
Add a slpintsol callback.
More details about slpintsol callbacks can be found in the documentation of the corresponding C callback. The callback function takes the following arguments:
-
cbprob - The problem passed to the callback function.
- Parameters
-
callback Callback function. prio Callback priority.
- Returns
- A handle that can be used to remove the callback later.
addSlpIterEndCallback()
|
inline |
Add a slpiterend callback.
More details about slpiterend callbacks can be found in the documentation of the corresponding C callback. The callback function takes the following arguments:
-
cbprob - The problem passed to the callback function.
- Parameters
-
callback Callback function. prio Callback priority.
- Returns
- A handle that can be used to remove the callback later.
addSlpIterStartCallback()
|
inline |
Add a slpiterstart callback.
More details about slpiterstart callbacks can be found in the documentation of the corresponding C callback. The callback function takes the following arguments:
-
cbprob - The problem passed to the callback function.
- Parameters
-
callback Callback function. prio Callback priority.
- Returns
- A handle that can be used to remove the callback later.
addSlpIterVarCallback()
|
inline |
Add a slpitervar callback.
More details about slpitervar callbacks can be found in the documentation of the corresponding C callback. The callback function takes the following arguments:
-
cbprob - The problem passed to the callback function.
-
col - The number of the column which has been tested for convergence.
- Parameters
-
callback Callback function. prio Callback priority.
- Returns
- A handle that can be used to remove the callback later.
addSlpPreUpdateLinearizationCallback()
|
inline |
Add a slppreupdatelinearization callback.
More details about slppreupdatelinearization callbacks can be found in the documentation of the corresponding C callback. The callback function takes the following arguments:
-
cbprob - The problem passed to the callback function.
-
ifrepeat -
Indicates the call number, starting at 1.
If returned nonzero, another call to the callback will be scheduled. If returned zero, a final call with
ifrepeatset to-1will be made.
- Parameters
-
callback Callback function. prio Callback priority.
- Returns
- A handle that can be used to remove the callback later.
addUserSolNotifyCallback()
|
inline |
Add an usersolnotify callback.
More details about usersolnotify callbacks can be found in the documentation of the corresponding C callback. The callback function takes the following arguments:
-
cbprob -
The problem passed to the callback function,
usersolnotify. -
solname -
The string name assigned to the solution when it was loaded into the Optimizer using
XPRSaddmipsol. -
status -
One of the following status values:
-
1: Solution is feasible. (XPRS_USERSOLSTATUS_ACCEPTED_FEASIBLE) -
2: Solution is feasible after reoptimizing with fixed MIP entities. (XPRS_USERSOLSTATUS_ACCEPTED_OPTIMIZED) -
3: A local search heuristic was applied and a feasible solution discovered. (XPRS_USERSOLSTATUS_SEARCHED_SOL) -
4: A local search heuristic was applied but a feasible solution was not found. (XPRS_USERSOLSTATUS_SEARCHED_NOSOL) -
5: Solution is infeasible and a local search could not be applied. (XPRS_USERSOLSTATUS_REJECTED_INFEAS_NOSEARCH) -
6: Solution is partial and a local search could not be applied. (XPRS_USERSOLSTATUS_REJECTED_PARTIAL_NOSEARCH) -
7: Failed to reoptimize the problem with MIP entities fixed to the provided solution. Likely because a time or iteration limit was reached. (XPRS_USERSOLSTATUS_REJECTED_FAILED_OPTIMIZE) -
8: Solution is dropped. This can happen if the MIP problem is changed or solved to completion before the solution could be processed. (XPRS_USERSOLSTATUS_DROPPED) -
9: The solution is worse than the current MIP cutoff value. (XPRS_USERSOLSTATUS_REJECTED_CUTOFF)
-
- Parameters
-
callback Callback function. prio Callback priority.
- Returns
- A handle that can be used to remove the callback later.
removeAfterObjectiveCallback()
|
inline |
Remove an afterobjective callback.
- Parameters
-
callback The callback to be removed (previously returned by addAfterObjectiveCallback).
removeBarIterationCallback()
|
inline |
Remove a bariteration callback.
- Parameters
-
callback The callback to be removed (previously returned by addBarIterationCallback).
removeBarlogCallback()
|
inline |
Remove a barlog callback.
- Parameters
-
callback The callback to be removed (previously returned by addBarlogCallback).
removeBeforeObjectiveCallback()
|
inline |
Remove a beforeobjective callback.
- Parameters
-
callback The callback to be removed (previously returned by addBeforeObjectiveCallback).
removeChangeBranchObjectCallback()
|
inline |
Remove a changebranchobject callback.
- Parameters
-
callback The callback to be removed (previously returned by addChangeBranchObjectCallback).
removeCheckTimeCallback()
|
inline |
Remove a checktime callback.
- Parameters
-
callback The callback to be removed (previously returned by addCheckTimeCallback).
removeComputeRestartCallback()
|
inline |
Remove a computerestart callback.
- Parameters
-
callback The callback to be removed (previously returned by addComputeRestartCallback).
removeCutlogCallback()
|
inline |
Remove a cutlog callback.
- Parameters
-
callback The callback to be removed (previously returned by addCutlogCallback).
removeCutRoundCallback()
|
inline |
Remove a cutround callback.
- Parameters
-
callback The callback to be removed (previously returned by addCutRoundCallback).
removeGapNotifyCallback()
|
inline |
Remove a gapnotify callback.
- Parameters
-
callback The callback to be removed (previously returned by addGapNotifyCallback).
removeInfnodeCallback()
|
inline |
Remove an infnode callback.
- Parameters
-
callback The callback to be removed (previously returned by addInfnodeCallback).
removeIntsolCallback()
|
inline |
Remove an intsol callback.
- Parameters
-
callback The callback to be removed (previously returned by addIntsolCallback).
removeLplogCallback()
|
inline |
Remove a lplog callback.
- Parameters
-
callback The callback to be removed (previously returned by addLplogCallback).
removeMessageCallback()
|
inline |
Remove a message callback.
- Parameters
-
callback The callback to be removed (previously returned by addMessageCallback).
removeMiplogCallback()
|
inline |
Remove a miplog callback.
- Parameters
-
callback The callback to be removed (previously returned by addMiplogCallback).
removeMipThreadCallback()
|
inline |
Remove a mipthread callback.
- Parameters
-
callback The callback to be removed (previously returned by addMipThreadCallback).
removeMipThreadDestroyCallback()
|
inline |
Remove a mipthreaddestroy callback.
- Parameters
-
callback The callback to be removed (previously returned by addMipThreadDestroyCallback).
removeMsJobEndCallback()
|
inline |
Remove a msjobend callback.
- Parameters
-
callback The callback to be removed (previously returned by addMsJobEndCallback).
removeMsJobStartCallback()
|
inline |
Remove a msjobstart callback.
- Parameters
-
callback The callback to be removed (previously returned by addMsJobStartCallback).
removeMsWinnerCallback()
|
inline |
Remove a mswinner callback.
- Parameters
-
callback The callback to be removed (previously returned by addMsWinnerCallback).
removeNewnodeCallback()
|
inline |
Remove a newnode callback.
- Parameters
-
callback The callback to be removed (previously returned by addNewnodeCallback).
removeNlpCoefEvalErrorCallback()
|
inline |
Remove a nlpcoefevalerror callback.
- Parameters
-
callback The callback to be removed (previously returned by addNlpCoefEvalErrorCallback).
removeNodecutoffCallback()
|
inline |
Remove a nodecutoff callback.
- Parameters
-
callback The callback to be removed (previously returned by addNodecutoffCallback).
removeNodeLPSolvedCallback()
|
inline |
Remove a nodelpsolved callback.
- Parameters
-
callback The callback to be removed (previously returned by addNodeLPSolvedCallback).
removeOptnodeCallback()
|
inline |
Remove an optnode callback.
- Parameters
-
callback The callback to be removed (previously returned by addOptnodeCallback).
removePreIntsolCallback()
|
inline |
Remove a preintsol callback.
- Parameters
-
callback The callback to be removed (previously returned by addPreIntsolCallback).
removePrenodeCallback()
|
inline |
Remove a prenode callback.
- Parameters
-
callback The callback to be removed (previously returned by addPrenodeCallback).
removePresolveCallback()
|
inline |
Remove a presolve callback.
- Parameters
-
callback The callback to be removed (previously returned by addPresolveCallback).
removeSlpCascadeEndCallback()
|
inline |
Remove a slpcascadeend callback.
- Parameters
-
callback The callback to be removed (previously returned by addSlpCascadeEndCallback).
removeSlpCascadeStartCallback()
|
inline |
Remove a slpcascadestart callback.
- Parameters
-
callback The callback to be removed (previously returned by addSlpCascadeStartCallback).
removeSlpCascadeVarCallback()
|
inline |
Remove a slpcascadevar callback.
- Parameters
-
callback The callback to be removed (previously returned by addSlpCascadeVarCallback).
removeSlpCascadeVarFailCallback()
|
inline |
Remove a slpcascadevarfail callback.
- Parameters
-
callback The callback to be removed (previously returned by addSlpCascadeVarFailCallback).
removeSlpConstructCallback()
|
inline |
Remove a slpconstruct callback.
- Parameters
-
callback The callback to be removed (previously returned by addSlpConstructCallback).
removeSlpDrColCallback()
|
inline |
Remove a slpdrcol callback.
- Parameters
-
callback The callback to be removed (previously returned by addSlpDrColCallback).
removeSlpIntSolCallback()
|
inline |
Remove a slpintsol callback.
- Parameters
-
callback The callback to be removed (previously returned by addSlpIntSolCallback).
removeSlpIterEndCallback()
|
inline |
Remove a slpiterend callback.
- Parameters
-
callback The callback to be removed (previously returned by addSlpIterEndCallback).
removeSlpIterStartCallback()
|
inline |
Remove a slpiterstart callback.
- Parameters
-
callback The callback to be removed (previously returned by addSlpIterStartCallback).
removeSlpIterVarCallback()
|
inline |
Remove a slpitervar callback.
- Parameters
-
callback The callback to be removed (previously returned by addSlpIterVarCallback).
removeSlpPreUpdateLinearizationCallback()
|
inline |
Remove a slppreupdatelinearization callback.
- Parameters
-
callback The callback to be removed (previously returned by addSlpPreUpdateLinearizationCallback).
removeUserSolNotifyCallback()
|
inline |
Remove an usersolnotify callback.
- Parameters
-
callback The callback to be removed (previously returned by addUserSolNotifyCallback).
The documentation for this class was generated from the following file:
- xpress_objects.hpp
© 2001-2026 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.
