Overview | Group | Tree | Graph | Index | Concepts |
This callback is called whenever a new potential incumbent is found during branch & cut searches. It allows you to analyze the proposed incumbent and optionally reject it. In this case, CPLEX will continue the branch & cut search. This callback is thus typically combined with a branch callback that instructs CPLEX how to branch on a node after it has found a potential incumbent and thus considered the node solution to be integer feasible.
See Also:
IloCplex, IloCplex::Callback, IloCplex::CallbackI, IloCplex::MIPCallbackI
Method Summary | |
---|---|
protected NodeData * | getNodeData() |
protected NodeId | getNodeId() |
protected IloNum | getObjValue() |
protected IloNum | getSlack(const IloRange) |
protected void | getSlacks(IloNumArray, const IloRangeArray) |
protected IloNum | getValue(const IloIntVar) |
protected IloNum | getValue(const IloNumVar) |
protected IloNum | getValue(const IloExprArg) |
protected void | getValues(IloNumArray, const IloIntVarArray) |
protected void | getValues(IloNumArray, const IloNumVarArray) |
protected void | reject() |
Inherited Methods from CallbackI |
---|
abort, duplicateCallback, getEnv, getModel, getNcols, getNQCs, getNrows, main |
Method Detail |
---|
This method retrieves the NodeData
object that may have
previously been assigned to the current node by the user with method
IloCplex::BranchCallbackI::makeBranch
. If no data object has
been assigned to the current node, 0
will be returned.
This method returns the NodeId
of the current
node.
This method returns the query objective value of the potential incumbent.
This method returns the slack value for the range indicated by
rng
for the potential incumbent.
This method puts the slack value for each range in the array of
ranges con
into the corresponding element of the array
val
for the potential incumbent. For this CPLEX resizes
array val
to match the size of array con
.
This method returns the query value of the variable
var
in the potential incumbent solution.
This method returns the value of the variable
var
in the potential incumbent solution.
This method returns the value of the expr
for
the potential incumbent solution.
This method returns the query values of the variables in the array
vars
in the potential incumbent solution and copies them to
val
. CPLEX automatically resizes the array
val
to match the size of the array vars
.
This method returns the query values of the variables in the array
vars
in the potential incumbent solution and copies them to
val
. CPLEX automatically resizes the array
val
to match the length of the array vars
.
This method rejects the proposed incumbent.