A tuning callback is a user-written function that ILOG CPLEX calls before each trial run during a tuning session. A tuning callback allows you to follow the progress of tuning. It reports information that enables you to estimate how much more time tuning needs to achieve results useful in your model.
To use a tuning callback in a tuning session, you must first write the callback function, and then pass it to ILOG CPLEX. ILOG CPLEX will then execute your tuning callback before it begins a trial run.
-
In Concert Technology, you must implement your user-written function as an instance of the tuning callback class.
-
In the Callable Library (C API), use the routine
CPXsettuningcallbackfunc
. For more about how to write a callback, see also Implementing Callbacks in the Callable Library.