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 index of the column 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