12.07.2015 Views

ILOG CPLEX 11.0 User's Manual

ILOG CPLEX 11.0 User's Manual

ILOG CPLEX 11.0 User's 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.

follows the branching performed by the built-in strategy of IloCplex can be easilyimplemented as:ILO<strong>CPLEX</strong>GOAL0(DefaultSearchGoal) {if ( !isIntegerFeasible() )return AndGoal(BranchAsCplexGoal(getEnv()), this);return 0;}Notice the test for integer feasibility. Without that test, the application would create anendless loop because when an integer feasible solution has been found, BranchAsCplexgoal does not change the node at all, and this would continue to be executed indefinitely.Search LimitsAs with node evaluators, it is possible to apply search limits to the branch & cut searchcontrolled by goals. Search limits allow you to limit the search in certain subtrees; that is,they allow you to discontinue processing nodes when some condition applies. Search limitsare implemented in subclasses of class IloCplex::SearchLimitI(IloCplex.SearchLimit or Cplex.SearchLimit), and the procedure for implementingand using them is very similar to that for node evaluators. See the reference manuals formore details about implementing and using search limits.444 <strong>ILOG</strong> <strong>CPLEX</strong> <strong>11.0</strong> — USER’ S MANUAL

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

Saved successfully!

Ooh no, something went wrong!