ilog.cplex
Class IloCplex.CrossoverCallback

java.lang.Object
  |
  +--ilog.cplex.IloCplex.Callback
        |
        +--ilog.cplex.IloCplex.CrossoverCallback
All Implemented Interfaces:
java.lang.Cloneable
Enclosing class:
IloCplex

public abstract static class IloCplex.CrossoverCallback
extends IloCplex.Callback

The base class for user-written callbacks during crossover from a barrier solution to a simplex basis.

An instance of the class CrossoverCallback represents a user-written callback in an application that uses an instance of IloCplex to solve a problem by means of the barrier optimizer, with the crossover option. An instance of IloCplex calls this callback regularly during crossover. For details about crossover, see the ILOG CPLEX User's Manual.

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.CrossoverCallback()
          Constructor for user-written crossover callback.
 
Method Summary
protected  int getNdualExchanges()
          Returns the number of dual exchange operations at the moment the callback is called.
protected  int getNdualPushes()
          Returns the number of dual push operations at the moment the callback is called.
protected  int getNprimalExchanges()
          Returns the number of primal exchange operations at the moment the callback is called.
protected  int getNprimalPushes()
          Returns the number of primal push operations at the moment the callback is called.
protected  int getNsuperbasics()
          Returns the number of super basics created at the moment the callback is called.
 
Methods inherited from class ilog.cplex.IloCplex.Callback
abort, getModel, getNcols, getNQCs, getNrows, main
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IloCplex.CrossoverCallback

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

Method Detail

getNprimalPushes

protected int getNprimalPushes()
                        throws IloException
Returns the number of primal push operations at the moment the callback is called.

Returns:
The number of primal push operations.
IloException

getNprimalExchanges

protected int getNprimalExchanges()
                           throws IloException
Returns the number of primal exchange operations at the moment the callback is called.

Returns:
The number of primal exchange operations.
IloException

getNdualPushes

protected int getNdualPushes()
                      throws IloException
Returns the number of dual push operations at the moment the callback is called.

Returns:
The number of dual push operations.
IloException

getNdualExchanges

protected int getNdualExchanges()
                         throws IloException
Returns the number of dual exchange operations at the moment the callback is called.

Returns:
The number of dual exchange operations.
IloException

getNsuperbasics

protected int getNsuperbasics()
                       throws IloException
Returns the number of super basics created at the moment the callback is called.

Returns:
The number of super basics created.
IloException