public static interface IloModelingAssistance.Callback
Any class to be used as a modeling assistance callback must implement this interface.
| Modifier and Type | Method and Description |
|---|---|
void |
invoke(int issueid,
java.lang.String message)
Invoked by the modeling assistance callback.
|
void invoke(int issueid,
java.lang.String message)
throws IloException
If an object is registered with CPLEX by means of the method
IloCplex.use(IloModelingAssistance.Callback), then CPLEX
will invoke this function of the registered object for each
modeling assistance warning. These warnings will not be
displayed in the engine log as they are by default when no
callback is registered. For values of issueid, see
the constants in IloModelingAssistance.
Note: CPLEX will only invoke this function if the CPLEX
parameter IloCplex.Param.Read.DataCheck is set to
IloCplex.DataCheck.Assist. In addition, the
parameter IloCplex.Param.Read.WarningLimit
controls the number of times each type of modeling assistance
warning will be reported (the rest will be ignored). See
CPX_PARAM_DATACHECK and
CPX_PARAM_WARNLIM in the Parameters of CPLEX
Reference Manual.
IloException - in order to indicate any sort of error.issueid - The modeling assistance issue ID.message - The modeling assistance warning string.