public abstract static class IloCplex.ContinuousCallback extends IloCplex.OptimizationCallback
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 in the
extensions IloCplex.SimplexCallback and
IloCplex.BarrierCallback. 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 previously installed callbacks of these types.
In the case of concurrent optimization, CPLEX calls the user-written callback only in the main thread, not in other concurrent threads.
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.Context, IloCplex.Callback.Function| 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 long |
getNiterations64()
Returns the number of iterations performed so far.
|
protected double |
getObjValue()
Returns the current objective value.
|
protected boolean |
isDualFeasible()
Returns a Boolean value reporting whether the current solution is dual
feasible.
|
protected boolean |
isFeasible()
Returns a Boolean value reporting whether
the current solution is primal feasible.
|
getModel, getNcols, getNQCs, getNrowsabort, getCplexTime, getDetTime, getEndDetTime, getEndTime, 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
IloExceptionprotected long getNiterations64()
throws IloException
IloException