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::NodeCallbackI<br />

protected void<br />

protected void<br />

selectNode(NodeId)<br />

selectNode(int)<br />

Inherited methods from IloCplex::MIPCallbackI<br />

MIPCallbackI::getBestObjValue, MIPCallbackI::getCutoff,<br />

MIPCallbackI::getDirection, MIPCallbackI::getDirection,<br />

MIPCallbackI::getIncumbentObjValue, MIPCallbackI::getIncumbentValue,<br />

MIPCallbackI::getIncumbentValue, MIPCallbackI::getIncumbentValues,<br />

MIPCallbackI::getIncumbentValues, MIPCallbackI::getMyThreadNum,<br />

MIPCallbackI::getNcliques, MIPCallbackI::getNcovers,<br />

MIPCallbackI::getNdisjunctiveCuts, MIPCallbackI::getNflowCovers,<br />

MIPCallbackI::getNflowPaths, MIPCallbackI::getNfractionalCuts,<br />

MIPCallbackI::getNGUBcovers, MIPCallbackI::getNimpliedBounds,<br />

MIPCallbackI::getNiterations, MIPCallbackI::getNMIRs,<br />

MIPCallbackI::getNnodes, MIPCallbackI::getNremainingNodes,<br />

MIPCallbackI::getObjCoef, MIPCallbackI::getObjCoef,<br />

MIPCallbackI::getObjCoefs, MIPCallbackI::getObjCoefs,<br />

MIPCallbackI::getPriority, MIPCallbackI::getPriority,<br />

MIPCallbackI::getUserThreads, MIPCallbackI::hasIncumbent<br />

Inherited methods from IloCplex::CallbackI<br />

CallbackI::abort, CallbackI::duplicateCallback, CallbackI::getEnv,<br />

CallbackI::getModel, CallbackI::getNcols, CallbackI::getNQCs,<br />

CallbackI::getNrows, CallbackI::main<br />

Description<br />

An instance of the class IloCplex::NodeCallbackI represents a user-written<br />

callback in an application that uses an instance of IloCplex to solve a mixed integer<br />

programming problem (a MIP). The methods of this class enable you (from a userderived<br />

callback class) to query the instance of IloCplex about the next node that it<br />

plans to select in the branch & cut search, and optionally to override this selection by<br />

specifying a different node.<br />

When an instance of this callback executes, the invoking instance of IloCplex still<br />

has n = getNremainingNodes (inherited from IloCplex::MIPCallbackI)<br />

nodes left to process. These remaining nodes are numbered from 0 (zero) to (n - 1).<br />

For that reason, the same node may have a different number each time an instance of<br />

NodeCallbackI is called. To identify a node uniquely, an instance of IloCplex<br />

also assigns a unique NodeId to each node. That unique identifier remains unchanged<br />

throughout the search. The method getNodeId(int i) allows you to access the<br />

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

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

Saved successfully!

Ooh no, something went wrong!