XSLPsetcbcascadevarfail
XSLPsetcbcascadevarfail |
Purpose
Set a user callback to be called after cascading a column was not successful
Synopsis
int XPRS_CC XSLPsetcbcascadevarfail(XSLPprob Prob, int (XPRS_CC *UserFunc) (XSLPprob myProb, void *myObject, int ColIndex), void *Object);
Arguments
Prob
|
The current SLP problem.
|
UserFunc
|
The function to be called after cascading a column was not successful.
UserFunc returns an integer value. If the return value is nonzero, the cascading process will be omitted for the remaining variables during the current SLP iteration, but the optimization will continue.
|
myProb
|
The problem passed to the callback function.
|
myObject
|
The user-defined object passed as
Object to
XSLPsetcbcascadevarfail.
|
ColIndex
|
The number of the column which has been cascaded.
|
Object
|
Address of a user-defined object, which can be used for any purpose by the function.
Object is passed to
UserFunc as
myObject.
|
Further information
This callback can be used to provide user defined updates for SLP variables having a determining row that were not successfully cascaded due to the determining row being close to singular around the current values. This callback will always be called in place of the cascadevar callback in such cases, and in no situation will both the cascadevar and the cascadevarfail callback be called in the same iteration for the same variable.
Related topics