ilog.cplex
Class IloCplex.NetworkCallback

java.lang.Object
  |
  +--ilog.cplex.IloCplex.Callback
        |
        +--ilog.cplex.IloCplex.NetworkCallback

public abstract static class IloCplex.NetworkCallback
extends IloCplex.Callback

The callback class to use when IloCplex uses the network optimizer. An instance of the class NetCallback represents a user-written callback in an application that uses an instance of IloCplex with the network optimizer. The callback is executed each time the network optimizer issues a log file message.

The 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

Constructor Summary
protected IloCplex.NetworkCallback()
           
 
Method Summary
protected  double getInfeasibility()
          Gets the primal infeasibility measure.
protected  int getNiterations()
          Returns the number of iterations completed by a network optimizer.
protected  double getObjValue()
          This method returns the value of the objective in the current solution of the invoking algorithm.
protected  boolean isFeasible()
          Gets a boolean indicating whether the current solution is primal feasible.
 
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.NetworkCallback

protected IloCplex.NetworkCallback()
Method Detail

getObjValue

protected double getObjValue()
This method returns the value of the objective in the current solution of the invoking algorithm. That solution may not necessarily be feasible nor optimal. It returns 0 if no IloObjective object is in the extracted model.

getInfeasibility

protected double getInfeasibility()
Gets the primal infeasibility measure.
Returns:
The measure of primal infeasibility.

isFeasible

protected boolean isFeasible()
Gets a boolean indicating whether the current solution is primal feasible.
Returns:
A boolean indicating whether the current solution is primal feasible.

getNiterations

protected int getNiterations()
Returns the number of iterations completed by a network optimizer.