|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ilog.cplex.IloCplex.Callback | +--ilog.cplex.IloCplex.NetworkCallback
This is 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 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.
IloCplex.Callback
Constructor Summary | |
protected |
IloCplex.NetworkCallback()
Constructor for user-written network callback. |
Method Summary | |
protected double |
getInfeasibility()
Returns the primal infeasibility measure at the moment the callback is called. |
protected int |
getNiterations()
Returns the number of iterations performed by the network optimizer at the moment the callback is called. |
protected double |
getObjValue()
Returns the current objective value. |
protected boolean |
isFeasible()
Returns a Boolean value indicating whether the current solution is primal feasible 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 |
protected IloCplex.NetworkCallback()
IloCplex.NetworkCallback
objects directly.
Method Detail |
protected double getObjValue() throws IloException
IloException
protected double getInfeasibility() throws IloException
0
is returned. Otherwise,
this method returns a positive
value. Since the network optimizer sees only
the embedded network part of the full model, a solution considered
to be feasible for the network optimizer may not be so for the full
model.
IloException
protected boolean isFeasible() throws IloException
IloException
protected int getNiterations() throws IloException
IloException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |