|
||||||||||
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.ContinuousCallback
The callback base class for user-written continuous callbacks.
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.
IloCplex.Callback
,
IloCplex.SimplexCallback
,
IloCplex.BarrierCallback
Constructor Summary | |
protected |
IloCplex.ContinuousCallback()
The user-written callback constructor. |
Method Summary | |
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. |
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.ContinuousCallback()
IloCplex.ContinuousCallback
objects directly.
Method Detail |
protected double getObjValue() throws IloException
IloException
protected double getInfeasibility() throws IloException
0
will be returned. Otherwise a positive value will be returned.
IloException
protected double getDualInfeasibility() throws IloException
0
will be returned. Otherwise a positive value will
be returned.
IloException
protected boolean isFeasible() throws IloException
IloException
protected boolean isDualFeasible() 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 |