Initializing help system before first use

problem.setcbdrcol

problem.setcbdrcol


Purpose
Set a user callback used to override the update of variables with small determining column
Synopsis

problem.setcbdrcol(callback, object)

newvalue = callback(my_prob, my_object, colindex, drcolindex, drcolvalue, vlb, vub)


Arguments
callback 
The function to be called after each column has been cascaded. callback returns an integer value. If the return value is positive, it will indicate that the value has been fixed, and cascading should be omitted for the variable. A negative value indicates that a previously fixed value has been relaxed. If no action is taken, a 0 return value should be used.
my_prob 
The problem passed to the callback function.
my_object 
The user-defined object passed as object to setcbcascadevar.
ColIndex 
The column (i.e. xpress.var object, index, or name) for which the determining columns is checked.
DrColIndex 
The index of the determining column for the column that is being updated.
DrColValue 
The value of the determining column in the current SLP iteration.
NewValue 
Used to return the new value for column ColIndex, should it need to be updated, in which case the callback must return a positive value to indicate that this value should be used.
VLB 
The original lower bound of column ColIndex. The callback provides this value as a reference, should the bound be updated or changed during the solution process.
VUB 
The original upper bound of column ColIndex. The callback provides this value as a reference, should the bound be updated or changed during the solution process.
object 
Address of a user-defined object, which can be used for any purpose. by the function. object is passed to callback as my_object.
Further information
If set, this callback is called as part of the cascading procedure. Please see the chapter on cascading of the SLP Reference Manual for more information.
Related topics

© 2001-2020 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.