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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

IloCplex::SearchLimitI<br />

IloCplex::SearchLimitI<br />

Category<br />

Inner Class<br />

InheritancePath<br />

Definition File<br />

Include Files<br />

ilocplexi.h<br />

ilcplex/ilocplex.h<br />

public<br />

Constructor Summary<br />

SearchLimitI()<br />

public virtual IloBool<br />

public virtual SearchLimitI<br />

*<br />

public virtual void<br />

Method Summary<br />

check()<br />

duplicateLimit()<br />

init()<br />

Description<br />

IloCplex::SearchLimitI is the base class for implementing user-defined search<br />

limits. To do so, you must subclass IloCplex::SearchLimitI and implement<br />

methods check and duplicateLimit. You may optionally implement method<br />

init. The method check must return IloTrue when the limit is reached and<br />

IloFalse otherwise. The method duplicateLimit must return a copy of the<br />

invoking object to be used in parallel search.<br />

Whenever method check is called by IloCplex, the search limit object is first<br />

initialized to a node, referred to as the current node. Information about the current node<br />

can be queried by calling the get methods of class IloCplex::SearchLimitI.<br />

Search limits are applied to subtrees defined by goals with method<br />

IloCplex::LimitSearch. For example:<br />

IloGoal limitGoal = IloCplex::LimitSearch(cplex, goal1, limit);<br />

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

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

Saved successfully!

Ooh no, something went wrong!