NO FRAMES

Class IloCplex::PresolveCallbackI

Definition file: ilcplex/ilocplexi.h

An instance of a class derived from PresolveCallbackI 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 member functions 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 there.

If an attempt is made to access information not available to an instance of this class, an exception is thrown.

See Also:

Constructor Summary
protected PresolveCallbackI(IloEnv env)
Method Summary
protected IloIntgetNaggregations() const
protected IloIntgetNmodifiedCoeffs() const
protected IloIntgetNremovedCols() const
protected IloIntgetNremovedRows() const
Inherited Methods from OptimizationCallbackI
getModel, getNcols, getNQCs, getNrows
Inherited Methods from CallbackI
abort, duplicateCallback, getEnv, main
Constructor Detail

PresolveCallbackI

protected PresolveCallbackI(IloEnv env)

This constructor creates a callback for use in presolve.


Method Detail

getNaggregations

protected IloInt getNaggregations() const

This method returns the number of aggregations performed by presolve at the time the callback is executeed.


getNmodifiedCoeffs

protected IloInt getNmodifiedCoeffs() const

This method returns the number of coefficients modified by presolve at the time the callback is executeed.


getNremovedCols

protected IloInt getNremovedCols() const

This method returns the number of columns removed by presolve at the time the callback is executeed.


getNremovedRows

protected IloInt getNremovedRows() const

This method returns the number of rows removed by presolve at the time the callback is executeed.