ilog.cplex
Class IloCplex.PresolveCallback
java.lang.Object
|
+--ilog.cplex.IloCplex.Callback
|
+--ilog.cplex.IloCplex.PresolveCallback
- public abstract static class IloCplex.PresolveCallback
- extends IloCplex.Callback
The callback class for user-written callbacks during presolve.
An instance of the class PresolveCallback
represents a
user-written callback in an application that uses an instance of
IloCplex
. The callback is called periodically during
presolve. This class enables you to access information about the effects
of presolve on the model extracted for the instance of
IloCplex
. For example, there are methods that
return the number of rows or columns removed from the model, the number
of variables that have been aggregated, and the number of coefficients
that have changed as a result of presolve.
The constructor and methods of this class are protected for use
in deriving a user-written callback class and in implementing the main
method in it.
If an attempt is made to access information not available to an instance
of this class, an exception is thrown.
- See Also:
IloCplex.Callback
Method Summary |
protected int |
getNaggregations()
Gets the number of aggregations performed by presolve. |
protected int |
getNmodifiedCoeffs()
Gets the number of coefficients modified by presolve. |
protected int |
getNremovedCols()
Gets the number of columns removed by presolve. |
protected int |
getNremovedRows()
Gets the number of rows removed by presolve. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
IloCplex.PresolveCallback
protected IloCplex.PresolveCallback()
getNremovedRows
protected int getNremovedRows()
- Gets the number of rows removed by presolve.
- Returns:
- The number of rows removed by presolve.
getNremovedCols
protected int getNremovedCols()
- Gets the number of columns removed by presolve.
- Returns:
- The number of columns removed by presolve.
getNaggregations
protected int getNaggregations()
- Gets the number of aggregations performed by presolve.
- Returns:
- The number of aggregations performed by presolve.
getNmodifiedCoeffs
protected int getNmodifiedCoeffs()
- Gets the number of coefficients modified by presolve.
- Returns:
- The number of coefficients modified by presolve.