30.01.2015 Views

ILOG CPLEX C++ API 9.0 Reference Manual

ILOG CPLEX C++ API 9.0 Reference Manual

ILOG CPLEX C++ API 9.0 Reference Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

IloCplex::NodeEvaluatorI<br />

branch, 0 (zero) will be returned instead. This method can be called only from the<br />

methods init and evaluate.<br />

protected IloNum getDepth()<br />

This method returns the depth in the search tree of the node currently being evaluated.<br />

The root node is depth 0 (zero); the depth of the current node is its distance from the<br />

root, or equivalently, the number of branches taken to get from the root node to the<br />

current node. This member function can be called only from the methods init and<br />

evaluate.<br />

protected IloNum getEstimatedObjValue()<br />

This method returns the estimated objective value for the node being evaluated. It can be<br />

called only from the methods init and evaluate.<br />

protected IloNum getInfeasibilitySum()<br />

This method returns the sum of infeasibility measures at the node being evaluated. It can<br />

be called only from the methods init and evaluate.<br />

protected IloInt getNinfeasibilities()<br />

This method returns the number of infeasibilities at the node being evaluated. It can be<br />

called only from the methods init and evaluate.<br />

protected NodeId getNodeId()<br />

This method returns the node identifier of the node being evaluated. It can be called only<br />

from the methods init and evaluate.<br />

protected IloNum getObjValue()<br />

This method returns the objective value of the node being evaluated. It can be called<br />

only from the methods init and evaluate.<br />

public virtual void init()<br />

This method is called by IloCplex immediately before the first time evaluate is<br />

called for a node, allowing you to initialize the evaluator based on that node.<br />

Information about the current node can be queried by calling the get methods of<br />

IloCplex::NodeEvaluatorI.<br />

public virtual IloBool subsume(IloNum evalBest,<br />

IloNum evalCurrent)<br />

IloCplex maintains a candidate node for selection as the next node to process. When<br />

choosing the next node, it compares the candidate to all other nodes. If a given node and<br />

the candidate node are governed by the same evaluator, IloCplex calls subsume to<br />

determine whether the node should become the new candidate. The arguments passed to<br />

the subsume call are:<br />

◆<br />

the value previously assigned by the method evaluate to the candidate node as<br />

parameter evalBest, and<br />

<strong>ILOG</strong> <strong>CPLEX</strong> <strong>C++</strong> <strong>API</strong> <strong>9.0</strong> REFERENCE M ANUAL 196

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!