public abstract static class IloCplex.NetworkCallback extends IloCplex.Callback
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| Modifier | Constructor and Description |
|---|---|
protected |
IloCplex.NetworkCallback()
Constructor for user-written network callback.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
abort, getCplexTime, getDetTime, getEndDetTime, getEndTime, getEnvImpl, getModel, getNcols, getNQCs, getNrows, getStartDetTime, getStartTime, mainprotected IloCplex.NetworkCallback()
IloCplex.NetworkCallback objects directly.protected double getObjValue()
throws IloException
IloExceptionprotected 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.IloExceptionprotected boolean isFeasible()
throws IloException
IloExceptionprotected int getNiterations()
throws IloException
IloException