public abstract static class IloCplex.ContinuousCallback extends IloCplex.Callback
Continuous callbacks are executed at every iteration of the simplex algorithm
or the barrier algorithm during the solution of a continuous model.
Algorithm-specific callbacks are also available via the extensions
IloCplex.SimplexCallback and
IloCplex.BarrierCallback. Note that by setting a continuous
callback with the method IloCplex.use, you set the same callback
for both the simplex and the barrier callback, thus potentially overriding
other callbacks of these types previously installed.
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.
| Modifier | Constructor and Description |
|---|---|
protected |
IloCplex.ContinuousCallback()
The user-written callback constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected double |
getDualInfeasibility()
Returns a measure for the dual infeasibility of the current solution.
|
protected double |
getInfeasibility()
Returns a measure for the primal infeasibility of the current solution.
|
protected int |
getNiterations()
Returns the number of iterations performed so far.
|
protected double |
getObjValue()
Returns the current objective value.
|
protected boolean |
isDualFeasible()
Returns a Boolean value indicating whether the current solution is dual
feasible.
|
protected boolean |
isFeasible()
Returns a Boolean value indicating whether the current solution is primal
feasible.
|
abort, getCplexTime, getDetTime, getEndDetTime, getEndTime, getEnvImpl, getModel, getNcols, getNQCs, getNrows, getStartDetTime, getStartTime, mainprotected IloCplex.ContinuousCallback()
IloCplex.ContinuousCallback objects directly.protected double getObjValue()
throws IloException
IloExceptionprotected double getInfeasibility()
throws IloException
0 will be
returned. Otherwise a positive value will be returned.IloExceptionprotected double getDualInfeasibility()
throws IloException
0 will be
returned. Otherwise a positive value will be returned.IloExceptionprotected boolean isFeasible()
throws IloException
IloExceptionprotected boolean isDualFeasible()
throws IloException
IloExceptionprotected int getNiterations()
throws IloException
IloException