IBM ILOG Solver User's Manual > Extending the Library > Writing a Search Limit: Car Sequencing > Understanding search limits |
Understanding search limits |
INDEX
![]() |
The class IloSearchLimit
represents search limits in an IBM® ILOG® Concert Technology model. The class IlcSearchLimit
represents search limits internally in a Solver search.
Instances of the class IlcSearchLimit
are handles to instances of the class IlcSearchLimitI
and let you indicate to Solver that it should stop the search when it reaches a limit that you set, regardless of its progress in the search. Typical limits that you might set are time limits, for example.
Instances of the class IloSearchLimit
are handles to instances of the class IloSearchLimitI
, objects linked to a model. They are allocated on the environment, an instance of IloEnv
, and not on the Solver reversible heap. When an instance of the class IloSearchLimit
is used, the IloSolver::extract
method is called. This member function returns an instance of the class IlcSearchLimit
to be used during the search.
Predefined search limits in Concert Technology include IloTimeLimit
, IloFailLimit
, and IloOrLimit
. For many problems, you will achieve satisfactory solutions by using those predefined objects. However, if you want to change search behavior, you can write your own implementation of one or more of the virtual member functions to get the effects you want.
© Copyright IBM Corp. 1987, 2009. Legal terms. | PREVIOUS NEXT |