ilog.cplex
Class IloCplex.PresolveCallback

java.lang.Object
  extended byilog.cplex.IloCplex.Callback
      extended byilog.cplex.IloCplex.OptimizationCallback
          extended byilog.cplex.IloCplex.PresolveCallback
All Implemented Interfaces:
java.lang.Cloneable
Enclosing class:
IloCplex

public abstract static class IloCplex.PresolveCallback
extends IloCplex.OptimizationCallback

The callback class for user-written callbacks during presolve. An instance of the class PresolveCallback represents a user-written callback. The callback is called periodically during presolve. This class enables you to access information about the effects of presolve on the active model for the instance of IloCplex. For example, you can query the number of rows or columns presolve removed from the model, the number of variables that have been aggregated, or the number of coefficients that have changed as a result of presolve.

The constructor and methods of this class are protected to make sure that they are used only to derive a user-written callback class or to implement the main method in it.

See Also:
IloCplex.Callback

Constructor Summary
protected IloCplex.PresolveCallback()
          Constructor for user-written presolve callback.
 
Method Summary
protected  int getNaggregations()
          Returns the number of aggregations performed by presolve at the moment the callback is called.
protected  int getNmodifiedCoeffs()
          Returns the number of coefficients modified by presolve at the moment the callback is called.
protected  int getNremovedCols()
          Returns the number of columns removed by presolve at the moment the callback is called.
protected  int getNremovedRows()
          Returns the number of rows removed by presolve at the moment the callback is called.
 
Methods inherited from class ilog.cplex.IloCplex.OptimizationCallback
getModel, getNcols, getNQCs, getNrows
 
Methods inherited from class ilog.cplex.IloCplex.Callback
abort, main
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IloCplex.PresolveCallback

protected IloCplex.PresolveCallback()
Constructor for user-written presolve callback. This constructor can be called only to construct objects of derived user-written callback classes, but not to construct IloCplex.PresolveCallback objects directly.

Method Detail

getNremovedRows

protected int getNremovedRows()
                       throws IloException
Returns the number of rows removed by presolve at the moment the callback is called.

Returns:
The number of rows removed by presolve.
Throws:
IloException

getNremovedCols

protected int getNremovedCols()
                       throws IloException
Returns the number of columns removed by presolve at the moment the callback is called.

Returns:
The number of columns removed by presolve.
Throws:
IloException

getNaggregations

protected int getNaggregations()
                        throws IloException
Returns the number of aggregations performed by presolve at the moment the callback is called.

Returns:
The number of aggregations performed by presolve.
Throws:
IloException

getNmodifiedCoeffs

protected int getNmodifiedCoeffs()
                          throws IloException
Returns the number of coefficients modified by presolve at the moment the callback is called.

Returns:
The number of coefficients modified by presolve.
Throws:
IloException