problem.addcbcutlog
problem.addcbcutlog |
Purpose
Declares a cut log callback function, called each time the cut log is printed. This callback function will be called in addition to any callbacks already added by
problem.addcbcutlog.
Synopsis
problem.addcbcutlog(callback, data, priority)
ret = callback(my_prob, my_object)
Arguments
callback
|
The callback function which takes two arguments,
my_prob and
my_object, and has an integer return value.
|
my_prob
|
The problem passed to the callback function,
callback.
|
my_object
|
The user-defined object passed as
object when setting up the callback with
addcbcutlog.
|
data
|
A user-defined object to be passed to the callback function,
callback.
|
priority
|
An integer that determines the order in which multiple cut log callbacks will be invoked. The callback added with a higher priority will be called before a callback with a lower priority. Set to 0 if not required.
|
Further information
The callback
callback should return a non-zero value to stop cutting on the current node.
Related topics