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
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 java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
IloCplex.NetworkCallback
protected IloCplex.NetworkCallback()
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.